Assigns or removes a sprite from a particlar category.
procedure SetCategoryBit(const Category: Cardinal; const Enabled: Boolean);
Parameters |
Description |
const Category: Cardinal |
The category to change, must be between 1 and 16 inclusive. |
const Enabled: Boolean |
True to make the sprite a part of this category, False to remove it. |
There are 16 categories that a sprite can belong to, of which a sprite can belong to any number at once. This command is similar to CategoryBits except this command sets one category at a time whilst that command sets them all at once using a bit mask.
Copyright (c) 2012. All rights reserved.
|