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_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
15
class
GR_API
GR_PrimFragments
:
public
GR_PrimPacked
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
28
void
update
(
RE_RenderContext
r
,
29
const
GT_PrimitiveHandle
&primh,
30
const
GR_UpdateParms
&p)
override
;
31
32
GR_BasePrimType
getBasePrimType
()
const override
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
(
40
RE_RenderContext
r
,
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
GR_PrimPacked::getSingleTransform
virtual bool getSingleTransform(UT_Matrix4D &mat) const
Definition:
GR_PrimPacked.h:144
UT_Matrix4T< fpreal64 >
GR_PrimPacked.h
GT_Names::cache_name
GT_API const UT_StringHolder cache_name
UT_ValArray< UT_Matrix4D >
RE_RenderContext
Temporary container for either a RV_Render and an RE_Render.
Definition:
RE_RenderContext.h:23
GR_BASE_PRIM_FRAGMENT
Definition:
GR_Defines.h:373
GR_UpdateParms
set of parameters sent to GR_Primitive::update()
Definition:
GR_UpdateParms.h:37
GR_PrimFragments
Definition:
GR_PrimFragments.h:15
GR_BasePrimType
GR_BasePrimType
Definition:
GR_Defines.h:366
GU_ConstDetailHandle
Definition:
GU_DetailHandle.h:176
GR_API
#define GR_API
Definition:
GR_API.h:10
GR_UpdateReason
GR_UpdateReason
Definition:
GR_Defines.h:312
UT_IntrusivePtr< GT_Primitive >
GR_PrimFragments::getBasePrimType
GR_BasePrimType getBasePrimType() const override
The base primitive type is usually NORMAL unless this is a packed type.
Definition:
GR_PrimFragments.h:32
GR_RenderInfo
Definition:
GR_RenderInfo.h:29
GR_PrimPacked::buildAnchorsGL3
virtual void buildAnchorsGL3(RE_RenderContext r, const GR_UpdateParms &p, GR_UpdateReason full_reason, const GT_PrimitiveHandle &xforms)
GR_PrimPacked::isFragment
virtual bool isFragment() const
Definition:
GR_PrimPacked.h:143
GR_PrimPacked::update
void update(RE_RenderContext r, const GT_PrimitiveHandle &primh, const GR_UpdateParms &p) override
r
GLboolean r
Definition:
glcorearb.h:1222
GR_PrimFragments::className
const char * className() const override
Return a string version of this class's name.
Definition:
GR_PrimFragments.h:25
GR_PrimPacked
Definition:
GR_PrimPacked.h:25
GR
GR_PrimFragments.h
Generated on Sun Nov 17 2024 03:01:14 for HDK by
1.8.6