0.7.0
texture3d.hpp
Go to the documentation of this file.
1 
29 #pragma once
30 
31 #include "texture.hpp"
32 #include "image.hpp"
33 
34 namespace gli
35 {
37  class texture3D : public texture
38  {
39  public:
40  typedef dim3_t dim_type;
41  typedef vec3 texcoord_type;
42 
43  public:
45  texture3D();
46 
48  explicit texture3D(
49  format_type Format,
50  dim_type const & Dimensions,
51  size_type Levels);
52 
54  explicit texture3D(
55  format_type Format,
56  dim_type const & Dimensions);
57 
59  explicit texture3D(
60  texture const & Texture);
61 
63  explicit texture3D(
64  texture const & Texture,
65  format_type Format,
66  size_type BaseLayer, size_type MaxLayer,
67  size_type BaseFace, size_type MaxFace,
68  size_type BaseLevel, size_type MaxLevel);
69 
71  explicit texture3D(
72  texture3D const & Texture,
73  size_type BaseLevel, size_type MaxLevel);
74 
76  image operator[](size_type Level) const;
77 
79  dim_type dimensions() const;
80  };
81 }//namespace gli
82 
83 #include "./core/texture3d.inl"
Image.
Definition: image.hpp:39
image operator[](size_type Level) const
Create a view of the image identified by Level in the mipmap chain of the texture.
OpenGL Image (gli.g-truc.net)
texture3D()
Create an empty texture 3D.
dim_type dimensions() const
Return the dimensions of a texture instance: width, height and depth.
Genetic texture class. It can support any target.
Definition: texture.hpp:37
OpenGL Image (gli.g-truc.net)
texture3D
Definition: texture3d.hpp:37