Hi,
I'm having some troubles with Textures in DirectX3D.
I'm trying to create textures: like:
m_texture = new Texture(dev, m_bitmap, Usage.SoftwareProcessing, Pool.Default);
But i get InvalidCallException !
So i'm using:
m_texture = TextureLoader.FromFile(dev, fileName);
But when i try to show part of the texuture using Sprite class:
sprite.Draw(m_texture, m_rect[num], new Vector3(0, 0, 0), new Vector3(x, y, 1), Color.FromArgb(255, 255, 255, 255));
I get it all very deformed.
Any ideas?
Thansk, LDV.
I'm having some troubles with Textures in DirectX3D.
I'm trying to create textures: like:
m_texture = new Texture(dev, m_bitmap, Usage.SoftwareProcessing, Pool.Default);
But i get InvalidCallException !
So i'm using:
m_texture = TextureLoader.FromFile(dev, fileName);
But when i try to show part of the texuture using Sprite class:
sprite.Draw(m_texture, m_rect[num], new Vector3(0, 0, 0), new Vector3(x, y, 1), Color.FromArgb(255, 255, 255, 255));
I get it all very deformed.
Any ideas?
Thansk, LDV.