27 #ifndef ICB_GRAPIC_PRIMS 28 #define ICB_GRAPIC_PRIMS 30 #include "engines/icb/common/px_bitmap.h" 31 #include "engines/icb/common/px_types.h" 32 #include "engines/icb/p4_generic.h" 37 typedef float PXfloat;
38 typedef double PXdouble;
67 uint32 nWidth, nHeight;
72 int32 twabs(int32 val);
74 void Draw_horizontal_line(int32 xx, int32 yy, uint32 len,
_rgb *pen, uint8 *ad, uint32 pitch);
75 void Draw_vertical_line(int32 xx, int32 yy, uint32 len,
_rgb *pen, uint8 *ad, uint32 pitch);
76 void Fill_rect(int32 x, int32 y, int32 x2, int32 y2, uint32 pen, int32 z = 0);
77 void General_draw_line_24_32(int16 x0, int16 y0, int16 x1, int16 y1,
_rgb *colour, uint8 *myScreenBuffer, uint32 pitch, int32 surface_width = SCREEN_WIDTH,
78 int32 surface_height = SCREEN_DEPTH);
80 void General_poly_draw_24_32(
_point *pVerts, int32 nNumVerts,
_rgb sColour, bool8 bFill, uint8 *pSurface, int32 nPitch, int32 nSurfaceWidth, int32 nSurfaceHeight);
83 void SpriteFrameDraw(uint8 *pSurfaceBitmap, uint32 nPitch, uint32 nSurfaceWidth, uint32 nSurfaceHeight,
_pxBitmap *pBitmap, uint32 nFrameNumber, uint32 *nTransparencyRef,
87 void SpriteXYFrameDraw(uint8 *pSurfaceBitmap, uint32 nPitch, uint32 nSurfaceWidth, uint32 nSurfaceHeight,
_pxBitmap *pBitmap, int32 nX, int32 nY, uint32 nFrameNumber,
88 bool8 bCentre, uint32 *nTransparencyRef, uint8 nOpacity);
94 void AdditiveGouraudLine(int16 x0, int16 y0,
_rgb c0, int16 x1, int16 y1,
_rgb c1, uint32 surface_id);
95 void BlendedLine(int32 x0, int32 y0, int32 x1, int32 y1,
_rgb c, uint32 surface_id);
96 void BlendedLine(int32 x0, int32 y0, int32 x1, int32 y1,
_rgb c, int32 surface_width, int32 surface_height, uint32 pitch, uint8 *surface);
98 DXrect MakeRECTFromSpriteSizes(int32 nX, int32 nY, uint32 nWidth, uint32 nHeight);
102 #endif // #ifndef _GRAPIC_PRIMS Definition: graphic_prims.h:58
Definition: graphic_prims.h:47
Definition: px_common.h:109
Definition: graphic_prims.h:40
Definition: px_bitmap_pc.h:51
Definition: graphic_prims.h:53
Definition: graphic_prims.h:65
Definition: px_types.h:32