|
| | ~Texture () |
| |
| | Texture (Texture &&o) |
| |
| uint32_t | w () const |
| |
| uint32_t | h () const |
| |
| void | bind (GLenum target=GL_TEXTURE_2D) |
| |
| void | unbind (GLenum target=GL_TEXTURE_2D) |
| |
| ErrCode | uploadImage (int width, int height, void *data, GLenum type=GL_UNSIGNED_BYTE, int internalFormat=GL_RGBA, GLenum format=GL_RGBA, std::function< void()> preParam=nullptr, std::function< void()> postParam=nullptr) |
| |
| ErrCode | allocateImage (int width, int height, GLenum type, int internalFormat, int format, std::function< void()> preParam=nullptr, std::function< void()> postParam=nullptr) |
| |
| GLuint | get () const |
| |
| void | reset () |
| |
| | ~Texture () |
| |
| | Texture (Texture &&o) |
| |
| uint32_t | w () const |
| |
| uint32_t | h () const |
| |
| void | bind (GLenum target=GL_TEXTURE_2D) |
| |
| void | unbind (GLenum target=GL_TEXTURE_2D) |
| |
| ErrCode | uploadImage (int width, int height, void *data, GLenum type=GL_UNSIGNED_BYTE, int internalFormat=GL_RGBA, GLenum format=GL_RGBA, std::function< void()> preParam=nullptr, std::function< void()> postParam=nullptr) |
| |
| ErrCode | allocateImage (int width, int height, GLenum type, int internalFormat, int format, std::function< void()> preParam=nullptr, std::function< void()> postParam=nullptr) |
| |
| GLuint | get () const |
| |
| void | reset () |
| |
◆ ~Texture() [1/2]
| ds3d::gl::Texture::~Texture |
( |
| ) |
|
|
inline |
◆ Texture() [1/2]
| ds3d::gl::Texture::Texture |
( |
Texture && |
o | ) |
|
◆ ~Texture() [2/2]
| ds3d::gl::Texture::~Texture |
( |
| ) |
|
|
inline |
◆ Texture() [2/2]
| ds3d::gl::Texture::Texture |
( |
Texture && |
o | ) |
|
◆ allocateImage() [1/2]
| ErrCode ds3d::gl::Texture::allocateImage |
( |
int |
width, |
|
|
int |
height, |
|
|
GLenum |
type, |
|
|
int |
internalFormat, |
|
|
int |
format, |
|
|
std::function< void()> |
preParam = nullptr, |
|
|
std::function< void()> |
postParam = nullptr |
|
) |
| |
|
inline |
◆ allocateImage() [2/2]
| ErrCode ds3d::gl::Texture::allocateImage |
( |
int |
width, |
|
|
int |
height, |
|
|
GLenum |
type, |
|
|
int |
internalFormat, |
|
|
int |
format, |
|
|
std::function< void()> |
preParam = nullptr, |
|
|
std::function< void()> |
postParam = nullptr |
|
) |
| |
|
inline |
◆ bind() [1/2]
| void ds3d::gl::Texture::bind |
( |
GLenum |
target = GL_TEXTURE_2D | ) |
|
|
inline |
◆ bind() [2/2]
| void ds3d::gl::Texture::bind |
( |
GLenum |
target = GL_TEXTURE_2D | ) |
|
|
inline |
◆ create() [1/2]
| static Texture* ds3d::gl::Texture::create |
( |
| ) |
|
|
static |
◆ create() [2/2]
| static Texture* ds3d::gl::Texture::create |
( |
| ) |
|
|
static |
◆ get() [1/2]
| GLuint ds3d::gl::Texture::get |
( |
| ) |
const |
|
inline |
◆ get() [2/2]
| GLuint ds3d::gl::Texture::get |
( |
| ) |
const |
|
inline |
◆ h() [1/2]
| uint32_t ds3d::gl::Texture::h |
( |
| ) |
const |
|
inline |
◆ h() [2/2]
| uint32_t ds3d::gl::Texture::h |
( |
| ) |
const |
|
inline |
◆ reset() [1/2]
| void ds3d::gl::Texture::reset |
( |
| ) |
|
◆ reset() [2/2]
| void ds3d::gl::Texture::reset |
( |
| ) |
|
◆ unbind() [1/2]
| void ds3d::gl::Texture::unbind |
( |
GLenum |
target = GL_TEXTURE_2D | ) |
|
|
inline |
◆ unbind() [2/2]
| void ds3d::gl::Texture::unbind |
( |
GLenum |
target = GL_TEXTURE_2D | ) |
|
|
inline |
◆ uploadImage() [1/2]
| ErrCode ds3d::gl::Texture::uploadImage |
( |
int |
width, |
|
|
int |
height, |
|
|
void * |
data, |
|
|
GLenum |
type = GL_UNSIGNED_BYTE, |
|
|
int |
internalFormat = GL_RGBA, |
|
|
GLenum |
format = GL_RGBA, |
|
|
std::function< void()> |
preParam = nullptr, |
|
|
std::function< void()> |
postParam = nullptr |
|
) |
| |
◆ uploadImage() [2/2]
| ErrCode ds3d::gl::Texture::uploadImage |
( |
int |
width, |
|
|
int |
height, |
|
|
void * |
data, |
|
|
GLenum |
type = GL_UNSIGNED_BYTE, |
|
|
int |
internalFormat = GL_RGBA, |
|
|
GLenum |
format = GL_RGBA, |
|
|
std::function< void()> |
preParam = nullptr, |
|
|
std::function< void()> |
postParam = nullptr |
|
) |
| |
◆ w() [1/2]
| uint32_t ds3d::gl::Texture::w |
( |
| ) |
const |
|
inline |
◆ w() [2/2]
| uint32_t ds3d::gl::Texture::w |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: