Difference between revisions of "GraphicsBuffer"
(Created page) |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
Low-level data stored in graphics memory, including arrays of vertices, vertex indices, and custom collections of data accessible in [[Shader]]s. | Low-level data stored in graphics memory, including arrays of vertices, vertex indices, and custom collections of data accessible in [[Shader]]s. | ||
− | Higher level graphics objects such as [[Mesh]]es, [[SpriteBatch]]es, and [[ParticleSystem]]s make use of GraphicsBuffers internally. | + | Higher level graphics objects such as [[Mesh]]es, [[SpriteBatch]]es, [[TextBatch]]es, and [[ParticleSystem]]s make use of GraphicsBuffers internally. |
== Constructors == | == Constructors == | ||
− | {{#ask: [[Category:Functions]] [[Constructs::GraphicsBuffer | + | {{#ask: [[Category:Functions]] [[Constructs::GraphicsBuffer]] |
| headers=hide | | headers=hide | ||
| default=None. | | default=None. | ||
Line 16: | Line 16: | ||
}} | }} | ||
== Functions == | == Functions == | ||
− | {{#ask: [[Category:Functions]] [[parent::GraphicsBuffer||Object | + | {{#ask: [[Category:Functions]] [[parent::GraphicsBuffer||Object]] |
| headers=hide | | headers=hide | ||
| format=template | | format=template | ||
Line 27: | Line 27: | ||
}} | }} | ||
== Enums == | == Enums == | ||
− | {{#ask: [[Category:Enums]] [[parent::GraphicsBuffer||Object | + | {{#ask: [[Category:Enums]] [[parent::GraphicsBuffer||Object]] |
| headers=hide | | headers=hide | ||
| format=template | | format=template |
Latest revision as of 03:24, 9 February 2024
Available since LÖVE 12.0 |
This type is not supported in earlier versions. |
Low-level data stored in graphics memory, including arrays of vertices, vertex indices, and custom collections of data accessible in Shaders.
Higher level graphics objects such as Meshes, SpriteBatches, TextBatches, and ParticleSystems make use of GraphicsBuffers internally.
Constructors
None.
Functions
GraphicsBuffer:clear | Clears the entire GraphicsBuffer or a specified byte range within it to zero. | 12.0 | |
GraphicsBuffer:getElementCount | Gets the total number of array elements in this GraphicsBuffer. | 12.0 | |
GraphicsBuffer:getElementStride | Gets the size in bytes used by one array element of this GraphicsBuffer. | 12.0 | |
GraphicsBuffer:getSize | Gets the total size in bytes of the GraphicsBuffer's contents. | 12.0 | |
Object:release | Immediately destroys the object's Lua reference. | 11.0 | |
Object:type | Gets the type of the object as a string. | ||
Object:typeOf | Checks whether an object is of a certain type. |
Enums
BufferDataFormat | Data formats of individual array elements GraphicsBuffers and Meshes. | 12.0 | |
BufferDataUsage | Usage hints for SpriteBatches, Meshes, and GraphicsBuffers to optimize data storage and access. | 0.8.0 |
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