Difference between revisions of "Fixture:getFilterData"

(Added Fixture:getFilterData.)
 
m
Line 1: Line 1:
{{newin|[[0.8.0]]|type=function}}
+
{{newin|[[0.8.0]]|080|type=function}}
 
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.

Revision as of 13:36, 4 May 2012

Available since LÖVE 0.8.0
This function 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