GLI 0.5.1

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

texture2d_array.hpp
Go to the documentation of this file.
1
29 #ifndef GLI_CORE_TEXTURE2D_ARRAY_INCLUDED
30 #define GLI_CORE_TEXTURE2D_ARRAY_INCLUDED
31
32 #include "texture2d.hpp"
33
34 namespace gli
35 {
36 class texture2DArray
37 {
38 public:
39 typedef storage::dimensions2_type dimensions_type;
40 typedef storage::texcoord3_type texcoord_type;
41 typedef storage::size_type size_type;
42 typedef gli::format format_type;
43
44 public:
45 texture2DArray();
46
48 explicit texture2DArray(
49 size_type const & Layers,
50 size_type const & Levels,
51 format_type const & Format,
52 dimensions_type const & Dimensions);
53
55 explicit texture2DArray(
56 size_type const & Layers,
57 format_type const & Format,
58 dimensions_type const & Dimensions);
59
61 explicit texture2DArray(
62 storage const & Storage);
63
65 explicit texture2DArray(
66 storage const & Storage,
67 format_type const & Format,
68 size_type BaseLayer,
69 size_type MaxLayer,
70 size_type BaseFace,
71 size_type MaxFace,
72 size_type BaseLevel,
73 size_type MaxLevel);
74
76 explicit texture2DArray(
77 texture2DArray const & Texture,
78 size_type const & BaseLayer,
79 size_type const & MaxLayer,
80 size_type const & BaseLevel,
81 size_type const & MaxLevel);
82
84 explicit texture2DArray(
85 texture2D const & Texture,
86 size_type const & BaseLevel,
87 size_type const & MaxLevel);
88
89 operator storage() const;
90 texture2D operator[] (size_type const & Layer) const;
91
92 bool empty() const;
93 format_type format() const;
94 dimensions_type dimensions() const;
95 size_type layers() const;
96 size_type faces() const;
97 size_type levels() const;
98
99 size_type size() const;
100 void * data();
101 void const * data() const;
102
103 template <typename genType>
104 size_type size() const;
105 template <typename genType>
106 genType * data();
107 template <typename genType>
108 genType const * data() const;
109
110 void clear();
111 template <typename genType>
112 void clear(genType const & Texel);
113
114 size_type baseLayer() const;
115 size_type maxLayer() const;
116 size_type baseFace() const;
117 size_type maxFace() const;
118 size_type baseLevel() const;
119 size_type maxLevel() const;
120
121 private:
122 storage Storage;
123 size_type BaseLayer;
124 size_type MaxLayer;
125 size_type BaseFace;
126 size_type MaxFace;
127 size_type BaseLevel;
128 size_type MaxLevel;
129 format_type Format;
130 };
131 }//namespace gli
132
133 #endif//GLI_CORE_TEXTURE2D_ARRAY_INCLUDED
134
gli::texture2DArray
Definition: texture2d_array.hpp:36
gli::texture2DArray::maxFace
size_type maxFace() const
gli::storage::dimensions2_type
glm::uvec2 dimensions2_type
Definition: storage.hpp:70
gli::texture2DArray::size_type
storage::size_type size_type
Definition: texture2d_array.hpp:41
gli::texture2DArray::dimensions_type
storage::dimensions2_type dimensions_type
Definition: texture2d_array.hpp:39
gli::texture2DArray::size
size_type size() const
gli::texture2DArray::layers
size_type layers() const
gli::texture2DArray::faces
size_type faces() const
gli::texture2DArray::format
format_type format() const
gli::storage
Definition: storage.hpp:66
gli::texture2DArray::format_type
gli::format format_type
Definition: texture2d_array.hpp:42
texture2d.hpp
OpenGL Image (gli.g-truc.net)
gli::texture2DArray::operator[]
texture2D operator[](size_type const &Layer) const
gli::texture2D
texture2D
Definition: texture2d.hpp:41
gli::texture2DArray::maxLayer
size_type maxLayer() const
gli::texture2DArray::empty
bool empty() const
gli::storage::size_type
std::size_t size_type
Definition: storage.hpp:78
gli::format
format
Definition: format.hpp:34
gli::texture2DArray::levels
size_type levels() const
gli::texture2DArray::baseFace
size_type baseFace() const
gli::texture2DArray::data
void * data()
gli::texture2DArray::texcoord_type
storage::texcoord3_type texcoord_type
Definition: texture2d_array.hpp:40
gli::texture2DArray::clear
void clear()
gli::texture2DArray::texture2DArray
texture2DArray()
gli::texture2DArray::baseLayer
size_type baseLayer() const
gli::texture2DArray::maxLevel
size_type maxLevel() const
gli::texture2DArray::dimensions
dimensions_type dimensions() const
gli::texture2DArray::baseLevel
size_type baseLevel() const
gli::storage::texcoord3_type
glm::vec3 texcoord3_type
Definition: storage.hpp:76