0.7.0
texture1d_array.hpp
Go to the documentation of this file.
1 
29 #pragma once
30 
31 #include "texture1d.hpp"
32 
33 namespace gli
34 {
36  class texture1DArray : public texture
37  {
38  public:
39  typedef dim1_t dim_type;
40  typedef vec1 texcoord_type;
41 
42  public:
45 
47  explicit texture1DArray(
48  format_type Format,
49  dim_type const & Dimensions,
50  size_type Layers,
51  size_type Levels);
52 
54  explicit texture1DArray(
55  format_type Format,
56  dim_type const & Dimensions,
57  size_type Layers);
58 
60  explicit texture1DArray(
61  texture const & Texture);
62 
64  explicit texture1DArray(
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 texture1DArray(
73  texture1DArray const & Texture,
74  size_type BaseLayer, size_type MaxLayer,
75  size_type BaseLevel, size_type MaxLevel);
76 
78  texture1D operator[](size_type Layer) const;
79 
81  dim_type dimensions() const;
82  };
83 }//namespace gli
84 
85 #include "./core/texture1d_array.inl"
texture1D
Definition: texture1d.hpp:37
OpenGL Image (gli.g-truc.net)
dim_type dimensions() const
Return the width of a texture instance.
texture1DArray()
Create an empty texture 1D array.
texture1D 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