| 0.6.1

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

texture_cube.hpp
Go to the documentation of this file.
1
29 #pragma once
30
31 #include "image.hpp"
32
33 namespace gli
34 {
35 class texture2D;
36 class textureCubeArray;
37
38 class textureCube : public texture
39 {
40 public:
41 typedef dim2_t dim_type;
42 typedef vec3 texcoord_type;
43
44 public:
45 textureCube();
46
48 explicit textureCube(
49 size_type const & Faces,
50 size_type const & Levels,
51 format_type const & Format,
52 dim_type const & Dimensions);
53
55 explicit textureCube(
56 size_type const & Faces,
57 format_type const & Format,
58 dim_type const & Dimensions);
59
61 explicit textureCube(
62 storage const & Storage);
63
65 explicit textureCube(
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 textureCube(
77 textureCube const & Texture,
78 size_type const & BaseFace,
79 size_type const & MaxFace,
80 size_type const & BaseLevel,
81 size_type const & MaxLevel);
82
84 explicit textureCube(
85 textureCubeArray const & Texture,
86 size_type const & BaseLayer,
87 size_type const & BaseFace,
88 size_type const & MaxFace,
89 size_type const & BaseLevel,
90 size_type const & MaxLevel);
91
93 explicit textureCube(
94 texture2D const & Texture,
95 size_type const & BaseLevel,
96 size_type const & MaxLevel);
97
98 operator storage() const;
99 texture2D operator[](size_type const & Face) const;
100
101 dim_type dimensions() const;
102 };
103 }//namespace gli
gli::texture::size_type
size_t size_type
Definition: texture.hpp:38
gli::texture2D
texture2D
Definition: texture2d.hpp:40
gli::texture::MaxLayer
size_type const MaxLayer
Definition: texture.hpp:93
image.hpp
OpenGL Image (gli.g-truc.net)
gli::format
format
Definition: format.hpp:33
gli::textureCube::dimensions
dim_type dimensions() const
gli::texture::BaseFace
size_type const BaseFace
Definition: texture.hpp:94
gli::dim2_t
glm::tvec2< size_t > dim2_t
Definition: type.hpp:48
gli::textureCube::textureCube
textureCube()
gli::textureCube::dim_type
dim2_t dim_type
Definition: texture_cube.hpp:41
gli::storage
Definition: storage.hpp:56
gli::texture::BaseLayer
size_type const BaseLayer
Definition: texture.hpp:92
gli::textureCubeArray
Definition: texture_cube_array.hpp:38
gli::texture::MaxFace
size_type const MaxFace
Definition: texture.hpp:95
gli::texture::Storage
storage Storage
Definition: texture.hpp:90
gli::texture::MaxLevel
size_type const MaxLevel
Definition: texture.hpp:97
gli::texture::Format
format_type const Format
Definition: texture.hpp:91
gli::textureCube::operator[]
texture2D operator[](size_type const &Face) const
gli::textureCube::texcoord_type
vec3 texcoord_type
Definition: texture_cube.hpp:42
gli::textureCube
Definition: texture_cube.hpp:38
gli::texture::BaseLevel
size_type const BaseLevel
Definition: texture.hpp:96
gli
Definition: addressing.hpp:33
gli::vec3
glm::vec3 vec3
Definition: type.hpp:53
gli::texture
Definition: texture.hpp:35