// GL_ARB_imaging
GL_CONSTANT_COLOR_ARB = $8001;
+ GL_CONSTANT_COLOR = $8001;
GL_ONE_MINUS_CONSTANT_COLOR = $8002;
GL_CONSTANT_ALPHA = $8003;
GL_ONE_MINUS_CONSTANT_ALPHA = $8004;
function Int_GetExtensionString: AnsiString;
var
- ExtensionCount : GLuint;
+ ExtensionCount : GLint;
i : Integer;
begin
if GL_VERSION_3_0
25-07-2003
- begin of programming
***********************************************************}
-unit glBitmap;
+unit uglcBitmap;
// Please uncomment the defines below to configure the glBitmap to your preferences.
// If you have configured the unit you can uncomment the warning above.
-{$MESSAGE error 'Hey. I''m the glBitmap.pas and i need to be configured. My master tell me your preferences! ;)'}
+{.$MESSAGE error 'Hey. I''m the glBitmap.pas and i need to be configured. My master tell me your preferences! ;)'}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Preferences ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
{.$DEFINE GLB_DELPHI}
// activate to enable the support for TLazIntfImage from Lazarus
-{.$DEFINE GLB_LAZARUS}
+{$DEFINE GLB_LAZARUS}
// activate to enable Lazarus TPortableNetworkGraphic support
// if you enable this pngImage and libPNG will be ignored
-{.$DEFINE GLB_LAZ_PNG}
+{$DEFINE GLB_LAZ_PNG}
// activate to enable png support with the unit pngimage -> http://pngdelphi.sourceforge.net/
// if you enable pngimage the libPNG will be ignored
// activate to enable Lazarus TJPEGImage support
// if you enable this delphi jpegs and libJPEG will be ignored
-{.$DEFINE GLB_LAZ_JPEG}
+{$DEFINE GLB_LAZ_JPEG}
// if you enable delphi jpegs the libJPEG will be ignored
{.$DEFINE GLB_DELPHI_JPEG}
function TglcShaderObject.GetInfoLog(aObj: GLHandle): String;
var
Msg: PChar;
- bLen, sLen: GLint;
+ bLen: GLint;
+ sLen: GLsizei;
begin
bLen := 0;
glGetShaderiv(aObj, GL_INFO_LOG_LENGTH, @bLen);
if bLen > 1 then begin
GetMem(Msg, bLen * SizeOf(Char));
- glGetShaderInfoLog(aObj, bLen, sLen{%H-}, Msg);
+ glGetShaderInfoLog(aObj, bLen, @sLen, Msg);
result := PChar(Msg);
Dispose(Msg);
end;
function TglcShaderProgram.GetInfoLog(Obj: GLHandle): String;
var
Msg: PChar;
- bLen, sLen: GLint;
+ bLen: GLint;
+ sLen: GLsizei;
begin
bLen := 0;
glGetProgramiv(Obj, GL_INFO_LOG_LENGTH, @bLen);
if bLen > 1 then begin
GetMem(Msg, bLen * SizeOf(Char));
- glGetProgramInfoLog(Obj, bLen, sLen{%H-}, Msg);
+ glGetProgramInfoLog(Obj, bLen, @sLen, Msg);
result := PChar(Msg);
Dispose(Msg);
end;