26 #ifndef CAVESTORY_MOD_API_H_
27 #error "Please include CavestoryModAPI.h before including sub-classes."
109 unsigned char iAlphaThreshold = 10
Surface_Ids
List of surface IDs.
Definition: CSMAPI_enums.h:714
CAVESTORY_MOD_API void CSM_SurfaceBitplane_Free(SURFACE_BITPLANE *pPlane)
Free an allocated bitplane.
CAVESTORY_MOD_API BOOL CSM_SurfaceBitplane_IsPixelSolid(SURFACE_BITPLANE *pPlane, int iX, int iY)
Check to see if a pixel is collidable.
CAVESTORY_MOD_API void CSM_SurfaceBitplane_Init(SURFACE_BITPLANE *pPlane)
Initialize a bitplane object.
CAVESTORY_MOD_API BOOL CSM_SurfaceBitplane_Scan(Surface_Ids iSurfId, GUI_RECT *pRect, SURFACE_BITPLANE *pPlane, unsigned int iFlags=SurfaceBitplaneFlags::SURF_BITPLANE_HAS_ALL, unsigned char iAlphaThreshold=10)
Create a surface bitplane.
SurfaceBitplaneFlags
The flags responsible for identifying what information a bitplane object holds about a surface.
Definition: SurfaceBitplane.h:41
@ SURF_BITPLANE_HAS_BITPLANE
This bitplane contains a calculated collision bitplane.
Definition: SurfaceBitplane.h:46
@ SURF_BITPLANE_HAS_ALL
This bitplane contains everything listed above.
Definition: SurfaceBitplane.h:49
@ SURF_BITPLANE_HAS_BOUNDS
This bitplane contains a calculated bounding box.
Definition: SurfaceBitplane.h:43
#define CAVESTORY_MOD_API
Exports / imports Cavestory Mod API functions & classes.
Definition: CSMAPI_begincode.h:30
Definition: CSMAPI_types.h:842
A calculated collision bitplane for a surface.
Definition: SurfaceBitplane.h:55
Surface_Ids SurfId
The surface ID that this bitplane uses.
Definition: SurfaceBitplane.h:58
GUI_RECT Bounds
The calculated bounding box for this rect.
Definition: SurfaceBitplane.h:71
unsigned int Flags
The flags for this bitplane.
Definition: SurfaceBitplane.h:67
char * Plane
The calculated bitplane for this rect.
Definition: SurfaceBitplane.h:77
GUI_RECT SourceRect
The source rect that was used during the calculation of this bitplane.
Definition: SurfaceBitplane.h:62