13 #ifndef OGLPLUS_TEXTURE_SWIZZLE_1107121519_HPP 
   14 #define OGLPLUS_TEXTURE_SWIZZLE_1107121519_HPP 
   30 #include <oglplus/enums/texture_swizzle_coord.ipp> 
   33 #if !OGLPLUS_NO_ENUM_VALUE_NAMES 
   34 #include <oglplus/enums/texture_swizzle_coord_names.ipp> 
   37 #if !OGLPLUS_ENUM_VALUE_RANGES 
   38 #include <oglplus/enums/texture_swizzle_coord_range.ipp> 
   54 #include <oglplus/enums/texture_swizzle.ipp> 
   57 #if !OGLPLUS_NO_ENUM_VALUE_NAMES 
   58 #include <oglplus/enums/texture_swizzle_names.ipp> 
   61 #if !OGLPLUS_ENUM_VALUE_RANGES 
   62 #include <oglplus/enums/texture_swizzle_range.ipp> 
   65 #if OGLPLUS_DOCUMENTATION_ONLY || GL_VERSION_3_3 || GL_ARB_texture_swizzle 
   72     const GLint* Values(
void)
 const 
   86         _values[1] = GL_GREEN;
 
   88         _values[3] = GL_ALPHA;
 
   99         _values[0] = GLint(GLenum(mode_r));
 
  100         _values[1] = GLint(GLenum(mode_g));
 
  101         _values[2] = GLint(GLenum(mode_b));
 
  102         _values[3] = GLint(GLenum(mode_a));
 
  108         _values[0] = GLint(GLenum(mode));
 
  133         _values[1] = GLint(GLenum(mode));
 
  158         _values[2] = GLint(GLenum(mode));
 
  183         _values[3] = GLint(GLenum(mode));
 
  211         switch(GLenum(coord))
 
  213             case GL_TEXTURE_SWIZZLE_R:
 
  216             case GL_TEXTURE_SWIZZLE_G:
 
  219             case GL_TEXTURE_SWIZZLE_B:
 
  222             case GL_TEXTURE_SWIZZLE_A:
 
  232         switch(GLenum(coord))
 
  234             case GL_TEXTURE_SWIZZLE_R:
 
  236             case GL_TEXTURE_SWIZZLE_G:
 
  238             case GL_TEXTURE_SWIZZLE_B:
 
  240             case GL_TEXTURE_SWIZZLE_A:
 
  250 #endif // include guard 
TextureSwizzleTuple & Green(TextureSwizzle mode)
Synonym for SwizzleG. 
Definition: texture_swizzle.hpp:144
 
TextureSwizzleTuple & SwizzleR(TextureSwizzle mode)
Sets the swizzle value for red component. 
Definition: texture_swizzle.hpp:106
 
TextureSwizzle
Texture swizzle enumeration. 
Definition: texture_swizzle.hpp:53
 
TextureSwizzleTuple & SwizzleG(TextureSwizzle mode)
Sets the swizzle value for green component. 
Definition: texture_swizzle.hpp:131
 
TextureSwizzle Alpha(void) const 
Synonym for SwizzleA. 
Definition: texture_swizzle.hpp:200
 
TextureSwizzleTuple & Alpha(TextureSwizzle mode)
Synonym for SwizzleA. 
Definition: texture_swizzle.hpp:194
 
TextureSwizzle Red(void) const 
Synonym for SwizzleR. 
Definition: texture_swizzle.hpp:125
 
TextureSwizzle SwizzleR(void) const 
Returns the swizzle value for red component. 
Definition: texture_swizzle.hpp:113
 
Enumeration-related declarations. 
 
TextureSwizzle SwizzleB(void) const 
Returns the swizzle value for blue component. 
Definition: texture_swizzle.hpp:163
 
A tuple of swizzle values for all texture components. 
Definition: texture_swizzle.hpp:67
 
TextureSwizzleTuple & Swizzle(TextureSwizzleCoord coord, TextureSwizzle mode)
Sets the swizzle value for the specified component/coord. 
Definition: texture_swizzle.hpp:206
 
TextureSwizzleTuple & Blue(TextureSwizzle mode)
Synonym for SwizzleB. 
Definition: texture_swizzle.hpp:169
 
TextureSwizzleTuple & SwizzleB(TextureSwizzle mode)
Sets the swizzle value for blue component. 
Definition: texture_swizzle.hpp:156
 
TextureSwizzleTuple(TextureSwizzle mode_r, TextureSwizzle mode_g, TextureSwizzle mode_b, TextureSwizzle mode_a)
Specifies modes for all components/coords. 
Definition: texture_swizzle.hpp:92
 
TextureSwizzleTuple(void)
Default construction. 
Definition: texture_swizzle.hpp:83
 
TextureSwizzle Green(void) const 
Synonym for SwizzleG. 
Definition: texture_swizzle.hpp:150
 
TextureSwizzleTuple & Red(TextureSwizzle mode)
Synonym for SwizzleR. 
Definition: texture_swizzle.hpp:119
 
TextureSwizzle Blue(void) const 
Synonym for SwizzleB. 
Definition: texture_swizzle.hpp:175
 
TextureSwizzleCoord
Texture swizzle parameter coordinate enumeration. 
Definition: texture_swizzle.hpp:29
 
TextureSwizzle SwizzleA(void) const 
Returns the swizzle value for alpha component. 
Definition: texture_swizzle.hpp:188
 
TextureSwizzleTuple & SwizzleA(TextureSwizzle mode)
Sets the swizzle value for alpha component. 
Definition: texture_swizzle.hpp:181
 
TextureSwizzle SwizzleG(void) const 
Returns the swizzle value for green component. 
Definition: texture_swizzle.hpp:138
 
TextureSwizzle Swizzle(TextureSwizzleCoord coord) const 
Returns the swizzle value for the specified component/coord. 
Definition: texture_swizzle.hpp:230