00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef CAL_GLOBAL_H
00012 #define CAL_GLOBAL_H
00013
00014
00015
00016
00017
00018
00019 #ifdef HAVE_CONFIG_H
00020 #include <config.h>
00021 #endif
00022
00023
00024 #include "cal3d/platform.h"
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 #ifdef CAL_16BIT_INDICES
00035 typedef unsigned short CalIndex;
00036 #else
00037 typedef int CalIndex;
00038 #endif
00039
00040
00041
00042
00043
00044
00045 namespace cal3d
00046 {
00047
00048 typedef void *UserData;
00049
00050
00051 const char SKELETON_FILE_MAGIC[4] = { 'C', 'S', 'F', '\0' };
00052 const char ANIMATION_FILE_MAGIC[4] = { 'C', 'A', 'F', '\0' };
00053 const char MESH_FILE_MAGIC[4] = { 'C', 'M', 'F', '\0' };
00054 const char MATERIAL_FILE_MAGIC[4] = { 'C', 'R', 'F', '\0' };
00055
00056 const char SKELETON_XMLFILE_MAGIC[4] = { 'X', 'S', 'F', '\0' };
00057 const char ANIMATION_XMLFILE_MAGIC[4] = { 'X', 'A', 'F', '\0' };
00058 const char MESH_XMLFILE_MAGIC[4] = { 'X', 'M', 'F', '\0' };
00059 const char MATERIAL_XMLFILE_MAGIC[4] = { 'X', 'R', 'F', '\0' };
00060
00061
00062 const int LIBRARY_VERSION = 1100;
00063
00064
00065 const int CURRENT_FILE_VERSION = LIBRARY_VERSION;
00066 const int EARLIEST_COMPATIBLE_FILE_VERSION = 699;
00067
00072 class CAL3D_API noncopyable
00073 {
00074 protected:
00075 noncopyable() {}
00076 ~noncopyable() {}
00077 private:
00078 noncopyable(const noncopyable&);
00079 const noncopyable& operator=(const noncopyable&);
00080 };
00081 }
00082
00083 namespace Cal = cal3d;
00084
00085 #endif