VISH  0.2
Public Member Functions
GLGrid Class Reference

A simple example demonstrating how to draw a Grid using the OpenGL glMap functions. More...

List of all members.

Public Member Functions


Detailed Description

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):

  1. make the grid local within the object
  2. make the modications of the grid local to the respective context
  3. deal with adding save/load functions

Member Function Documentation

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.

Returns:
Must return true to indicate that the object was successfully updated and may now get the age of the most recent parameter.

Reimplemented from Wizt::VObject.


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