My Project
|
Classes | |
struct | _TexParams |
struct | PixelFormatInfo |
Public Types | |
enum | PixelFormat { PixelFormat::AUTO, PixelFormat::BGRA8888, PixelFormat::RGBA8888, PixelFormat::RGB888, PixelFormat::RGB565, PixelFormat::A8, PixelFormat::I8, PixelFormat::AI88, PixelFormat::RGBA4444, PixelFormat::RGB5A1, PixelFormat::PVRTC4, PixelFormat::PVRTC4A, PixelFormat::PVRTC2, PixelFormat::PVRTC2A, PixelFormat::ETC, PixelFormat::S3TC_DXT1, PixelFormat::S3TC_DXT3, PixelFormat::S3TC_DXT5, PixelFormat::ATC_RGB, PixelFormat::ATC_EXPLICIT_ALPHA, PixelFormat::ATC_INTERPOLATED_ALPHA, PixelFormat::DEFAULT = AUTO, NONE = -1 } |
typedef std::map< Texture2D::PixelFormat, const PixelFormatInfo > | PixelFormatInfoMap |
typedef struct ParaEngine::Texture2D::_TexParams | TexParams |
Public Member Functions | |
bool | initWithImage (Image *image) |
bool | initWithImage (Image *image, PixelFormat format) |
int | getNumberOfMipmaps () |
int | getPixelsWide () const |
Gets the width of the texture in pixels. More... | |
int | getPixelsHigh () const |
Gets the height of the texture in pixels. More... | |
bool | initWithData (const void *data, size_t dataLen, Texture2D::PixelFormat pixelFormat, int pixelsWide, int pixelsHigh, const Size &contentSize) |
bool | updateWithData (const void *data, int offsetX, int offsetY, int width, int height) |
GLuint | getName () const |
void | setTexParameters (const TexParams &texParams) |
void | setAliasTexParameters () |
void | setAntiAliasTexParameters () |
![]() | |
void | addref () const |
add reference count of the object. More... | |
bool | delref () const |
decrease reference count of the object. More... | |
int | GetRefCount () const |
get the reference count | |
virtual int | Release () |
CRefCounted * | AddToAutoReleasePool () |
addref and releases the ownership sometime soon automatically (usually at the end of the current frame). More... | |
Static Public Member Functions | |
static const PixelFormatInfoMap & | getPixelFormatInfoMap () |
Additional Inherited Members | |
![]() | |
int | m_refcount |
|
strong |
int Texture2D::getPixelsHigh | ( | ) | const |
Gets the height of the texture in pixels.
int Texture2D::getPixelsWide | ( | ) | const |
Gets the width of the texture in pixels.