texture_cube_array.hpp 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. ///////////////////////////////////////////////////////////////////////////////////////////////////
  2. // OpenGL Image Copyright (c) 2008 - 2011 G-Truc Creation (www.g-truc.net)
  3. ///////////////////////////////////////////////////////////////////////////////////////////////////
  4. // Created : 2011-04-06
  5. // Updated : 2011-04-06
  6. // Licence : This source is under MIT License
  7. // File : gli/core/texture_cube_array.hpp
  8. ///////////////////////////////////////////////////////////////////////////////////////////////////
  9. #ifndef GLI_CORE_TEXTURE_CUBE_ARRAY_INCLUDED
  10. #define GLI_CORE_TEXTURE_CUBE_ARRAY_INCLUDED
  11. #include "texture_cube.hpp"
  12. namespace gli
  13. {
  14. class textureCubeArray
  15. {
  16. public:
  17. typedef textureCube::dimensions_type dimensions_type;
  18. typedef textureCube::texcoord_type texcoord_type;
  19. typedef textureCube::size_type size_type;
  20. typedef textureCube::value_type value_type;
  21. typedef textureCube::format_type format_type;
  22. typedef std::vector<textureCube> data_type;
  23. typedef textureCube::level_type level_type;
  24. typedef data_type::size_type layer_type;
  25. public:
  26. textureCubeArray();
  27. explicit textureCubeArray(
  28. layer_type const & Layers,
  29. level_type const & Levels);
  30. ~textureCubeArray();
  31. textureCube & operator[] (
  32. layer_type const & Layer);
  33. textureCube const & operator[] (
  34. layer_type const & Layer) const;
  35. bool empty() const;
  36. format_type format() const;
  37. layer_type layers() const;
  38. level_type levels() const;
  39. void resize(
  40. layer_type const & Layers,
  41. level_type const & Levels);
  42. private:
  43. data_type Arrays;
  44. };
  45. }//namespace gli
  46. #include "texture_cube_array.inl"
  47. #endif//GLI_CORE_TEXTURE_CUBE_ARRAY_INCLUDED