SoftwareDriver2_compile_config.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. // Copyright (C) 2002-2012 Nikolaus Gebhardt / Thomas Alten
  2. // This file is part of the "Irrlicht Engine".
  3. // For conditions of distribution and use, see copyright notice in irrlicht.h
  4. #ifndef __S_VIDEO_2_SOFTWARE_COMPILE_CONFIG_H_INCLUDED__
  5. #define __S_VIDEO_2_SOFTWARE_COMPILE_CONFIG_H_INCLUDED__
  6. #include "IrrCompileConfig.h"
  7. // Generic Render Flags for burning's video rasterizer
  8. // defined now in irrlicht compile config
  9. #ifdef BURNINGVIDEO_RENDERER_BEAUTIFUL
  10. #define SOFTWARE_DRIVER_2_PERSPECTIVE_CORRECT
  11. #define SOFTWARE_DRIVER_2_SUBTEXEL
  12. #define SOFTWARE_DRIVER_2_BILINEAR
  13. #define SOFTWARE_DRIVER_2_LIGHTING
  14. #define SOFTWARE_DRIVER_2_USE_VERTEX_COLOR
  15. #define SOFTWARE_DRIVER_2_32BIT
  16. #define SOFTWARE_DRIVER_2_MIPMAPPING
  17. #define SOFTWARE_DRIVER_2_USE_WBUFFER
  18. #define SOFTWARE_DRIVER_2_TEXTURE_TRANSFORM
  19. #define SOFTWARE_DRIVER_2_TEXTURE_MAXSIZE 0
  20. #endif
  21. //! Set Flags for Windows Mobile
  22. #ifdef BURNINGVIDEO_RENDERER_CE
  23. #define SOFTWARE_DRIVER_2_PERSPECTIVE_CORRECT
  24. #define SOFTWARE_DRIVER_2_SUBTEXEL
  25. //#define SOFTWARE_DRIVER_2_BILINEAR
  26. //#define SOFTWARE_DRIVER_2_LIGHTING
  27. #define SOFTWARE_DRIVER_2_USE_VERTEX_COLOR
  28. #define SOFTWARE_DRIVER_2_16BIT
  29. #define SOFTWARE_DRIVER_2_MIPMAPPING
  30. #define SOFTWARE_DRIVER_2_USE_WBUFFER
  31. //#define SOFTWARE_DRIVER_2_TEXTURE_TRANSFORM
  32. #define SOFTWARE_DRIVER_2_TEXTURE_MAXSIZE 128
  33. #endif
  34. #ifdef BURNINGVIDEO_RENDERER_FAST
  35. #define SOFTWARE_DRIVER_2_PERSPECTIVE_CORRECT
  36. #define SOFTWARE_DRIVER_2_SUBTEXEL
  37. //#define SOFTWARE_DRIVER_2_BILINEAR
  38. //#define SOFTWARE_DRIVER_2_LIGHTING
  39. //#define SOFTWARE_DRIVER_2_USE_VERTEX_COLOR
  40. #define SOFTWARE_DRIVER_2_32BIT
  41. #define SOFTWARE_DRIVER_2_MIPMAPPING
  42. #define SOFTWARE_DRIVER_2_USE_WBUFFER
  43. #define SOFTWARE_DRIVER_2_TEXTURE_MAXSIZE 0
  44. #endif
  45. #ifdef BURNINGVIDEO_RENDERER_ULTRA_FAST
  46. #define BURNINGVIDEO_RENDERER_FAST
  47. //#define SOFTWARE_DRIVER_2_PERSPECTIVE_CORRECT
  48. #define SOFTWARE_DRIVER_2_SUBTEXEL
  49. //#define SOFTWARE_DRIVER_2_BILINEAR
  50. //#define SOFTWARE_DRIVER_2_LIGHTING
  51. //#define SOFTWARE_DRIVER_2_USE_VERTEX_COLOR
  52. //#define SOFTWARE_DRIVER_2_32BIT
  53. #define SOFTWARE_DRIVER_2_MIPMAPPING
  54. #define SOFTWARE_DRIVER_2_USE_WBUFFER
  55. #define SOFTWARE_DRIVER_2_TEXTURE_MAXSIZE 0
  56. #endif
  57. // Derivate flags
  58. // texture format
  59. #ifdef SOFTWARE_DRIVER_2_32BIT
  60. #define BURNINGSHADER_COLOR_FORMAT ECF_A8R8G8B8
  61. #else
  62. #define BURNINGSHADER_COLOR_FORMAT ECF_A1R5G5B5
  63. #endif
  64. // mip mapping
  65. #if defined ( SOFTWARE_DRIVER_2_MIPMAPPING )
  66. #if defined( BURNINGVIDEO_RENDERER_BEAUTIFUL )
  67. #define SOFTWARE_DRIVER_2_MIPMAPPING_MAX 8
  68. #define SOFTWARE_DRIVER_2_MIPMAPPING_LOD_BIAS 0
  69. #elif defined ( BURNINGVIDEO_RENDERER_CE )
  70. #define SOFTWARE_DRIVER_2_MIPMAPPING_MAX 4
  71. #define SOFTWARE_DRIVER_2_MIPMAPPING_LOD_BIAS 0
  72. #else
  73. #define SOFTWARE_DRIVER_2_MIPMAPPING_MAX 8
  74. #define SOFTWARE_DRIVER_2_MIPMAPPING_LOD_BIAS 0
  75. #endif
  76. #else
  77. #define SOFTWARE_DRIVER_2_MIPMAPPING_MAX 1
  78. #define SOFTWARE_DRIVER_2_MIPMAPPING_LOD_BIAS 0
  79. #endif
  80. #define SOFTWARE_DRIVER_2_MIPMAPPING_SCALE (8/SOFTWARE_DRIVER_2_MIPMAPPING_MAX)
  81. #ifndef REALINLINE
  82. #ifdef _MSC_VER
  83. #define REALINLINE __forceinline
  84. #else
  85. #define REALINLINE inline
  86. #endif
  87. #endif
  88. #endif