Converter: replace some OpenGL units and functions in default settings.

git-svn-id: trunk@28870 -
This commit is contained in:
juha 2011-01-05 14:06:43 +00:00
parent 4db349f705
commit cfa9c9c875

View File

@ -372,6 +372,7 @@ begin
TheMap:=fReplaceUnits;
MapReplacement('Windows', 'LCLIntf, LCLType, LMessages');
MapReplacement('Mask', 'MaskEdit');
MapReplacement('OpenGL', 'GL, GLu');
MapReplacement('ShellApi', '');
MapReplacement('pngImage', '');
MapReplacement('Jpeg', '');
@ -457,6 +458,13 @@ begin
AddFunc(Categ, 'ShellExecute',
'if $3 match ":/" then OpenURL($3); OpenDocument($3)', 'LCL', '');
AddFunc(Categ, 'TimeGetTime', 'GetTickCount','LCL',''); // In Windows MMSystems unit.
// OpenGL
Categ:='OpenGL';
AddFunc(Categ, 'glIsEnabled', 'Boolean(glIsEnabled($1))', '', 'GL');
AddFunc(Categ, 'glIsList', 'Boolean(glIsList($1))', '', 'GL');
AddFunc(Categ, 'glIsTexture', 'Boolean(glIsTexture($1))', '', 'GL');
// In glColorMask, glDepthMask and gluQuadricTexture :
// the parameter types should be typecasted, too. Not supported yet.
// Others
Categ:='Other';
AddDefaultCategory(Categ);