GLI 0.6.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

texture2d_array.hpp
Go to the documentation of this file.
1
29 #pragma once
30
31 #include "texture2d.hpp"
32
33 namespace gli
34 {
35 class texture2DArray
36 {
37 public:
38 typedef storage::dim2_type dim_type;
39 typedef storage::texcoord3_type texcoord_type;
40 typedef storage::size_type size_type;
41 typedef storage::format_type format_type;
42 typedef storage::size_type layer_type;
43 typedef storage::size_type level_type;
44 typedef storage::size_type face_type;
45
46 public:
47 texture2DArray();
48
50 explicit texture2DArray(
51 size_type const & Layers,
52 size_type const & Levels,
53 format_type const & Format,
54 dim_type const & Dimensions);
55
57 explicit texture2DArray(
58 size_type const & Layers,
59 format_type const & Format,
60 dim_type const & Dimensions);
61
63 explicit texture2DArray(
64 storage const & Storage);
65
67 explicit texture2DArray(
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 texture2DArray(
79 texture2DArray 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 texture2DArray(
87 texture2D const & Texture,
88 size_type const & BaseLevel,
89 size_type const & MaxLevel);
90
91 operator storage() const;
92 texture2D operator[] (size_type const & Layer) const;
93
94 bool empty() const;
95 format_type format() const;
96 dim_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
gli::texture2DArray
Definition: texture2d_array.hpp:35
gli::storage::size_type
size_t size_type
Definition: storage.hpp:68
gli::texture2DArray::face_type
storage::size_type face_type
Definition: texture2d_array.hpp:44
gli::texture2DArray::dim_type
storage::dim2_type dim_type
Definition: texture2d_array.hpp:38
gli::texture2DArray::maxFace
size_type maxFace() const
gli::texture2DArray::size_type
storage::size_type size_type
Definition: texture2d_array.hpp:40
gli::texture2DArray::size
size_type size() const
gli::texture2DArray::layers
size_type layers() const
gli::texture2DArray::dimensions
dim_type dimensions() const
gli::texture2DArray::faces
size_type faces() const
gli::texture2DArray::format
format_type format() const
gli
Definition: addressing.hpp:33
gli::storage
Definition: storage.hpp:56
gli::texture2DArray::operator[]
texture2D operator[](size_type const &Layer) const
gli::texture2D
texture2D
Definition: texture2d.hpp:40
gli::texture2DArray::maxLayer
size_type maxLayer() const
gli::texture2DArray::empty
bool empty() const
gli::texture2DArray::levels
size_type levels() const
gli::texture2DArray::layer_type
storage::size_type layer_type
Definition: texture2d_array.hpp:42
gli::texture2DArray::format_type
storage::format_type format_type
Definition: texture2d_array.hpp:41
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:39
gli::texture2DArray::clear
void clear()
gli::storage::texcoord3_type
texcoord3_t texcoord3_type
Definition: storage.hpp:66
gli::texture2DArray::texture2DArray
texture2DArray()
gli::texture2DArray::level_type
storage::size_type level_type
Definition: texture2d_array.hpp:43
gli::texture2DArray::baseLayer
size_type baseLayer() const
gli::storage::dim2_type
dim2_t dim2_type
Definition: storage.hpp:60
gli::texture2DArray::maxLevel
size_type maxLevel() const
gli::texture2DArray::baseLevel
size_type baseLevel() const
gli::format
format
Definition: format.hpp:33
texture2d.hpp
OpenGL Image (gli.g-truc.net)