From ce879073e4f228deec8bec5db8a2ff640636c88f Mon Sep 17 00:00:00 2001 From: notaz Date: Fri, 31 Dec 2010 16:57:02 +0200 Subject: gpu-gles from psx4m --- plugins/gpu-gles/gpuStdafx.h | 99 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 plugins/gpu-gles/gpuStdafx.h (limited to 'plugins/gpu-gles/gpuStdafx.h') diff --git a/plugins/gpu-gles/gpuStdafx.h b/plugins/gpu-gles/gpuStdafx.h new file mode 100644 index 0000000..fc7ee3d --- /dev/null +++ b/plugins/gpu-gles/gpuStdafx.h @@ -0,0 +1,99 @@ +/*************************************************************************** + stdafx.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 __GPU_STDAFX__ +#define __GPU_STDAFX__ + +#ifdef __cplusplus +extern "C" { +#endif + + + + + + // maybe we should remove this? +#ifdef _WINDOWS + +#define _CRT_SECURE_NO_WARNINGS + +#include +#include +#include +#include "resource.h" + +#pragma warning (disable:4244) + +#include + +#else +/* +#define __X11_C_ +*/ + +#include +#include +#include +#include +#ifdef __NANOGL__ +#include +#else +#ifdef SOFT_LINKAGE +#pragma softfp_linkage +#endif +#ifdef MAEMO_CHANGES + #include + #include + #include + #include +#else + #include // for opengl es types + #include +#endif +#ifdef SOFT_LINKAGE +#pragma no_softfp_linkage +#endif +#endif +#include + +#define __inline inline + +#endif + +#define SHADETEXBIT(x) ((x>>24) & 0x1) +#define SEMITRANSBIT(x) ((x>>25) & 0x1) + +#ifndef _WINDOWS +#ifndef GL_BGRA_EXT +#define GL_BGRA_EXT GL_RGBA +#endif +#endif + +#ifdef __cplusplus +} +#endif + +#endif -- cgit v1.2.3