GLI 0.6.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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
36 {
37 public:
38 typedef storage::dim3_type dim_type;
39 typedef storage::texcoord3_type texcoord_type;
40 typedef storage::size_type size_type;
41 typedef storage::format_type format_type;
42 typedef storage::size_type layer_type;
43 typedef storage::size_type level_type;
44 typedef storage::size_type face_type;
45
46 public:
47 texture3D();
48
50 explicit texture3D(
51 size_type const & Levels,
52 format_type const & Format,
53 dim_type const & Dimensions);
54
56 explicit texture3D(
57 format_type const & Format,
58 dim_type const & Dimensions);
59
61 explicit texture3D(
62 storage const & Storage);
63
65 explicit texture3D(
66 storage const & Storage,
67 format_type const & Format,
68 size_type BaseLayer,
69 size_type MaxLayer,
70 size_type BaseFace,
71 size_type MaxFace,
72 size_type BaseLevel,
73 size_type MaxLevel);
74
76 explicit texture3D(
77 texture3D const & Texture,
78 size_type const & BaseLevel,
79 size_type const & MaxLevel);
80
81 operator storage() const;
82 image operator[] (size_type const & Level) const;
83
84 bool empty() const;
85 format_type format() const;
86 dim_type dimensions() const;
87 size_type layers() const;
88 size_type faces() const;
89 size_type levels() const;
90
91 size_type size() const;
92 void * data();
93 void const * data() const;
94
95 template <typename genType>
96 size_type size() const;
97 template <typename genType>
98 genType * data();
99 template <typename genType>
100 genType const * data() const;
101
102 void clear();
103 template <typename genType>
104 void clear(genType const & Texel);
105
106 size_type baseLayer() const;
107 size_type maxLayer() const;
108 size_type baseFace() const;
109 size_type maxFace() const;
110 size_type baseLevel() const;
111 size_type maxLevel() const;
112
113 private:
114 storage Storage;
115 size_type BaseLayer;
116 size_type MaxLayer;
117 size_type BaseFace;
118 size_type MaxFace;
119 size_type BaseLevel;
120 size_type MaxLevel;
121 format_type Format;
122 };
123 }//namespace gli
gli::texture3D::face_type
storage::size_type face_type
Definition: texture3d.hpp:44
gli::texture3D::dimensions
dim_type dimensions() const
gli::storage::size_type
size_t size_type
Definition: storage.hpp:68
gli::texture3D::format
format_type format() const
gli::texture3D::size_type
storage::size_type size_type
Definition: texture3d.hpp:40
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
Definition: addressing.hpp:33
gli::storage
Definition: storage.hpp:56
gli::texture3D::size
size_type size() const
image.hpp
OpenGL Image (gli.g-truc.net)
gli::texture3D::faces
size_type faces() const
gli::texture3D::empty
bool empty() const
gli::image
Image.
Definition: image.hpp:41
gli::texture3D::levels
size_type levels() const
gli::texture3D::maxLayer
size_type maxLayer() const
gli::texture3D
Definition: texture3d.hpp:35
gli::texture3D::baseFace
size_type baseFace() const
gli::texture3D::data
void * data()
gli::texture3D::clear
void clear()
gli::texture3D::texture3D
texture3D()
gli::storage::texcoord3_type
texcoord3_t texcoord3_type
Definition: storage.hpp:66
gli::texture3D::baseLayer
size_type baseLayer() const
gli::texture3D::layer_type
storage::size_type layer_type
Definition: texture3d.hpp:42
gli::texture3D::dim_type
storage::dim3_type dim_type
Definition: texture3d.hpp:38
gli::texture3D::format_type
storage::format_type format_type
Definition: texture3d.hpp:41
gli::texture3D::level_type
storage::size_type level_type
Definition: texture3d.hpp:43
gli::texture3D::baseLevel
size_type baseLevel() const
gli::texture3D::texcoord_type
storage::texcoord3_type texcoord_type
Definition: texture3d.hpp:39
gli::texture3D::maxLevel
size_type maxLevel() const
gli::storage::dim3_type
dim3_t dim3_type
Definition: storage.hpp:61
gli::format
format
Definition: format.hpp:33