page1
Render_area
PUBLIC
Render_area(QWidget*)
~Render_area()
Bool
init()
Bool
free()
Bool
build(Entity*)
Fig. Communication between the render area and the OpenGL API
PROTECTED
void
initializedGL()
void
resizeGL()
void
paintGL()
A.1
Action A:
When Render_area is created
OpenGL
PUBLIC
GlDeleteLists()
glGenLists()
GlNewList()
GlBegin()
GlColor()
glVertex2d()
GlEnd()
GlEndList()
GlClearColor()
GlEnable()
GlViewport()
GlMatrixMode()
GlLoadIdentity()
gluOrtho2D()
GlClear()
glCallList()
Action B:
Each time Render_area received informations
B.1
: these three functions are called by the System
Action C:
Called once before resizeGL() or paintGL().
C.1
Action D:
Called when window was resized.
D.1
Action E:
Called every time the window need to be repainted
E.1