0.6.1
texture3d.hpp
Go to the documentation of this file.
1 
29 #pragma once
30 
31 #include "image.hpp"
32 
33 namespace gli
34 {
35  class texture3D : public texture
36  {
37  public:
38  typedef dim3_t dim_type;
40 
41  public:
42  texture3D();
43 
45  explicit texture3D(
46  size_type const & Levels,
47  format_type const & Format,
48  dim_type const & Dimensions);
49 
51  explicit texture3D(
52  format_type const & Format,
53  dim_type const & Dimensions);
54 
56  explicit texture3D(
57  storage const & Storage);
58 
60  explicit texture3D(
61  storage const & Storage,
62  format_type const & Format,
66 
68  explicit texture3D(
69  texture3D const & Texture,
70  size_type const & BaseLevel, size_type const & MaxLevel);
71 
72  operator storage() const;
73  image operator[](size_type const & Level) const;
74 
75  dim_type dimensions() const;
76  };
77 }//namespace gli
size_t size_type
Definition: texture.hpp:38
size_type const MaxLayer
Definition: texture.hpp:93
OpenGL Image (gli.g-truc.net)
vec3 texcoord_type
Definition: texture3d.hpp:39
format
Definition: format.hpp:33
dim3_t dim_type
Definition: texture3d.hpp:38
size_type const BaseFace
Definition: texture.hpp:94
size_type const BaseLayer
Definition: texture.hpp:92
dim_type dimensions() const
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
Image.
Definition: image.hpp:41
glm::tvec3< size_t > dim3_t
Definition: type.hpp:49
size_type const BaseLevel
Definition: texture.hpp:96
glm::vec3 vec3
Definition: type.hpp:53
image operator[](size_type const &Level) const