Hi there,
im using D3D sprites in my 2D game. Im storing textures in jpg and tga files, every time im creating a sprite with, say 150x150 tga texture file all seems to wrok fine, but my sprite's texture is being automatically resampled to fit 256x256. i have absolutely no idea why. any help would be greatly appreciated. ah yes, here is the code:
....
....
....
texture = TextureLoader.FromFile(device, @filename);
SurfaceDescription description = texture.GetLevelDescription(0);
textureSize = new Rectangle(0, 0, description.Width, description.Height);
....
....
Width and Height Fields semm to always be 256...
im using D3D sprites in my 2D game. Im storing textures in jpg and tga files, every time im creating a sprite with, say 150x150 tga texture file all seems to wrok fine, but my sprite's texture is being automatically resampled to fit 256x256. i have absolutely no idea why. any help would be greatly appreciated. ah yes, here is the code:
....
....
....
texture = TextureLoader.FromFile(device, @filename);
SurfaceDescription description = texture.GetLevelDescription(0);
textureSize = new Rectangle(0, 0, description.Width, description.Height);
....
....
Width and Height Fields semm to always be 256...