bug-gnustep
[Top][All Lists]
Advanced

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

Re: Quartz Display Services and then NSOpenGLPixelFormat


From: Julien Isorce
Subject: Re: Quartz Display Services and then NSOpenGLPixelFormat
Date: Tue, 10 Feb 2009 22:36:19 +0100

Hi,

2 questions:

2009/2/10 Julien Isorce <julien.isorce@gmail.com>

2009/2/10 Matt Rice <ratmice@gmail.com>

On Mon, Feb 9, 2009 at 3:42 PM, Julien Isorce <julien.isorce@gmail.com> wrote:
> Hi,
>
> Any "Quartz Display Services" support in GNUstep ?
> (ApplicationServices/ApplicationServices.h,
> http://developer.apple.com/documentation/graphicsimaging/reference/Quartz_Services_Ref/Reference/reference.html)
>

For example I would like to use:

CGDisplayIDToOpenGLDisplayMask (kCGDirectMainDisplay)
CGCaptureAllDisplays ()
CGReleaseAllDisplays ()

Or maybe do you know an alternative ?
(I think
uint32_t display_id = [[[NSScreen mainScreen] deviceDescription] objectForKey:@"NSScreenNumber"];
is equivalent to calling kCGDirectMainDisplay)

Someone can help ? Thx



 

> Then when the following code is executed :
>
> NSOpenGLPixelFormat *fmt;
>   NSOpenGLPixelFormatAttribute attribs[] = {
>     NSOpenGLPFAAccelerated,
>     NSOpenGLPFANoRecovery,
>     NSOpenGLPFADoubleBuffer,
>     NSOpenGLPFAColorSize, 24,
>     NSOpenGLPFAAlphaSize, 8,
>     NSOpenGLPFADepthSize, 24,
>     NSOpenGLPFAWindow,
>     0
>   };
>
>   fmt = [[NSOpenGLPixelFormat alloc]
>       initWithAttributes:attribs];
>
> I got the following error :"File NSOpenGLPixelFormat.m: 59. In
> [NSOpenGLPixelFormat +_classPixelFormat] Backend doesn't have any
> glPixelFormatClass"
>

which backend/platform? it sounds like when your backend was compiled
either WGL or the GL/GLX libraries were not found.

Windows XP  (I installed GNUstep using gnustep-core-0.22.0-setup.exe and gnustep-system-0.22.0-setup.exe)

In which .a there is the glPixelFormatClass backend ?

>2009/2/10 Matt Rice <ratmice@gmail.com>
>sorry I really don't know anything about the windows backend,
>I had already typed in 'only works under x11' in my previous email
>before I decided to check if someone had implemented it since the last
>I checked, and sure enough it looks to be implemented.

>its in back/Source/win32/WIN32Server.
>m -glPixelFormatClass
>probably in libgnustep-back.a or something to that effect.
>the class name is Win32GLPixelFormat.

>the implementation of -glPixelFormatClass
>looks like this:

>#ifdef HAVE_WGL
> return [Win32GLPixelFormat class];
>#else
> return nil;
>#endif

>so it is likely that when you ran configure it never found WGL for
>some reason, so thats the first place I would look, maybe send the
>config.log to the list.

When should I run configure ?
I wrote a GNUmakefile (for a small lib)

it seems that gnustep-core-0.22.0-setup.exe and gnustep-system-0.22.0-setup.exe  do not install" GNUstep Backend" package.

I will try to compile it by my self so, or any other explanation ?

Last question: do you how to remove the "-0" suffix that appears in the .dll file name ? (include $(GNUSTEP_MAKEFILES)/library.make)
 
Sincerely

Julien


reply via email to

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