Difference between revisions of "SpriteBatch"
Line 1: | Line 1: | ||
Store geometry in a buffer, and draw it in one call. | Store geometry in a buffer, and draw it in one call. | ||
− | == | + | == Constructors == |
− | {{#ask: [[Category:Functions]] [[ | + | {{#ask: [[Category:Functions]] [[Constructs::SpriteBatch]] [[Since::<071]] |
| headers=hide | | headers=hide | ||
+ | | default=None. | ||
| ?Description | | ?Description | ||
}} | }} | ||
− | {{#ask: [[Category:Functions]] [[parent:: | + | == Functions == |
− | + | {{#ask: [[Category:Functions]] [[parent::SpriteBatch]] OR [[parent::Drawable]] OR [[parent::Object]] [[Since::<071]] | |
− | |||
− | |||
− | |||
| headers=hide | | headers=hide | ||
| ?Description | | ?Description | ||
Line 18: | Line 16: | ||
== See Also == | == See Also == | ||
* [[parent::love.graphics]] | * [[parent::love.graphics]] | ||
− | |||
[[Category:Types]] | [[Category:Types]] | ||
{{#set:Description=Store geometry in a buffer, and draw it in one call.}} | {{#set:Description=Store geometry in a buffer, and draw it in one call.}} | ||
+ | {{#set:Since=000}} | ||
== Other Languages == | == Other Languages == | ||
{{i18n|SpriteBatch}} | {{i18n|SpriteBatch}} |
Revision as of 10:13, 25 March 2011
Store geometry in a buffer, and draw it in one call.
Constructors
love.graphics.newSpriteBatch | Creates a new SpriteBatch. |
Functions
Body | Bodies are objects with velocity and position. |
Canvas | Off-screen render target. |
Canvas (Nederlands) | Off-screen render target. |
CircleShape | Circle extends Shape and adds a radius and a local position. |
Contact | Contacts are objects created to manage collisions in worlds. |
Data | The superclass of all data. |
Decoder | An object which can gradually decode a sound file. |
DistanceJoint | Keeps two bodies at the same distance. |
Drawable | Superclass for all things that can be drawn on screen. |
File | Represents a file on the filesystem. |
FileData | Data representing the contents of a file. |
Font | Defines the shape of characters than can be drawn onto the screen. |
FontData | A FontData represents a font. |
Framebuffer | Off-screen render target. |
GearJoint | Keeps bodies together in such a way that they act like gears. |
GlyphData | A GlyphData represents a drawable symbol of a font. |
Image | Drawable image type. |
ImageData | Raw (decoded) image data. |
Joint | Attach multiple bodies together to interact in unique ways. |
Mesh | A 2D polygon mesh used for drawing arbitrary textured shapes. |
MouseJoint | For controlling objects with the mouse. |
Object:type | Gets the type of the object as a string. |
Object:typeOf | Checks whether an object is of a certain type. |
ParticleSystem | Used to create cool effects, like fire. |
PolygonShape | Polygon is a convex polygon with up to 8 sides. |
PrismaticJoint | Restricts relative motion between Bodies to one shared axis. |
PulleyJoint | Allows you to simulate bodies connected through pulleys. |
Quad | A quadrilateral with texture coordinate information. |
Rasterizer | A Rasterizer represents font data and glyphs. |
RevoluteJoint | Allow two Bodies to revolve around a shared point. |
Shape | Shapes are objects used to control mass and collisions. |
Shape (Français) | Les Shapes sont des objets pour contrôler les masses et les collisions. |
SoundData | Contains raw audio samples. |
Source | A Source represents audio you can play back. |
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. |
... further results |
Supertypes
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info