AnimEngine
Public Member Functions | Protected Member Functions | Friends | List of all members
OOOGL::SimpleTexture2D Class Reference
Inheritance diagram for OOOGL::SimpleTexture2D:
Inheritance graph
[legend]
Collaboration diagram for OOOGL::SimpleTexture2D:
Collaboration graph
[legend]

Public Member Functions

 SimpleTexture2D (const Image &image, GLenum internal_format=GL_RGB8, GLenum format=GL_RGB, GLenum type=GL_UNSIGNED_BYTE)
 
 SimpleTexture2D (GLuint x, GLuint y, GLenum internal_format=GL_RGB8, GLenum format=GL_RGB, GLenum type=GL_UNSIGNED_BYTE)
 
void makeTextureFromImage (const Image &image, GLenum internal_format=GL_RGB8, GLenum format=GL_RGB, GLenum type=GL_UNSIGNED_BYTE)
 
void copyDataFromImage (const Image &image, int x_offset, int y_offset)
 
void makeEmpty2DTexture (GLuint x, GLuint y, GLenum internal_format=GL_RGB8, GLenum format=GL_RGB, GLenum type=GL_UNSIGNED_BYTE, GLenum min_filter=GL_LINEAR, GLenum mag_filter=GL_LINEAR, bool skip_zero_fill=false)
 
void fillSolid (const GLubyte *sample)
 
ImageextractImage () const
 
ImageextractImage (int channels) const
 
- Public Member Functions inherited from OOOGL::Texture
virtual AttachmentType getAttachmentType () const override
 
virtual void copyParametersFrom (const Texture &other)
 
const GLuint getXdim () const
 
const GLuint getYdim () const
 
const GLuint getZdim () const
 
const GLenum * getTextureExtensionMode () const
 
const GLenum getDepthStencilMode () const
 
const GLenum getMinFilter () const
 
const GLenum getMagFilter () const
 
const GLenum getFormat () const
 
const GLenum getInternalFormat () const
 
const GLenum getType () const
 
void setTextureExtensionMode (GLenum mode)
 
void setTextureExtensionModeTuple (const GLenum *tuple)
 
void setTextureExtensionMode (GLenum wrapS, GLenum wrapT, GLenum wrapR)
 
void setDepthStencilMode (GLenum mode)
 
void setMinFilter (GLenum filter)
 
void setMagFilter (GLenum filter)
 
- Public Member Functions inherited from OOOGL::FramebufferAttachable
 FramebufferAttachable (OglObjectDestroyer destroyer)
 
- Public Member Functions inherited from OOOGL::OglObject
 OglObject (OglObjectDestroyer destroyer)
 
- Public Member Functions inherited from OOOGL::PersistentOglName
 PersistentOglName (OglObjectDestroyer destroyer)
 
 PersistentOglName (GLuint id, OglObjectDestroyer destroyer)
 
GLuint * getIdPtr ()
 
const GLuint * getIdPtr () const
 
virtual GLuint getName () const override
 
GLuint getNameDirect () const
 
virtual bool isPossessible () const override
 
virtual void makeZombie ()
 
virtual bool isZombie () const
 
- Public Member Functions inherited from OOOGL::OglNameInterface
 operator GLuint () const
 

Protected Member Functions

 SimpleTexture2D (const PersistentOglName &zombie)
 
- Protected Member Functions inherited from OOOGL::Texture
 Texture (const PersistentOglName &zombie)
 
virtual void initParams ()
 
- Protected Member Functions inherited from OOOGL::FramebufferAttachable
 FramebufferAttachable (const PersistentOglName &zombie)
 
- Protected Member Functions inherited from OOOGL::OglObject
 OglObject (const PersistentOglName &zombie)
 

Friends

class OptionalGlObject< SimpleTexture2D >
 

Additional Inherited Members

- Public Types inherited from OOOGL::FramebufferAttachable
enum  AttachmentType : GLenum { ATTACHMENT_TEXTURE = GL_TEXTURE_2D, ATTACHMENT_3DTEXTURE = GL_TEXTURE_3D, ATTACHMENT_RENDERBUFFER = GL_RENDERBUFFER, ATTACHMENT_ERROR }
 
- Static Protected Member Functions inherited from OOOGL::Texture
static void _destroyGLTexture (const GLuint *self)
 
- Protected Attributes inherited from OOOGL::Texture
GLint x = 0
 
GLint y = 0
 
GLint z = 0
 
GLenum internal_format = 0
 
GLenum texture_format = 0
 
GLenum texture_type = 0
 
GLenum texture_extension_mode [3] = { GL_REPEAT, GL_REPEAT, GL_REPEAT }
 
GLenum depth_stencil_mode = GL_DEPTH_COMPONENT
 
GLenum min_filter = GL_LINEAR
 
GLenum mag_filter = GL_LINEAR
 

The documentation for this class was generated from the following files: