Magnum/GL/Sampler.h file

Class Magnum::GL::Sampler, enum Magnum::GL::SamplerFilter, Magnum::GL::SamplerMipmap, Magnum::GL::SamplerWrapping, Magnum::GL::SamplerCompareMode, Magnum::GL::SamplerCompareFunction, Magnum::GL::SamplerDepthStencilMode, function Magnum::GL::samplerFilter(), Magnum::GL::samplerMipmap(), Magnum::GL::hasSamplerWrapping(), Magnum::GL::samplerWrapping()

Namespaces

namespace Magnum
Root namespace.
namespace Magnum::GL
OpenGL wrapping layer.

Classes

class Magnum::GL::Sampler
Texture sampler.

Enums

enum class SamplerFilter: GLint { Nearest = GL_NEAREST, Linear = GL_LINEAR }
Texture sampler filtering.
enum class SamplerMipmap: GLint { Base = GL_NEAREST & ~GL_NEAREST, Nearest = GL_NEAREST_MIPMAP_NEAREST & ~GL_NEAREST, Linear = GL_NEAREST_MIPMAP_LINEAR & ~GL_NEAREST }
Texture sampler mip level selection.
enum class SamplerWrapping: GLint { Repeat = GL_REPEAT, MirroredRepeat = GL_MIRRORED_REPEAT, ClampToEdge = GL_CLAMP_TO_EDGE, ClampToBorder = GL_CLAMP_TO_BORDER, MirrorClampToEdge = GL_MIRROR_CLAMP_TO_EDGE }
Texture sampler wrapping.
enum class SamplerCompareMode: GLenum { None = GL_NONE, CompareRefToTexture = GL_COMPARE_REF_TO_TEXTURE }
Depth texture comparison mode.
enum class SamplerCompareFunction: GLenum { Never = GL_NEVER, Always = GL_ALWAYS, Less = GL_LESS, LessOrEqual = GL_LEQUAL, Equal = GL_EQUAL, NotEqual = GL_NOTEQUAL, GreaterOrEqual = GL_GEQUAL, Greater = GL_GREATER }
Texture sampler depth comparison function.
enum class SamplerDepthStencilMode: GLenum { DepthComponent = GL_DEPTH_COMPONENT, StencilIndex = GL_STENCIL_INDEX }
Texture sampler depth/stencil mode.

Functions

auto samplerFilter(Magnum::SamplerFilter filter) -> SamplerFilter
Convert generic texture sampler filter mode to OpenGL filter mode.
auto operator<<(Debug& debug, SamplerFilter value) -> Debug&
Debug output operator.
auto samplerMipmap(Magnum::SamplerMipmap mipmap) -> SamplerMipmap
Convert generic sampler filter mode to OpenGL filter mode.
auto operator<<(Debug& debug, SamplerMipmap value) -> Debug&
Debug output operator.
auto hasSamplerWrapping(Magnum::SamplerWrapping wrapping) -> bool
Check availability of a generic sampler wrapping mode.
auto samplerWrapping(Magnum::SamplerWrapping wrapping) -> SamplerWrapping
Convert generic sampler filter mode to OpenGL filter mode.
template<std::size_t dimensions>
auto samplerWrapping(const Math::Vector<dimensions, Magnum::SamplerWrapping>& wrapping) -> Math::Vector<dimensions, SamplerWrapping>
auto operator<<(Debug& debug, SamplerWrapping value) -> Debug&
Debug output operator.
auto operator<<(Debug& debug, SamplerCompareMode value) -> Debug&
Debug output operator.
auto operator<<(Debug& debug, SamplerCompareFunction value) -> Debug&
Debug output operator.
auto operator<<(Debug& debug, SamplerDepthStencilMode value) -> Debug&
Debug output operator.