Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Macro tricks



Seems like you could do something pretty trivial with macros if you control all the source code.

#define glBegin  myGlBegin
#define glColor3f  myGlColor3f
etc etc



On Mar 29, 2005, at 2:55 PM, Sean Ahern wrote:

bsupnik wrote:
This probably is pretty far over in the catagory of bad ideas, but...

Can I insert function ptrs into the CGL context dispatch table to hijack
OGL calls? :-)


(This would be sort of like overriding QD procs, but ... evil.)

I promise not to do this for shipping code...this is just for a one-off
case where want to get the finished output of a very complex set of draw
calls in a format I can put in a 3-d modeler.

I'm not sure what the current state of it is on OS X, but the Chromium project would let you hijack OpenGL calls directly. While very useful for OpenGL debugging, there are shipping codes which use Chromium for useful purposes. http://chromium.sourceforge.net/

-Sean

__
email@hidden
925-422-1648
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/ email@hidden


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Mac-opengl mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden
References: 
 >Macro tricks (From: bsupnik <email@hidden>)
 >Re: Macro tricks (From: Sean Ahern <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.