GLI 0.6.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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