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