#include <NuxImage/ImageSurface.h>
Public Member Functions |
| | NTextureData (BitmapFormat f=BITFMT_R8G8B8A8, t_s32 width=16, t_s32 height=16, t_s32 NumMipmap=1) |
| virtual | ~NTextureData () |
| | NTextureData (const NTextureData &) |
| | Copy constructor.
|
| NTextureData & | operator= (const NTextureData &) |
| | Assignment constructor.
|
| virtual void | Allocate (BitmapFormat f, t_s32 width, t_s32 height, t_s32 NumMipmap=1) |
| virtual void | AllocateCheckBoardTexture (t_s32 width, t_s32 height, t_s32 NumMipmap, Color color0, Color color1, t_s32 TileWidth=4, t_s32 TileHeight=4) |
| virtual void | AllocateColorTexture (t_s32 width, t_s32 height, t_s32 NumMipmap, Color color0=Color(0xFFFFFFF)) |
| virtual const ImageSurface & | GetSurface (t_s32 MipLevel) const |
| virtual ImageSurface & | GetSurface (t_s32 MipLevel) |
| virtual const ImageSurface & | GetSurface (t_s32 face, t_s32 MipLevel) const |
| virtual ImageSurface & | GetSurface (t_s32 face, t_s32 MipLevel) |
| bool | SetSurface (t_s32 MipLevel, const ImageSurface &object) |
| virtual bool | IsTextureData () const |
| virtual t_s32 | GetNumMipmap () const |
| virtual t_s32 | GetWidth () const |
| virtual t_s32 | GetHeight () const |
| virtual BitmapFormat | GetFormat () const |
| virtual bool | IsNull () const |
Friends |
| NBitmapData * | read_tga_file (const TCHAR *file_name) |
| NBitmapData * | read_bmp_file (const TCHAR *file_name) |
| NBitmapData * | read_png_rgb (const TCHAR *filename) |
| NBitmapData * | read_png_rgba (const TCHAR *filename) |
Constructor & Destructor Documentation
| virtual nux::NTextureData::~NTextureData |
( |
| ) |
[virtual] |
Member Function Documentation
| virtual void nux::NTextureData::AllocateCheckBoardTexture |
( |
t_s32 |
width, |
|
|
t_s32 |
height, |
|
|
t_s32 |
NumMipmap, |
|
|
Color |
color0, |
|
|
Color |
color1, |
|
|
t_s32 |
TileWidth = 4, |
|
|
t_s32 |
TileHeight = 4 |
|
) |
| [virtual] |
| virtual void nux::NTextureData::AllocateColorTexture |
( |
t_s32 |
width, |
|
|
t_s32 |
height, |
|
|
t_s32 |
NumMipmap, |
|
|
Color |
color0 = Color(0xFFFFFFF) |
|
) |
| [virtual] |
| virtual BitmapFormat nux::NTextureData::GetFormat |
( |
| ) |
const [inline, virtual] |
| virtual t_s32 nux::NTextureData::GetHeight |
( |
| ) |
const [inline, virtual] |
| virtual t_s32 nux::NTextureData::GetNumMipmap |
( |
| ) |
const [virtual] |
| virtual const ImageSurface& nux::NTextureData::GetSurface |
( |
t_s32 |
MipLevel | ) |
const [inline, virtual] |
| virtual ImageSurface& nux::NTextureData::GetSurface |
( |
t_s32 |
MipLevel | ) |
[inline, virtual] |
| virtual const ImageSurface& nux::NTextureData::GetSurface |
( |
t_s32 |
face, |
|
|
t_s32 |
MipLevel |
|
) |
| const [inline, virtual] |
| virtual t_s32 nux::NTextureData::GetWidth |
( |
| ) |
const [inline, virtual] |
| virtual bool nux::NTextureData::IsNull |
( |
| ) |
const [inline, virtual] |
| virtual bool nux::NTextureData::IsTextureData |
( |
| ) |
const [inline, virtual] |
Friends And Related Function Documentation
The documentation for this class was generated from the following file: