Aiv Fast2D  1.0.4
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Pages
Public Member Functions | Public Attributes | Properties | List of all members
Aiv.Fast2D.Texture Class Reference
Inheritance diagram for Aiv.Fast2D.Texture:
Aiv.Fast2D.RenderTexture

Public Member Functions

 Texture (bool nearest=false, bool repeatX=false, bool repeatY=false, bool mipMap=false)
 
 Texture (int width, int height, bool nearest=false, bool repeatX=false, bool repeatY=false, bool mipMap=false)
 
 Texture (string fileName, bool nearest=false, bool repeatX=false, bool repeatY=false, bool mipMap=false)
 
 Texture (Stream stream, bool nearest=false, bool repeatX=false, bool repeatY=false, bool mipMap=false)
 
void Update (byte[] bitmap, int mipMap=0)
 
void Update (int mipMap=0)
 
void AddMipMap (int mipMap, string fileName)
 
void Bind (int unit=0)
 
void Dispose ()
 
void SetRepeatX (bool repeat=true)
 
void SetRepeatY (bool repeat=true)
 
void SetLinear (bool mipMap=false)
 
void SetNearest (bool mipMap=false)
 
virtual byte[] Download (int mipMap=0)
 

Public Attributes

bool flipped = false
 

Properties

int Id [get]
 The Id associated to this texture on the GPU More...
 
int Width [get, set]
 The width of this texture More...
 
int Height [get, set]
 The Height of this texture More...
 
float Ratio [get]
 The ratio of the size of this texture (width / height) More...
 
byte[] Bitmap [get]
 Data in bytes representing pixels More...
 
bool IsPremultiplied [get]
 

Constructor & Destructor Documentation

Aiv.Fast2D.Texture.Texture ( bool  nearest = false,
bool  repeatX = false,
bool  repeatY = false,
bool  mipMap = false 
)
inline
Aiv.Fast2D.Texture.Texture ( int  width,
int  height,
bool  nearest = false,
bool  repeatX = false,
bool  repeatY = false,
bool  mipMap = false 
)
inline
Aiv.Fast2D.Texture.Texture ( string  fileName,
bool  nearest = false,
bool  repeatX = false,
bool  repeatY = false,
bool  mipMap = false 
)
inline
Aiv.Fast2D.Texture.Texture ( Stream  stream,
bool  nearest = false,
bool  repeatX = false,
bool  repeatY = false,
bool  mipMap = false 
)
inline

Member Function Documentation

void Aiv.Fast2D.Texture.AddMipMap ( int  mipMap,
string  fileName 
)
inline
void Aiv.Fast2D.Texture.Bind ( int  unit = 0)
inline
void Aiv.Fast2D.Texture.Dispose ( )
inline
virtual byte [] Aiv.Fast2D.Texture.Download ( int  mipMap = 0)
inlinevirtual
void Aiv.Fast2D.Texture.SetLinear ( bool  mipMap = false)
inline
void Aiv.Fast2D.Texture.SetNearest ( bool  mipMap = false)
inline
void Aiv.Fast2D.Texture.SetRepeatX ( bool  repeat = true)
inline
void Aiv.Fast2D.Texture.SetRepeatY ( bool  repeat = true)
inline
void Aiv.Fast2D.Texture.Update ( byte[]  bitmap,
int  mipMap = 0 
)
inline
void Aiv.Fast2D.Texture.Update ( int  mipMap = 0)
inline

Member Data Documentation

bool Aiv.Fast2D.Texture.flipped = false

Property Documentation

byte [] Aiv.Fast2D.Texture.Bitmap
get

Data in bytes representing pixels

int Aiv.Fast2D.Texture.Height
getset

The Height of this texture

int Aiv.Fast2D.Texture.Id
get

The Id associated to this texture on the GPU

bool Aiv.Fast2D.Texture.IsPremultiplied
get
float Aiv.Fast2D.Texture.Ratio
get

The ratio of the size of this texture (width / height)

int Aiv.Fast2D.Texture.Width
getset

The width of this texture


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