X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fgpu-gles%2FgpuDraw.h;fp=plugins%2Fgpu-gles%2FgpuDraw.h;h=f5f0426a8c7f33db544b415e636dc3d0637f1064;hp=0000000000000000000000000000000000000000;hb=ce879073e4f228deec8bec5db8a2ff640636c88f;hpb=3a255ce52a55a2065429b8baad000c72aed31e97 diff --git a/plugins/gpu-gles/gpuDraw.h b/plugins/gpu-gles/gpuDraw.h new file mode 100644 index 00000000..f5f0426a --- /dev/null +++ b/plugins/gpu-gles/gpuDraw.h @@ -0,0 +1,83 @@ +/*************************************************************************** + draw.h - description + ------------------- + begin : Sun Mar 08 2009 + copyright : (C) 1999-2009 by Pete Bernert + web : www.pbernert.com + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. See also the license.txt file for * + * additional informations. * + * * + ***************************************************************************/ + +//*************************************************************************// +// History of changes: +// +// 2009/03/08 - Pete +// - generic cleanup for the Peops release +// +//*************************************************************************// + +#ifndef _GL_DRAW_H_ +#define _GL_DRAW_H_ + + +#ifdef __cplusplus + +extern "C" { +#endif + +#include "minimal.h" +#include + +// internally used defines + +#define GPUCOMMAND(x) ((x>>24) & 0xff) +#define RED(x) (x & 0xff) +#define BLUE(x) ((x>>16) & 0xff) +#define GREEN(x) ((x>>8) & 0xff) +#define COLOR(x) (x & 0xffffff) + +// prototypes + +#ifdef _WINDOWS +BOOL bSetupPixelFormat(HDC hDC); +#endif + +int GLinitialize(); +void GLcleanup(); +#ifdef _WINDOWS +BOOL offset2(void); +BOOL offset3(void); +BOOL offset4(void); +BOOL offsetline(void); +#else +unsigned short offset2(void); +unsigned short offset3(void); +unsigned short offset4(void); +unsigned short offsetline(void); +#endif +void offsetST(void); +void offsetBlk(void); +void offsetScreenUpload(long Position); +void assignTexture3(void); +void assignTexture4(void); +void assignTextureSprite(void); +void assignTextureVRAMWrite(void); +void SetOGLDisplaySettings (unsigned short DisplaySet); +void ReadConfig(void); +void WriteConfig(void); +void SetExtGLFuncs(void); +/////////////////////////////////////////////////////////////////////// + +#ifdef __cplusplus +} +#endif + +#endif // _GL_DRAW_H_