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;
40  typedef vec3 texcoord_type;
41 
42  public:
45 
47  explicit texture2DArray(
48  format_type Format,
49  dim_type const & Dimensions,
50  size_type Layers,
51  size_type Levels);
52 
54  explicit texture2DArray(
55  format_type Format,
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,
66  format_type Format,
67  size_type BaseLayer, size_type MaxLayer,
68  size_type BaseFace, size_type MaxFace,
69  size_type BaseLevel, size_type MaxLevel);
70 
72  explicit texture2DArray(
73  texture2DArray const & Texture,
74  size_type BaseLayer, size_type MaxLayer,
75  size_type BaseLevel, size_type MaxLevel);
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"
dim_type dimensions() const
Return the dimensions of a texture instance: width and height.
texture2D operator[](size_type Layer) const
Create a view of the texture identified by Layer in the texture array.
OpenGL Image (gli.g-truc.net)
texture2D
Definition: texture2d.hpp:37
Genetic texture class. It can support any target.
Definition: texture.hpp:37
texture2DArray()
Create an empty texture 2D array.