HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GR_DecorationRender Class Reference

#include <GR_DecorationRender.h>

Public Types

enum  RenderTarget { TARGET_MAIN, TARGET_OVERLAY }
 
enum  PrimitiveType {
  PRIM_TRIANGLE, PRIM_MESH, PRIM_LINE, PRIM_POINT,
  PRIM_TET, PRIM_TYPE_COUNT
}
 

Public Member Functions

 GR_DecorationRender (const GR_RenderInfo *info)
 
virtual ~GR_DecorationRender ()
 
void setupFromDisplayOptions (const GR_DisplayOption &opts, GR_DecorationOverride select_dec, GR_UpdateParms &parms, const GR_Decoration *supported, GR_AttribMask mask)
 
bool updateDecoration (RE_Render *r, GR_Decoration dec, const GT_Primitive &prim, const GR_UpdateParms &p, RE_Geometry &geo)
 
bool hasOverlayDecorations () const
 
void setupDrawing (RE_Render *r)
 
void drawSingle (RE_Render *r, RE_Geometry &geo, GR_Decoration dec, const GR_DisplayOption *opt, GR_DecorRenderFlags flags, GR_SelectMode select, RenderTarget render_mode, GR_DecorVisibility *vis_override, PrimitiveType glprim_type, int instance_group, int select_inst, RE_OverrideList *override_list)
 
void drawSingleVisualizer (RE_Render *r, RE_Geometry &geo, const GR_VisualizerInfo *dec_info, const GR_DisplayOption *opt, GR_DecorRenderFlags flags, PrimitiveType prim_type)
 

Static Public Member Functions

static RE_TexturegetViewportFontTexture (RE_Render *r, GR_DecorFontSize s, GR_DecorFontType t, bool outlined, UT_Vector3 &font_parms)
 
static RE_TexturegetRampLookupTexture (RE_Render *r, UT_ColorRamp rtype)
 Returns a 512-entry 1D texture. More...
 

Detailed Description

Definition at line 73 of file GR_DecorationRender.h.

Member Enumeration Documentation

Enumerator
PRIM_TRIANGLE 
PRIM_MESH 
PRIM_LINE 
PRIM_POINT 
PRIM_TET 
PRIM_TYPE_COUNT 

Definition at line 111 of file GR_DecorationRender.h.

Enumerator
TARGET_MAIN 
TARGET_OVERLAY 

Definition at line 105 of file GR_DecorationRender.h.

Constructor & Destructor Documentation

GR_DecorationRender::GR_DecorationRender ( const GR_RenderInfo info)
virtual GR_DecorationRender::~GR_DecorationRender ( )
virtual

Member Function Documentation

void GR_DecorationRender::drawSingle ( RE_Render r,
RE_Geometry geo,
GR_Decoration  dec,
const GR_DisplayOption opt,
GR_DecorRenderFlags  flags,
GR_SelectMode  select,
RenderTarget  render_mode,
GR_DecorVisibility vis_override,
PrimitiveType  glprim_type,
int  instance_group,
int  select_inst,
RE_OverrideList override_list 
)
void GR_DecorationRender::drawSingleVisualizer ( RE_Render r,
RE_Geometry geo,
const GR_VisualizerInfo dec_info,
const GR_DisplayOption opt,
GR_DecorRenderFlags  flags,
PrimitiveType  prim_type 
)
static RE_Texture* GR_DecorationRender::getRampLookupTexture ( RE_Render r,
UT_ColorRamp  rtype 
)
static

Returns a 512-entry 1D texture.

static RE_Texture* GR_DecorationRender::getViewportFontTexture ( RE_Render r,
GR_DecorFontSize  s,
GR_DecorFontType  t,
bool  outlined,
UT_Vector3 font_parms 
)
static
bool GR_DecorationRender::hasOverlayDecorations ( ) const
inline

Definition at line 102 of file GR_DecorationRender.h.

void GR_DecorationRender::setupDrawing ( RE_Render r)
void GR_DecorationRender::setupFromDisplayOptions ( const GR_DisplayOption opts,
GR_DecorationOverride  select_dec,
GR_UpdateParms parms,
const GR_Decoration supported,
GR_AttribMask  mask 
)
bool GR_DecorationRender::updateDecoration ( RE_Render r,
GR_Decoration  dec,
const GT_Primitive prim,
const GR_UpdateParms p,
RE_Geometry geo 
)

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