0.7.0
texture_cube.hpp
Go to the documentation of this file.
1 
29 #pragma once
30 
31 #include "texture2d.hpp"
32 
33 namespace gli
34 {
36  class textureCube : public texture
37  {
38  public:
39  typedef dim2_t dim_type;
40  typedef vec3 texcoord_type;
41 
42  public:
44  textureCube();
45 
47  explicit textureCube(
48  format_type Format,
49  dim_type const & Dimensions,
50  size_type Levels);
51 
53  explicit textureCube(
54  format_type Format,
55  dim_type const & Dimensions);
56 
58  explicit textureCube(
59  texture const & Texture);
60 
62  explicit textureCube(
63  texture const & Texture,
64  format_type Format,
65  size_type BaseLayer, size_type MaxLayer,
66  size_type BaseFace, size_type MaxFace,
67  size_type BaseLevel, size_type MaxLevel);
68 
70  explicit textureCube(
71  textureCube const & Texture,
72  size_type BaseFace, size_type MaxFace,
73  size_type BaseLevel, size_type MaxLevel);
74 
76  texture2D operator[](size_type Face) const;
77 
79  dim_type dimensions() const;
80  };
81 }//namespace gli
82 
83 #include "./core/texture_cube.inl"
texture2D operator[](size_type Face) const
Create a view of the texture identified by Face in the texture cube.
dim_type dimensions() const
Return the dimensions of a texture instance: width and height where both should be equal...
OpenGL Image (gli.g-truc.net)
texture2D
Definition: texture2d.hpp:37
textureCube
textureCube()
Create an empty texture cube.
Genetic texture class. It can support any target.
Definition: texture.hpp:37