HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
GR_PolyCurveVK.h
Go to the documentation of this file.
1
/*
2
* PROPRIETARY INFORMATION. This software is proprietary to
3
* Side Effects Software Inc., and is not to be reproduced,
4
* transmitted, or disclosed in any way without written permission.
5
*
6
* NAME: GR_PolyCurveVK ( GR Library, C++)
7
*
8
* COMMENTS:
9
* Line primitive.
10
*/
11
#ifndef GR_PolyCurveVK_h
12
#define GR_PolyCurveVK_h
13
14
#include "
GR_API.h
"
15
#include "
GR_GeoRenderVK.h
"
16
#include <
RE/RE_ShaderHandle.h
>
17
18
#include <
RV/RV_Geometry.h
>
19
20
class
RV_Geometry
;
21
class
RV_Render
;
22
class
RV_ShaderVariableSet
;
23
class
RV_ShaderBlock
;
24
class
GT_PrimCurveMesh
;
25
26
class
GR_API
GR_PolyCurveVK
:
public
GR_GeoRenderVK
27
{
28
public
:
29
GR_PolyCurveVK
(
GR_Primitive
*prim);
30
~
GR_PolyCurveVK
()
override
;
31
32
const
char
*
className
()
const override
{
return
"GR_PolyCurveVK"
; }
33
34
void
update
(
RE_RenderContext
rc,
35
const
GT_PrimitiveHandle
&primh,
36
const
GR_UpdateParms
&parms,
37
const
char
*
cache_name
)
override
;
38
39
void
draw
(
RE_RenderContext
rc,
40
GR_RenderMode
mode
,
41
GR_RenderFlags
flags
,
42
GR_DrawParms
dp)
override
;
43
44
void
getPickConnectGroup
(
unsigned
int
pick_mode,
45
GR_PickGeometry
pick_geo,
46
int
&out_connect_start,
47
int
&out_connect_num)
override
;
48
49
void
getVkDecorGeometry
(
GR_DecorationRender
::
50
PrimitiveType prim_type,
51
RV_PrimType
render_prim,
52
RV_Geometry
&geo,
53
int
&out_connect_start,
54
int
&out_connect_num)
override
;
55
56
exint
getNumGLPrimitives
()
const override
;
57
bool
hasTransparency
()
const override
{
return
false
; }
58
59
static
bool
initShaders(
RV_Instance
* inst);
60
static
void
cleanupShaders();
61
62
static
RV_ShaderProgram
*
getWireShader
(
GR_RenderFlags
flags
);
63
static
RV_ShaderProgram
* getWireMatteShader(
GR_RenderFlags
flags
);
64
static
RV_ShaderProgram
* getWireSnapShader(
bool
points_only);
65
private
:
66
void
buildConnectivity(
const
GT_PrimCurveMesh
*primh,
67
const
GR_UpdateParms
&parms,
68
UT_Int32Array
&connect_indices);
69
70
bool
myObjectSelected;
71
72
};
73
74
#endif
RV_ShaderVariableSet
A collection of Vulkan UBO, SSBO, and Image shader bindings (descriptor set)
Definition:
RV_ShaderVariableSet.h:47
flags
GLbitfield flags
Definition:
glcorearb.h:1596
GR_GeoRender::draw
virtual void draw(RE_RenderContext r, GR_RenderMode mode, GR_RenderFlags flags, GR_DrawParms draw_parms)=0
Normal drawing method. Only issue rendering commands.
GR_GeoRenderVK
Definition:
GR_GeoRenderVK.h:63
GR_GeoRenderVK::getVkDecorGeometry
virtual void getVkDecorGeometry(GR_DecorationRender::PrimitiveType prim_type, RV_PrimType render_prim, RV_Geometry &geo, int &out_connect_start, int &out_connect_num)
Definition:
GR_GeoRenderVK.h:81
RV_Render
Definition:
RV_Render.h:70
exint
int64 exint
Definition:
SYS_Types.h:125
GT_Names::cache_name
GT_API const UT_StringHolder cache_name
RV_Geometry
Object that represents drawable geometry. This object holds vertex, instancing and index buffers for ...
Definition:
RV_Geometry.h:165
UT_ValArray< int32 >
RE_RenderContext
Temporary container for either a RV_Render and an RE_Render.
Definition:
RE_RenderContext.h:23
GT_PrimCurveMesh
A mesh of curves.
Definition:
GT_PrimCurveMesh.h:25
GR_GeoRender::getNumGLPrimitives
virtual exint getNumGLPrimitives() const =0
GR_UpdateParms
set of parameters sent to GR_Primitive::update()
Definition:
GR_UpdateParms.h:37
GR_API.h
GR_Primitive
Definition:
GR_Primitive.h:55
GR_RenderMode
GR_RenderMode
Definition:
GR_Defines.h:48
RV_Geometry.h
RE_ShaderHandle.h
GR_DrawParms
Definition:
GR_DrawParms.h:19
GR_API
#define GR_API
Definition:
GR_API.h:10
UT_IntrusivePtr< GT_Primitive >
GR_RenderFlags
GR_RenderFlags
Definition:
GR_Defines.h:86
RV_Instance
Handle to the main interface of Vulkan.
Definition:
RV_Instance.h:38
GR_Utils::getWireShader
GR_API RE_Shader * getWireShader(RE_Render *r)
mode
GLenum mode
Definition:
glcorearb.h:99
GR_GeoRender::getPickConnectGroup
virtual void getPickConnectGroup(unsigned int pick_mode, GR_PickGeometry pick_geo, int &out_connect_start, int &out_connect_num)
Definition:
GR_GeoRender.h:100
RV_ShaderProgram
Definition:
RV_ShaderProgram.h:264
GR_PickGeometry
GR_PickGeometry
Definition:
GR_PickRecord.h:60
RV_PrimType
RV_PrimType
Definition:
RV_Type.h:367
GR_GeoRenderVK.h
GR_PolyCurveVK::className
const char * className() const override
Definition:
GR_PolyCurveVK.h:32
GR_PolyCurveVK
Definition:
GR_PolyCurveVK.h:26
GR_GeoRender::update
virtual void update(RE_RenderContext r, const GT_PrimitiveHandle &primh, const GR_UpdateParms &p, const char *cache_name)=0
RV_ShaderBlock
Definition:
RV_ShaderBlock.h:306
GR_PolyCurveVK::hasTransparency
bool hasTransparency() const override
returns true if this drawable renders some transparent elements
Definition:
GR_PolyCurveVK.h:57
GR_DecorationRender
Definition:
GR_DecorationRender.h:82
GR
GR_PolyCurveVK.h
Generated on Tue Dec 17 2024 03:39:44 for HDK by
1.8.6