index b1d34101d44014c5ab06d3aa6b96dcfc32d94863..ca6dcf17bcbbb5565476c63f14b30e8fe3c8f2a2 100644 (file)
*
* 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 3 of the License, or
- * (at your option) any later version.
+ * the Free Software Foundation, version 3 of the License ONLY.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
uses
{$INCLUDE ../nogl/noGLuses.inc}
- SysUtils, Classes, Math, e_log, e_texture, SDL2, MAPDEF, ImagingTypes, Imaging, ImagingUtility;
+ {$IFDEF USE_SDL2}
+ SDL2,
+ {$ENDIF}
+ SysUtils, Classes, Math, e_log, e_texture,
+ MAPDEF, ImagingTypes, Imaging, ImagingUtility;
type
TMirrorType=(None, Horizontal, Vertical);
procedure e_Clear(); overload;
procedure e_EndRender();
+{$IFDEF USE_SDL2}
function e_GetGamma(win: PSDL_Window): Byte;
procedure e_SetGamma(win: PSDL_Window;Gamma: Byte);
+{$ENDIF}
procedure e_MakeScreenshot(st: TStream; Width, Height: Word);
glPopMatrix();
end;
+{$IFDEF USE_SDL2}
function e_GetGamma(win: PSDL_Window): Byte;
var
ramp: array [0..256*3-1] of Word;
SDL_SetWindowGammaRamp(win, @ramp[0], @ramp[256], @ramp[512]);
end;
+{$ENDIF}
function e_CharFont_Create(sp: ShortInt=0): DWORD;
var
procedure e_TextureFontBuild(Tex: DWORD; var FontID: DWORD; XCount, YCount: Word;
Space: ShortInt=0);
var
+{$IF not DEFINED(USE_NANOGL) and not DEFINED(USE_NOGL)}
loop1 : GLuint;
cx, cy : real;
+{$ENDIF}
i, id: DWORD;
begin
if e_NoGraphics then Exit;