GLI 0.5.1

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

texture3d.hpp
Go to the documentation of this file.
1
29 #ifndef GLI_CORE_TEXTURE3D_INCLUDED
30 #define GLI_CORE_TEXTURE3D_INCLUDED
31
32 #include "image.hpp"
33
34 namespace gli
35 {
36 class texture3D
37 {
38 public:
39 typedef storage::dimensions3_type dimensions_type;
40 typedef storage::texcoord3_type texcoord_type;
41 typedef storage::size_type size_type;
42 typedef gli::format format_type;
43
44 public:
45 texture3D();
46
48 explicit texture3D(
49 size_type const & Levels,
50 format_type const & Format,
51 dimensions_type const & Dimensions);
52
54 explicit texture3D(
55 format_type const & Format,
56 dimensions_type const & Dimensions);
57
59 explicit texture3D(
60 storage const & Storage);
61
63 explicit texture3D(
64 storage const & Storage,
65 format_type const & Format,
66 size_type BaseLayer,
67 size_type MaxLayer,
68 size_type BaseFace,
69 size_type MaxFace,
70 size_type BaseLevel,
71 size_type MaxLevel);
72
74 explicit texture3D(
75 texture3D const & Texture,
76 size_type const & BaseLevel,
77 size_type const & MaxLevel);
78
79 operator storage() const;
80 image operator[] (size_type const & Level) const;
81
82 bool empty() const;
83 format_type format() const;
84 dimensions_type dimensions() const;
85 size_type layers() const;
86 size_type faces() const;
87 size_type levels() const;
88
89 size_type size() const;
90 void * data();
91 void const * data() const;
92
93 template <typename genType>
94 size_type size() const;
95 template <typename genType>
96 genType * data();
97 template <typename genType>
98 genType const * data() const;
99
100 void clear();
101 template <typename genType>
102 void clear(genType const & Texel);
103
104 size_type baseLayer() const;
105 size_type maxLayer() const;
106 size_type baseFace() const;
107 size_type maxFace() const;
108 size_type baseLevel() const;
109 size_type maxLevel() const;
110
111 private:
112 storage Storage;
113 size_type BaseLayer;
114 size_type MaxLayer;
115 size_type BaseFace;
116 size_type MaxFace;
117 size_type BaseLevel;
118 size_type MaxLevel;
119 format_type Format;
120 };
121 }//namespace gli
122
123 #endif//GLI_CORE_TEXTURE2D_INCLUDED
gli::texture3D::dimensions_type
storage::dimensions3_type dimensions_type
Definition: texture3d.hpp:39
gli::texture3D::format
format_type format() const
image.hpp
OpenGL Image (gli.g-truc.net)
gli::texture3D::size_type
storage::size_type size_type
Definition: texture3d.hpp:41
gli::image
Image.
Definition: image.hpp:42
gli::texture3D::operator[]
image operator[](size_type const &Level) const
gli::texture3D::layers
size_type layers() const
gli::texture3D::maxFace
size_type maxFace() const
gli::storage
Definition: storage.hpp:66
gli::texture3D::size
size_type size() const
gli::storage::size_type
std::size_t size_type
Definition: storage.hpp:78
gli::texture3D::faces
size_type faces() const
gli::texture3D::empty
bool empty() const
gli::format
format
Definition: format.hpp:34
gli::texture3D::format_type
gli::format format_type
Definition: texture3d.hpp:42
gli::texture3D::levels
size_type levels() const
gli::texture3D::maxLayer
size_type maxLayer() const
gli::texture3D
Definition: texture3d.hpp:36
gli::texture3D::baseFace
size_type baseFace() const
gli::texture3D::data
void * data()
gli::texture3D::clear
void clear()
gli::texture3D::texture3D
texture3D()
gli::texture3D::baseLayer
size_type baseLayer() const
gli::storage::dimensions3_type
glm::uvec3 dimensions3_type
Definition: storage.hpp:71
gli::texture3D::baseLevel
size_type baseLevel() const
gli::texture3D::texcoord_type
storage::texcoord3_type texcoord_type
Definition: texture3d.hpp:40
gli::texture3D::maxLevel
size_type maxLevel() const
gli::storage::texcoord3_type
glm::vec3 texcoord3_type
Definition: storage.hpp:76
gli::texture3D::dimensions
dimensions_type dimensions() const