KWin
Earth Class Reference
#include <earth.h>
Inheritance diagram for Earth:

Detailed Description
Definition at line 33 of file earth.h.
Public Member Functions | |
| Earth () | |
| ~Earth () | |
Protected Member Functions | |
| Mesh * | createMesh (int detail) |
| Mesh * | createStarMesh (int stars) |
| void | initializeGL () |
| virtual void | mouseMoveEvent (QMouseEvent *e) |
| virtual void | mousePressEvent (QMouseEvent *e) |
| void | render () |
Constructor & Destructor Documentation
Member Function Documentation
| void Earth::initializeGL | ( | ) | [protected, virtual] |
Initializes OpenGL.
Base implementation:
- calls KGLLib::init() to initialize KGLLib
- creates camera and fpsCounter objects
- sets OpenGL clear color to clearColor
- initializes camera to look from (0, 0, 5) at (0, 0, 0) with depth range [1, 100]
- enables depth testing (if depth buffer is used)
- sets OpenGL shade model to GL_SMOOTH
- sets primary color to white
Reimplemented from KGLLib::GLWidget.
| void Earth::mouseMoveEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
| void Earth::mousePressEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
| void Earth::render | ( | ) | [protected, virtual] |
Called from paintGL() when the widget needs to be painted.
This is the method that you should reimplement to do your rendering. Base implementation does nothing, so you needn't call it from your implementation.
Reimplemented from KGLLib::GLWidget.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference