GLI 0.6.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

texture1d.hpp
Go to the documentation of this file.
1
29 #pragma once
30
31 #include "image.hpp"
32
33 namespace gli
34 {
35 class texture1DArray;
36
37 class texture1D
38 {
39 public:
40 typedef storage::dim1_type dim_type;
41 typedef storage::texcoord1_type texcoord_type;
42 typedef storage::size_type size_type;
43 typedef storage::format_type format_type;
44 typedef storage::size_type layer_type;
45 typedef storage::size_type level_type;
46 typedef storage::size_type face_type;
47
48 public:
49 texture1D();
50
52 explicit texture1D(
53 size_type const & Levels,
54 format_type const & Format,
55 dim_type const & Dimensions);
56
58 explicit texture1D(
59 format_type const & Format,
60 dim_type const & Dimensions);
61
63 explicit texture1D(
64 storage const & Storage);
65
67 explicit texture1D(
68 storage const & Storage,
69 format_type const & Format,
70 size_type BaseLayer,
71 size_type MaxLayer,
72 size_type BaseFace,
73 size_type MaxFace,
74 size_type BaseLevel,
75 size_type MaxLevel);
76
78 explicit texture1D(
79 texture1D const & Texture,
80 size_type const & BaseLevel,
81 size_type const & MaxLevel);
82
84 explicit texture1D(
85 texture1DArray const & Texture,
86 size_type const & BaseLayer,
87 size_type const & BaseLevel,
88 size_type const & MaxLevel);
89
90 operator storage() const;
91 image operator[] (size_type const & Level) const;
92
93 bool empty() const;
94 format_type format() const;
95 dim_type dimensions() const;
96 size_type layers() const;
97 size_type faces() const;
98 size_type levels() const;
99
100 size_type size() const;
101 void * data();
102 void const * data() const;
103
104 template <typename genType>
105 size_type size() const;
106 template <typename genType>
107 genType * data();
108 template <typename genType>
109 genType const * data() const;
110
111 void clear();
112 template <typename genType>
113 void clear(genType const & Texel);
114
115 size_type base_layer() const;
116 size_type max_layer() const;
117 size_type base_face() const;
118 size_type max_face() const;
119 size_type base_level() const;
120 size_type max_level() const;
121
122 private:
123 storage Storage;
124 size_type BaseLayer;
125 size_type MaxLayer;
126 size_type BaseFace;
127 size_type MaxFace;
128 size_type BaseLevel;
129 size_type MaxLevel;
130 format_type Format;
131 };
132 }//namespace gli
gli::texture1D::levels
size_type levels() const
gli::texture1D::base_level
size_type base_level() const
gli::texture1D::layer_type
storage::size_type layer_type
Definition: texture1d.hpp:44
gli::storage::size_type
size_t size_type
Definition: storage.hpp:68
gli::texture1D::layers
size_type layers() const
gli::texture1D::texture1D
texture1D()
gli::texture1D::level_type
storage::size_type level_type
Definition: texture1d.hpp:45
gli::storage::texcoord1_type
texcoord1_t texcoord1_type
Definition: storage.hpp:64
gli::texture1D::size
size_type size() const
gli::texture1D::face_type
storage::size_type face_type
Definition: texture1d.hpp:46
gli
Definition: addressing.hpp:33
gli::texture1D::operator[]
image operator[](size_type const &Level) const
gli::texture1D::base_layer
size_type base_layer() const
gli::texture1D::dim_type
storage::dim1_type dim_type
Definition: texture1d.hpp:40
gli::storage
Definition: storage.hpp:56
gli::texture1D::base_face
size_type base_face() const
gli::texture1D::data
void * data()
gli::texture1D::format
format_type format() const
image.hpp
OpenGL Image (gli.g-truc.net)
gli::texture1D::format_type
storage::format_type format_type
Definition: texture1d.hpp:43
gli::texture1D::size_type
storage::size_type size_type
Definition: texture1d.hpp:42
gli::image
Image.
Definition: image.hpp:41
gli::texture1D::empty
bool empty() const
gli::texture1D::max_layer
size_type max_layer() const
gli::texture1D::max_level
size_type max_level() const
gli::texture1D::texcoord_type
storage::texcoord1_type texcoord_type
Definition: texture1d.hpp:41
gli::texture1DArray
Definition: texture1d_array.hpp:37
gli::texture1D::faces
size_type faces() const
gli::storage::dim1_type
dim1_t dim1_type
Definition: storage.hpp:59
gli::texture1D::dimensions
dim_type dimensions() const
gli::texture1D::clear
void clear()
gli::texture1D::max_face
size_type max_face() const
gli::format
format
Definition: format.hpp:33
gli::texture1D
Definition: texture1d.hpp:37