VISH
0.2
|
A simple example demonstrating how to draw a Grid using the OpenGL glMap functions. More...
A simple example demonstrating how to draw a Grid using the OpenGL glMap functions.
It is based on http://www.opengl.org/resources/code/samples/mjktips/grid/editgrid.c This is a pretty quick and dirty port, using global variables and c-style types. This is bad coding style, but showing how things work.
TODO (left as exercise):
bool GLGrid::update | ( | VRequest & | , |
double | precision | ||
) | [virtual] |
Virtual update function that implements some heavy action on the object.
Update function.
It is called only if any input object is newer than the current object. It must return true on successful completion. However, the object may touch() itself in the update() routine. Then, it will get a newer time than all input objects, which will trigger all dependent objects as well.
Reimplemented from Wizt::VObject.