GLI 0.6.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

image.hpp
Go to the documentation of this file.
1
32 #pragma once
33
34 #include "storage.hpp"
35 #include "addressing.hpp"
36 #include "header.hpp"
37
38 namespace gli
39 {
41 class image
42 {
43 public:
44 typedef storage::dim1_type dim1_type;
45 typedef storage::dim2_type dim2_type;
46 typedef storage::dim3_type dim3_type;
47 typedef storage::dim3_type dim_type;
48 typedef storage::size_type size_type;
49 typedef storage::size_type layer_type;
50 typedef storage::size_type level_type;
51 typedef storage::size_type face_type;
52
53 image();
54
56 explicit image(
57 format const & Format,
58 dim_type const & Dimensions);
59
61 explicit image(
62 storage const & Storage,
63 size_type BaseLayer, size_type MaxLayer,
64 size_type BaseFace, size_type MaxFace,
65 size_type BaseLevel, size_type MaxLevel);
66
68 operator storage() const;
69
70 bool empty() const;
71 dim_type dimensions() const;
72
73 size_type size() const;
74 void * data();
75 void const * data() const;
76
77 template <typename genType>
78 size_type size() const;
79 template <typename genType>
80 genType * data();
81 template <typename genType>
82 genType const * data() const;
83
84 void clear();
85 template <typename genType>
86 void clear(genType const & Texel);
87 template <typename genType>
88 genType load(dim_type const & TexelCoord);
89 template <typename genType>
90 void store(dim_type const & TexelCoord, genType const & Data);
91
92 size_type baseLayer() const;
93 size_type maxLayer() const;
94 size_type baseFace() const;
95 size_type maxFace() const;
96 size_type baseLevel() const;
97 size_type maxLevel() const;
98
99 private:
100 storage Storage;
101 size_type BaseLayer;
102 size_type MaxLayer;
103 size_type BaseFace;
104 size_type MaxFace;
105 size_type BaseLevel;
106 size_type MaxLevel;
107 };
108 }//namespace gli
109
110 #include "image.inl"
gli::storage::size_type
size_t size_type
Definition: storage.hpp:68
gli::image::maxLayer
size_type maxLayer() const
gli::image::face_type
storage::size_type face_type
Definition: image.hpp:51
gli::image::store
void store(dim_type const &TexelCoord, genType const &Data)
gli::image::layer_type
storage::size_type layer_type
Definition: image.hpp:49
gli
Definition: addressing.hpp:33
gli::storage
Definition: storage.hpp:56
gli::image::size_type
storage::size_type size_type
Definition: image.hpp:48
gli::image::maxLevel
size_type maxLevel() const
addressing.hpp
OpenGL Image (gli.g-truc.net)
gli::image::dim3_type
storage::dim3_type dim3_type
Definition: image.hpp:46
gli::image::dim1_type
storage::dim1_type dim1_type
Definition: image.hpp:44
gli::image::dim2_type
storage::dim2_type dim2_type
Definition: image.hpp:45
gli::image::data
void * data()
gli::image::dim_type
storage::dim3_type dim_type
Definition: image.hpp:47
gli::image
Image.
Definition: image.hpp:41
storage.hpp
OpenGL Image (gli.g-truc.net)
gli::image::baseLevel
size_type baseLevel() const
gli::image::maxFace
size_type maxFace() const
header.hpp
OpenGL Image (gli.g-truc.net)
gli::image::baseFace
size_type baseFace() const
gli::image::dimensions
dim_type dimensions() const
gli::image::clear
void clear()
gli::image::level_type
storage::size_type level_type
Definition: image.hpp:50
gli::image::empty
bool empty() const
gli::image::size
size_type size() const
gli::image::image
image()
gli::storage::dim2_type
dim2_t dim2_type
Definition: storage.hpp:60
gli::image::load
genType load(dim_type const &TexelCoord)
gli::storage::dim1_type
dim1_t dim1_type
Definition: storage.hpp:59
gli::storage::dim3_type
dim3_t dim3_type
Definition: storage.hpp:61
gli::format
format
Definition: format.hpp:33
gli::image::baseLayer
size_type baseLayer() const