moGL  travis-test-3
Modern OpenGL wrapper, thin C++14 header-only layer on top of the OpenGL 4.5+ core spec
 All Classes Namespaces Files Functions Variables Defines
Public Member Functions
mogl::Texture Class Reference

#include <texture.hpp>

Inheritance diagram for mogl::Texture:
Inheritance graph
[legend]
Collaboration diagram for mogl::Texture:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Texture (GLenum target)
 ~Texture ()
 Texture (const Texture &other)
Textureoperator= (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 >
get (GLenum property)
template<class T >
void get (GLint level, GLenum property, T *value)
template<class 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)

Constructor & Destructor Documentation

mogl::Texture::Texture ( GLenum  target) [inline]
mogl::Texture::Texture ( const Texture other)

Member Function Documentation

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]
template<class T >
void mogl::Texture::get ( GLenum  property,
T *  value 
)
template<class T >
T mogl::Texture::get ( GLenum  property)
template<class T >
void mogl::Texture::get ( GLint  level,
GLenum  property,
T *  value 
)
template<class T >
T mogl::Texture::get ( GLint  level,
GLenum  property 
)
template<>
void mogl::Texture::get ( GLenum  property,
GLint *  value 
) [inline]
template<>
void mogl::Texture::get ( GLenum  property,
GLfloat *  value 
) [inline]
template<>
GLint mogl::Texture::get ( GLenum  property) [inline]
template<>
GLfloat mogl::Texture::get ( GLenum  property) [inline]
template<>
void mogl::Texture::get ( GLint  level,
GLenum  property,
GLint *  value 
) [inline]
template<>
void mogl::Texture::get ( GLint  level,
GLenum  property,
GLfloat *  value 
) [inline]
template<>
GLint mogl::Texture::get ( GLint  level,
GLenum  property 
) [inline]
template<>
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]
Texture& mogl::Texture::operator= ( const Texture other)
template<class T >
void mogl::Texture::set ( GLenum  property,
value 
)
template<>
void mogl::Texture::set ( GLenum  property,
GLint  value 
) [inline]
template<>
void mogl::Texture::set ( GLenum  property,
GLenum  value 
) [inline]
template<>
void mogl::Texture::set ( GLenum  property,
GLfloat  value 
) [inline]
template<>
void mogl::Texture::set ( GLenum  property,
GLint *  value 
) [inline]
template<>
void mogl::Texture::set ( GLenum  property,
GLfloat *  value 
) [inline]
template<>
void mogl::Texture::set ( GLenum  property,
const GLint *  value 
) [inline]
template<>
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]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Defines