PeriDyno 1.0.0
Loading...
Searching...
No Matches
dyno::XTexture2D< T > Class Template Reference

#include <GPUTexture.h>

Inheritance diagram for dyno::XTexture2D< T >:
Collaboration diagram for dyno::XTexture2D< T >:

Public Member Functions

 XTexture2D ()
 
 ~XTexture2D ()
 
virtual void create () override
 
bool isValid () const
 
void updateGL ()
 
void load (dyno::DArray2D< T > data)
 
- Public Member Functions inherited from dyno::Texture2D
 Texture2D ()
 
virtual void load (int w, int h, void *data)
 
virtual void dump (void *pixels)
 
virtual void resize (int w, int h)
 
void genMipmap ()
 
- Public Member Functions inherited from dyno::Texture
 Texture ()
 
virtual void release () override
 
virtual void bind ()
 
virtual void bind (int slot)
 
virtual void unbind ()
 
virtual void clear (void *value)
 
- Public Member Functions inherited from dyno::Object
 Object ()
 
virtual ~Object ()
 
ObjectId objectId ()
 

Private Attributes

int width = -1
 
int height = -1
 

Additional Inherited Members

- Static Public Member Functions inherited from dyno::Object
static bool registerClass (ClassInfo *ci)
 
static ObjectcreateObject (std::string name)
 
static std::map< std::string, ClassInfo * > * getClassMap ()
 
static ObjectId baseId ()
 Base Id.
 
- Public Attributes inherited from dyno::Texture2D
unsigned int minFilter
 
unsigned int maxFilter
 
- Public Attributes inherited from dyno::Texture
unsigned int target = 0xFFFFFFFF
 
unsigned int internalFormat
 
unsigned int format
 
unsigned int type
 
- Public Attributes inherited from dyno::GraphicsObject
unsigned int id = 0xFFFFFFFF
 
- Protected Member Functions inherited from dyno::GraphicsObject
 GraphicsObject ()=default
 
virtual ~GraphicsObject ()=default
 
 GraphicsObject (const GraphicsObject &)=delete
 
GraphicsObjectoperator= (const GraphicsObject &)=delete
 

Detailed Description

template<typename T>
class dyno::XTexture2D< T >

Definition at line 35 of file GPUTexture.h.

Constructor & Destructor Documentation

◆ XTexture2D()

template<typename T>
dyno::XTexture2D< T >::XTexture2D ( )
inline

Definition at line 38 of file GPUTexture.h.

◆ ~XTexture2D()

template<typename T>
dyno::XTexture2D< T >::~XTexture2D ( )
inline

Definition at line 39 of file GPUTexture.h.

Member Function Documentation

◆ create()

template<typename T>
void dyno::XTexture2D< T >::create ( )
overridevirtual

Reimplemented from dyno::Texture2D.

Definition at line 27 of file GPUTexture.cpp.

Here is the caller graph for this function:

◆ isValid()

template<typename T>
bool dyno::XTexture2D< T >::isValid ( ) const
virtual

Reimplemented from dyno::GraphicsObject.

Definition at line 49 of file GPUTexture.cpp.

◆ load()

template<typename T>
void dyno::XTexture2D< T >::load ( dyno::DArray2D< T > data)

Definition at line 56 of file GPUTexture.cpp.

Here is the call graph for this function:

◆ updateGL()

template<typename T>
void dyno::XTexture2D< T >::updateGL ( )

Definition at line 202 of file GPUTexture.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ height

template<typename T>
int dyno::XTexture2D< T >::height = -1
private

Definition at line 52 of file GPUTexture.h.

◆ width

template<typename T>
int dyno::XTexture2D< T >::width = -1
private

Definition at line 51 of file GPUTexture.h.


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