GLI  0.5.1
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 
39  {
40  public:
45 
46  public:
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;
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
float texcoord1_type
Definition: storage.hpp:74
size_type maxFace() const
storage::format_type format_type
glm::uint dimensions1_type
Definition: storage.hpp:69
size_type levels() const
size_type size() const
size_type layers() const
size_type baseFace() const
bool empty() const
size_type baseLayer() const
dimensions_type dimensions() const
std::size_t size_type
Definition: storage.hpp:78
size_type maxLayer() const
format
Definition: format.hpp:34
size_type faces() const
storage::size_type size_type
format_type format() const
texture1D operator[](size_type const &Layer) const
storage::texcoord1_type texcoord_type
storage::dimensions1_type dimensions_type
size_type maxLevel() const
size_type baseLevel() const
OpenGL Image (gli.g-truc.net)