mirror of
https://github.com/gnustep/libs-back.git
synced 2025-06-03 02:30:50 +00:00
Merge back with main branch
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/branches/gnustep_testplant_branch@35814 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
aae0f7748c
commit
25d6855dc0
1 changed files with 22 additions and 1 deletions
|
@ -284,6 +284,13 @@ static Win32GLContext *currentGLContext;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void *)CGLContextObj
|
||||||
|
{
|
||||||
|
// FIXME: Until we have a wrapper library
|
||||||
|
// return the underlying context directly
|
||||||
|
return (void*)wgl_context;
|
||||||
|
}
|
||||||
|
|
||||||
- (void)clearDrawable
|
- (void)clearDrawable
|
||||||
{
|
{
|
||||||
[self _detach];
|
[self _detach];
|
||||||
|
@ -327,6 +334,20 @@ static Win32GLContext *currentGLContext;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
- (id)initWithCGLContextObj: (void *)context
|
||||||
|
{
|
||||||
|
self = [super init];
|
||||||
|
|
||||||
|
if (!self)
|
||||||
|
{
|
||||||
|
return nil;
|
||||||
|
}
|
||||||
|
|
||||||
|
// FIXME: Need to set the pixelFormat ivar
|
||||||
|
wgl_context = context;
|
||||||
|
return self;
|
||||||
|
}
|
||||||
|
|
||||||
- (id)initWithFormat:(NSOpenGLPixelFormat *)aFormat
|
- (id)initWithFormat:(NSOpenGLPixelFormat *)aFormat
|
||||||
shareContext:(NSOpenGLContext *)share
|
shareContext:(NSOpenGLContext *)share
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue