bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 2 questions about Application Services, 1 about backend


From: Xavier Glattard
Subject: Re: 2 questions about Application Services, 1 about backend
Date: Fri, 20 Feb 2009 11:18:44 +0100
User-agent: Thunderbird 2.0.0.16 (X11/20080707)


Julien Isorce a écrit :
Hi,

I am playing with GNUstep for some hours now and I still wondering about 3 things that I discarded at start.

** 1. Using GNUstep, CGDisplayIDToOpenGLDisplayMask(kCGDirectMainDisplay) seems to be not supported.
(...)
CG* functions are Apple specific. Look for WGL similar functions on Windows, or for GLUT or SDL functions. This is not a GNUstep related issue.

** 2. CGCaptureAllDisplays and CGReleaseAllDisplays seem to be not supported on GNUstep.
(...)
This may help:
http://www.cocoadev.com/index.pl?WindowOnEveryScreen

** 3. How can I check at runtime if a function is implemented by the platform backend ?
For example "setValues" is not implemented on win32:
[[self openGLContext] setValues:&swapInterval forParameter:NSOpenGLCPSwapInterval];

A call to a non-implemented method raises an exception. You may catch it. As it's only implemented by Apple a compile time check should do the job. But is this what you need ?
Once again you might have to look for WGL functions
See WGL_EXT_swap_control. This is an extension and might not be supported by some old PC hardware.

'back/Source/win32/w32_GLcontext.m' might be the place to put your changes in ;)

Regards
- Xavier




reply via email to

[Prev in Thread] Current Thread [Next in Thread]