Difference between revisions of "love.graphics.newGeometry"
(Created page with "{{newin|0.9.0|090|new=function}} Creates a new Geometry. == Function == === Synopsis === <source lang="lua"> geometry = love.graphics.newGeometry( vertices ) </source> ==...") |
m |
||
Line 17: | Line 17: | ||
{{subparam|number|[8] (255)|The alpha color component.}} | {{subparam|number|[8] (255)|The alpha color component.}} | ||
=== Returns === | === Returns === | ||
− | {{param|Geometry| | + | {{param|Geometry|geometry|The new geometry.}} |
<!-- | <!-- | ||
Transform this to apply to geometries. | Transform this to apply to geometries. |
Revision as of 20:39, 30 May 2013
Available since LÖVE 0.9.0 |
It is not supported in earlier versions. |
Creates a new Geometry.
Function
Synopsis
geometry = love.graphics.newGeometry( vertices )
Arguments
table vertices
- The table filled with vertex information tables for each vertex as follows:
number [1]
- The x vertex coordinate.
number [2]
- The y vertex coordinate.
number [3]
- The u texture coordinate.
number [4]
- The v texture coordinate.
number [5] (255)
- The red color component.
number [6] (255)
- The green color component.
number [7] (255)
- The blue color component.
number [8] (255)
- The alpha color component.
Returns
Geometry geometry
- The new geometry.
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