DI-Guy SDK Documentation  13.2
diguyDx11GraphicsLink Class Reference

#include <diguyDx11GraphicsLink.h>

Inheritance diagram for diguyDx11GraphicsLink:
diguyGraphicsLink

Public Member Functions

 diguyDx11GraphicsLink (void *internal_data)
 
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 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...
 

Additional Inherited Members

Constructor & Destructor Documentation

diguyDx11GraphicsLink::diguyDx11GraphicsLink ( void *  internal_data)

Member Function Documentation

void diguyDx11GraphicsLink::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)
//linear draw behavior
{
// push the base transform of the character in the world
// the get_transformation_matrix() of the position link
m_position_link->begin_character_draw();
int i;
for each link in link array
{
// note the ability to skip links with nothing attached to them
if (link->get_num_shapes() > 0 || link->get_is_position_link())
{
// each link should multiply by the get_local_transformation_matrix
// which contains the precalculated concatenated matrix
link->draw();
}
}
m_position_link->end_character_draw();

Reimplemented from diguyGraphicsLink.

void diguyDx11GraphicsLink::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 diguyDx11GraphicsLink::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.


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