0.7.0
texture1d.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 texture1D : public texture
38  {
39  public:
40  typedef dim1_t dim_type;
41  typedef vec1 texcoord_type;
42 
43  public:
45  texture1D();
46 
48  explicit texture1D(
49  format_type Format,
50  dim_type const & Dimensions,
51  size_type Levels);
52 
54  explicit texture1D(
55  format_type Format,
56  dim_type const & Dimensions);
57 
59  explicit texture1D(
60  texture const & Texture);
61 
63  explicit texture1D(
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 texture1D(
72  texture1D 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/texture1d.inl"
image operator[](size_type Level) const
Create a view of the image identified by Level in the mipmap chain of the texture.
texture1D
Definition: texture1d.hpp:37
Image.
Definition: image.hpp:39
dim_type dimensions() const
Return the width of a texture instance.
OpenGL Image (gli.g-truc.net)
texture1D()
Create an empty texture 1D.
Genetic texture class. It can support any target.
Definition: texture.hpp:37
OpenGL Image (gli.g-truc.net)