PeriDyno 0.8.2
Public Member Functions | Public Attributes | List of all members
gl::Texture2D Class Reference

#include <Texture.h>

Inheritance diagram for gl::Texture2D:
Inheritance graph
[legend]
Collaboration diagram for gl::Texture2D:
Collaboration graph
[legend]

Public Member Functions

 Texture2D ()
 
virtual void create () override
 
virtual void release () override
 
virtual void bind ()
 
virtual void unbind ()
 
virtual void bind (int slot)
 
virtual void dump (void *pixels)
 
virtual void resize (int w, int h)
 
virtual void load (int w, int h, void *data)
 
virtual void clear (void *value)
 
void genMipmap ()
 

Public Attributes

unsigned int target = -1
 
unsigned int internalFormat
 
unsigned int format
 
unsigned int type
 
unsigned int minFilter
 
unsigned int maxFilter
 
- Public Attributes inherited from gl::Object
unsigned int id = 0xFFFFFFFF
 

Additional Inherited Members

- Protected Member Functions inherited from gl::Object
virtual void create ()=0
 
virtual void release ()=0
 
virtual bool isValid () const
 
 Object ()=default
 
virtual ~Object ()=default
 
 Object (const Object &)=delete
 
Objectoperator= (const Object &)=delete
 

Detailed Description

Definition at line 23 of file Texture.h.

Constructor & Destructor Documentation

◆ Texture2D()

gl::Texture2D::Texture2D ( )

Definition at line 10 of file Texture.cpp.

Member Function Documentation

◆ bind() [1/2]

void gl::Texture2D::bind ( )
virtual

Definition at line 45 of file Texture.cpp.

Here is the caller graph for this function:

◆ bind() [2/2]

void gl::Texture2D::bind ( int  slot)
virtual

Definition at line 50 of file Texture.cpp.

◆ clear()

void gl::Texture2D::clear ( void *  value)
virtual

Definition at line 86 of file Texture.cpp.

Here is the caller graph for this function:

◆ create()

void gl::Texture2D::create ( )
overridevirtual

Implements gl::Object.

Definition at line 23 of file Texture.cpp.

Here is the caller graph for this function:

◆ dump()

void gl::Texture2D::dump ( void *  pixels)
virtual

Definition at line 62 of file Texture.cpp.

◆ genMipmap()

void gl::Texture2D::genMipmap ( )

Definition at line 92 of file Texture.cpp.

Here is the caller graph for this function:

◆ load()

void gl::Texture2D::load ( int  w,
int  h,
void *  data 
)
virtual

Definition at line 78 of file Texture.cpp.

Here is the caller graph for this function:

◆ release()

void gl::Texture2D::release ( )
overridevirtual

Implements gl::Object.

Definition at line 38 of file Texture.cpp.

Here is the caller graph for this function:

◆ resize()

void gl::Texture2D::resize ( int  w,
int  h 
)
virtual

Definition at line 70 of file Texture.cpp.

Here is the caller graph for this function:

◆ unbind()

void gl::Texture2D::unbind ( )
virtual

Definition at line 56 of file Texture.cpp.

Member Data Documentation

◆ format

unsigned int gl::Texture2D::format

Definition at line 51 of file Texture.h.

◆ internalFormat

unsigned int gl::Texture2D::internalFormat

Definition at line 50 of file Texture.h.

◆ maxFilter

unsigned int gl::Texture2D::maxFilter

Definition at line 55 of file Texture.h.

◆ minFilter

unsigned int gl::Texture2D::minFilter

Definition at line 54 of file Texture.h.

◆ target

unsigned int gl::Texture2D::target = -1

Definition at line 48 of file Texture.h.

◆ type

unsigned int gl::Texture2D::type

Definition at line 52 of file Texture.h.


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