EHardwareBufferFlags.h 894 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // Copyright (C) 2002-2012 Nikolaus Gebhardt
  2. // This file is part of the "Irrlicht Engine".
  3. // For conditions of distribution and use, see copyright notice in irrlicht.h
  4. #ifndef __E_HARDWARE_BUFFER_FLAGS_INCLUDED__
  5. #define __E_HARDWARE_BUFFER_FLAGS_INCLUDED__
  6. namespace irr
  7. {
  8. namespace scene
  9. {
  10. enum E_HARDWARE_MAPPING
  11. {
  12. //! Don't store on the hardware
  13. EHM_NEVER=0,
  14. //! Rarely changed, usually stored completely on the hardware
  15. EHM_STATIC,
  16. //! Sometimes changed, driver optimized placement
  17. EHM_DYNAMIC,
  18. //! Always changed, cache optimizing on the GPU
  19. EHM_STREAM
  20. };
  21. enum E_BUFFER_TYPE
  22. {
  23. //! Does not change anything
  24. EBT_NONE=0,
  25. //! Change the vertex mapping
  26. EBT_VERTEX,
  27. //! Change the index mapping
  28. EBT_INDEX,
  29. //! Change both vertex and index mapping to the same value
  30. EBT_VERTEX_AND_INDEX
  31. };
  32. } // end namespace scene
  33. } // end namespace irr
  34. #endif