- Cal3D 0.11 API Reference -

global.h
1 //****************************************************************************//
2 // global.h //
3 // Copyright (C) 2001, 2002 Bruno 'Beosil' Heidelberger //
4 //****************************************************************************//
5 // This library is free software; you can redistribute it and/or modify it //
6 // under the terms of the GNU Lesser General Public License as published by //
7 // the Free Software Foundation; either version 2.1 of the License, or (at //
8 // your option) any later version. //
9 //****************************************************************************//
10 
11 #ifndef CAL_GLOBAL_H
12 #define CAL_GLOBAL_H
13 
14 //****************************************************************************//
15 // Includes //
16 //****************************************************************************//
17 
18 // autoconf/automake includes
19 #ifdef HAVE_CONFIG_H
20 #include <config.h>
21 #endif
22 
23 // platform dependent includes
24 #include "cal3d/platform.h"
25 
26 //****************************************************************************//
27 // Define options
28 //****************************************************************************//
29 
30 //Uncomment this if you want to use 16bit indices or configure the compiler
31 
32 //#define CAL_16BIT_INDICES
33 
34 #ifdef CAL_16BIT_INDICES
35 typedef unsigned short CalIndex;
36 #else
37 typedef int CalIndex;
38 #endif
39 
40 
41 //****************************************************************************//
42 // Global Cal3D namespace for constants, ... //
43 //****************************************************************************//
44 
45 namespace cal3d
46 {
47  // global typedefs
48  typedef void *UserData;
49 
50  // file magic cookies
51  const char SKELETON_FILE_MAGIC[4] = { 'C', 'S', 'F', '\0' };
52  const char ANIMATION_FILE_MAGIC[4] = { 'C', 'A', 'F', '\0' };
53  const char MESH_FILE_MAGIC[4] = { 'C', 'M', 'F', '\0' };
54  const char MATERIAL_FILE_MAGIC[4] = { 'C', 'R', 'F', '\0' };
55 
56  const char SKELETON_XMLFILE_MAGIC[4] = { 'X', 'S', 'F', '\0' };
57  const char ANIMATION_XMLFILE_MAGIC[4] = { 'X', 'A', 'F', '\0' };
58  const char MESH_XMLFILE_MAGIC[4] = { 'X', 'M', 'F', '\0' };
59  const char MATERIAL_XMLFILE_MAGIC[4] = { 'X', 'R', 'F', '\0' };
60 
61  // library version // 0.11.0
62  const int LIBRARY_VERSION = 1100;
63 
64  // file versions
65  const int CURRENT_FILE_VERSION = LIBRARY_VERSION;
66  const int EARLIEST_COMPATIBLE_FILE_VERSION = 699;
67 
72  class CAL3D_API noncopyable
73  {
74  protected:
75  noncopyable() {}
76  ~noncopyable() {}
77  private: // emphasize the following members are private
78  noncopyable(const noncopyable&);
79  const noncopyable& operator=(const noncopyable&);
80  };
81 }
82 
83 namespace Cal = cal3d;
84 
85 #endif
Derive from noncopyable to mark your class as not having a copy constructor or operator=.
Definition: global.h:72

Generated at Wed Nov 26 2014 05:33:20 by The Cal3D Team with Doxygen 1.8.7