DRAWOBJECT

Detailed Description

Enumerations

enum class  DRAWOBJECT {
  NONE ,
  FORCELINES ,
  NOBACKCULL ,
  LOCALMATRIX ,
  EDITMODE ,
  FORCEBASE ,
  FORCEPOINTS ,
  NO_EOGL ,
  USE_OBJECT_COLOR ,
  USE_CUSTOM_COLOR ,
  XRAY_ON ,
  XRAY_OFF ,
  IMMEDIATELY ,
  Z_OFFSET ,
  PRIVATE_ANY
}
 

Functions

enum DRAWOBJECT MAXON_ENUM_FLAGS (DRAWOBJECT)
 

Enumeration Type Documentation

◆ DRAWOBJECT

enum DRAWOBJECT
strong
Enumerator
NONE 

None.

FORCELINES 

Force wireframe display, independent of view settings.

NOBACKCULL 

Force no backface culling, independent of view settings.

LOCALMATRIX 

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

EDITMODE 

Object is drawn in edit-mode style.

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.

FORCEPOINTS 

Force points display.

NO_EOGL 

No Extended OpenGL.

USE_OBJECT_COLOR 

Use the object's color.

USE_CUSTOM_COLOR 

Use a custom color.

XRAY_ON 

Enables X-Ray mode.

XRAY_OFF 

Disables X-Ray mode.

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(BaseObject* op, DRAWPASS drawpass, BaseDraw* bd, BaseDrawHelp* bh)
{
...
cube = BaseObject::Alloc(cube);
DrawObject(cube, DRAWOBJECT::IMMEDIATELY);
BaseObject::Free(cube);
...
}
Z_OFFSET 

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

PRIVATE_ANY 

Private.

Function Documentation

◆ MAXON_ENUM_FLAGS()

enum DRAWOBJECT MAXON_ENUM_FLAGS ( DRAWOBJECT  )