opengl: started cocoa cgl

git-svn-id: trunk@49640 -
This commit is contained in:
mattias 2015-08-11 09:45:24 +00:00
parent 806a858149
commit e5f6bc622c
3 changed files with 15 additions and 12 deletions

View File

@ -1,7 +1,8 @@
<?xml version="1.0"?>
<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<Package Version="4">
<Name Value="LazOpenGLContext"/>
<Type Value="RunAndDesignTime"/>
<AddToProjectUsesSection Value="True"/>
<Author Value="Mattias Gaertner"/>
<CompilerOptions>
@ -19,15 +20,13 @@
<Item1 Value="1"/>
<Item2 Value="0"/>
</Values>
<ValueDescriptions Count="2"/>
</Item1>
</BuildMacros>
<Other>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
<Description Value="Simple cross-platform OpenGL viewer control"/>
<Version Release="1"/>
<Files Count="5">
<Files Count="6">
<Item1>
<Filename Value="openglcontext.pas"/>
<HasRegisterProc Value="True"/>
@ -53,8 +52,12 @@
<AddToUsesPkgSection Value="False"/>
<UnitName Value="glqtcontext"/>
</Item5>
<Item6>
<Filename Value="glcocoacglcontext.pas"/>
<AddToUsesPkgSection Value="False"/>
<UnitName Value="GLCocoaCGLContext"/>
</Item6>
</Files>
<Type Value="RunAndDesignTime"/>
<RequiredPkgs Count="2">
<Item1>
<PackageName Value="FCL"/>

View File

@ -2,7 +2,7 @@
This source is only used to compile and install the package.
}
unit LazOpenGLContext;
unit LazOpenGLContext;
interface
@ -11,11 +11,11 @@ uses
implementation
procedure Register;
procedure Register;
begin
RegisterUnit('OpenGLContext', @OpenGLContext.Register);
end;
RegisterUnit('OpenGLContext', @OpenGLContext.Register);
end;
initialization
RegisterPackage('LazOpenGLContext', @Register);
RegisterPackage('LazOpenGLContext', @Register);
end.

View File

@ -41,7 +41,7 @@ unit OpenGLContext;
{$DEFINE OpenGLTargetDefined}
{$ENDIF}
{$IFDEF LCLCocoa}
{$DEFINE UseCarbonCGL}
{$DEFINE UseCocoaCGL}
{$DEFINE OpenGLTargetDefined}
{$ENDIF}
{$IFDEF LCLWin32}