| Top |
| void | visu_gl_rendering_init () |
| gboolean | visu_gl_rendering_getModeFromName () |
| const char ** | visu_gl_rendering_getAllModes () |
| const char ** | visu_gl_rendering_getAllModeLabels () |
| void | visu_gl_rendering_applyMode () |
This modules creates an interface to access to the way OpenGL
renders the objects (glPolygonMode() and glToolShadeModel()
functions). There are then three rendering modes available in
V_Sim: wireframe, flat and smooth. They are controls by an enum
RenderingModeId. When visu_gl_rendering_applyMode() is called, the
current rendering mode is changed for all future drawing calls that
uses polygons.
void
visu_gl_rendering_init (void);
This method is used by opengl.c to initialise this module (declare config file options...). It should not be called elsewhere.
[skip]
gboolean visu_gl_rendering_getModeFromName (const char *name,VisuGlRenderingMode *id);
This function retrieve the rendering mode id associated to the name.
const char **
visu_gl_rendering_getAllModes (void);
This function retrieve al the names of available rendering modes.
const char **
visu_gl_rendering_getAllModeLabels (void);
This function retrieve al the names (translated) of available rendering modes.
void
visu_gl_rendering_applyMode (VisuGlRenderingMode mode);
Change the rendering mode of current OpenGL context.
Implemented mode to draw objects.
|
objects are rendered with lines only ; |
||
|
objects are rendered with polygons whose colours are uniform on each polygon ; |
||
|
objects are rendered with polygons whose colours are shaded to be smooth all along the object. |
||
|
objects are rendered with lines hightlighting the contours of polygons. |
||
|
number of rendering mode. |
||
|
use this value not to choose any rendering mode. |