HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GR_PointSplatVK.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_PointSplatVK ( GR Library, C++)
7  *
8  * COMMENTS:
9  */
10 #ifndef GR_PointSplatVK_h
11 #define GR_PointSplatVK_h
12 
13 #include "GR_GeoRenderVK.h"
14 
16 {
17 public:
19  ~GR_PointSplatVK() override;
20 
21  const char *className() const override
22  { return "GR_PointSplatVK"; }
23 
25  const GT_PrimitiveHandle &primh,
26  const GR_UpdateParms &parms,
27  const char *cache_name) override;
28 
29  void draw(RE_RenderContext r,
32  GR_DrawParms dp) override;
33 
34  exint getNumGLPrimitives() const override;
35  bool hasTransparency() const override { return myHasAlpha; }
36 
37  static bool initShaders(RV_Instance* inst);
38  static void cleanupShaders();
39 private:
40 
41  int myMaterialID = -1;
42  bool myHasCdAttrib = false;
43  bool myHasAlphaAttrib = false;
44  bool myHasAlpha = false;
45  bool myObjectSelected = false;
46 };
47 
48 #endif
GLbitfield flags
Definition: glcorearb.h:1596
virtual void draw(RE_RenderContext r, GR_RenderMode mode, GR_RenderFlags flags, GR_DrawParms draw_parms)=0
Normal drawing method. Only issue rendering commands.
bool hasTransparency() const override
returns true if this drawable renders some transparent elements
int64 exint
Definition: SYS_Types.h:125
GT_API const UT_StringHolder cache_name
Temporary container for either a RV_Render and an RE_Render.
virtual exint getNumGLPrimitives() const =0
set of parameters sent to GR_Primitive::update()
GR_RenderMode
Definition: GR_Defines.h:47
const char * className() const override
#define GR_API
Definition: GR_API.h:10
GR_RenderFlags
Definition: GR_Defines.h:85
Handle to the main interface of Vulkan.
Definition: RV_Instance.h:36
GLenum mode
Definition: glcorearb.h:99
virtual void update(RE_RenderContext r, const GT_PrimitiveHandle &primh, const GR_UpdateParms &p, const char *cache_name)=0
GLboolean r
Definition: glcorearb.h:1222