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  virtual ~GR_PrimFragments();
24 
25  virtual const char *className() const { return "GR_PrimFragments"; }
26 
27  virtual void update(RE_Render *r,
28  const GT_PrimitiveHandle &primh,
29  const GR_UpdateParms &p);
30 
32  { return GR_BASE_PRIM_FRAGMENT; }
33 
34 private:
35  virtual bool isFragment() const { return true; }
36  virtual bool getSingleTransform(UT_Matrix4D &mat) const
37  { return false; }
38  virtual void buildAnchorsGL3(RE_Render *r,
39  const GR_UpdateParms &p,
40  const GT_PrimitiveHandle &xforms);
41 
42  // Members
43  UT_Matrix4DArray myPointPos;
44  UT_Matrix4DArray myPrimPos;
45 };
46 
47 #endif
virtual bool getSingleTransform(UT_Matrix4D &mat) const
GT_API const UT_StringHolder cache_name
set of parameters sent to GR_Primitive::update()
virtual const char * className() const
Return a string version of this class's name.
GR_BasePrimType
Definition: GR_Defines.h:335
#define GR_API
Definition: GR_API.h:10
virtual void buildAnchorsGL3(RE_Render *r, const GR_UpdateParms &p, const GT_PrimitiveHandle &xforms)
virtual bool isFragment() const
GLboolean r
Definition: glcorearb.h:1221
virtual GR_BasePrimType getBasePrimType() const
The base primitive type is usually NORMAL unless this is a packed type.
virtual void update(RE_Render *r, const GT_PrimitiveHandle &primh, const GR_UpdateParms &p)