GLI  0.6.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 {
35  class texture1D;
36 
38  {
39  public:
47 
48  public:
50 
52  explicit texture1DArray(
53  layer_type const & Layers,
54  level_type const & Levels,
55  format_type const & Format,
56  dim_type const & Dimensions);
57 
59  explicit texture1DArray(
60  layer_type const & Layers,
61  format_type const & Format,
62  dim_type const & Dimensions);
63 
65  explicit texture1DArray(
66  storage const & Storage);
67 
69  explicit texture1DArray(
70  storage const & Storage,
71  format_type const & Format,
72  layer_type BaseLayer,
73  layer_type MaxLayer,
74  face_type BaseFace,
75  face_type MaxFace,
76  level_type BaseLevel,
77  level_type MaxLevel);
78 
80  explicit texture1DArray(
81  texture1DArray const & Texture,
82  layer_type const & BaseLayer,
83  layer_type const & MaxLayer,
84  level_type const & BaseLevel,
85  level_type const & MaxLevel);
86 
88  explicit texture1DArray(
89  texture1D const & Texture,
90  level_type const & BaseLevel,
91  level_type const & MaxLevel);
92 
93  operator storage() const;
94  texture1D operator[] (layer_type const & Layer) const;
95 
96  bool empty() const;
97  format_type format() const;
98  dim_type dimensions() const;
99  layer_type layers() const;
100  level_type levels() const;
101  face_type faces() const;
102 
103  size_type size() const;
104  void * data();
105  void const * data() const;
106 
107  template <typename genType>
108  size_type size() const;
109  template <typename genType>
110  genType * data();
111  template <typename genType>
112  genType const * data() const;
113 
114  void clear();
115  template <typename genType>
116  void clear(genType const & Texel);
117 
118  layer_type baseLayer() const;
119  layer_type maxLayer() const;
120  level_type baseLevel() const;
121  level_type maxLevel() const;
122  face_type baseFace() const;
123  face_type maxFace() const;
124 
125  private:
126  storage Storage;
127  layer_type BaseLayer;
128  layer_type MaxLayer;
129  level_type BaseLevel;
130  level_type MaxLevel;
131  face_type BaseFace;
132  face_type MaxFace;
133  format_type Format;
134  };
135 }//namespace gli
136 
137 
size_t size_type
Definition: storage.hpp:68
storage::format_type format_type
face_type faces() const
size_type size() const
texcoord1_t texcoord1_type
Definition: storage.hpp:64
face_type maxFace() const
dim_type dimensions() const
storage::size_type level_type
bool empty() const
face_type baseFace() const
storage::size_type face_type
OpenGL Image (gli.g-truc.net)
storage::dim1_type dim_type
layer_type maxLayer() const
level_type levels() const
storage::size_type layer_type
layer_type layers() const
level_type maxLevel() const
texture1D operator[](layer_type const &Layer) const
level_type baseLevel() const
storage::size_type size_type
format_type format() const
storage::texcoord1_type texcoord_type
layer_type baseLayer() const
dim1_t dim1_type
Definition: storage.hpp:59
format
Definition: format.hpp:33