HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GR_Defines.h File Reference
#include <UT/UT_VectorTypes.h>
#include <UT/UT_Optional.h>
#include <UT/UT_Array.h>
#include <utility>
#include <UT/UT_IntrusivePtr.h>
#include <UT/UT_BoundingBox.h>
#include <UT/UT_Matrix4.h>
+ Include dependency graph for GR_Defines.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  GR_ObjectPickFlags
 
struct  GR_DepthExtremes
 
struct  GR_DistantShadowMapParms
 

Macros

#define GR_DRAW_WIREFRAME   0x01
 
#define GR_DRAW_SHADED   0x02
 

Typedefs

typedef UT_Array< std::pair
< UT_Matrix4D, UT_Vector2i > > 
GR_FrustumList
 
typedef UT_IntrusivePtr
< GR_Material
GR_MaterialPtr
 
typedef UT_IntrusivePtr< GR_LightGR_LightPtr
 
typedef int RV_TextureRef
 

Enumerations

enum  GR_RenderVersion { GR_RENDER_UNDEF = 0, GR_RENDER_GL3 = 3, GR_RENDER_GL4 = 4, GR_RENDER_VK = 5 }
 
enum  GR_ShadingMode {
  GR_BOUNDING_BOX_WIRE, GR_BOUNDING_BOX_SHADED, GR_WIRE, GR_WIRE_GHOST,
  GR_HIDDEN_LINE_INVISIBLE, GR_HIDDEN_LINE_GHOST, GR_MATCAP_SHADED, GR_MATCAP_WIRE_SHADED,
  GR_FLAT_SHADED, GR_FLAT_WIRE_SHADED, GR_SMOOTH_SHADED, GR_SMOOTH_WIRE_SHADED
}
 
enum  GR_RenderMode {
  GR_RENDER_BEAUTY, GR_RENDER_MATERIAL, GR_RENDER_CONSTANT, GR_RENDER_WIREFRAME,
  GR_RENDER_HIDDEN_LINE, GR_RENDER_XRAY_LINE, GR_RENDER_GHOST_LINE, GR_RENDER_MATERIAL_WIREFRAME,
  GR_RENDER_DEPTH, GR_RENDER_DEPTH_CUBE, GR_RENDER_DEPTH_LINEAR, GR_RENDER_DEPTH_CASCADING,
  GR_RENDER_MATTE, GR_RENDER_XRAY, GR_RENDER_OBJECT_PICK, GR_RENDER_SHADER_AS_IS,
  GR_RENDER_SNAP, GR_RENDER_SELECTION_ID, GR_RENDER_BBOX, GR_RENDER_POST_PASS,
  GR_RENDER_NUM_BEAUTY_MODES = GR_RENDER_CONSTANT + 1, GR_RENDER_NUM_UTILITY_MODES = GR_RENDER_XRAY - GR_RENDER_DEPTH + 1, GR_RENDER_NUM_WIRE_MODES = GR_RENDER_GHOST_LINE - GR_RENDER_WIREFRAME + 1
}
 
enum  GR_RenderFlags {
  GR_RENDER_FLAG_NONE = 0x00, GR_RENDER_FLAG_FLAT_SHADED = 0x01, GR_RENDER_FLAG_UNLIT = 0x02, GR_RENDER_FLAG_WIRE_OVER = 0x04,
  GR_RENDER_FLAG_FADED = 0x08, GR_RENDER_FLAG_COLOR_OVERRIDE = 0x10, GR_RENDER_FLAG_ALPHA_OVERRIDE = 0x20, GR_RENDER_FLAG_POINTS_ONLY = 0x40,
  GR_RENDER_FLAG_SHADED_CURVES = 0x80, GR_RENDER_FLAG_WIRE_PRIMS_ONLY = 0x100, GR_RENDER_FLAG_USE_SUBDIVISION = 0x200, GR_RENDER_FLAG_POINT_UV_POS = 0x400,
  GR_RENDER_FLAG_VERTEX_UV_POS = 0x800, GR_RENDER_FLAG_UV_POS = 0xC00, GR_RENDER_FLAG_IMAGE = 0xC00, GR_RENDER_FLAG_BONE_DEFORM = 0x01000,
  GR_RENDER_FLAG_BONE_DEFORM_SINGLE = 0x02000, GR_RENDER_FLAG_MASK_BONE_DEFORM = 0x03000, GR_RENDER_FLAG_LIGHT_MASK_ONLY = 0x04000, GR_RENDER_FLAG_HULL_CLOSURE_SELECT = 0x20000,
  GR_RENDER_FLAG_HIDE_MATERIALS = 0x40000, GR_RENDER_FLAG_OBJECT_SELECTION = 0x80000, GR_RENDER_FLAG_PRE_PASS = 0x100000, GR_RENDER_FLAG_PRE_THREADED_PASS = 0x200000,
  GR_RENDER_FLAG_THREADED_PASS = 0x400000, GR_RENDER_FLAG_BLEND_SHAPES = 0x800000
}
 
enum  GR_AlphaPass { GR_ALPHA_PASS_OPAQUE = 0x1, GR_ALPHA_PASS_NORMAL = 0x2, GR_ALPHA_PASS_INVISIBLE = 0x4, GR_ALPHA_PASS_ALL = 0x3 }
 
enum  GR_ShadingPass {
  GR_SHADING_SOLID, GR_SHADING_WIREFRAME, GR_SHADING_LIGHT_MASK, GR_SHADING_PRE_PASS,
  GR_SHADING_ANY
}
 
enum  GR_ThreadingPass { GR_THREADING_SINGLE = 0x0, GR_THREADING_PRE_MULTI = 0x1, GR_THREADING_MULTI = 0x2 }
 
enum  GR_LightingPass { GR_LIGHTING_UNLIT, GR_LIGHTING_LIT, GR_LIGHTING_ANY }
 
enum  GR_ParticleType {
  GR_PARTICLE_POINTS, GR_PARTICLE_PIXELS, GR_PARTICLE_LINES, GR_PARTICLE_DISCS,
  GR_PARTICLE_LIT_SPHERES
}
 
enum  GR_Decoration {
  GR_NO_DECORATION = -1, GR_POINT_MARKER, GR_POINT_NUMBER, GR_POINT_NORMAL,
  GR_POINT_UV, GR_POINT_POSITION, GR_POINT_VELOCITY, GR_POINT_COINCIDENT,
  GR_PRIM_NORMAL, GR_PRIM_NUMBER, GR_PRIM_HULL, GR_PRIM_BREAKPOINT,
  GR_PRIM_PROFILE, GR_PRIM_PROFILE_NUMBER, GR_VERTEX_MARKER, GR_VERTEX_NORMAL,
  GR_VERTEX_NUMBER, GR_VERTEX_UV, GR_MAX_DECORATIONS, GR_USER_DECORATION = GR_MAX_DECORATIONS,
  GR_VISUALIZER_MARKER = GR_USER_DECORATION+1
}
 
enum  GR_DecorVisibility { GR_DECOR_ALWAYS_VISIBLE, GR_DECOR_SELECTED_ONLY, GR_DECOR_LOCAL_AREA, GR_DECOR_HOVER }
 
enum  GR_DecorFontSize {
  GR_DECOR_FONT_TINY = 0, GR_DECOR_FONT_SMALL, GR_DECOR_FONT_MEDIUM, GR_DECOR_FONT_LARGE,
  GR_DECOR_FONT_NUM_SIZES
}
 
enum  GR_DecorFontType { GR_DECOR_FONT_FULL =0, GR_DECOR_FONT_FP_DIGITS, GR_DECOR_FONT_INT_DIGITS, GR_DECOR_FONT_NUM_TYPES }
 
enum  GR_DecorationOverride {
  GR_DECOR_OVERRIDE_NONE = 0x0, GR_DECOR_OVERRIDE_POINT = 0x1, GR_DECOR_OVERRIDE_VERTEX = 0x2, GR_DECOR_OVERRIDE_BREAKPOINT = 0x4,
  GR_DECOR_OVERRIDE_EDGE = 0x8, GR_DECOR_OVERRIDE_VELOCITY = 0x10
}
 
enum  GR_DecorRenderFlags {
  GR_DECOR_RENDER_FLAG_NONE = 0x0, GR_DECOR_RENDER_FLAG_DIMMED = 0x1, GR_DECOR_RENDER_FLAG_ACTIVE_INSTANCE_ONLY = 0x2, GR_DECOR_RENDER_FLAG_POINT_UV_POS = 0x10,
  GR_DECOR_RENDER_FLAG_VERTEX_UV_POS = 0x20, GR_DECOR_RENDER_FLAG_UV_POS = 0x30, GR_DECOR_RENDER_FLAG_OFFSET_MARKER = 0x40
}
 
enum  GR_SelectMode {
  GR_SELECT_NONE = 0, GR_SELECT_PRIM_PARTIAL = 1, GR_SELECT_PRIM_FULL = 2, GR_SELECT_POINT_PARTIAL = 3,
  GR_SELECT_POINT_FULL = 4, GR_SELECT_VERTEX_PARTIAL = 5, GR_SELECT_VERTEX_FULL = 6
}
 
enum  GR_PickStyle {
  GR_PICK_NONE = 0x0000, GR_PICK_SINGLE = 0x0001, GR_PICK_MULTI_VISIBLE = 0x0010, GR_PICK_MULTI_FRUSTUM = 0x0020,
  GR_PICK_MULTI_FLAG = 0x0030, GR_PICK_POINT_UV_FLAG = 0x0100, GR_PICK_VERTEX_UV_FLAG = 0x0200, GR_PICK_UV_FLAG = 0x0300,
  GR_PICK_SNAP_FLAG = 0x1000, GR_PICK_HIDE_SELECTED = 0x2000, GR_PICK_OUTSIDE = 0x4000, GR_PICK_AS_WIRE = 0x8000,
  GR_PICK_PACKED = 0x10000, GR_PICK_SELECTION_PASS = 0x20000, GR_PICK_GL42 = 0x1000000
}
 
enum  GR_UpdateReason {
  GR_UNCHANGED = 0x0, GR_GEO_CHANGED = 0x001, GR_GEO_TOPOLOGY_CHANGED = 0x002, GR_GEO_ATTRIB_LIST_CHANGED = 0x004,
  GR_GEO_SELECTION_CHANGED = 0x008, GR_GEO_DETAIL_SWITCHED = 0x010, GR_GEO_PRIMITIVE_CHANGED = 0x020, GR_DISPLAY_OPTIONS_CHANGED = 0x040,
  GR_OBJECT_MODE_CHANGED = 0x080, GR_INSTANCE_PARMS_CHANGED = 0x100, GR_INSTANCE_SELECTION_CHANGED = 0x200, GR_GL_STATE_CHANGED = 0x400,
  GR_GL_VIEW_CHANGED = 0x800, GR_LOD_CHANGED = 0x1000, GR_MATERIALS_CHANGED = 0x2000, GR_MATERIAL_ASSIGNMENT_CHANGED = 0x4000,
  GR_GEO_VISIBILITY_RESTORED = 0x8000, GR_VISUALIZER_NEEDS_REFINE = 0x10000, GR_VISUALIZER_NEEDS_UPDATE = 0x20000, GR_VIEWPORT_CONFIG_CHANGED = 0x40000,
  GR_LIGHT_LINK_CHANGED = 0x80000, GR_PACK_TRANSFORM_CHANGED = 0x100000, GR_HIDDEN_PRIMS_CHANGED = 0x200000, GR_PACK_FOLDERS_CHANGED = 0x400000,
  GR_SLAPCOMP_CHANGED = 0x800000
}
 
enum  GR_AttribMask {
  GR_NO_ATTRIBS = 0x0, GR_VERTEX_ATTRIB = 0x1, GR_POINT_ATTRIB = 0x2, GR_PRIMITIVE_ATTRIB = 0x4,
  GR_DETAIL_ATTRIB = 0x8, GR_EDGE_ATTRIB = 0x10, GR_BREAKPOINT_ATTRIB = 0x20, GR_ALL_ATTRIBS = 0xFFFFFFFF
}
 
enum  GR_PrimAcceptResult { GR_NOT_PROCESSED, GR_PROCESSED, GR_PROCESSED_NON_EXCLUSIVE }
 
enum  GR_BasePrimType {
  GR_BASE_PRIM_NORMAL, GR_BASE_PRIM_PACKED, GR_BASE_PRIM_PACKED_MESH, GR_BASE_PRIM_INSTANCE,
  GR_BASE_PRIM_FRAGMENT, GR_BASE_PRIM_AGENT_SHAPE, GR_BASE_PRIM_VISUALIZE
}
 
enum  GR_BoundaryMode { GR_BOUNDARY_NONE = 0, GR_BOUNDARY_VIEW_3D = 1, GR_BOUNDARY_VIEW_UV = 2, GR_BOUNDARY_VIEW_ALL = 3 }
 
enum  GR_AgentWireMode { GR_AGENT_WIRE_LINE = 0, GR_AGENT_WIRE_BONE = 1 }
 

Macro Definition Documentation

#define GR_DRAW_SHADED   0x02

Definition at line 20 of file GR_Defines.h.

#define GR_DRAW_WIREFRAME   0x01

Definition at line 19 of file GR_Defines.h.

Typedef Documentation

Definition at line 395 of file GR_Defines.h.

Definition at line 400 of file GR_Defines.h.

Definition at line 398 of file GR_Defines.h.

typedef int RV_TextureRef

Definition at line 407 of file GR_Defines.h.

Enumeration Type Documentation

Enumerator
GR_AGENT_WIRE_LINE 
GR_AGENT_WIRE_BONE 

Definition at line 387 of file GR_Defines.h.

Enumerator
GR_ALPHA_PASS_OPAQUE 
GR_ALPHA_PASS_NORMAL 
GR_ALPHA_PASS_INVISIBLE 
GR_ALPHA_PASS_ALL 

Definition at line 121 of file GR_Defines.h.

Enumerator
GR_NO_ATTRIBS 
GR_VERTEX_ATTRIB 
GR_POINT_ATTRIB 
GR_PRIMITIVE_ATTRIB 
GR_DETAIL_ATTRIB 
GR_EDGE_ATTRIB 
GR_BREAKPOINT_ATTRIB 
GR_ALL_ATTRIBS 

Definition at line 342 of file GR_Defines.h.

Enumerator
GR_BASE_PRIM_NORMAL 
GR_BASE_PRIM_PACKED 
GR_BASE_PRIM_PACKED_MESH 
GR_BASE_PRIM_INSTANCE 
GR_BASE_PRIM_FRAGMENT 
GR_BASE_PRIM_AGENT_SHAPE 
GR_BASE_PRIM_VISUALIZE 

Definition at line 366 of file GR_Defines.h.

Enumerator
GR_BOUNDARY_NONE 
GR_BOUNDARY_VIEW_3D 
GR_BOUNDARY_VIEW_UV 
GR_BOUNDARY_VIEW_ALL 

Definition at line 379 of file GR_Defines.h.

Enumerator
GR_NO_DECORATION 
GR_POINT_MARKER 
GR_POINT_NUMBER 
GR_POINT_NORMAL 
GR_POINT_UV 
GR_POINT_POSITION 
GR_POINT_VELOCITY 
GR_POINT_COINCIDENT 
GR_PRIM_NORMAL 
GR_PRIM_NUMBER 
GR_PRIM_HULL 
GR_PRIM_BREAKPOINT 
GR_PRIM_PROFILE 
GR_PRIM_PROFILE_NUMBER 
GR_VERTEX_MARKER 
GR_VERTEX_NORMAL 
GR_VERTEX_NUMBER 
GR_VERTEX_UV 
GR_MAX_DECORATIONS 
GR_USER_DECORATION 
GR_VISUALIZER_MARKER 

Definition at line 162 of file GR_Defines.h.

Enumerator
GR_DECOR_OVERRIDE_NONE 
GR_DECOR_OVERRIDE_POINT 
GR_DECOR_OVERRIDE_VERTEX 
GR_DECOR_OVERRIDE_BREAKPOINT 
GR_DECOR_OVERRIDE_EDGE 
GR_DECOR_OVERRIDE_VELOCITY 

Definition at line 219 of file GR_Defines.h.

Enumerator
GR_DECOR_FONT_TINY 
GR_DECOR_FONT_SMALL 
GR_DECOR_FONT_MEDIUM 
GR_DECOR_FONT_LARGE 
GR_DECOR_FONT_NUM_SIZES 

Definition at line 200 of file GR_Defines.h.

Enumerator
GR_DECOR_FONT_FULL 
GR_DECOR_FONT_FP_DIGITS 
GR_DECOR_FONT_INT_DIGITS 
GR_DECOR_FONT_NUM_TYPES 

Definition at line 210 of file GR_Defines.h.

Enumerator
GR_DECOR_RENDER_FLAG_NONE 
GR_DECOR_RENDER_FLAG_DIMMED 
GR_DECOR_RENDER_FLAG_ACTIVE_INSTANCE_ONLY 
GR_DECOR_RENDER_FLAG_POINT_UV_POS 
GR_DECOR_RENDER_FLAG_VERTEX_UV_POS 
GR_DECOR_RENDER_FLAG_UV_POS 
GR_DECOR_RENDER_FLAG_OFFSET_MARKER 

Definition at line 230 of file GR_Defines.h.

Enumerator
GR_DECOR_ALWAYS_VISIBLE 
GR_DECOR_SELECTED_ONLY 
GR_DECOR_LOCAL_AREA 
GR_DECOR_HOVER 

Definition at line 192 of file GR_Defines.h.

Enumerator
GR_LIGHTING_UNLIT 
GR_LIGHTING_LIT 
GR_LIGHTING_ANY 

Definition at line 146 of file GR_Defines.h.

Enumerator
GR_PARTICLE_POINTS 
GR_PARTICLE_PIXELS 
GR_PARTICLE_LINES 
GR_PARTICLE_DISCS 
GR_PARTICLE_LIT_SPHERES 

Definition at line 153 of file GR_Defines.h.

Enumerator
GR_PICK_NONE 
GR_PICK_SINGLE 
GR_PICK_MULTI_VISIBLE 
GR_PICK_MULTI_FRUSTUM 
GR_PICK_MULTI_FLAG 
GR_PICK_POINT_UV_FLAG 
GR_PICK_VERTEX_UV_FLAG 
GR_PICK_UV_FLAG 
GR_PICK_SNAP_FLAG 
GR_PICK_HIDE_SELECTED 
GR_PICK_OUTSIDE 
GR_PICK_AS_WIRE 
GR_PICK_PACKED 
GR_PICK_SELECTION_PASS 
GR_PICK_GL42 

Definition at line 252 of file GR_Defines.h.

Enumerator
GR_NOT_PROCESSED 
GR_PROCESSED 
GR_PROCESSED_NON_EXCLUSIVE 

Definition at line 359 of file GR_Defines.h.

Enumerator
GR_RENDER_FLAG_NONE 
GR_RENDER_FLAG_FLAT_SHADED 
GR_RENDER_FLAG_UNLIT 
GR_RENDER_FLAG_WIRE_OVER 
GR_RENDER_FLAG_FADED 
GR_RENDER_FLAG_COLOR_OVERRIDE 
GR_RENDER_FLAG_ALPHA_OVERRIDE 
GR_RENDER_FLAG_POINTS_ONLY 
GR_RENDER_FLAG_SHADED_CURVES 
GR_RENDER_FLAG_WIRE_PRIMS_ONLY 
GR_RENDER_FLAG_USE_SUBDIVISION 
GR_RENDER_FLAG_POINT_UV_POS 
GR_RENDER_FLAG_VERTEX_UV_POS 
GR_RENDER_FLAG_UV_POS 
GR_RENDER_FLAG_IMAGE 
GR_RENDER_FLAG_BONE_DEFORM 
GR_RENDER_FLAG_BONE_DEFORM_SINGLE 
GR_RENDER_FLAG_MASK_BONE_DEFORM 
GR_RENDER_FLAG_LIGHT_MASK_ONLY 
GR_RENDER_FLAG_HULL_CLOSURE_SELECT 
GR_RENDER_FLAG_HIDE_MATERIALS 
GR_RENDER_FLAG_OBJECT_SELECTION 
GR_RENDER_FLAG_PRE_PASS 
GR_RENDER_FLAG_PRE_THREADED_PASS 
GR_RENDER_FLAG_THREADED_PASS 
GR_RENDER_FLAG_BLEND_SHAPES 

Definition at line 86 of file GR_Defines.h.

Enumerator
GR_RENDER_BEAUTY 
GR_RENDER_MATERIAL 
GR_RENDER_CONSTANT 
GR_RENDER_WIREFRAME 
GR_RENDER_HIDDEN_LINE 
GR_RENDER_XRAY_LINE 
GR_RENDER_GHOST_LINE 
GR_RENDER_MATERIAL_WIREFRAME 
GR_RENDER_DEPTH 
GR_RENDER_DEPTH_CUBE 
GR_RENDER_DEPTH_LINEAR 
GR_RENDER_DEPTH_CASCADING 
GR_RENDER_MATTE 
GR_RENDER_XRAY 
GR_RENDER_OBJECT_PICK 
GR_RENDER_SHADER_AS_IS 
GR_RENDER_SNAP 
GR_RENDER_SELECTION_ID 
GR_RENDER_BBOX 
GR_RENDER_POST_PASS 
GR_RENDER_NUM_BEAUTY_MODES 
GR_RENDER_NUM_UTILITY_MODES 
GR_RENDER_NUM_WIRE_MODES 

Definition at line 48 of file GR_Defines.h.

Enumerator
GR_RENDER_UNDEF 
GR_RENDER_GL3 
GR_RENDER_GL4 
GR_RENDER_VK 

Definition at line 22 of file GR_Defines.h.

Enumerator
GR_SELECT_NONE 
GR_SELECT_PRIM_PARTIAL 
GR_SELECT_PRIM_FULL 
GR_SELECT_POINT_PARTIAL 
GR_SELECT_POINT_FULL 
GR_SELECT_VERTEX_PARTIAL 
GR_SELECT_VERTEX_FULL 

Definition at line 241 of file GR_Defines.h.

Enumerator
GR_BOUNDING_BOX_WIRE 
GR_BOUNDING_BOX_SHADED 
GR_WIRE 
GR_WIRE_GHOST 
GR_HIDDEN_LINE_INVISIBLE 
GR_HIDDEN_LINE_GHOST 
GR_MATCAP_SHADED 
GR_MATCAP_WIRE_SHADED 
GR_FLAT_SHADED 
GR_FLAT_WIRE_SHADED 
GR_SMOOTH_SHADED 
GR_SMOOTH_WIRE_SHADED 

Definition at line 31 of file GR_Defines.h.

Enumerator
GR_SHADING_SOLID 
GR_SHADING_WIREFRAME 
GR_SHADING_LIGHT_MASK 
GR_SHADING_PRE_PASS 
GR_SHADING_ANY 

Definition at line 130 of file GR_Defines.h.

Enumerator
GR_THREADING_SINGLE 
GR_THREADING_PRE_MULTI 
GR_THREADING_MULTI 

Definition at line 139 of file GR_Defines.h.

Enumerator
GR_UNCHANGED 
GR_GEO_CHANGED 
GR_GEO_TOPOLOGY_CHANGED 
GR_GEO_ATTRIB_LIST_CHANGED 
GR_GEO_SELECTION_CHANGED 
GR_GEO_DETAIL_SWITCHED 
GR_GEO_PRIMITIVE_CHANGED 
GR_DISPLAY_OPTIONS_CHANGED 
GR_OBJECT_MODE_CHANGED 
GR_INSTANCE_PARMS_CHANGED 
GR_INSTANCE_SELECTION_CHANGED 
GR_GL_STATE_CHANGED 
GR_GL_VIEW_CHANGED 
GR_LOD_CHANGED 
GR_MATERIALS_CHANGED 
GR_MATERIAL_ASSIGNMENT_CHANGED 
GR_GEO_VISIBILITY_RESTORED 
GR_VISUALIZER_NEEDS_REFINE 
GR_VISUALIZER_NEEDS_UPDATE 
GR_VIEWPORT_CONFIG_CHANGED 
GR_LIGHT_LINK_CHANGED 
GR_PACK_TRANSFORM_CHANGED 
GR_HIDDEN_PRIMS_CHANGED 
GR_PACK_FOLDERS_CHANGED 
GR_SLAPCOMP_CHANGED 

Definition at line 312 of file GR_Defines.h.