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
GA_IntrinsicDef.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: GA_IntrinsicDef.h ( GA Library, C++)
7
*
8
* COMMENTS:
9
*/
10
11
#ifndef __GA_IntrinsicDef__
12
#define __GA_IntrinsicDef__
13
14
#include "
GA_API.h
"
15
#include "
GA_Types.h
"
16
17
/// @brief Stores information about intrinsic attributes for classes
18
///
19
/// When defining a new primitive which has intrinsic attributes, this class
20
/// stores information about the mapping between the GA_IntrinsicManager and
21
/// the user data passed in the registration.
22
class
GA_API
GA_IntrinsicDef
23
{
24
public
:
25
GA_IntrinsicDef
()
26
: myStart(-1)
27
, myEnd(-1)
28
{};
29
~GA_IntrinsicDef
()
30
{}
31
32
private
:
33
bool
setStart(
int
start
);
34
bool
setEnd(
int
end
);
35
int
getLocalId(
GA_LocalIntrinsic
h
)
const
36
{
37
return
(h >= myStart && h < myEnd) ? h : -1;
38
}
39
40
int
myStart, myEnd;
41
42
friend
class
GA_IntrinsicManager
;
43
friend
class
GA_IntrinsicEval
;
44
};
45
46
#endif
GA_IntrinsicDef::GA_IntrinsicDef
GA_IntrinsicDef()
Definition:
GA_IntrinsicDef.h:25
start
GLuint start
Definition:
glcorearb.h:475
GA_IntrinsicManager
Manager to keep track of global handle to name mappings.
Definition:
GA_IntrinsicManager.h:39
GA_API
#define GA_API
Definition:
GA_API.h:14
GA_IntrinsicDef
Stores information about intrinsic attributes for classes.
Definition:
GA_IntrinsicDef.h:22
GA_LocalIntrinsic
int GA_LocalIntrinsic
Definition:
GA_Types.h:703
GA_API.h
GA_IntrinsicEval
Class used to keep track of inheritance of intrinsic attribute evaluation.
Definition:
GA_IntrinsicEval.h:21
end
GLuint GLuint end
Definition:
glcorearb.h:475
h
GLfloat GLfloat GLfloat GLfloat h
Definition:
glcorearb.h:2002
GA_IntrinsicDef::~GA_IntrinsicDef
~GA_IntrinsicDef()
Definition:
GA_IntrinsicDef.h:29
GA_Types.h
GA
GA_IntrinsicDef.h
Generated on Tue Dec 24 2024 02:40:20 for HDK by
1.8.6