mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 18:39:09 +02:00
Converter: better OpenGL replacements.
git-svn-id: trunk@29161 -
This commit is contained in:
parent
bbf5a4f50a
commit
5c4d059729
@ -455,16 +455,19 @@ begin
|
|||||||
AddFunc(Categ, 'CloseHandle','FileClose($1)' ,'','SysUtils');
|
AddFunc(Categ, 'CloseHandle','FileClose($1)' ,'','SysUtils');
|
||||||
// WindowsAPI
|
// WindowsAPI
|
||||||
Categ:='WindowsAPI';
|
Categ:='WindowsAPI';
|
||||||
|
AddDefaultCategory(Categ);
|
||||||
AddFunc(Categ, 'ShellExecute',
|
AddFunc(Categ, 'ShellExecute',
|
||||||
'if $3 match ":/" then OpenURL($3); OpenDocument($3)', 'LCL', '');
|
'if $3 match ":/" then OpenURL($3); OpenDocument($3)', 'LCL', '');
|
||||||
AddFunc(Categ, 'TimeGetTime', 'GetTickCount','LCL',''); // In Windows MMSystems unit.
|
AddFunc(Categ, 'TimeGetTime', 'GetTickCount','LCL',''); // In Windows MMSystems unit.
|
||||||
// OpenGL
|
// OpenGL
|
||||||
Categ:='OpenGL';
|
Categ:='OpenGL';
|
||||||
|
AddDefaultCategory(Categ);
|
||||||
AddFunc(Categ, 'glIsEnabled', 'Boolean(glIsEnabled($1))', '', 'GL');
|
AddFunc(Categ, 'glIsEnabled', 'Boolean(glIsEnabled($1))', '', 'GL');
|
||||||
AddFunc(Categ, 'glIsList', 'Boolean(glIsList($1))', '', 'GL');
|
AddFunc(Categ, 'glIsList', 'Boolean(glIsList($1))', '', 'GL');
|
||||||
AddFunc(Categ, 'glIsTexture', 'Boolean(glIsTexture($1))', '', 'GL');
|
AddFunc(Categ, 'glIsTexture', 'Boolean(glIsTexture($1))', '', 'GL');
|
||||||
// In glColorMask, glDepthMask and gluQuadricTexture :
|
AddFunc(Categ, 'glColorMask', 'glColorMask(GLboolean($1),GLboolean($2),GLboolean($3),GLboolean($4))', '', 'GL');
|
||||||
// the parameter types should be typecasted, too. Not supported yet.
|
AddFunc(Categ, 'glDepthMask', 'glDepthMask(GLboolean($1))', '', 'GL');
|
||||||
|
AddFunc(Categ, 'gluQuadricTexture', 'gluQuadricTexture($1,GLboolean($2))', '', 'GL');
|
||||||
// Others
|
// Others
|
||||||
Categ:='Other';
|
Categ:='Other';
|
||||||
AddDefaultCategory(Categ);
|
AddDefaultCategory(Categ);
|
||||||
|
Loading…
Reference in New Issue
Block a user