| - Cal3D 0.9 API Reference - |
00001 //****************************************************************************//
00002 // global.h //
00003 // Copyright (C) 2001, 2002 Bruno 'Beosil' Heidelberger //
00004 //****************************************************************************//
00005 // This library is free software; you can redistribute it and/or modify it //
00006 // under the terms of the GNU Lesser General Public License as published by //
00007 // the Free Software Foundation; either version 2.1 of the License, or (at //
00008 // your option) any later version. //
00009 //****************************************************************************//
00010
00011 #ifndef CAL_GLOBAL_H
00012 #define CAL_GLOBAL_H
00013
00014 //****************************************************************************//
00015 // Includes //
00016 //****************************************************************************//
00017
00018 // autoconf/automake includes
00019 #ifdef HAVE_CONFIG_H
00020 #include <config.h>
00021 #endif
00022
00023 // platform dependent includes
00024 #include "cal3d/platform.h"
00025
00026 //****************************************************************************//
00027 // Define options
00028 //****************************************************************************//
00029
00030 //Uncomment this if you want to use 16bit indices or configure the compiler
00031
00032 //#define CAL_16BIT_INDICES
00033
00034 #ifdef CAL_16BIT_INDICES
00035 typedef unsigned short CalIndex;
00036 #else
00037 typedef int CalIndex;
00038 #endif
00039
00040
00041 //****************************************************************************//
00042 // Global Cal3D namespace for constants, ... //
00043 //****************************************************************************//
00044
00045 namespace Cal
00046 {
00047 // global typedefs
00048 typedef void *UserData;
00049
00050 // file magic cookies
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 // library version
00062 const int LIBRARY_VERSION = 900;
00063
00064 // file versions
00065 const int CURRENT_FILE_VERSION = LIBRARY_VERSION;
00066 const int EARLIEST_COMPATIBLE_FILE_VERSION = 699;
00067
00068 // empty string
00069 const std::string strNull;
00070 };
00071
00072 #endif
00073
00074 //****************************************************************************//
1.2.14
© 1997-2001
Dimitri van Heesch