GLI 0.6.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

texture_cube_array.hpp
Go to the documentation of this file.
1
29 #pragma once
30
31 #include "image.hpp"
32
33 namespace gli
34 {
35 class textureCube;
36 class texture2D;
37
38 class textureCubeArray
39 {
40 public:
41 typedef storage::dim2_type dim_type;
42 typedef storage::texcoord4_type texcoord_type;
43 typedef storage::size_type size_type;
44 typedef storage::format_type format_type;
45 typedef storage::size_type layer_type;
46 typedef storage::size_type level_type;
47 typedef storage::size_type face_type;
48
49 public:
50 textureCubeArray();
51
53 explicit textureCubeArray(
54 size_type const & Layers,
55 size_type const & Faces,
56 size_type const & Levels,
57 format_type const & Format,
58 dim_type const & Dimensions);
59
61 explicit textureCubeArray(
62 size_type const & Layers,
63 size_type const & Faces,
64 format_type const & Format,
65 dim_type const & Dimensions);
66
68 explicit textureCubeArray(
69 storage const & Storage);
70
72 explicit textureCubeArray(
73 storage const & Storage,
74 format_type const & Format,
75 size_type BaseLayer,
76 size_type MaxLayer,
77 size_type BaseFace,
78 size_type MaxFace,
79 size_type BaseLevel,
80 size_type MaxLevel);
81
83 explicit textureCubeArray(
84 textureCubeArray const & Texture,
85 size_type const & BaseLayer,
86 size_type const & MaxLayer,
87 size_type const & BaseFace,
88 size_type const & MaxFace,
89 size_type const & BaseLevel,
90 size_type const & MaxLevel);
91
93 explicit textureCubeArray(
94 textureCube const & Texture,
95 size_type const & BaseFace,
96 size_type const & MaxFace,
97 size_type const & BaseLevel,
98 size_type const & MaxLevel);
99
101 explicit textureCubeArray(
102 texture2D const & Texture,
103 size_type const & BaseLevel,
104 size_type const & MaxLevel);
105
106 operator storage() const;
107 textureCube operator[] (size_type const & Layer) const;
108
109 bool empty() const;
110 format_type format() const;
111 dim_type dimensions() const;
112 size_type layers() const;
113 size_type faces() const;
114 size_type levels() const;
115
116 size_type size() const;
117 void * data();
118 void const * data() const;
119
120 template <typename genType>
121 size_type size() const;
122 template <typename genType>
123 genType * data();
124 template <typename genType>
125 genType const * data() const;
126
127 void clear();
128 template <typename genType>
129 void clear(genType const & Texel);
130
131 size_type baseLayer() const;
132 size_type maxLayer() const;
133 size_type baseFace() const;
134 size_type maxFace() const;
135 size_type baseLevel() const;
136 size_type maxLevel() const;
137
138 private:
139 storage Storage;
140 size_type BaseLayer;
141 size_type MaxLayer;
142 size_type BaseFace;
143 size_type MaxFace;
144 size_type BaseLevel;
145 size_type MaxLevel;
146 format_type Format;
147 };
148 }//namespace gli
gli::textureCubeArray::textureCubeArray
textureCubeArray()
gli::textureCubeArray::baseLevel
size_type baseLevel() const
gli::storage::size_type
size_t size_type
Definition: storage.hpp:68
gli::textureCubeArray::levels
size_type levels() const
gli::textureCubeArray::format_type
storage::format_type format_type
Definition: texture_cube_array.hpp:44
gli::textureCubeArray::face_type
storage::size_type face_type
Definition: texture_cube_array.hpp:47
gli::textureCubeArray::layers
size_type layers() const
gli::textureCubeArray::dimensions
dim_type dimensions() const
gli::textureCubeArray::maxFace
size_type maxFace() const
gli::textureCubeArray::maxLevel
size_type maxLevel() const
gli::textureCubeArray::operator[]
textureCube operator[](size_type const &Layer) const
gli
Definition: addressing.hpp:33
gli::textureCubeArray::empty
bool empty() const
gli::storage
Definition: storage.hpp:56
gli::textureCubeArray::level_type
storage::size_type level_type
Definition: texture_cube_array.hpp:46
gli::textureCubeArray::faces
size_type faces() const
gli::texture2D
texture2D
Definition: texture2d.hpp:40
gli::storage::texcoord4_type
texcoord4_t texcoord4_type
Definition: storage.hpp:67
image.hpp
OpenGL Image (gli.g-truc.net)
gli::textureCube
Definition: texture_cube.hpp:38
gli::textureCubeArray::baseFace
size_type baseFace() const
gli::textureCubeArray::baseLayer
size_type baseLayer() const
gli::textureCubeArray::dim_type
storage::dim2_type dim_type
Definition: texture_cube_array.hpp:41
gli::textureCubeArray::maxLayer
size_type maxLayer() const
gli::textureCubeArray::layer_type
storage::size_type layer_type
Definition: texture_cube_array.hpp:45
gli::textureCubeArray
Definition: texture_cube_array.hpp:38
gli::textureCubeArray::texcoord_type
storage::texcoord4_type texcoord_type
Definition: texture_cube_array.hpp:42
gli::textureCubeArray::format
format_type format() const
gli::textureCubeArray::size_type
storage::size_type size_type
Definition: texture_cube_array.hpp:43
gli::textureCubeArray::size
size_type size() const
gli::storage::dim2_type
dim2_t dim2_type
Definition: storage.hpp:60
gli::textureCubeArray::clear
void clear()
gli::format
format
Definition: format.hpp:33
gli::textureCubeArray::data
void * data()