Mailing Lists: Apple Mailing Lists

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

determining texture memory for a specific context



I want to figure out how much texture memory is available to my renderer, so I can switch to 16-bit textures automatically on older systems.

To get this, I need aglDescribeRenderer, which needs an AGLRendererInfo structure. However, I see no way to get an AGLRendererInfo structure for my particular pixelformat/context/drawable. The closest seems to be to use aglQueryRendererInfo and then walk through it looking for an AGL_RENDERER_ID match.

But I don't think that will work, because OS9, where I most need this, often returns the wrong AGL_RENDERER_ID, and even if that worked, the user might have two cards that differed only in texture memory, and I don't know how to distinguish which one would be the right one.

Clue for the clueless, anyone?

Thanks.

-jrr
--
------------------------------------------------------------------
Jeff Ray M/S 4840A Official Correspondence Only:
NASA Internet: email@hidden
Dryden Flight Research Center
P. O. Box 273
Edwards, CA 93523-0273 All Others:
(805) 258-3754 AOL: Jeff Ray (email@hidden)
_______________________________________________
mac-opengl mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/mac-opengl
Do not post admin requests to the list. They will be ignored.



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.