Meanwhils back at the getimage problem....
I have been using dbgetimage and using getarounds to avoid the problem of the texture not filling the object, but the time has come to get to grips with it.
I have made a simple jpg by scanning in a line of 5 playing cards butt up next to each other, and then;
dbLoadBitmap("clubs1to5.jpg",1);
int dw=dbBitmapWidth(1);
int dh =dbBitmapHeight(1);
i=0;
while(i<5){
dbGetImage(i,0,dh*i/5,dw,dh*(i+1)/5+5,1);
dbMakeObjectPlane(i,dw/10,dh/50);
dbZRotateObject(i,90);
dbTextureObject(i,i);
dbPositionObject(i,(i-2)*dh/40,0,0);
i=i+1;
}
Yes I have all the textures clipped perfectly but, as ever, the texture does not fill the object. I have played around with this for some time and am unable to improve.
What am I doing wrong??
Help please!!
EDIT
Doh, I used a texture flag of 1, should have used zero.
Sorry!
uff