TypeDefine.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #ifndef TYPE_DEFINE_H
  2. #define TYPE_DEFINE_H
  3. #include <OgrePlatform.h>
  4. #include <OgreString.h>
  5. typedef Ogre::uint8 u8;
  6. typedef Ogre::uint16 u16;
  7. typedef Ogre::uint32 u32;
  8. typedef Ogre::int8 s8;
  9. typedef Ogre::int16 s16;
  10. typedef Ogre::int32 s32;
  11. #define BEGIN_QGEARS namespace QGears {
  12. #define END_QGEARS }
  13. namespace QGears
  14. {
  15. typedef Ogre::uchar uchar;
  16. typedef Ogre::uint8 uint8;
  17. typedef Ogre::uint16 uint16;
  18. typedef Ogre::uint32 uint32;
  19. typedef Ogre::int8 sint8;
  20. typedef Ogre::int16 sint16;
  21. typedef Ogre::int32 sint32;
  22. typedef Ogre::String String;
  23. struct ColorComponents
  24. {
  25. uint8 blue;
  26. uint8 green;
  27. uint8 red;
  28. uint8 alpha;
  29. };
  30. union ColorA8R8G8B8
  31. {
  32. ColorComponents comp;
  33. uint32 all;
  34. };
  35. struct Pixel
  36. {
  37. sint16 x;
  38. sint16 y;
  39. };
  40. extern const String EXT_MATERIAL;
  41. extern const String EXT_MESH;
  42. extern const String EXT_SKELETON;
  43. extern const String EXT_CONFIG;
  44. extern const String EXT_LOG;
  45. extern const String EXT_P;
  46. extern const String EXT_PLY;
  47. extern const String EXT_RSD;
  48. extern const String EXT_TIM;
  49. extern const String EXT_TEX;
  50. extern const String EXT_TRIGGERS;
  51. extern const String EXT_BACKGROUND;
  52. extern const String EXT_CAMERA_MATRIX;
  53. extern const String EXT_MODEL_LIST;
  54. extern const String EXT_PALETTE;
  55. extern const String EXT_WALKMESH;
  56. }
  57. #endif // TYPE_DEFINE_H