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

Tga 16bit loading problems

Started by gus192 Feb 18, 2005 at 8:24 AM 0 replies 400+ views
Original Post
gus192
gus192
Hi!! I have an engine working ok with tga 32bit rle graphics. I need to convert this graphics to 16bit rle. When I try to load this graphics nothing is displayed. Changing D3DXCreateTextureFromResourceEx( d3dDevice,GetModuleHandle(NULL),Filename ,0,0, 1 ,0, D3DFMT_A8R8G8B8, D3DPOOL_MANAGED, D3DX_FILTER_DITHER | D3DX_FILTER_NONE, D3DX_DEFAULT, ColorKey, &imageInfo, NULL,&m_pTexture); to D3DFMT_A4R4G4B4 nothing happends... Any idea? Thanks!!!
gus192
gus192
Quote:

Please, i really need this. Having a game engine witch works perfectly with tga 32 bit, what changes need to make to work with 16bit?
Original post by gus192
Hi!!

I have an engine working ok with tga 32bit rle graphics. I need to convert this graphics to 16bit rle.
When I try to load this graphics nothing is displayed.
Changing

D3DXCreateTextureFromResourceEx( d3dDevice,GetModuleHandle(NULL),Filename ,0,0, 1 ,0, D3DFMT_A8R8G8B8,
D3DPOOL_MANAGED, D3DX_FILTER_DITHER | D3DX_FILTER_NONE,
D3DX_DEFAULT, ColorKey, &imageInfo,
NULL,&m_pTexture);

to D3DFMT_A4R4G4B4

nothing happends...

Any idea?

Thanks!!!

Topic Locked

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

Sign in to reply to this topic.