Skip to main content
GameDev.net gamedev.net
🔒 Locked

creating textures

Started by Death Hornet Apr 14, 2001 at 3:10 PM 0 replies 300+ views
Original Post
Death Hornet
Death Hornet
I was wondering how to create textures in directx 8 from a file in memory. I know there is the D3DXCreateTextureFromFileInMemory function, but how do I use it?
Tornado
Tornado
  
HRESULT D3DXCreateTextureFromFileInMemory(
LPDIRECT3DDEVICE8 pDevice, // The Direct3D Device

LPCVOID pSrcData, // A pointer to the position of the data in memory

UINT SrcData, // The size of the data

LPDIRECT3DTEXTURE8* ppTexture // The texture you want to create

);


And... that''s it



- Goblineye Entertainment
The road to success is always under construction
Goblineye EntertainmentThe road to success is always under construction

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.