Difference between revisions of "Fixture:getFilterData"

(Added Fixture:getFilterData.)
 
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{newin|[[0.8.0]]|type=function}}
+
{{newin|[[0.8.0]]|080|type=method}}
 
Returns the filter data of the fixture.
 
Returns the filter data of the fixture.
 
Categories and masks are encoded as the bits of a 16-bit integer.
 
Categories and masks are encoded as the bits of a 16-bit integer.

Latest revision as of 13:41, 4 May 2012

Available since LÖVE 0.8.0
This method is not supported in earlier versions.

Returns the filter data of the fixture. Categories and masks are encoded as the bits of a 16-bit integer.

Function

Synopsis

categories, mask, group = Fixture:getFilterData( )

Arguments

None.

Returns

number categories
The categories as an integer from 0 to 65535.
number mask
The mask as an integer from 0 to 65535.
number group
The group as an integer from -32768 to 32767.

See Also


Other Languages