API Documentation
TextureAddressMode.h
1 // TextureAddressMode.h
3 //
5 
6 namespace nkGraphics
7 {
12  {
13  MODE_WRAP = 1,
14  MODE_MIRROR = 2,
15  MODE_CLAMP = 3,
16  MODE_BORDER = 4,
17  MODE_MIRROR_ONCE = 5
18  } ;
19 
24  {
25  public :
26 
27  // Conversions
48  static TEXTURE_ADDRESS_MODE fromIndex (unsigned int value) ;
49  } ;
50 }
nkGraphics::TEXTURE_ADDRESS_MODE::MODE_MIRROR
@ MODE_MIRROR
Mirrors the coordinates, repeating them backwards from their last iteration when outside of [0,...
nkGraphics::TEXTURE_ADDRESS_MODE::MODE_BORDER
@ MODE_BORDER
Uses the border color for any value outside of [0, 1].
nkGraphics::TextureAddressModeUtils::fromIndex
static TEXTURE_ADDRESS_MODE fromIndex(unsigned int value)
nkGraphics::TextureAddressModeUtils
Offers utility to work with the associated enumeration.
Definition: TextureAddressMode.h:24
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkGraphics::TEXTURE_ADDRESS_MODE::MODE_CLAMP
@ MODE_CLAMP
Clamps the coordinates, forcing them to 0 if negative, and to 1 if bigger.
nkGraphics::TEXTURE_ADDRESS_MODE::MODE_WRAP
@ MODE_WRAP
Wraps the coordinates, repeating them when outside of [0, 1].
nkGraphics::TEXTURE_ADDRESS_MODE
TEXTURE_ADDRESS_MODE
Available address mode for the samplers.
Definition: TextureAddressMode.h:12
nkGraphics::TEXTURE_ADDRESS_MODE::MODE_MIRROR_ONCE
@ MODE_MIRROR_ONCE
Uses the mirror behaviour, but only once.
nkGraphics::TextureAddressModeUtils::toString
static nkMemory::StringView toString(TEXTURE_ADDRESS_MODE value)
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::TextureAddressModeUtils::fromString
static TEXTURE_ADDRESS_MODE fromString(nkMemory::StringView value)