Hymn to Beauty
C++ 3D Engine
Video::OpenGLSampler Class Reference

OpenGL implementation of Sampler. More...

#include <OpenGLSampler.hpp>

Inheritance diagram for Video::OpenGLSampler:
Video::Sampler

Public Member Functions

 OpenGLSampler (Filter filter, Clamping clamping)
 Create new OpenGL sampler. More...
 
 ~OpenGLSampler () final
 Destructor. More...
 
GLuint GetSampler (bool mipmap) const
 Get the sampler. More...
 
- Public Member Functions inherited from Video::Sampler
 Sampler ()
 Create a new sampler. More...
 
virtual ~Sampler ()
 Destructor. More...
 

Additional Inherited Members

- Public Types inherited from Video::Sampler
enum class  Filter { NEAREST , LINEAR , COUNT }
 The interpolation to apply. More...
 
enum class  Clamping { REPEAT , CLAMP_TO_EDGE , COUNT }
 How to handle sampling outside the texture dimensions. More...
 

Detailed Description

OpenGL implementation of Sampler.

Constructor & Destructor Documentation

◆ OpenGLSampler()

Video::OpenGLSampler::OpenGLSampler ( Filter  filter,
Clamping  clamping 
)

Create new OpenGL sampler.

Parameters
filterThe interpolation to apply.
clampingHow to handle sampling outside the texture dimensions.

◆ ~OpenGLSampler()

Video::OpenGLSampler::~OpenGLSampler ( )
final

Destructor.

Member Function Documentation

◆ GetSampler()

GLuint Video::OpenGLSampler::GetSampler ( bool  mipmap) const

Get the sampler.

Parameters
mipmapWhether mipmaps should be enabled.
Returns
The sampler.

The documentation for this class was generated from the following files: