--- a/hedgewars/SDLh.pas Tue Jan 22 17:18:58 2008 +0000
+++ b/hedgewars/SDLh.pas Fri Jan 25 20:47:50 2008 +0000
@@ -18,6 +18,7 @@
unit SDLh;
interface
+
{$IFDEF LINUX}
{$DEFINE UNIX}
{$ENDIF}
@@ -61,6 +62,9 @@
SDL_INIT_VIDEO = $00000020;
SDL_INIT_AUDIO = $00000010;
+
+ SDL_GL_DOUBLEBUFFER = 5;
+ SDL_OPENGL = 2;
type PSDL_Rect = ^TSDL_Rect;
TSDL_Rect = record
@@ -241,6 +245,9 @@
function SDL_LockMutex(mutex: PSDL_mutex): LongInt; cdecl; external SDLLibName name 'SDL_mutexP';
function SDL_UnlockMutex(mutex: PSDL_mutex): LongInt; cdecl; external SDLLibName name 'SDL_mutexV';
+function SDL_GL_SetAttribute(attr: byte; value: LongInt): LongInt; cdecl; external SDLLibName;
+procedure SDL_GL_SwapBuffers(); cdecl; external SDLLibName;
+
(* TTF *)
const {$IFDEF WIN32}