Go to the source code of this file.
◆ SurfaceBitplaneFlags
The flags responsible for identifying what information a bitplane object holds about a surface.
Enumerator |
---|
SURF_BITPLANE_HAS_BOUNDS | This bitplane contains a calculated bounding box.
|
SURF_BITPLANE_HAS_BITPLANE | This bitplane contains a calculated collision bitplane.
|
SURF_BITPLANE_HAS_ALL | This bitplane contains everything listed above.
|
◆ CSM_SurfaceBitplane_Free()
Free an allocated bitplane.
- Parameters
-
pPlane | The plane to free from memory. |
◆ CSM_SurfaceBitplane_Init()
Initialize a bitplane object.
- Parameters
-
pPlane | The plane to initialize. |
◆ CSM_SurfaceBitplane_IsPixelSolid()
Check to see if a pixel is collidable.
- Parameters
-
pPlane | The plane to use. |
iX | The pixel's X position. |
iY | The pixel's Y position. |
- Returns
- Returns TRUE if the pixel is collidable, FALSE otherwise.
◆ CSM_SurfaceBitplane_Scan()
Create a surface bitplane.
- Parameters
-
iSurfId | The surface ID to scan. |
pRect | The rect to scan. Can be NULL to scan the entire surface. |
pPlane | The bitplane object to be populated with information. |
iFlags | The flags to use when creating the bitplane. |
iAlphaThreshold | The alpha value that pixel colors have to be equal to or less than to be considered a '0' in the bitplane. |
- Returns
- Returns TRUE on success, FALSE on failure. @warn Must initialize the bitplane before using it here with CSM_SurfaceBitplane_Init()!