OpenGL ES SDK for Android ARM Developer Center
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GLFFT::Texture Class Reference

#include <glfft_common.hpp>

Public Member Functions

 Texture ()=default
 
 ~Texture ()
 
 Texture (GLuint tex)
 
Textureoperator= (Texture &&texture)
 
 Texture (Texture &&texture)
 
void init (unsigned width, unsigned height, unsigned levels, GLenum internal_format, GLenum wrap_s=GL_REPEAT, GLenum wrap_t=GL_REPEAT, GLenum min_filter=GL_NEAREST, GLenum mag_filter=GL_NEAREST)
 
void upload (const void *data, GLenum format, GLenum type, unsigned x_off, unsigned y_off, unsigned width, unsigned height)
 
GLuint get () const
 

Private Attributes

GLuint name = 0
 

Detailed Description

Definition at line 183 of file glfft_common.hpp.

Constructor & Destructor Documentation

GLFFT::Texture::Texture ( )
default
Texture::~Texture ( )

Definition at line 24 of file glfft_common.cpp.

Texture::Texture ( GLuint  tex)

Definition at line 32 of file glfft_common.cpp.

Texture::Texture ( Texture &&  texture)

Definition at line 80 of file glfft_common.cpp.

Member Function Documentation

GLuint GLFFT::Texture::get ( ) const
inline

Definition at line 199 of file glfft_common.hpp.

void Texture::init ( unsigned  width,
unsigned  height,
unsigned  levels,
GLenum  internal_format,
GLenum  wrap_s = GL_REPEAT,
GLenum  wrap_t = GL_REPEAT,
GLenum  min_filter = GL_NEAREST,
GLenum  mag_filter = GL_NEAREST 
)

Definition at line 36 of file glfft_common.cpp.

Texture & Texture::operator= ( Texture &&  texture)

Definition at line 66 of file glfft_common.cpp.

void Texture::upload ( const void data,
GLenum  format,
GLenum  type,
unsigned  x_off,
unsigned  y_off,
unsigned  width,
unsigned  height 
)

Definition at line 53 of file glfft_common.cpp.

Member Data Documentation

GLuint GLFFT::Texture::name = 0
private

Definition at line 202 of file glfft_common.hpp.


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