NSOpenGLPixelFormatAttribute in ObjC++
NSOpenGLPixelFormatAttribute in ObjC++
- Subject: NSOpenGLPixelFormatAttribute in ObjC++
- From: Tommaso Pecorella <email@hidden>
- Date: Sat, 6 Jul 2002 02:07:06 +0200
Hi, a stupid question:
I am trying to convert a ObjC code i have to an ObjC++ one (in order
to gain experience and to clean up the code).
In the code I have to build a NSOpenGLPixelFormat (in the ObjC part),
and, as usual, I have to create an NSOpenGLPixelFormatAttribute.
The "normal" code
----
NSOpenGLPixelFormatAttribute attribs[] =
{ NSOpenGLPFAAccelerated,
// NSOpenGLPFADepthSize, 24,
NSOpenGLPFAColorSize, 16,
NSOpenGLPFAMinimumPolicy,
NSOpenGLPFAMaximumPolicy,
// NSOpenGLPFAClosestPolicy,
0
};
----
raise an error that puzzles me (I have no idea about how to correct it):
---> conversion from `int' to `enum NSOpenGLPixelFormatAttribute'
What's the problem and how can I fix it ? It's an error, not a
warning, so I can't simply ignore it.
Best regards, Tommaso ;-{))
--
--------------------------------------------------------------------------
Ing. Tommaso Pecorella
snail-mail: e-mail :
via del Pergolino 8/a
mailto:email@hidden
50139 Firenze - ITALY
RSA Key fingerprint = 232A D084 AD2F 7815 3D44 AFF0 AA52 A3AA
--------------------------------------------------------------------------
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.