glVertex  5.5.2
Public Member Functions | Protected Member Functions | List of all members
lgl_Qt_GLWidget Class Referenceabstract

Qt OpenGL widget base class. More...

#include <glvertex_qt_glwidget.h>

Inheritance diagram for lgl_Qt_GLWidget:
Inheritance graph
[legend]

Public Member Functions

 lgl_Qt_GLWidget (QWidget *parent=NULL, bool core=true)
 default ctor
 
virtual ~lgl_Qt_GLWidget ()
 dtor
 
void setFPS (double rate)
 set frame rate
 
void setTimeLapse (double speedup)
 set time lapse speedup
 
void background (double red, double green, double blue, double alpha=1)
 set background color
 
void toggle_background ()
 toggle background color
 
void animation (bool on)
 enable animation
 
void toggle_animation ()
 toggle animation
 
void ztest (bool on)
 enable z-buffer test
 
void toggle_ztest ()
 toggle z-buffer test
 
void culling (bool on)
 enable back-face culling
 
void toggle_culling ()
 toggle back-face culling
 
void blending (bool on)
 enable alpha blending
 
void toggle_blending ()
 toggle alpha blending
 
void atest (bool on)
 enable alpha testing
 
void toggle_atest ()
 toggle alpha testing
 
void wireframe (bool on)
 enable wireframe mode
 
void toggle_wireframe ()
 toggle wireframe mode
 
void override (bool on)
 enable override
 
void fullscreen (bool on)
 enable fullscreen mode
 
void toggle_fullscreen ()
 toggle fullscreen mode
 
void restart ()
 restart time
 

Protected Member Functions

virtual void initializeOpenGL ()=0
 implement this method to initialize OpenGL state
 
virtual void renderOpenGL (double dt)=0
 implement this method to render a frame
 
virtual void prepareOpenGL (double dt)
 implement this method to prepare state before rendering
 
virtual void updateOpenGL (double dt)
 implement this method to update state after rendering
 
virtual void finishOpenGL (double t)
 implement this method to finish OpenGL state
 

Detailed Description

Qt OpenGL widget base class.


The documentation for this class was generated from the following file: