DI-Guy SDK Documentation  13.1
diguyOglGraphicsLink Class Reference

#include <diguyOglGraphicsLink.h>

Inheritance diagram for diguyOglGraphicsLink:
diguyGraphicsLink

Public Member Functions

 diguyOglGraphicsLink (void *internal_data)
 
virtual void begin_character_draw ()
 This function will be called by DI-Guy when the drawing of a new character is beginning. More...
 
virtual void end_character_draw ()
 This function will be called by DI-Guy when the drawing traversal of the character's link hierarchy has completed. More...
 
virtual void draw ()
 This function will be called by DI-Guy when it is time for the transformations of this link to be applied. More...
 
virtual void push ()
 This function will be called by DI-Guy when it is traversing the link hierarchy to draw. More...
 
virtual void pop ()
 This function will be called by DI-Guy when it is traversing the link hierarchy to draw. More...
 

Static Public Attributes

static int s_num_chars_drawn = 0
 

Additional Inherited Members

Constructor & Destructor Documentation

diguyOglGraphicsLink::diguyOglGraphicsLink ( void *  internal_data)

Member Function Documentation

void diguyOglGraphicsLink::begin_character_draw ( )
virtual

This function will be called by DI-Guy when the drawing of a new character is beginning.

This happens when the position link is drawn.

Immediate Mode:

Immediate mode renderers can override this function. Typically some type of transformation matrix stack push operation is performed. This is also an appropriate place to do any per-character modifications, such as:

  • applying scale
  • applying the base translation of the character
  • picking a current LOD
  • etc.

Scene Graph:

Scene graph renderers usually do not override this function; transformation states are handled automatically by scene graphs.

Callable From:

  • N/A (automatically called by DI-Guy Graphics API during Draw Stage)

Reimplemented from diguyGraphicsLink.

void diguyOglGraphicsLink::end_character_draw ( )
virtual

This function will be called by DI-Guy when the drawing traversal of the character's link hierarchy has completed.

Immediate Mode:

Immediate mode renderers can override this function. Typically any matrix stack push operation done in begin_character_draw() is undone here by an appropriate pop operation.

Scene Graph:

Scene graph renderers usually do not override this function; transformation states are handled automatically by scene graphs.

Callable From:

  • N/A (automatically called by DI-Guy Graphics API during Draw Stage)

Reimplemented from diguyGraphicsLink.

void diguyOglGraphicsLink::draw ( )
virtual

This function will be called by DI-Guy when it is time for the transformations of this link to be applied.

Immediate Mode:

Immediate mode renderers usually do override this function, to apply transformations to the transformation stack.

Scene Graph:

Scene graph renderers usually do not override this function; transformation states are handled automatically by scene graphs.

Callable From:

  • N/A (automatically called by DI-Guy Graphics API during Draw Stage)

Reimplemented from diguyGraphicsLink.

void diguyOglGraphicsLink::push ( )
virtual

This function will be called by DI-Guy when it is traversing the link hierarchy to draw.

Immediate Mode:

Immediate mode renderers can override this function. Typically some type of transformation matrix stack push operation is performed.

Scene Graph:

Scene graph renderers usually do not override this function; transformation states are handled automatically by scene graphs.

Callable From:

  • N/A (automatically called by DI-Guy Graphics API during Draw Stage)

Reimplemented from diguyGraphicsLink.

void diguyOglGraphicsLink::pop ( )
virtual

This function will be called by DI-Guy when it is traversing the link hierarchy to draw.

Immediate Mode:

Immediate mode renderers can override this function. Typically some type of transformation matrix stack pop operation is performed.

Scene Graph:

Scene graph renderers usually do not override this function; transformation states are handled automatically by scene graphs.

Callable From:

  • N/A (automatically called by DI-Guy Graphics API during Draw Stage)

Reimplemented from diguyGraphicsLink.

Member Data Documentation

int diguyOglGraphicsLink::s_num_chars_drawn = 0
static

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