![]() |
GLW
Computer Graphics Structures library
|
Two dimensional texture. Used mostly to store color images or results of internal rendering. More...
Public Member Functions | |
| Texture2D (const uint32_t width, const uint32_t height, const gl::GLenum internal_format=gl::GLenum::GL_RGBA8) | |
| Creates a single 2D texture. | |
| Texture2D (const uint32_t width, const uint32_t height, const uint32_t layer_count, const gl::GLenum internal_format) | |
| Creates array of 2D textures, represented as layers. | |
| uint32_t | GetWidth () |
| uint32_t | GetHeight () |
| glm::uvec2 | GetResolution () |
| uint32_t | GetLayerCount () |
| void | SetData (const gl::GLenum data_format, const gl::GLenum data_type, const void *data_ptr) |
| void | SetDataLayer (const uint32_t layer, const gl::GLenum data_format, const gl::GLenum data_type, const void *data_ptr) |
| bool | SaveToFile (const std::string &image_file_name) |
Public Member Functions inherited from glw::Texture | |
| void | Initialize (const gl::GLenum internal_format) |
| void | Enable () |
| void | Disable () |
| void | Unbind () |
| void | Bind () |
| void | Bind (const uint8_t binding_unit) |
| gl::GLuint | GetID () |
| gl::GLenum | GetInternalFormat () |
| void | SetFiltering (const Filtering mag_min) |
| virtual void | SetFiltering (const Filtering mag, const Filtering min) |
| void | SetWrapping (const Wrapping wrap_st) |
| virtual void | SetWrapping (const Wrapping wrap_s, const Wrapping wrap_t) |
| virtual void | SetParameteri (const gl::GLenum pname, const gl::GLint param) |
| void | SetParameterfv (const gl::GLenum pname, const gl::GLfloat *param) |
Protected Member Functions | |
| gl::GLenum | GetTarget () override |
| void | ReserveMemory () override |
Two dimensional texture. Used mostly to store color images or results of internal rendering.