HDK
|
#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 } |
Static Public Member Functions | |
static RE_Texture * | getViewportFontTexture (RE_Render *r, GR_DecorFontSize s, GR_DecorFontType t, bool outlined, UT_Vector3 &font_parms) |
static RE_Texture * | getRampLookupTexture (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 () |
Definition at line 82 of file GR_DecorationRender.h.
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.
GR_DecorationRender::GR_DecorationRender | ( | const GR_RenderInfo * | info | ) |
|
virtual |
|
static |
|
static |
|
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 |
Returns a 512-entry 1D texture.
|
static |
|
inline |
Definition at line 103 of file GR_DecorationRender.h.
|
static |
void GR_DecorationRender::setupDrawing | ( | RE_RenderContext | r | ) |
|
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 | ||
) |