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.
== Functions ==
+
== Constructors ==
{{#ask: [[Category:Functions]] [[parent::SpriteBatch]]
+
{{#ask: [[Category:Functions]] [[Constructs::SpriteBatch]] [[Since::<071]]
 
| headers=hide
 
| headers=hide
 +
| default=None.
 
| ?Description
 
| ?Description
 
}}
 
}}
{{#ask: [[Category:Functions]] [[parent::Drawable]]
+
== Functions ==
| headers=hide
+
{{#ask: [[Category:Functions]] [[parent::SpriteBatch]] OR [[parent::Drawable]] OR [[parent::Object]] [[Since::<071]]
| ?Description
 
}}
 
{{#ask: [[Category:Functions]] [[parent::Object]]
 
 
| headers=hide
 
| headers=hide
 
| ?Description
 
| ?Description
Line 18: Line 16:
 
== See Also ==
 
== See Also ==
 
* [[parent::love.graphics]]
 
* [[parent::love.graphics]]
* [[love.graphics.newSpriteBatch]]
 
 
[[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.newSpriteBatchCreates a new SpriteBatch.

Functions

BodyBodies are objects with velocity and position.
CanvasOff-screen render target.
Canvas (Nederlands)Off-screen render target.
CircleShapeCircle extends Shape and adds a radius and a local position.
ContactContacts are objects created to manage collisions in worlds.
DataThe superclass of all data.
DecoderAn object which can gradually decode a sound file.
DistanceJointKeeps two bodies at the same distance.
DrawableSuperclass for all things that can be drawn on screen.
FileRepresents a file on the filesystem.
FileDataData representing the contents of a file.
FontDefines the shape of characters than can be drawn onto the screen.
FontDataA FontData represents a font.
FramebufferOff-screen render target.
GearJointKeeps bodies together in such a way that they act like gears.
GlyphDataA GlyphData represents a drawable symbol of a font.
ImageDrawable image type.
ImageDataRaw (decoded) image data.
JointAttach multiple bodies together to interact in unique ways.
MeshA 2D polygon mesh used for drawing arbitrary textured shapes.
MouseJointFor controlling objects with the mouse.
Object:typeGets the type of the object as a string.
Object:typeOfChecks whether an object is of a certain type.
ParticleSystemUsed to create cool effects, like fire.
PolygonShapePolygon is a convex polygon with up to 8 sides.
PrismaticJointRestricts relative motion between Bodies to one shared axis.
PulleyJointAllows you to simulate bodies connected through pulleys.
QuadA quadrilateral with texture coordinate information.
RasterizerA Rasterizer represents font data and glyphs.
RevoluteJointAllow two Bodies to revolve around a shared point.
ShapeShapes are objects used to control mass and collisions.
Shape (Français)Les Shapes sont des objets pour contrôler les masses et les collisions.
SoundDataContains raw audio samples.
SourceA Source represents audio you can play back.
SpriteBatchStore 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:addAdds a sprite to the batch.
SpriteBatch:addLayerAdds a sprite to a batch created with an Array Texture.
SpriteBatch:addqAdds a Quad to the batch.
SpriteBatch:attachAttributeAttaches a per-vertex attribute from a Mesh onto this SpriteBatch, for use when drawing.
SpriteBatch:bindBinds the SpriteBatch to memory for more efficient updating.
SpriteBatch:clearRemoves all sprites from the buffer.
SpriteBatch:flushImmediately sends all new and modified sprite data to the graphics card.
SpriteBatch:getBufferSizeGets the maximum number of sprites the SpriteBatch can hold.
SpriteBatch:getColorGets the color that will be used for the next add and set operations.
SpriteBatch:getCountGets the number of sprites currently in the SpriteBatch.
SpriteBatch:getImageReturns the image used by the SpriteBatch.
SpriteBatch:getTextureGets the texture (Image or Canvas) used by the SpriteBatch.
SpriteBatch:setChanges a sprite in the batch.
SpriteBatch:setBufferSizeSets the maximum number of sprites the SpriteBatch can hold.
... further results

Supertypes

Drawable Object

See Also


Other Languages