0.7.0
texture_cube_array.hpp
Go to the documentation of this file.
1 
29 #pragma once
30 
31 #include "texture_cube.hpp"
32 
33 namespace gli
34 {
36  class textureCubeArray : public texture
37  {
38  public:
39  typedef dim2_t dim_type;
40  typedef vec4 texcoord_type;
41 
42  public:
45 
47  explicit textureCubeArray(
48  format_type Format,
49  dim_type const & Dimensions,
50  size_type Layers,
51  size_type Levels);
52 
54  explicit textureCubeArray(
55  format_type Format,
56  dim_type const & Dimensions,
57  size_type Layers);
58 
60  explicit textureCubeArray(
61  texture const & Texture);
62 
64  explicit textureCubeArray(
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 textureCubeArray(
73  textureCubeArray const & Texture,
74  size_type BaseLayer, size_type MaxLayer,
75  size_type BaseFace, size_type MaxFace,
76  size_type BaseLevel, size_type MaxLevel);
77 
79  textureCube operator[](size_type Layer) const;
80 
82  dim_type dimensions() const;
83  };
84 }//namespace gli
85 
86 #include "./core/texture_cube_array.inl"
87 
dim_type dimensions() const
Return the dimensions of a texture instance: width and height where both should be equal...
textureCubeArray()
Create an empty texture cube array.
OpenGL Image (gli.g-truc.net)
textureCube
textureCube operator[](size_type Layer) const
Create a view of the texture identified by Layer in the texture array.
Genetic texture class. It can support any target.
Definition: texture.hpp:37