|
jGL
|
#include <glTexture.h>


Public Member Functions | |
| glTexture2DByte (std::filesystem::path imageFile) | |
| glTexture2DByte (std::vector< std::byte > data) | |
| glTexture2DByte (std::vector< std::byte > pixels, int width, int height) | |
| void | create (int width, int height) |
| void | upload (std::vector< std::byte > pixels) |
Public Member Functions inherited from jGL::GL::glTexture | |
| glTexture () | |
| ~glTexture () | |
| virtual void | upload (std::vector< std::byte > *data) |
| void | bind () |
| void | unbind () |
| void | bind (unsigned binding) |
| void | generateMipMaps () |
Public Member Functions inherited from jGL::Texture | |
| Texture () | |
| virtual | ~Texture ()=default |
| bool | operator== (const Texture &rhs) const |
| const Id & | getId () const |
| const glm::ivec3 | size () const |
Additional Inherited Members | |
Public Types inherited from jGL::Texture | |
| enum class | Type { RGB , RGBA } |
Protected Member Functions inherited from jGL::GL::glTexture | |
| std::vector< std::byte > | load_image (std::filesystem::path imageFilePath) |
| std::vector< std::byte > | load_image (std::vector< std::byte > imageFile) |
Protected Attributes inherited from jGL::GL::glTexture | |
| GLuint | id |
| unsigned | textureUnit |
Protected Attributes inherited from jGL::Texture | |
| int | width |
| int | height |
| int | channels |
| Id | id |
|
inline |
|
inline |
|
inline |
| void jGL::GL::glTexture2DByte::create | ( | int | width, |
| int | height | ||
| ) |
| void jGL::GL::glTexture2DByte::upload | ( | std::vector< std::byte > | pixels | ) |