0.6.1
texture1d.hpp
Go to the documentation of this file.
1 
29 #pragma once
30 
31 #include "image.hpp"
32 
33 namespace gli
34 {
35  class texture1DArray;
36 
37  class texture1D : public texture
38  {
39  public:
40  typedef dim1_t dim_type;
42 
43  public:
44  texture1D();
45 
47  explicit texture1D(
48  size_type const & Levels,
49  format_type const & Format,
50  dim_type const & Dimensions);
51 
53  explicit texture1D(
54  format_type const & Format,
55  dim_type const & Dimensions);
56 
58  explicit texture1D(
59  storage const & Storage);
60 
62  explicit texture1D(
63  storage const & Storage,
64  format_type const & Format,
68 
70  explicit texture1D(
71  texture1D const & Texture,
72  size_type const & BaseLevel, size_type const & MaxLevel);
73 
75  explicit texture1D(
76  texture1DArray const & Texture,
77  size_type const & BaseLayer,
78  size_type const & BaseLevel, size_type const & MaxLevel);
79 
80  operator storage() const;
81  image operator[] (size_type const & Level) const;
82 
83  dim_type dimensions() const;
84  };
85 }//namespace gli
size_t size_type
Definition: texture.hpp:38
size_type const MaxLayer
Definition: texture.hpp:93
OpenGL Image (gli.g-truc.net)
image operator[](size_type const &Level) const
format
Definition: format.hpp:33
size_type const BaseFace
Definition: texture.hpp:94
dim_type dimensions() const
size_type const BaseLayer
Definition: texture.hpp:92
size_type const MaxFace
Definition: texture.hpp:95
dim1_t dim_type
Definition: texture1d.hpp:40
storage Storage
Definition: texture.hpp:90
size_type const MaxLevel
Definition: texture.hpp:97
format_type const Format
Definition: texture.hpp:91
Image.
Definition: image.hpp:41
vec1 texcoord_type
Definition: texture1d.hpp:41
glm::vec1 vec1
Definition: type.hpp:51
size_type const BaseLevel
Definition: texture.hpp:96
glm::tvec1< size_t > dim1_t
Definition: type.hpp:47