Re: Newbie Q: Is it possible to draw functional "Cocoa Controls" in an OpenGL context?
Re: Newbie Q: Is it possible to draw functional "Cocoa Controls" in an OpenGL context?
- Subject: Re: Newbie Q: Is it possible to draw functional "Cocoa Controls" in an OpenGL context?
- From: Daniel Steward <email@hidden>
- Date: Wed, 14 Feb 2007 15:52:19 -0700
Matt,
NSOpenGLView doesn't allow subviews but you could certainly put an
NSView on top of your OpenGL view and put buttons in there. You
could subclass that view to pass mouse clicks that weren't handled by
buttons in the top view down to the OpenGL view.
================================================
Daniel E Steward
Owner, lead developer
DoodleBytes LLC
http://www.doodlebytes.com
email@hidden
================================================
On Feb 14, 2007, at Wednesday2:33 PM, Matt Trinneer wrote:
Hello,
I've been trying to figure this out for a while but am having a
little trouble, being new to Cocoa, and OO programming in general.
Here goes: Is it possible to draw Interface Builder controls such
as buttons, sliders, etc. in an OpenGL view? I've figured out how
to capture bitmap representations of controls and render those in
OpenGL space. What I'd like to do is create 2D representations of
these controls in a 3D OpenGL context, while retaining the ability
to respond to user inputs using the interface elements built in
event handling, action, and output functionality . From my reading
so far OpenGL seems like a suitable candidate for the 3D rendering
environment. However I can't figure out if there is built-in Cocoa
functionality to accomplish this, or, if I'd have to build it myself.
Thanks for any suggestions you may be able to offer.
Matt
This e-mail and any attachments may contain
confidential and privileged information. If you are
not the intended recipient, please notify the sender
immediately by return e-mail, delete this e-mail
and destroy any copies. Any dissemination or use
of this information by a person other than the
intended recipient is unauthorized and may be
illegal. Unless otherwise stated, opinions expressed
in this e-mail are those of the author and are not
endorsed by the author's employer.
--
Le présent message, ainsi que tout fichier qui y estjoint, est
envoyé à l'intention exclusive de son oude ses destinataires; il
est de nature confidentielleet peut constituer une information
privilégiée. Nousavertissons toute personne autre que
ledestinataire prévu que tout examen,réacheminement, impression,
copie, distribution ouautre utilisation de ce message et de tout
fichierqui y est joint est strictement interdit.
Si vous n'êtes pas le destinataire prévu, veuillez enaviser
immédiatement l'expéditeur par retour decourriel et supprimer ce
message et tout documentjoint de votre système. Sauf indication
contraire,les opinions exprimées dans le présent messagesont celles
de l’auteur et ne sont pas avalisées parl’employeur de l’auteur.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden