|
| Texture2D () |
| ctor () |
| Texture2D () |
virtual | ~Texture2D () |
virtual std::string | getDescription () const |
bool | initWithData (const void *data, ssize_t dataLen, Texture2D::PixelFormat pixelFormat, int pixelsWide, int pixelsHigh, const Size &contentSize) |
| Initializes with a texture2d with data. More...
|
|
bool | initWithMipmaps (MipmapInfo *mipmaps, int mipmapsNum, Texture2D::PixelFormat pixelFormat, int pixelsWide, int pixelsHigh) |
| Initializes with mipmaps. More...
|
|
bool | updateWithData (const void *data, int offsetX, int offsetY, int width, int height) |
| Update with texture data. More...
|
|
void | drawAtPoint (const Vec2 &point) |
| Drawing extensions to make it easy to draw basic quads using a Texture2D object. More...
|
|
void | drawInRect (const Rect &rect) |
| draws a texture inside a rect More...
|
|
bool | initWithImage (Image *image) |
| Extensions to make it easy to create a Texture2D object from an image file. More...
|
|
bool | initWithImage (Image *image, PixelFormat format) |
| Initializes a texture from a UIImage object. More...
|
|
bool | initWithString (const char *text, const std::string &fontName, float fontSize, const Size &dimensions=Size(0, 0), TextHAlignment hAlignment=TextHAlignment::CENTER, TextVAlignment vAlignment=TextVAlignment::TOP) |
| Initializes a texture from a string with dimensions, alignment, font name and font size. More...
|
|
var | initWithString ( var text, var fontName, var fontSize, var 0, var CENTER, var TOP) |
| Initializes a texture from a string with dimensions, alignment, font name and font size. More...
|
|
local | initWithString ( local text, local fontName, local fontSize, local 0, local CENTER, local TOP) |
| Initializes a texture from a string with dimensions, alignment, font name and font size. More...
|
|
bool | initWithString (const char *text, const FontDefinition &textDefinition) |
| Initializes a texture from a string using a text definition. More...
|
|
local | initWithString ( local text, local textDefinition) |
| Initializes a texture from a string using a text definition. More...
|
|
void | setTexParameters (const TexParams &texParams) |
| sets the min filter, mag filter, wrap s and wrap t texture parameters. More...
|
|
CC_DEPRECATED_ATTRIBUTE void | setTexParameters (const TexParams *texParams) |
void | setAntiAliasTexParameters () |
| sets antialias texture parameters: More...
|
|
var | setAntiAliasTexParameters () |
| sets antialias texture parameters: More...
|
|
local | setAntiAliasTexParameters () |
| sets antialias texture parameters: More...
|
|
void | setAliasTexParameters () |
| sets alias texture parameters: More...
|
|
var | setAliasTexParameters () |
| sets alias texture parameters: More...
|
|
local | setAliasTexParameters () |
| sets alias texture parameters: More...
|
|
void | generateMipmap () |
| Generates mipmap images for the texture. More...
|
|
const char * | getStringForFormat () const |
| returns the pixel format. More...
|
|
local | getStringForFormat () |
| returns the pixel format. More...
|
|
CC_DEPRECATED_ATTRIBUTE const
char * | stringForFormat () const |
local | stringForFormat () |
unsigned int | getBitsPerPixelForFormat () const |
| returns the bits-per-pixel of the in-memory OpenGL texture More...
|
|
CC_DEPRECATED_ATTRIBUTE
unsigned int | bitsPerPixelForFormat () const |
local | bitsPerPixelForFormat () |
unsigned int | getBitsPerPixelForFormat (Texture2D::PixelFormat format) const |
| Helper functions that returns bits per pixels for a given format. More...
|
|
CC_DEPRECATED_ATTRIBUTE
unsigned int | bitsPerPixelForFormat (Texture2D::PixelFormat format) const |
local | bitsPerPixelForFormat ( local format) |
const Size & | getContentSizeInPixels () |
| content size More...
|
|
bool | hasPremultipliedAlpha () const |
var | hasPremultipliedAlpha () |
local | hasPremultipliedAlpha () |
bool | hasMipmaps () const |
var | hasMipmaps () |
local | hasMipmaps () |
Texture2D::PixelFormat | getPixelFormat () const |
| Gets the pixel format of the texture. More...
|
|
local | getPixelFormat () |
| Gets the pixel format of the texture. More...
|
|
int | getPixelsWide () const |
| Gets the width of the texture in pixels. More...
|
|
var | getPixelsWide () |
| Gets the width of the texture in pixels. More...
|
|
local | getPixelsWide () |
| Gets the width of the texture in pixels. More...
|
|
int | getPixelsHigh () const |
| Gets the height of the texture in pixels. More...
|
|
var | getPixelsHigh () |
| Gets the height of the texture in pixels. More...
|
|
local | getPixelsHigh () |
| Gets the height of the texture in pixels. More...
|
|
GLuint | getName () const |
| Gets the texture name. More...
|
|
var | getName () |
| Gets the texture name. More...
|
|
local | getName () |
| Gets the texture name. More...
|
|
GLfloat | getMaxS () const |
| Gets max S. More...
|
|
var | getMaxS () |
| Gets max S. More...
|
|
local | getMaxS () |
| Gets max S. More...
|
|
void | setMaxS (GLfloat maxS) |
| Sets max S. More...
|
|
var | setMaxS ( var maxS) |
| Sets max S. More...
|
|
local | setMaxS ( local maxS) |
| Sets max S. More...
|
|
GLfloat | getMaxT () const |
| Gets max T. More...
|
|
var | getMaxT () |
| Gets max T. More...
|
|
local | getMaxT () |
| Gets max T. More...
|
|
void | setMaxT (GLfloat maxT) |
| Sets max T. More...
|
|
var | setMaxT ( var maxT) |
| Sets max T. More...
|
|
local | setMaxT ( local maxT) |
| Sets max T. More...
|
|
Size | getContentSize () const |
var | getContentSize () |
local | getContentSize () |
void | setGLProgram (GLProgram *program) |
local | setGLProgram ( local program) |
GLProgram * | getGLProgram () const |
var | getGLProgram () |
local | getGLProgram () |
void | retain () |
| Retains the ownership. More...
|
|
void | release () |
| Releases the ownership immediately. More...
|
|
Ref * | autorelease () |
| Releases the ownership sometime soon automatically. More...
|
|
unsigned int | getReferenceCount () const |
| Returns the Ref's current reference count. More...
|
|
virtual | ~Ref () |