Marcus Barnes (marcus++at++multigen.com)
Tue, 9 Jul 1996 13:40:26 -0700
Here's a debugging function available from the OpenFlight loader that shows
what I think you're asking for ... you can call it if you want:
-----------------------------------
void
mgDumpGState ( pfGeoState* gstate )
{
unsigned inh = pfGetGStateInherit( gstate );
pfMaterial* mtl = pfGetGStateAttr( gstate, PFSTATE_FRONTMTL );
pfTexEnv* tenv = pfGetGStateAttr( gstate, PFSTATE_TEXENV );
pfTexture* tex = pfGetGStateAttr( gstate, PFSTATE_TEXTURE );
pfNotify( PFNFY_DEBUG, PFNFY_MORE, " geostate: %p", gstate );
pfNotify( PFNFY_DEBUG, PFNFY_MORE, " material: %p, inherited: %d",
mtl, inh & PFSTATE_FRONTMTL );
pfNotify( PFNFY_DEBUG, PFNFY_MORE, " texenv: %p, inherited: %d",
tenv, inh & PFSTATE_TEXENV );
pfNotify( PFNFY_DEBUG, PFNFY_MORE, " texture: %p, inherited: %d",
tex, inh & PFSTATE_TEXTURE );
if ( tex )
{
pfNotify( PFNFY_DEBUG, PFNFY_MORE, " name: %s",
pfGetTexName( tex ) );
}
}
-----------------------------------
Regards.
--
____ ___ ____ _ Marcus Barnes, Member Technical Staff
/ __ `__ \/ __ `( ) MultiGen Inc. 550 S. Winchester Blvd. STE 500
/ / / / / / /_/ / / San Jose CA 95128 WEB: http://www.multigen.com
/_/ /_/ /_/\__, /_/ PH:1-408-556-2654 FX:1-408-261-4102
/____/ EMAIL: marcus++at++multigen.com
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:09 PDT