GLI 0.5.1

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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