HDK
 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.
23 {
24 public:
26  : myStart(-1)
27  , myEnd(-1)
28  {};
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
GLuint start
Definition: glcorearb.h:475
Manager to keep track of global handle to name mappings.
#define GA_API
Definition: GA_API.h:14
Stores information about intrinsic attributes for classes.
int GA_LocalIntrinsic
Definition: GA_Types.h:694
Class used to keep track of inheritance of intrinsic attribute evaluation.
GLuint GLuint end
Definition: glcorearb.h:475
GLfloat GLfloat GLfloat GLfloat h
Definition: glcorearb.h:2002