HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 hasOverlayDecorations () const
 
bool updateDecoration (RE_Render *r, GR_Decoration dec, const GT_Primitive &prim, const GR_UpdateParms &p, RE_Geometry &geo)
 
bool updateDecoration (RE_RenderContext r, GR_Decoration dec, const GT_Primitive &prim, const GR_UpdateParms &p, RV_Geometry &geo)
 
void setupDrawing (RE_RenderContext 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 drawSingle (RE_RenderContext r, RV_Geometry &geo, GR_GeoRender *gr, 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, RV_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)
 
void drawSingleVisualizer (RE_RenderContext r, RV_Geometry &geo, GR_GeoRender *gr, 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...
 
static void setupFontParms (RE_RenderContext r, RV_ShaderVariableSet *set, const GR_DisplayOption *opt, GR_DecorFontType charset, bool pointed_box, UT_Vector3 &out_parms, GR_DecorFontSize size=GR_DECOR_FONT_NUM_SIZES)
 
static void bindViewportFontTexture (RE_RenderContext r, RV_ShaderVariableSet *set, GR_DecorFontSize s, GR_DecorFontType t, bool outlined, UT_Vector3 &out_parms)
 
static void bindViewportVertexTexture (RE_RenderContext r, RV_ShaderVariableSet *set)
 
static bool initShaders (RV_Instance *inst)
 
static void cleanupShaders ()
 

Detailed Description

Definition at line 82 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 112 of file GR_DecorationRender.h.

Enumerator
TARGET_MAIN 
TARGET_OVERLAY 

Definition at line 106 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

static void GR_DecorationRender::bindViewportFontTexture ( RE_RenderContext  r,
RV_ShaderVariableSet set,
GR_DecorFontSize  s,
GR_DecorFontType  t,
bool  outlined,
UT_Vector3 out_parms 
)
static
static void GR_DecorationRender::bindViewportVertexTexture ( RE_RenderContext  r,
RV_ShaderVariableSet set 
)
static
static void GR_DecorationRender::cleanupShaders ( )
static
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::drawSingle ( RE_RenderContext  r,
RV_Geometry geo,
GR_GeoRender gr,
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,
RV_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 
)
void GR_DecorationRender::drawSingleVisualizer ( RE_RenderContext  r,
RV_Geometry geo,
GR_GeoRender gr,
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 103 of file GR_DecorationRender.h.

static bool GR_DecorationRender::initShaders ( RV_Instance inst)
static
void GR_DecorationRender::setupDrawing ( RE_RenderContext  r)
static void GR_DecorationRender::setupFontParms ( RE_RenderContext  r,
RV_ShaderVariableSet set,
const GR_DisplayOption opt,
GR_DecorFontType  charset,
bool  pointed_box,
UT_Vector3 out_parms,
GR_DecorFontSize  size = GR_DECOR_FONT_NUM_SIZES 
)
static
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 
)
bool GR_DecorationRender::updateDecoration ( RE_RenderContext  r,
GR_Decoration  dec,
const GT_Primitive prim,
const GR_UpdateParms p,
RV_Geometry geo 
)

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