Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/ColladaPlugin/include/OgreColladaSyntax.h @ 21

Last change on this file since 21 was 21, checked in by nicolasc, 17 years ago

added ogreode and Colladaplugin

File size: 6.0 KB
Line 
1/**
2 * This source file is part of OgreColladaPlugin
3 * an addon for OGRE (Object-oriented Graphics Rendering Engine)
4 * For the latest info, see http://www.ogre3d.org/
5 *
6 * This program is free software; you can redistribute it and/or modify it under
7 * the terms of the GNU Lesser General Public License as published by the Free Software
8 * Foundation; either version 2 of the License, or (at your option) any later
9 * version.
10
11 * This program is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
14
15 * You should have received a copy of the GNU Lesser General Public License along with
16 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
17 * Place - Suite 330, Boston, MA 02111-1307, USA, or go to
18 * http://www.gnu.org/copyleft/lesser.txt.
19 *
20 * @author      Philipp Hartl
21 * @see         README
22 */
23
24#ifndef __COLLADA_SYNTAX_H__
25#define __COLLADA_SYNTAX_H__
26
27namespace Ogre
28{
29
30/**
31 * collada syntax "CS_"
32 * Element (tag) names start with "ELM_"
33 * attribute (property) names starts with "ATR_{ELement name}"
34 * possible attribute value names starts with "VAL_"
35 *
36 * @see         collada specification
37 * @version     1.3.1
38 */
39
40// Elements
41#define CS_ELM_COLLADA          "COLLADA"
42#define CS_ELM_ACCESSOR         "accessor"
43#define CS_ELM_ASSET            "asset"
44#define CS_ELM_BOUNDINGBOX      "boundingbox"
45#define CS_ELM_EXTRA            "extra"
46#define CS_ELM_FLOAT_ARRAY      "float_array"
47#define CS_ELM_INPUT            "input"
48#define CS_ELM_INSTANCE         "instance"
49#define CS_ELM_LIBRARY          "library"
50#define CS_ELM_LOOKAT           "lookat"
51#define CS_ELM_MATRIX           "matrix"
52#define CS_ELM_MAX                      "max"
53#define CS_ELM_MESH                     "mesh"
54#define CS_ELM_MIN                      "min"
55#define CS_ELM_NODE                     "node"
56#define CS_ELM_OPTICS           "optics"
57#define CS_ELM_IMAGER           "imager"
58#define CS_ELM_P                        "p"
59#define CS_ELM_PASS                     "pass"
60#define CS_ELM_PARAM            "param"
61#define CS_ELM_PERSPECTIVE      "perspective"
62#define CS_ELM_POLYGONS         "polygons"
63#define CS_ELM_PROGRAM          "program"
64#define CS_ELM_ROTATE           "rotate"
65#define CS_ELM_SCALE            "scale"
66#define CS_ELM_SCENE            "scene"
67#define CS_ELM_SHADER           "shader"
68#define CS_ELM_SKEW                     "skew"
69#define CS_ELM_SOURCE           "source"
70#define CS_ELM_TECHNIQUE        "technique"
71#define CS_ELM_TRIANGLES        "triangles"
72#define CS_ELM_TRANSLATE        "translate"
73#define CS_ELM_UPAXIS       "up_axis"
74#define CS_ELM_VERTICES         "vertices"
75
76// common attributes
77#define CS_ATR_COUNT            "count"
78#define CS_ATR_ID                       "id"
79#define CS_ATR_IDX                      "idx"
80#define CS_ATR_NAME                     "name"
81#define CS_ATR_PROFILE          "profile"
82#define CS_ATR_TYPE                     "type"
83#define CS_ATR_URL                      "url"
84
85// specific Attributes
86#define CS_ATR_INPUT_SEMANTIC   "semantic"
87#define CS_ATR_INPUT_SOURCE             "source"
88#define CS_ATR_INPUT_MATERIAL   "material"
89
90#define CS_ATR_ACCESSOR_STRIDE  "stride"
91
92#define CS_ATR_IMAGE_DEPTH              "depth"
93#define CS_ATR_IMAGE_FORMAT             "format"
94#define CS_ATR_IMAGE_HEIGHT             "height"
95#define CS_ATR_IMAGE_SOURCE             "source"
96#define CS_ATR_IMAGE_WIDTH              "width"
97
98// possible values of attributes
99#define CS_VAL_CAMERA_TYPE_ORTHOGRAPHIC "ORTHOGRAPHIC"
100#define CS_VAL_CAMERA_TYPE_PERSPECTIVE  "PERSPECTIVE"
101
102#define CS_VAL_CAMERA_PARAM_BOTTOM              "BOTTOM"
103#define CS_VAL_CAMERA_PARAM_LEFT                "LEFT"
104#define CS_VAL_CAMERA_PARAM_RIGHT               "RIGHT"
105#define CS_VAL_CAMERA_PARAM_TOP                 "TOP"
106#define CS_VAL_CAMERA_PARAM_XFOV                "XFOV"
107#define CS_VAL_CAMERA_PARAM_YFOV                "YFOV"
108#define CS_VAL_CAMERA_PARAM_ZFAR                "ZFAR"
109#define CS_VAL_CAMERA_PARAM_ZNEAR               "ZNEAR"
110
111#define CS_VAL_INPUT_SEMANTIC_COLOR             "COLOR"
112#define CS_VAL_INPUT_SEMANTIC_IMAGE             "IMAGE"
113#define CS_VAL_INPUT_SEMANTIC_NORMAL    "NORMAL"
114#define CS_VAL_INPUT_SEMANTIC_POSITION  "POSITION"
115#define CS_VAL_INPUT_SEMANTIC_TEXCOORD  "TEXCOORD"
116#define CS_VAL_INPUT_SEMANTIC_TEXTURE   "TEXTURE"
117#define CS_VAL_INPUT_SEMANTIC_VERTEX    "VERTEX"
118
119#define CS_VAL_LIBRARY_TYPE_ANIMATION   "ANIMATION"
120#define CS_VAL_LIBRARY_TYPE_CAMERA              "CAMERA"
121#define CS_VAL_LIBRARY_TYPE_CODE                "CODE"
122#define CS_VAL_LIBRARY_TYPE_CONTROLLER  "CONTROLLER"
123#define CS_VAL_LIBRARY_TYPE_GEOMETRY    "GEOMETRY"
124#define CS_VAL_LIBRARY_TYPE_IMAGE               "IMAGE"
125#define CS_VAL_LIBRARY_TYPE_LIGHT               "LIGHT"
126#define CS_VAL_LIBRARY_TYPE_MATERIAL    "MATERIAL"
127#define CS_VAL_LIBRARY_TYPE_PROGRAM             "PROGRAM"
128#define CS_VAL_LIBRARY_TYPE_TEXTURE             "TEXTURE"
129
130#define CS_VAL_LIGHT_PARAM_ANGLE                                "ANGLE"
131#define CS_VAL_LIGHT_PARAM_ATTENUATION                  "ATTENUATION"
132#define CS_VAL_LIGHT_PARAM_ATTENUATION_SCALE    "ATTENUATION_SCALE"
133#define CS_VAL_LIGHT_PARAM_COLOR                                "COLOR"
134#define CS_VAL_LIGHT_PARAM_FALLOFF                              "FALLOFF"
135#define CS_VAL_LIGHT_PARAM_FALLOFF_SCALE                "FALLOFF_SCALE"
136
137#define CS_VAL_LIGHT_FUNCTION_CONSTANT          "CONSTANT"
138#define CS_VAL_LIGHT_FUNCTION_LINEAR            "LINEAR"
139#define CS_VAL_LIGHT_FUNCTION_QUADRATIC         "QUADRATIC"
140
141#define CS_VAL_LIGHT_TYPE_AMBIENT                       "AMBIENT"
142#define CS_VAL_LIGHT_TYPE_DIRECTIONAL           "DIRECTIONAL"
143#define CS_VAL_LIGHT_TYPE_POINT                         "POINT"
144#define CS_VAL_LIGHT_TYPE_SPOT                          "SPOT"
145
146#define CS_VAL_MATERIAL_PARAM_AMBIENT           "AMBIENT"
147#define CS_VAL_MATERIAL_PARAM_DIFFUSE           "DIFFUSE"
148#define CS_VAL_MATERIAL_PARAM_EMISSION          "EMISSION"
149#define CS_VAL_MATERIAL_PARAM_REFLECTIVE        "REFLECTIVE"
150#define CS_VAL_MATERIAL_PARAM_REFLECTIVITY      "REFLECTIVITY"
151#define CS_VAL_MATERIAL_PARAM_SHININESS         "SHININESS"
152#define CS_VAL_MATERIAL_PARAM_SPECULAR          "SPECULAR"
153#define CS_VAL_MATERIAL_PARAM_TRANSPARENCY      "TRANSPARENCY"
154#define CS_VAL_MATERIAL_PARAM_TRANSPARENT       "TRANSPARENT"
155
156#define CS_VAL_NODE_TYPE_JOINT                          "JOINT"
157#define CS_VAL_NODE_TYPE_NODE                           "NODE"
158
159#define CS_VAL_PROGRAM_URL_CONSTANT                     "CONSTANT"
160#define CS_VAL_PROGRAM_URL_LAMBERT                      "LAMBERT"
161#define CS_VAL_PROGRAM_URL_PHONG                        "PHONG"
162
163#define CS_VAL_TEXTURE_PARAM_AMBIENT            "AMBIENT"
164#define CS_VAL_TEXTURE_PARAM_DIFFUSE            "DIFFUSE"
165#define CS_VAL_TEXTURE_PARAM_EMISSION           "EMISSION"
166#define CS_VAL_TEXTURE_PARAM_SHININESS          "SHININESS"
167#define CS_VAL_TEXTURE_PARAM_SPECULAR           "SPECULAR"
168
169#define CS_VAL_TECHNIQUE_PROFILE_COMMON         "COMMON"
170
171// possible values of content
172#define CS_VAL_ASSET_UPAXIS_X "X_UP"
173#define CS_VAL_ASSET_UPAXIS_Y "Y_UP"
174#define CS_VAL_ASSET_UPAXIS_Z "Z_UP"
175
176
177}
178
179#endif // __COLLADA_SYNTAX_H__
Note: See TracBrowser for help on using the repository browser.