Tatooine
textarget.h
Go to the documentation of this file.
1#ifndef TATOOINE_GL_TEX_TARGET_H
2#define TATOOINE_GL_TEX_TARGET_H
3//==============================================================================
4namespace tatooine::gl::tex {
5//==============================================================================
6template <std::size_t NumDimenions>
8template <std::size_t NumDimenions>
10//------------------------------------------------------------------------------
11template <std::size_t NumDimenions>
13//------------------------------------------------------------------------------
14template <std::size_t NumDimenions>
16//------------------------------------------------------------------------------
17template <>
18struct target_impl<1> {
19 static constexpr GLenum value = GL_TEXTURE_1D;
20 static constexpr GLenum binding = GL_TEXTURE_BINDING_1D;
21};
22//------------------------------------------------------------------------------
23template <>
24struct target_impl<2> {
25 static constexpr GLenum value = GL_TEXTURE_2D;
26 static constexpr GLenum binding = GL_TEXTURE_BINDING_2D;
27};
28//------------------------------------------------------------------------------
29template <>
30struct target_impl<3> {
31 static constexpr GLenum value = GL_TEXTURE_3D;
32 static constexpr GLenum binding = GL_TEXTURE_BINDING_3D;
33};
34//------------------------------------------------------------------------------
35template <>
36struct binding_impl<1> {
37 static constexpr GLenum value = GL_TEXTURE_BINDING_1D;
38};
39//------------------------------------------------------------------------------
40template <>
41struct binding_impl<2> {
42 static constexpr GLenum value = GL_TEXTURE_BINDING_2D;
43};
44//------------------------------------------------------------------------------
45template <>
46struct binding_impl<3> {
47 static constexpr GLenum value = GL_TEXTURE_BINDING_3D;
48};
49//==============================================================================
50} // namespace tatooine::gl::tex
51//==============================================================================
52#endif
Definition: texsettings.h:8
static constexpr auto binding
Definition: textarget.h:15
static constexpr auto target
Definition: textarget.h:12
Definition: textarget.h:9
Definition: textarget.h:7