DRAWOBJECT

Detailed Description

Enumerations

enum  DRAWOBJECT {
  DRAWOBJECT_0,
  DRAWOBJECT_FORCELINES,
  DRAWOBJECT_NOBACKCULL,
  DRAWOBJECT_LOCALMATRIX,
  DRAWOBJECT_EDITMODE,
  DRAWOBJECT_FORCEBASE,
  DRAWOBJECT_FORCEPOINTS,
  DRAWOBJECT_NO_EOGL,
  DRAWOBJECT_USE_OBJECT_COLOR,
  DRAWOBJECT_USE_CUSTOM_COLOR,
  DRAWOBJECT_XRAY_ON,
  DRAWOBJECT_XRAY_OFF,
  DRAWOBJECT_IMMEDIATELY,
  DRAWOBJECT_Z_OFFSET,
  DRAWOBJECT_PRIVATE_ANY
}
 

Enumeration Type Documentation

§ DRAWOBJECT

enum DRAWOBJECT
Enumerator
DRAWOBJECT_0 

None.

DRAWOBJECT_FORCELINES 

Force wireframe display, independent of view settings.

DRAWOBJECT_NOBACKCULL 

Force no backface culling, independent of view settings.

DRAWOBJECT_LOCALMATRIX 

Object drawn will be drawn relative to the currently processed object (used when called from the draw method in a base object).

DRAWOBJECT_EDITMODE 

Object is drawn in edit-mode style.

DRAWOBJECT_FORCEBASE 

The draw call is only executed for the base class, and thus not for the instanciated object, if passed to BaseDraw::DrawObject() and the object type is an instance of either Opoint or Opolygon.
This way, you can do a draw call without running into a recursion if you are in your from points/polygons derived object.

DRAWOBJECT_FORCEPOINTS 

Force points display.

DRAWOBJECT_NO_EOGL 

No Extended OpenGL.

DRAWOBJECT_USE_OBJECT_COLOR 

Use the object's color.

DRAWOBJECT_USE_CUSTOM_COLOR 

Use a custom color.

DRAWOBJECT_XRAY_ON 

Enables X-Ray mode.

DRAWOBJECT_XRAY_OFF 

Disables X-Ray mode.

DRAWOBJECT_IMMEDIATELY 

Draws an object immediately. Usually all objects are collected in a Z-depth sorted list before drawing. This flag is used for objects which are immediately deleted after drawing.

DRAWRESULT MyObject::Draw()
{
...
cube = BaseObject::Alloc(cube)
DrawObject(cube, DRAWOBJECT_IMMEDIATELY)
BaseObejct::Free(cube)
...
}
DRAWOBJECT_Z_OFFSET 

Do not change the Z offset during BaseDraww::DrawObject().

DRAWOBJECT_PRIVATE_ANY 

Private.