0.6.1
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 : public texture
36  {
37  public:
38  typedef dim2_t dim_type;
40 
41  public:
43 
45  explicit texture2DArray(
46  size_type const & Layers,
47  size_type const & Levels,
48  format_type const & Format,
49  dim_type const & Dimensions);
50 
52  explicit texture2DArray(
53  size_type const & Layers,
54  format_type const & Format,
55  dim_type const & Dimensions);
56 
58  explicit texture2DArray(
59  storage const & Storage);
60 
62  explicit texture2DArray(
63  storage const & Storage,
64  format_type const & Format,
68 
70  explicit texture2DArray(
71  texture2DArray const & Texture,
72  size_type const & BaseLayer, size_type const & MaxLayer,
73  size_type const & BaseLevel, size_type const & MaxLevel);
74 
76  explicit texture2DArray(
77  texture2D const & Texture,
78  size_type const & BaseLevel, size_type const & MaxLevel);
79 
80  operator storage() const;
81 
82  texture2D operator[](size_type const & Layer) const;
83 
84  dim_type dimensions() const;
85  };
86 }//namespace gli
size_t size_type
Definition: texture.hpp:38
dim_type dimensions() const
texture2D
Definition: texture2d.hpp:40
size_type const MaxLayer
Definition: texture.hpp:93
format
Definition: format.hpp:33
size_type const BaseFace
Definition: texture.hpp:94
glm::tvec2< size_t > dim2_t
Definition: type.hpp:48
size_type const BaseLayer
Definition: texture.hpp:92
OpenGL Image (gli.g-truc.net)
size_type const MaxFace
Definition: texture.hpp:95
texture2D operator[](size_type const &Layer) const
storage Storage
Definition: texture.hpp:90
size_type const MaxLevel
Definition: texture.hpp:97
format_type const Format
Definition: texture.hpp:91
size_type const BaseLevel
Definition: texture.hpp:96
glm::vec3 vec3
Definition: type.hpp:53