VBGamer |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Loading textures and finding dimensions... mateo (4 replies, 0 views) (2001-Jan-1) I am writing a DirectX 8 graphics engine for doing 2D games, and I am working on a routine to load in textures for sprites. I see how to use vertices and use CreateTextureFromFileEx to make a rectangle with a texture, but in the SDK samples, they always explicitly give the width and height of the texture. Is there any way to read in the width and height and set the vertices accordingly? Thanks...
|