OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2009, Google Inc. | 2 * Copyright 2009, Google Inc. |
3 * All rights reserved. | 3 * All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 bool condition_document; | 147 bool condition_document; |
148 | 148 |
149 // What the up-axis of the imported geometry should be. | 149 // What the up-axis of the imported geometry should be. |
150 Vector3 up_axis; | 150 Vector3 up_axis; |
151 | 151 |
152 // The base path to use for determining the relative paths for | 152 // The base path to use for determining the relative paths for |
153 // asset URIs. | 153 // asset URIs. |
154 FilePath base_path; | 154 FilePath base_path; |
155 }; | 155 }; |
156 | 156 |
| 157 // Collada Param Names. |
| 158 // TODO(gman): Remove these as we switch this stuff to JSON |
| 159 static const char* kLightingTypeParamName; |
| 160 |
| 161 // Lighitng Types. |
| 162 // TODO(gman): Remove these as we switch this stuff to JSON |
| 163 static const char* kLightingTypeConstant; |
| 164 static const char* kLightingTypePhong; |
| 165 static const char* kLightingTypeBlinn; |
| 166 static const char* kLightingTypeLambert; |
| 167 static const char* kLightingTypeUnknown; |
| 168 |
| 169 // Material Param Names. |
| 170 static const char* kMaterialParamNameEmissive; |
| 171 static const char* kMaterialParamNameAmbient; |
| 172 static const char* kMaterialParamNameDiffuse; |
| 173 static const char* kMaterialParamNameSpecular; |
| 174 static const char* kMaterialParamNameShininess; |
| 175 static const char* kMaterialParamNameSpecularFactor; |
| 176 static const char* kMaterialParamNameEmissiveSampler; |
| 177 static const char* kMaterialParamNameAmbientSampler; |
| 178 static const char* kMaterialParamNameDiffuseSampler; |
| 179 static const char* kMaterialParamNameSpecularSampler; |
| 180 static const char* kMaterialParamNameBumpSampler; |
| 181 |
157 // Use this if you need access to data after the import (as the | 182 // Use this if you need access to data after the import (as the |
158 // converter does). | 183 // converter does). |
159 Collada(Pack* pack, const Options& options); | 184 Collada(Pack* pack, const Options& options); |
160 virtual ~Collada(); | 185 virtual ~Collada(); |
161 | 186 |
162 // Imports the given COLLADA file or ZIP file into the given scene. | 187 // Imports the given COLLADA file or ZIP file into the given scene. |
163 // This is the external interface to o3d. | 188 // This is the external interface to o3d. |
164 // Parameters: | 189 // Parameters: |
165 // pack: The pack into which the scene objects will be placed. | 190 // pack: The pack into which the scene objects will be placed. |
166 // filename: The COLLADA or ZIPped COLLADA file to import. | 191 // filename: The COLLADA or ZIPped COLLADA file to import. |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 bool cull_enabled_; | 454 bool cull_enabled_; |
430 bool cull_front_; | 455 bool cull_front_; |
431 bool front_cw_; | 456 bool front_cw_; |
432 | 457 |
433 int unique_filename_counter_; | 458 int unique_filename_counter_; |
434 | 459 |
435 DISALLOW_COPY_AND_ASSIGN(Collada); | 460 DISALLOW_COPY_AND_ASSIGN(Collada); |
436 }; | 461 }; |
437 } | 462 } |
438 #endif // O3D_IMPORT_CROSS_COLLADA_H_ | 463 #endif // O3D_IMPORT_CROSS_COLLADA_H_ |
OLD | NEW |