![]() |
galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
|
Texture sampler definitions. More...
#include <Sampler.hpp>
Collaboration diagram for galaxy::Sampler:Public Member Functions | |
| Sampler () noexcept | |
| Constructor. | |
| Sampler (Sampler &&) noexcept | |
| Move constructor. | |
| Sampler & | operator= (Sampler &&) noexcept |
| Move assignment operator. | |
| ~Sampler () noexcept | |
| Destructor. | |
| void | set (const unsigned int param, const int value) const |
| Set a sampler field. | |
| void | setf (const unsigned int param, const float value) const |
| Set a float sampler field. | |
| void | bind (const unsigned int texture_unit) const |
| Bind sampler. | |
| void | unbind (const unsigned int texture_unit) const |
| Unbind sampler. | |
| unsigned int | id () const noexcept |
| Get program id. | |
Private Member Functions | |
| Sampler (const Sampler &)=delete | |
| Copy constructor. | |
| Sampler & | operator= (const Sampler &)=delete |
| Copy assignment operator. | |
Private Attributes | |
| unsigned int | m_id |
| OpenGL handle. | |
Texture sampler definitions.
Definition at line 16 of file Sampler.hpp.
|
noexcept |
Constructor.
Definition at line 14 of file Sampler.cpp.
|
noexcept |
Move constructor.
Definition at line 20 of file Sampler.cpp.
|
noexcept |
Destructor.
Definition at line 47 of file Sampler.cpp.
|
privatedelete |
Copy constructor.
Move assignment operator.
Definition at line 31 of file Sampler.cpp.
| void galaxy::Sampler::set | ( | const unsigned int | param, |
| const int | value ) const |
Set a sampler field.
| param | Texture parameter sampler name. |
| value | Value of the parameter. |
Definition at line 52 of file Sampler.cpp.
Here is the caller graph for this function:| void galaxy::Sampler::setf | ( | const unsigned int | param, |
| const float | value ) const |
Set a float sampler field.
| param | Texture parameter sampler name. |
| value | Value of the parameter. |
Definition at line 57 of file Sampler.cpp.
Here is the caller graph for this function:| void galaxy::Sampler::bind | ( | const unsigned int | texture_unit | ) | const |
Bind sampler.
Not required with bindless textures.
| texture_unit | Texture at the texture unit to bind to. |
Definition at line 62 of file Sampler.cpp.
Here is the caller graph for this function:| void galaxy::Sampler::unbind | ( | const unsigned int | texture_unit | ) | const |
Unbind sampler.
Not required with bindless textures.
| texture_unit | Texture at the texture unit to unbind from. |
Definition at line 67 of file Sampler.cpp.
Here is the caller graph for this function:
|
nodiscardnoexcept |
Get program id.
Definition at line 72 of file Sampler.cpp.
Here is the caller graph for this function:
|
private |
OpenGL handle.
Definition at line 96 of file Sampler.hpp.