Internal opengl texture representation.
More...
#include <texture.hpp>
|
|
void | del () |
| | Delete the internal opengl representation.
|
| |
| void | load_file (const std::string &path) |
| | Load a file from the given path. More...
|
| |
| void | load_color (color col) |
| | Load a 1x1 pixel texture of a given color. More...
|
| |
| void | set_wrap_mode (texture_wrap_mode mode) |
| | Set the texture's wrapping mode. More...
|
| |
| void | set_border_color (color col) |
| | When the texture's wrapping mode is set to CLAMP_TO_BORDER, there needs to be a configured border color. More...
|
| |
| void | set_filter_mode (texture_filter_mode mode) |
| | Sets the texture's filtering mode. More...
|
| |
|
void | bind () |
| | Bind the texture to the opengl context.
|
| |
|
void | unbind () |
| | Unbind the texture.
|
| |
Internal opengl texture representation.
◆ load_color()
| void cat3d::gl::texture::load_color |
( |
color |
col | ) |
|
Load a 1x1 pixel texture of a given color.
- Parameters
-
◆ load_file()
| void cat3d::gl::texture::load_file |
( |
const std::string & |
path | ) |
|
Load a file from the given path.
- Parameters
-
◆ set_border_color()
| void cat3d::gl::texture::set_border_color |
( |
color |
col | ) |
|
When the texture's wrapping mode is set to CLAMP_TO_BORDER, there needs to be a configured border color.
- Parameters
-
| col | The color to set the border to. |
◆ set_filter_mode()
| void cat3d::gl::texture::set_filter_mode |
( |
texture_filter_mode |
mode | ) |
|
Sets the texture's filtering mode.
- Parameters
-
| mode | The texture filtering mode |
◆ set_wrap_mode()
| void cat3d::gl::texture::set_wrap_mode |
( |
texture_wrap_mode |
mode | ) |
|
Set the texture's wrapping mode.
- Parameters
-
The documentation for this class was generated from the following file: