0.6.1
texture_cube.hpp
Go to the documentation of this file.
1 
29 #pragma once
30 
31 #include "image.hpp"
32 
33 namespace gli
34 {
35  class texture2D;
36  class textureCubeArray;
37 
38  class textureCube : public texture
39  {
40  public:
41  typedef dim2_t dim_type;
43 
44  public:
45  textureCube();
46 
48  explicit textureCube(
49  size_type const & Faces,
50  size_type const & Levels,
51  format_type const & Format,
52  dim_type const & Dimensions);
53 
55  explicit textureCube(
56  size_type const & Faces,
57  format_type const & Format,
58  dim_type const & Dimensions);
59 
61  explicit textureCube(
62  storage const & Storage);
63 
65  explicit textureCube(
66  storage const & Storage,
67  format_type const & Format,
74 
76  explicit textureCube(
77  textureCube const & Texture,
78  size_type const & BaseFace,
79  size_type const & MaxFace,
80  size_type const & BaseLevel,
81  size_type const & MaxLevel);
82 
84  explicit textureCube(
85  textureCubeArray const & Texture,
86  size_type const & BaseLayer,
87  size_type const & BaseFace,
88  size_type const & MaxFace,
89  size_type const & BaseLevel,
90  size_type const & MaxLevel);
91 
93  explicit textureCube(
94  texture2D const & Texture,
95  size_type const & BaseLevel,
96  size_type const & MaxLevel);
97 
98  operator storage() const;
99  texture2D operator[](size_type const & Face) const;
100 
101  dim_type dimensions() const;
102  };
103 }//namespace gli
size_t size_type
Definition: texture.hpp:38
texture2D
Definition: texture2d.hpp:40
size_type const MaxLayer
Definition: texture.hpp:93
OpenGL Image (gli.g-truc.net)
format
Definition: format.hpp:33
dim_type dimensions() const
size_type const BaseFace
Definition: texture.hpp:94
glm::tvec2< size_t > dim2_t
Definition: type.hpp:48
size_type const BaseLayer
Definition: texture.hpp:92
size_type const MaxFace
Definition: texture.hpp:95
storage Storage
Definition: texture.hpp:90
size_type const MaxLevel
Definition: texture.hpp:97
format_type const Format
Definition: texture.hpp:91
texture2D operator[](size_type const &Face) const
size_type const BaseLevel
Definition: texture.hpp:96
glm::vec3 vec3
Definition: type.hpp:53