Post

 Resources 

Console


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...


-
Back to Forum

Re: Loading textures and finding dimensions... Adam Hoult (2 replies) (2001-Jan-2)
Perfect, thanks! mateo (1 reply) (2001-Jan-2)
Re: Perfect, thanks! Adam Hoult (0 replies) (2001-Jan-2)
D3DX_DEFAULT Jack Hoxley (0 replies) (2001-Jan-2)

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.
There have been 28 visitors within the last 20 minutes
RSS News Feed