moGL
travis-test-3
Modern OpenGL wrapper, thin C++14 header-only layer on top of the OpenGL 4.5+ core spec
|
#include <texture.hpp>
Public Member Functions | |
Texture (GLenum target) | |
~Texture () | |
Texture (const Texture &other) | |
Texture & | operator= (const Texture &other) |
Texture (Texture &&other) | |
void | bind (GLuint unit) |
void | setBuffer (GLenum internalformat, GLuint buffer) |
void | setBufferRange (GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size) |
void | setStorage1D (GLsizei levels, GLenum internalformat, GLsizei width) |
void | setStorage2D (GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height) |
void | setStorage3D (GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth) |
void | setStorage2DMultisample (GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations) |
void | setStorage3DMultisample (GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations) |
void | setSubImage1D (GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels) |
void | setSubImage2D (GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels) |
void | setSubImage3D (GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels) |
void | setCompressedSubImage1D (GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data) |
void | setCompressedSubImage2D (GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data) |
void | setCompressedSubImage3D (GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data) |
void | copySubImage1D (GLint level, GLint xoffset, GLint x, GLint y, GLsizei width) |
void | copySubImage2D (GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) |
void | copySubImage3D (GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height) |
void | invalidate (GLint level=0) |
void | invalidateSubImage (GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth) |
void | generateMipmap () |
void | getImage (GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels) |
void | getCompressedImage (GLint level, GLsizei bufSize, void *pixels) |
GLenum | getTarget () const |
template<class T > | |
void | get (GLenum property, T *value) |
template<class T > | |
T | get (GLenum property) |
template<class T > | |
void | get (GLint level, GLenum property, T *value) |
template<class T > | |
T | get (GLint level, GLenum property) |
template<class T > | |
void | set (GLenum property, T value) |
bool | isHandleValid () const override final |
template<> | |
void | get (GLenum property, GLint *value) |
template<> | |
void | get (GLenum property, GLfloat *value) |
template<> | |
GLint | get (GLenum property) |
template<> | |
GLfloat | get (GLenum property) |
template<> | |
void | get (GLint level, GLenum property, GLint *value) |
template<> | |
void | get (GLint level, GLenum property, GLfloat *value) |
template<> | |
GLint | get (GLint level, GLenum property) |
template<> | |
GLfloat | get (GLint level, GLenum property) |
template<> | |
void | set (GLenum property, GLint value) |
template<> | |
void | set (GLenum property, GLenum value) |
template<> | |
void | set (GLenum property, GLfloat value) |
template<> | |
void | set (GLenum property, GLint *value) |
template<> | |
void | set (GLenum property, GLfloat *value) |
template<> | |
void | set (GLenum property, const GLint *value) |
template<> | |
void | set (GLenum property, const GLfloat *value) |
mogl::Texture::Texture | ( | GLenum | target | ) | [inline] |
mogl::Texture::~Texture | ( | ) | [inline] |
mogl::Texture::Texture | ( | const Texture & | other | ) |
mogl::Texture::Texture | ( | Texture && | other | ) |
void mogl::Texture::bind | ( | GLuint | unit | ) | [inline] |
void mogl::Texture::copySubImage1D | ( | GLint | level, |
GLint | xoffset, | ||
GLint | x, | ||
GLint | y, | ||
GLsizei | width | ||
) | [inline] |
void mogl::Texture::copySubImage2D | ( | GLint | level, |
GLint | xoffset, | ||
GLint | yoffset, | ||
GLint | x, | ||
GLint | y, | ||
GLsizei | width, | ||
GLsizei | height | ||
) | [inline] |
void mogl::Texture::copySubImage3D | ( | GLint | level, |
GLint | xoffset, | ||
GLint | yoffset, | ||
GLint | zoffset, | ||
GLint | x, | ||
GLint | y, | ||
GLsizei | width, | ||
GLsizei | height | ||
) | [inline] |
void mogl::Texture::generateMipmap | ( | ) | [inline] |
void mogl::Texture::get | ( | GLenum | property, |
T * | value | ||
) |
T mogl::Texture::get | ( | GLenum | property | ) |
void mogl::Texture::get | ( | GLint | level, |
GLenum | property, | ||
T * | value | ||
) |
T mogl::Texture::get | ( | GLint | level, |
GLenum | property | ||
) |
void mogl::Texture::get | ( | GLenum | property, |
GLint * | value | ||
) | [inline] |
void mogl::Texture::get | ( | GLenum | property, |
GLfloat * | value | ||
) | [inline] |
GLint mogl::Texture::get | ( | GLenum | property | ) | [inline] |
GLfloat mogl::Texture::get | ( | GLenum | property | ) | [inline] |
void mogl::Texture::get | ( | GLint | level, |
GLenum | property, | ||
GLint * | value | ||
) | [inline] |
void mogl::Texture::get | ( | GLint | level, |
GLenum | property, | ||
GLfloat * | value | ||
) | [inline] |
GLint mogl::Texture::get | ( | GLint | level, |
GLenum | property | ||
) | [inline] |
GLfloat mogl::Texture::get | ( | GLint | level, |
GLenum | property | ||
) | [inline] |
void mogl::Texture::getCompressedImage | ( | GLint | level, |
GLsizei | bufSize, | ||
void * | pixels | ||
) | [inline] |
void mogl::Texture::getImage | ( | GLint | level, |
GLenum | format, | ||
GLenum | type, | ||
GLsizei | bufSize, | ||
void * | pixels | ||
) | [inline] |
GLenum mogl::Texture::getTarget | ( | ) | const [inline] |
void mogl::Texture::invalidate | ( | GLint | level = 0 | ) | [inline] |
void mogl::Texture::invalidateSubImage | ( | GLint | level, |
GLint | xoffset, | ||
GLint | yoffset, | ||
GLint | zoffset, | ||
GLsizei | width, | ||
GLsizei | height, | ||
GLsizei | depth | ||
) | [inline] |
bool mogl::Texture::isHandleValid | ( | ) | const [inline, override, virtual] |
Implements mogl::Handle< GLuint >.
void mogl::Texture::set | ( | GLenum | property, |
T | value | ||
) |
void mogl::Texture::set | ( | GLenum | property, |
GLint | value | ||
) | [inline] |
void mogl::Texture::set | ( | GLenum | property, |
GLenum | value | ||
) | [inline] |
void mogl::Texture::set | ( | GLenum | property, |
GLfloat | value | ||
) | [inline] |
void mogl::Texture::set | ( | GLenum | property, |
GLint * | value | ||
) | [inline] |
void mogl::Texture::set | ( | GLenum | property, |
GLfloat * | value | ||
) | [inline] |
void mogl::Texture::set | ( | GLenum | property, |
const GLint * | value | ||
) | [inline] |
void mogl::Texture::set | ( | GLenum | property, |
const GLfloat * | value | ||
) | [inline] |
void mogl::Texture::setBuffer | ( | GLenum | internalformat, |
GLuint | buffer | ||
) | [inline] |
void mogl::Texture::setBufferRange | ( | GLenum | internalformat, |
GLuint | buffer, | ||
GLintptr | offset, | ||
GLsizeiptr | size | ||
) | [inline] |
void mogl::Texture::setCompressedSubImage1D | ( | GLint | level, |
GLint | xoffset, | ||
GLsizei | width, | ||
GLenum | format, | ||
GLsizei | imageSize, | ||
const void * | data | ||
) | [inline] |
void mogl::Texture::setCompressedSubImage2D | ( | GLint | level, |
GLint | xoffset, | ||
GLint | yoffset, | ||
GLsizei | width, | ||
GLsizei | height, | ||
GLenum | format, | ||
GLsizei | imageSize, | ||
const void * | data | ||
) | [inline] |
void mogl::Texture::setCompressedSubImage3D | ( | GLint | level, |
GLint | xoffset, | ||
GLint | yoffset, | ||
GLint | zoffset, | ||
GLsizei | width, | ||
GLsizei | height, | ||
GLsizei | depth, | ||
GLenum | format, | ||
GLsizei | imageSize, | ||
const void * | data | ||
) | [inline] |
void mogl::Texture::setStorage1D | ( | GLsizei | levels, |
GLenum | internalformat, | ||
GLsizei | width | ||
) | [inline] |
void mogl::Texture::setStorage2D | ( | GLsizei | levels, |
GLenum | internalformat, | ||
GLsizei | width, | ||
GLsizei | height | ||
) | [inline] |
void mogl::Texture::setStorage2DMultisample | ( | GLsizei | samples, |
GLenum | internalformat, | ||
GLsizei | width, | ||
GLsizei | height, | ||
GLboolean | fixedsamplelocations | ||
) | [inline] |
void mogl::Texture::setStorage3D | ( | GLsizei | levels, |
GLenum | internalformat, | ||
GLsizei | width, | ||
GLsizei | height, | ||
GLsizei | depth | ||
) | [inline] |
void mogl::Texture::setStorage3DMultisample | ( | GLsizei | samples, |
GLenum | internalformat, | ||
GLsizei | width, | ||
GLsizei | height, | ||
GLsizei | depth, | ||
GLboolean | fixedsamplelocations | ||
) | [inline] |
void mogl::Texture::setSubImage1D | ( | GLint | level, |
GLint | xoffset, | ||
GLsizei | width, | ||
GLenum | format, | ||
GLenum | type, | ||
const void * | pixels | ||
) | [inline] |
void mogl::Texture::setSubImage2D | ( | GLint | level, |
GLint | xoffset, | ||
GLint | yoffset, | ||
GLsizei | width, | ||
GLsizei | height, | ||
GLenum | format, | ||
GLenum | type, | ||
const void * | pixels | ||
) | [inline] |
void mogl::Texture::setSubImage3D | ( | GLint | level, |
GLint | xoffset, | ||
GLint | yoffset, | ||
GLint | zoffset, | ||
GLsizei | width, | ||
GLsizei | height, | ||
GLsizei | depth, | ||
GLenum | format, | ||
GLenum | type, | ||
const void * | pixels | ||
) | [inline] |