• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSOpenGLPixelFormatAttribute in ObjC++
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSOpenGLPixelFormatAttribute in ObjC++
      • From: email@hidden
  • Prev by Date: Re: NSFileManager - isExecutableFileAtPath - seems to lie
  • Next by Date: No MainNibFile causes buttonPressed error message
  • Previous by thread: Re: OutlineView selected item/row
  • Next by thread: Re: NSOpenGLPixelFormatAttribute in ObjC++
  • Index(es):
    • Date
    • Thread