#include "model.h"#include <iostream>#include <string>Include dependency graph for modelfile.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Defines | |
| #define | CEL_MODEL_HEADER_ASCII "#celmodel__ascii" |
| #define | CEL_MODEL_HEADER_BINARY "#celmodel_binary" |
| #define | CEL_MODEL_HEADER_LENGTH 16 |
Enumerations | |
| enum | ModelFileToken { CMOD_Material = 1001, CMOD_EndMaterial = 1002, CMOD_Diffuse = 1003, CMOD_Specular = 1004, CMOD_SpecularPower = 1005, CMOD_Opacity = 1006, CMOD_Texture = 1007, CMOD_Mesh = 1009, CMOD_EndMesh = 1010, CMOD_VertexDesc = 1011, CMOD_EndVertexDesc = 1012, CMOD_Vertices = 1013, CMOD_Emissive = 1014 } |
| enum | ModelFileType { CMOD_Float1 = 1, CMOD_Float2 = 2, CMOD_Float3 = 3, CMOD_Float4 = 4, CMOD_String = 5, CMOD_Uint32 = 6, CMOD_Color = 7 } |
Functions | |
| Model * | LoadModel (std::istream &in, const std::string &texPath) |
| Model * | LoadModel (std::istream &) |
| bool | SaveModelAscii (const Model *model, std::ostream &out) |
| bool | SaveModelBinary (const Model *model, std::ostream &out) |
|
|
Definition at line 18 of file modelfile.h. Referenced by ModelLoader::OpenModel(), and AsciiModelWriter::write(). |
|
|
Definition at line 19 of file modelfile.h. Referenced by ModelLoader::OpenModel(), and BinaryModelWriter::write(). |
|
|
Definition at line 17 of file modelfile.h. Referenced by ModelLoader::OpenModel(). |
|
|
Definition at line 62 of file modelfile.h. 00063 {
00064 CMOD_Material = 1001,
00065 CMOD_EndMaterial = 1002,
00066 CMOD_Diffuse = 1003,
00067 CMOD_Specular = 1004,
00068 CMOD_SpecularPower = 1005,
00069 CMOD_Opacity = 1006,
00070 CMOD_Texture = 1007,
00071 CMOD_Mesh = 1009,
00072 CMOD_EndMesh = 1010,
00073 CMOD_VertexDesc = 1011,
00074 CMOD_EndVertexDesc = 1012,
00075 CMOD_Vertices = 1013,
00076 CMOD_Emissive = 1014,
00077 };
|
|
|
Definition at line 79 of file modelfile.h. 00080 {
00081 CMOD_Float1 = 1,
00082 CMOD_Float2 = 2,
00083 CMOD_Float3 = 3,
00084 CMOD_Float4 = 4,
00085 CMOD_String = 5,
00086 CMOD_Uint32 = 6,
00087 CMOD_Color = 7,
00088 };
|
|
||||||||||||
|
|
|
|
|
|
||||||||||||
|
Definition at line 264 of file modelfile.cpp. Referenced by main(). 00265 {
00266 if (model == NULL)
00267 return false;
00268
00269 AsciiModelWriter(out).write(*model);
00270
00271 return true;
00272 }
|
|
||||||||||||
|
Definition at line 275 of file modelfile.cpp. Referenced by main(). 00276 {
00277 if (model == NULL)
00278 return false;
00279
00280 BinaryModelWriter(out).write(*model);
00281
00282 return true;
00283 }
|
1.4.1