Difference between revisions of "SpriteBatch"
m (1 revision: Imported docs from potato.) |
|
(No difference)
|
Revision as of 15:54, 14 February 2010
Functions
Canvas | Off-screen render target. |
Canvas (Nederlands) | Off-screen render target. |
Framebuffer | Off-screen render target. |
Image | Drawable image type. |
Mesh | A 2D polygon mesh used for drawing arbitrary textured shapes. |
ParticleSystem | Used to create cool effects, like fire. |
SpriteBatch | Store image positions in a buffer, and draw it in one call. |
SpriteBatch (Français) | Stock des positions d'image dans un tampon, puis les trace en un seul appel. |
SpriteBatch:add | Adds a sprite to the batch. |
SpriteBatch:addLayer | Adds a sprite to a batch created with an Array Texture. |
SpriteBatch:addq | Adds a Quad to the batch. |
SpriteBatch:attachAttribute | Attaches a per-vertex attribute from a Mesh onto this SpriteBatch, for use when drawing. |
SpriteBatch:bind | Binds the SpriteBatch to memory for more efficient updating. |
SpriteBatch:clear | Removes all sprites from the buffer. |
SpriteBatch:flush | Immediately sends all new and modified sprite data to the graphics card. |
SpriteBatch:getBufferSize | Gets the maximum number of sprites the SpriteBatch can hold. |
SpriteBatch:getColor | Gets the color that will be used for the next add and set operations. |
SpriteBatch:getCount | Gets the number of sprites currently in the SpriteBatch. |
SpriteBatch:getImage | Returns the image used by the SpriteBatch. |
SpriteBatch:getTexture | Gets the texture (Image or Canvas) used by the SpriteBatch. |
SpriteBatch:set | Changes a sprite in the batch. |
SpriteBatch:setBufferSize | Sets the maximum number of sprites the SpriteBatch can hold. |
SpriteBatch:setColor | Sets the color that will be used for the next add or set operations. |
SpriteBatch:setDrawRange | Restricts the drawn sprites in the SpriteBatch to a subset of the total. |
SpriteBatch:setImage | Replaces the image used for the sprites. |
SpriteBatch:setLayer | Changes a sprite previously added with add or addLayer, in a batch created with an Array Texture. |
SpriteBatch:setTexture | Sets the texture (Image or Canvas) used for the sprites in the batch. |
SpriteBatch:setq | Changes a sprite with a quad in the batch. |
SpriteBatch:unbind | Unbinds the SpriteBatch. |
Text | Drawable text. |
TextBatch | One or more precalculated strings of text stored in a Drawable object. |
Texture | Superclass for drawable objects which represent a texture. |
Video | A drawable video. |