[Plib-users] ssgTexture
Brought to you by:
sjbaker
|
From: Mat D. <mdd...@en...> - 2002-11-27 01:01:07
|
Im having some trouble with ssgTexture and Im not sure what is
happening. Here is my code:
ssgSimpleState *faceState[6];
ssgTexture *tex;
for( i=0 ; i<5 ; i++ )
{
faceState[i] = new ssgSimpleState;
/*
bmpImageLoad( gDataManager->facePath[i], &width, &height, &texBytes );
tex = new ssgTexture ( gDataManager->facePath[i], texBytes, width,
height, 0 );
*/
tex = new ssgTexture( gDataManager->facePath[i] );
faceStates[i]-> setTexture( tex );
}
As you can see, Ive tried both my own loader code and ssgTexture() to
load the image. Once the calls are made I make an ssgVTable, set its
state and params, give it to an ssgTransform, and then add it to my
sceneRoot. The final product of this labor is a white square with no
texture. Is there any kind of advice anyone can give me about how I
should deal with this, places to look, etc?
mat.
|