ive managed to do a bit more can anyone see whats wrong with the code please..
#include <DarkGDK.h>
LPDIRECT3DTEXTURE9 g_pTexture = NULL;
LPD3DXSPRITE g_sprite = NULL;
void DarkGDK ( void )
{
dbSetDisplayMode(640,480,32);
dbSetWindowOff();
IDirect3DDevice9* g_pd3dDevice;
g_pd3dDevice=dbGetDirect3DDevice();
D3DXCreateTextureFromFile( g_pd3dDevice, "particle.bmp", &g_pTexture );
D3DXCreateSprite(g_pd3dDevice,&g_sprite);
while ( LoopGDK ( ) )
{
D3DXVECTOR3 pos;
pos.x=10.0f;
pos.y=20.0f;
pos.z=0.0f;
g_sprite->Begin(D3DXSPRITE_ALPHABLEND);
g_sprite->Draw(g_pTexture,NULL,NULL,&pos,0xFFFFFFFF);
g_sprite->End();
dbSync ( );
}
}
sorted it now
does anyone know how to get a pointer to a dbpro image so it can be used with the direct x sprite i know you can do it in gdk but i could do with it for my dll...