Oxygine  1
2g game engine
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
oxygine::NativeTexture Class Referenceabstract
Inheritance diagram for oxygine::NativeTexture:
oxygine::Texture oxygine::Restorable oxygine::Object oxygine::ref_counter oxygine::ObjectBase oxygine::PoolObject oxygine::NativeTextureGLES oxygine::NativeTextureNull

Public Member Functions

virtual void init (nativeTextureHandle, int w, int h, TextureFormat tf)=0
 
virtual void init (int w, int h, TextureFormat tf, bool renderTarget=false)=0
 
virtual void init (const ImageData &src, bool sysMemCopy=false)=0
 
virtual ImageData lock (lock_flags, const Rect *src)=0
 
virtual void unlock ()=0
 
virtual void swap (NativeTexture *)=0
 
virtual void setLinearFilter (bool enable)=0
 
virtual void setClamp2Edge (bool clamp2edge)=0
 
virtual void updateRegion (int x, int y, const ImageData &data)=0
 
virtual void apply (const Rect *rect=0)=0
 
virtual nativeTextureHandle getHandle () const =0
 
- Public Member Functions inherited from oxygine::Texture
virtual int getWidth () const =0
 
virtual int getHeight () const =0
 
virtual TextureFormat getFormat () const =0
 
- Public Member Functions inherited from oxygine::Object
 Object (const Object &src)
 
 Object (bool assignUniqueID=true)
 
- Public Member Functions inherited from oxygine::ref_counter
void addRef ()
 
void releaseRef ()
 
- Public Member Functions inherited from oxygine::ObjectBase
 ObjectBase (const ObjectBase &src)
 
 ObjectBase (bool assignID=true)
 
const std::string & getName () const
 
const void * getUserData () const
 
int getObjectID () const
 
bool isName (const std::string &name) const
 
bool isName (const char *name) const
 
void setName (const std::string &name)
 
void setUserData (const void *data)
 
void dumpObject () const
 
void __removeFromDebugList ()
 
- Public Member Functions inherited from oxygine::Restorable
virtual void * _getRestorableObject ()=0
 
virtual void release ()=0
 
void restore ()
 
void reg (RestoreCallback cb, void *user)
 
void unreg ()
 

Static Public Member Functions

static void dumpCreatedTextures ()
 
static std::vector< spNativeTexture > getCreatedTextures ()
 
- Static Public Member Functions inherited from oxygine::ObjectBase
static void dumpCreatedObjects ()
 
static void showAssertInCtor (int id)
 
static void showAssertInDtor (int id)
 
static __createdObjects & __getCreatedObjects ()
 
static void __startTracingLeaks ()
 
static void __stopTracingLeaks ()
 
- Static Public Member Functions inherited from oxygine::Restorable
static const restorable & getObjects ()
 
static void restoreAll ()
 
static void releaseAll ()
 
static bool isRestored ()
 

Static Public Attributes

static volatile int created
 

Additional Inherited Members

- Public Types inherited from oxygine::Texture
enum  { lock_read = 0x1, lock_write = 0x2, lock_write_on_apply = 0x4 }
 
typedef int lock_flags
 
- Public Types inherited from oxygine::ObjectBase
typedef std::vector< ObjectBase * > __createdObjects
 
- Public Types inherited from oxygine::Restorable
typedef std::vector< Restorable * > restorable
 
typedef Closure< void(Restorable *, void *userData)> RestoreCallback
 
- Public Attributes inherited from oxygine::ref_counter
int _ref_counter
 
- Protected Member Functions inherited from oxygine::Object
void __doCheck ()
 
- Protected Member Functions inherited from oxygine::ObjectBase
void __generateID ()
 
std::string * __getName () const
 
void __freeName () const
 
- Static Protected Member Functions inherited from oxygine::ObjectBase
static void __addToDebugList (ObjectBase *base)
 
static void __removeFromDebugList (ObjectBase *base)
 
- Protected Attributes inherited from oxygine::ObjectBase
std::string __name
 
int __id
 
const void * __userData
 
- Static Protected Attributes inherited from oxygine::ObjectBase
static int _lastID
 
static int _assertCtorID
 
static int _assertDtorID
 

Member Function Documentation

§ getHandle()

virtual nativeTextureHandle oxygine::NativeTexture::getHandle ( ) const
pure virtual

returns handle (ptr) to HW texture ID

Implemented in oxygine::NativeTextureNull, and oxygine::NativeTextureGLES.

§ setClamp2Edge()

virtual void oxygine::NativeTexture::setClamp2Edge ( bool  clamp2edge)
pure virtual

set wrap mode as clamp2edge or repeat (tiling)

Implemented in oxygine::NativeTextureNull, and oxygine::NativeTextureGLES.

§ setLinearFilter()

virtual void oxygine::NativeTexture::setLinearFilter ( bool  enable)
pure virtual

Disabled/Enables bilinear texture filter

Implemented in oxygine::NativeTextureNull, and oxygine::NativeTextureGLES.

Member Data Documentation

§ created

volatile int oxygine::NativeTexture::created
static

debug counter of created textures


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