HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GR_PrimFragments.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_PrimFragments.h (GR Library, C++)
7  *
8  * COMMENTS:
9  */
10 #ifndef __GR_PrimFragments__
11 #define __GR_PrimFragments__
12 
13 #include "GR_PrimPacked.h"
14 
16 {
17 public:
18  GR_PrimFragments(const GR_RenderInfo *info,
19  const char *cache_name,
20  const GT_PrimitiveHandle &instance_prim,
21  const GT_PrimitiveHandle &instancer,
22  const GU_ConstDetailHandle &instanced_gdp);
23  ~GR_PrimFragments() override;
24 
25  const char *className() const override
26  { return "GR_PrimFragments"; }
27 
29  const GT_PrimitiveHandle &primh,
30  const GR_UpdateParms &p) override;
31 
33  { return GR_BASE_PRIM_FRAGMENT; }
34 
35 private:
36  bool isFragment() const override { return true; }
37  bool getSingleTransform(UT_Matrix4D &mat) const override
38  { return false; }
39  void buildAnchorsGL3(
41  const GR_UpdateParms &p,
42  GR_UpdateReason full_reason,
43  const GT_PrimitiveHandle &xforms) override;
44 
45  // Members
46  UT_Matrix4DArray myPointPos;
47  UT_Matrix4DArray myPrimPos;
48 };
49 
50 #endif
virtual bool getSingleTransform(UT_Matrix4D &mat) const
GT_API const UT_StringHolder cache_name
Temporary container for either a RV_Render and an RE_Render.
set of parameters sent to GR_Primitive::update()
GR_BasePrimType
Definition: GR_Defines.h:352
#define GR_API
Definition: GR_API.h:10
GR_UpdateReason
Definition: GR_Defines.h:300
GR_BasePrimType getBasePrimType() const override
The base primitive type is usually NORMAL unless this is a packed type.
virtual void buildAnchorsGL3(RE_RenderContext r, const GR_UpdateParms &p, GR_UpdateReason full_reason, const GT_PrimitiveHandle &xforms)
virtual bool isFragment() const
void update(RE_RenderContext r, const GT_PrimitiveHandle &primh, const GR_UpdateParms &p) override
GLboolean r
Definition: glcorearb.h:1222
const char * className() const override
Return a string version of this class's name.