0.7.0
texture2d_array.hpp
Go to the documentation of this file.
1 
29 #pragma once
30 
31 #include "texture2d.hpp"
32 
33 namespace gli
34 {
36  class texture2DArray : public texture
37  {
38  public:
39  typedef dim2_t dim_type;
41 
42  public:
45 
47  explicit texture2DArray(
49  dim_type const & Dimensions,
50  size_type Layers,
51  size_type Levels);
52 
54  explicit texture2DArray(
56  dim_type const & Dimensions,
57  size_type Layers);
58 
60  explicit texture2DArray(
61  texture const & Texture);
62 
64  explicit texture2DArray(
65  texture const & Texture,
70 
72  explicit texture2DArray(
73  texture2DArray const & Texture,
76 
78  texture2D operator[](size_type Layer) const;
79 
81  dim_type dimensions() const;
82  };
83 }//namespace gli
84 
85 #include "./core/texture2d_array.inl"
size_t size_type
Definition: texture.hpp:40
texture2DArray()
Create an empty texture 2D array.
dim_type dimensions() const
Return the dimensions of a texture instance: width and height.
texture2D
Definition: texture2d.hpp:37
size_type const MaxLayer
Definition: texture.hpp:186
texture2D operator[](size_type Layer) const
Create a view of the texture identified by Layer in the texture array.
glm::vec3 vec3
Definition: type.hpp:50
size_type const BaseFace
Definition: texture.hpp:187
format
Definition: format.hpp:36
size_type const BaseLayer
Definition: texture.hpp:185
size_type const MaxFace
Definition: texture.hpp:188
glm::tvec2< size_t > dim2_t
Definition: type.hpp:45
size_type const MaxLevel
Definition: texture.hpp:190
format_type const Format
Definition: texture.hpp:184
size_type const BaseLevel
Definition: texture.hpp:189
Genetic texture class. It can support any target.
Definition: texture.hpp:37