Difference between revisions of "AttributeDataType"

m
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{newin|[[0.9.0]]|090}}
+
{{newin|[[0.9.0]]|090|type=enum}}
  
Data types used in a [[Mesh]]'s vertex format.
+
Data types used in a Mesh's vertex format.
  
 
== Constants ==
 
== Constants ==
 
 
 
;byte: An 8-bit normalized (from 0 to 1) value.
 
;byte: An 8-bit normalized (from 0 to 1) value.
 
 
 
;unorm16: A 16-bit normalized (from 0 to 1) value.
 
;unorm16: A 16-bit normalized (from 0 to 1) value.
 
 
 
;float: A floating point number.
 
;float: A floating point number.
  
 
== See Also ==
 
== See Also ==
  
 +
* [[parent::love.graphics]]
 
* [[Mesh:getVertexFormat]]
 
* [[Mesh:getVertexFormat]]
 
* [[love.graphics.newMesh]]
 
* [[love.graphics.newMesh]]
* [[Parent::Mesh]]
+
* [[parent::Mesh]]
* [[Parent::love.graphics]]
 
  
 
[[Category:Enums]]
 
[[Category:Enums]]
{{#set:Description=Data types used in a [[Mesh]]'s vertex format.}}
+
{{#set:Description=Data types used in a Mesh's vertex format.}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|AttributeDataType}}
 
{{i18n|AttributeDataType}}

Latest revision as of 00:23, 23 November 2023

Available since LÖVE 0.9.0
This enum is not supported in earlier versions.


Data types used in a Mesh's vertex format.

Constants

byte
An 8-bit normalized (from 0 to 1) value.
unorm16
A 16-bit normalized (from 0 to 1) value.
float
A floating point number.

See Also

Other Languages