Original Source for 1.13 Mod High Resolution version from 12/06/05

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@21 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
lalien
2006-04-19 11:32:51 +00:00
commit e54aeb96aa
790 changed files with 741287 additions and 0 deletions
+80
View File
@@ -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, INT8 *pScreen );
void LineDraw( BOOL fClip, int XStart, int YStart, int XEnd, int YEnd, short Color, char *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, char *ScreenPtr);
template <typename string7>
void RectangleDraw( BOOL fClip, int XStart, int YStart, int XEnd, int YEnd, short Color, string7 ScreenPtr);
template <typename string7>
void RectangleDraw8( BOOL fClip, int XStart, int YStart, int XEnd, int YEnd, short Color, string7 ScreenPtr);
// *****************************************************************************
/*
#ifdef __cplusplus
}
#endif
*/
#endif
// EOF *************************************************************************