1 /******************************************************************************
2
3 @File OGLES2/PVRTPFXSemantics.cpp
4
5 @Title PFX Semantics
6
7 @Version
8
9 @Copyright Copyright (c) Imagination Technologies Limited.
10
11 @Platform All
12
13 @Description A list of supported PFX semantics.
14
15 ******************************************************************************/
16
17 /*****************************************************************************
18 ** Includes
19 ******************************************************************************/
20 #include "PVRTGlobal.h"
21 #include "PVRTContext.h"
22 #include "PVRTArray.h"
23 #include "PVRTString.h"
24 #include "PVRTStringHash.h"
25 #include "PVRTPFXParser.h"
26 #include "PVRTPFXParserAPI.h"
27 #include "PVRTPFXSemantics.h"
28
29 /*!***************************************************************************
30 ** Default Shaman semantics
31 *****************************************************************************/
32 const SPVRTPFXUniformSemantic c_psSemanticsInfo[] =
33 {
34 { "POSITION", ePVRTPFX_UsPOSITION },
35 { "NORMAL", ePVRTPFX_UsNORMAL },
36 { "TANGENT", ePVRTPFX_UsTANGENT },
37 { "BINORMAL", ePVRTPFX_UsBINORMAL },
38 { "UV", ePVRTPFX_UsUV },
39 { "VERTEXCOLOR", ePVRTPFX_UsVERTEXCOLOR },
40 { "BONEINDEX", ePVRTPFX_UsBONEINDEX },
41 { "BONEWEIGHT", ePVRTPFX_UsBONEWEIGHT },
42
43 { "WORLD", ePVRTPFX_UsWORLD },
44 { "WORLDI", ePVRTPFX_UsWORLDI },
45 { "WORLDIT", ePVRTPFX_UsWORLDIT },
46 { "VIEW", ePVRTPFX_UsVIEW },
47 { "VIEWI", ePVRTPFX_UsVIEWI },
48 { "VIEWIT", ePVRTPFX_UsVIEWIT },
49 { "PROJECTION", ePVRTPFX_UsPROJECTION },
50 { "PROJECTIONI", ePVRTPFX_UsPROJECTIONI },
51 { "PROJECTIONIT", ePVRTPFX_UsPROJECTIONIT },
52 { "WORLDVIEW", ePVRTPFX_UsWORLDVIEW },
53 { "WORLDVIEWI", ePVRTPFX_UsWORLDVIEWI },
54 { "WORLDVIEWIT", ePVRTPFX_UsWORLDVIEWIT },
55 { "WORLDVIEWPROJECTION", ePVRTPFX_UsWORLDVIEWPROJECTION },
56 { "WORLDVIEWPROJECTIONI", ePVRTPFX_UsWORLDVIEWPROJECTIONI },
57 { "WORLDVIEWPROJECTIONIT", ePVRTPFX_UsWORLDVIEWPROJECTIONIT },
58 { "UNPACKMATRIX", ePVRTPFX_UsUNPACKMATRIX },
59
60 { "VIEWPROJECTION", ePVRTPFX_UsVIEWPROJECTION },
61 { "VIEWPROJECTIONI", ePVRTPFX_UsVIEWPROJECTIONI },
62 { "VIEWPROJECTIONIT", ePVRTPFX_UsVIEWPROJECTIONIT },
63 { "OBJECT", ePVRTPFX_UsOBJECT, },
64 { "OBJECTI", ePVRTPFX_UsOBJECTI, },
65 { "OBJECTIT", ePVRTPFX_UsOBJECTIT, },
66
67 { "MATERIALOPACITY", ePVRTPFX_UsMATERIALOPACITY },
68 { "MATERIALSHININESS", ePVRTPFX_UsMATERIALSHININESS },
69 { "MATERIALCOLORAMBIENT", ePVRTPFX_UsMATERIALCOLORAMBIENT },
70 { "MATERIALCOLORDIFFUSE", ePVRTPFX_UsMATERIALCOLORDIFFUSE },
71 { "MATERIALCOLORSPECULAR", ePVRTPFX_UsMATERIALCOLORSPECULAR },
72
73 { "BONECOUNT", ePVRTPFX_UsBONECOUNT },
74 { "BONEMATRIXARRAY", ePVRTPFX_UsBONEMATRIXARRAY },
75 { "BONEMATRIXARRAYIT", ePVRTPFX_UsBONEMATRIXARRAYIT },
76
77 { "LIGHTCOLOR", ePVRTPFX_UsLIGHTCOLOR },
78 { "LIGHTPOSMODEL", ePVRTPFX_UsLIGHTPOSMODEL },
79 { "LIGHTPOSWORLD", ePVRTPFX_UsLIGHTPOSWORLD },
80 { "LIGHTPOSEYE", ePVRTPFX_UsLIGHTPOSEYE },
81 { "LIGHTDIRMODEL", ePVRTPFX_UsLIGHTDIRMODEL },
82 { "LIGHTDIRWORLD", ePVRTPFX_UsLIGHTDIRWORLD },
83 { "LIGHTDIREYE", ePVRTPFX_UsLIGHTDIREYE },
84 { "LIGHTATTENUATION", ePVRTPFX_UsLIGHTATTENUATION },
85 { "LIGHTFALLOFF", ePVRTPFX_UsLIGHTFALLOFF },
86
87 { "EYEPOSMODEL", ePVRTPFX_UsEYEPOSMODEL },
88 { "EYEPOSWORLD", ePVRTPFX_UsEYEPOSWORLD },
89 { "TEXTURE", ePVRTPFX_UsTEXTURE },
90 { "ANIMATION", ePVRTPFX_UsANIMATION },
91
92 { "VIEWPORTPIXELSIZE", ePVRTPFX_UsVIEWPORTPIXELSIZE },
93 { "VIEWPORTCLIPPING", ePVRTPFX_UsVIEWPORTCLIPPING },
94 { "TIME", ePVRTPFX_UsTIME },
95 { "TIMECOS", ePVRTPFX_UsTIMECOS },
96 { "TIMESIN", ePVRTPFX_UsTIMESIN },
97 { "TIMETAN", ePVRTPFX_UsTIMETAN, },
98 { "TIME2PI", ePVRTPFX_UsTIME2PI, },
99 { "TIME2PICOS", ePVRTPFX_UsTIME2PICOS, },
100 { "TIME2PISIN", ePVRTPFX_UsTIME2PISIN, },
101 { "TIME2PITAN", ePVRTPFX_UsTIME2PITAN, },
102 { "RANDOM", ePVRTPFX_UsRANDOM, },
103 };
104 PVRTCOMPILEASSERT(c_psSemanticsInfo, sizeof(c_psSemanticsInfo) / sizeof(c_psSemanticsInfo[0]) == ePVRTPFX_NumSemantics);
105
PVRTPFXSemanticsGetSemanticList()106 const SPVRTPFXUniformSemantic* PVRTPFXSemanticsGetSemanticList()
107 {
108 return c_psSemanticsInfo;
109 }
110
111 /*****************************************************************************
112 End of file (PVRTPFXSemantics.cpp)
113 *****************************************************************************/
114
115