Search found 2 matches

by Strida
January 29th, 2013, 3:44 pm
Forum: Everything
Topic: Drawing Textures Problem
Replies: 2
Views: 4686

Re: Drawing Textures Problem

It works now! When i create the textures with D3DXCreateTextureFromFileEx, they are created with their original size. HRESULT hr = D3DXCreateTextureFromFileEx( pD3DDevice, L"pathtofile", D3DX_DEFAULT_NONPOW2, D3DX_DEFAULT_NONPOW2, D3DX_DEFAULT, 0, D3DFMT_FROM_FILE, D3DPOOL_DEFAULT, D3DX_DEFAULT, D3D...
by Strida
January 29th, 2013, 2:22 am
Forum: Everything
Topic: Drawing Textures Problem
Replies: 2
Views: 4686

Drawing Textures Problem

I'm learning and trying 2D games development with DirectX and i'm having a little problem. I've managed to read, create and draw textures with the types: LPDIRECT3DDEVICE9 // for the D3D Device, LPDIRECT3DTEXTURE9 // for textures, LPD3DXSPRITE // for the Sprite used to draw the textures, D3DXVECTOR3...