mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
Rename 'Standard Gaming Platform' to 'sgp' (#246)
* rename 'Standard Gaming Platform' to 'sgp' * Adapt CMakeLists.txt files to renamed SGP directory * Lowercase it
This commit is contained in:
+80
@@ -0,0 +1,80 @@
|
||||
// *****************************************************************************
|
||||
//
|
||||
// Filename : line.h
|
||||
//
|
||||
// Purpose :
|
||||
//
|
||||
// Modification history :
|
||||
//
|
||||
// *****************************************************************************
|
||||
|
||||
#ifndef ___LINE___H
|
||||
#define ___LINE___H
|
||||
|
||||
// *****************************************************************************
|
||||
//
|
||||
// Includes
|
||||
//
|
||||
// *****************************************************************************
|
||||
|
||||
#include "sgp.h"
|
||||
#include "types.h"
|
||||
|
||||
//**************************************************************************
|
||||
//
|
||||
// Example Usage
|
||||
//
|
||||
//**************************************************************************
|
||||
|
||||
// // don't send pitch, send width in pixels
|
||||
// SetClippingRegionAndImageWidth( uiPitch, 15, 15, 30, 30 );
|
||||
//
|
||||
// LineDraw( TRUE, 10, 10, 200, 200, colour, pImageData);
|
||||
// OR
|
||||
// RectangleDraw( TRUE, 10, 10, 200, 200, colour, pImageData);
|
||||
|
||||
// *****************************************************************************
|
||||
//
|
||||
// Prototypes
|
||||
//
|
||||
// *****************************************************************************
|
||||
|
||||
/*
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
*/
|
||||
|
||||
// *****************************************************************************
|
||||
|
||||
void SetClippingRegionAndImageWidth(
|
||||
int iImageWidth,
|
||||
int iClipStartX, int iClipStartY,
|
||||
int iClipWidth, int iClipHeight );
|
||||
|
||||
// NOTE:
|
||||
// Don't send fClip==TRUE to LineDraw if you don't have to. So if you know
|
||||
// that your line will be within the region you want it to be in, set
|
||||
// fClip == FALSE.
|
||||
void PixelDraw( BOOLEAN fClip, INT32 xp, INT32 yp, INT16 sColor, UINT8 *pScreen );
|
||||
|
||||
// Flugente: alter the colour of existing pixels instead of fully replacing the colour
|
||||
void PixelAlterColour( BOOLEAN fClip, INT32 xp, INT32 yp, INT16 sColor, UINT8 *pScreen );
|
||||
|
||||
void LineDraw( BOOL fClip, int XStart, int YStart, int XEnd, int YEnd, short Color, UINT8 *ScreenPtr);
|
||||
void LineDraw( BOOL fClip, int XStart, int YStart, int XEnd, int YEnd, short Color, UINT8 *ScreenPtr);
|
||||
void LineDraw8( BOOL fClip, int XStart, int YStart, int XEnd, int YEnd, short Color, UINT8 *ScreenPtr);
|
||||
void RectangleDraw( BOOL fClip, int XStart, int YStart, int XEnd, int YEnd, short Color, UINT8 *ScreenPtr);
|
||||
void RectangleDraw8( BOOL fClip, int XStart, int YStart, int XEnd, int YEnd, short Color, UINT8 *ScreenPtr);
|
||||
|
||||
// *****************************************************************************
|
||||
|
||||
/*
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
*/
|
||||
|
||||
#endif
|
||||
|
||||
// EOF *************************************************************************
|
||||
Reference in New Issue
Block a user