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_HeightFieldVK.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_HeightFieldVK ( GR Library, C++)
7
*
8
* COMMENTS:
9
* Line and ribbon primitive.
10
*/
11
#ifndef GR_HeightFieldVK_h
12
#define GR_HeightFieldVK_h
13
14
#include "
GR_API.h
"
15
#include "
GR_GeoRenderVK.h
"
16
#include <
UT/UT_VectorTypes.h
>
17
18
class
RV_Geometry
;
19
class
RV_Render
;
20
class
RV_ShaderVariableSet
;
21
class
RV_ShaderBlock
;
22
class
RV_ShaderProgram
;
23
class
GT_PrimCurveMesh
;
24
class
GR_Material
;
25
26
class
GR_API
GR_HeightFieldVK
:
public
GR_GeoRenderVK
27
{
28
public
:
29
GR_HeightFieldVK
(
GR_Primitive
*prim);
30
~
GR_HeightFieldVK
()
override
;
31
32
const
char
*
className
()
const override
{
return
"GR_HeightFieldVK"
; }
33
34
35
RV_Geometry
*
getVkPickGeometry
(
unsigned
int
pick_mode)
override
;
36
37
void
update
(
RE_RenderContext
rc,
38
const
GT_PrimitiveHandle
&primh,
39
const
GR_UpdateParms
&parms,
40
const
char
*
cache_name
)
override
;
41
42
void
draw
(
RE_RenderContext
rc,
43
GR_RenderMode
mode
,
44
GR_RenderFlags
flags
,
45
GR_DrawParms
dp)
override
;
46
47
exint
getNumGLPrimitives
()
const override
{
return
1; }
48
bool
hasTransparency
()
const override
{
return
false
; }
49
50
static
bool
initShaders(
RV_Instance
* inst);
51
static
void
cleanupShaders();
52
private
:
53
void
updateMaterial(
RV_Render
*
r
,
54
const
GR_UpdateParms
&p,
55
GR_Material
*material,
56
GT_Primitive
*prim,
57
UT_Vector2i
mapres);
58
59
GT_PrimitiveHandle
mySurface;
60
int
myMaterialID = -1;
61
GR_MaterialPtr
myHFMat;
62
UT_Vector2i
myImageRes = {1,1};
63
64
static
UT_Map<exint, RV_ShaderProgram *>
theProgramMap;
65
};
66
67
#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.
UT_Map< exint, RV_ShaderProgram * >
GR_GeoRenderVK
Definition:
GR_GeoRenderVK.h:63
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_Vector2T< 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::getVkPickGeometry
virtual RV_Geometry * getVkPickGeometry(unsigned int pick_mode)
Definition:
GR_GeoRender.h:128
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
GR_DrawParms
Definition:
GR_DrawParms.h:19
GR_HeightFieldVK::className
const char * className() const override
Definition:
GR_HeightFieldVK.h:32
GR_API
#define GR_API
Definition:
GR_API.h:10
UT_IntrusivePtr< GT_Primitive >
UT_VectorTypes.h
GR_RenderFlags
GR_RenderFlags
Definition:
GR_Defines.h:86
GT_Primitive
The base class for all GT primitive types.
Definition:
GT_Primitive.h:43
RV_Instance
Handle to the main interface of Vulkan.
Definition:
RV_Instance.h:38
mode
GLenum mode
Definition:
glcorearb.h:99
RV_ShaderProgram
Definition:
RV_ShaderProgram.h:264
GR_GeoRenderVK.h
GR_HeightFieldVK::hasTransparency
bool hasTransparency() const override
returns true if this drawable renders some transparent elements
Definition:
GR_HeightFieldVK.h:48
GR_HeightFieldVK
Definition:
GR_HeightFieldVK.h:26
GR_GeoRender::update
virtual void update(RE_RenderContext r, const GT_PrimitiveHandle &primh, const GR_UpdateParms &p, const char *cache_name)=0
r
GLboolean r
Definition:
glcorearb.h:1222
GR_Material
Definition:
GR_Material.h:45
RV_ShaderBlock
Definition:
RV_ShaderBlock.h:306
GR_HeightFieldVK::getNumGLPrimitives
exint getNumGLPrimitives() const override
Definition:
GR_HeightFieldVK.h:47
GR
GR_HeightFieldVK.h
Generated on Tue Dec 17 2024 03:39:43 for HDK by
1.8.6