Stupid Raw Data

Started by
0 comments, last by beaton_john 21 years ago
Hi i am writing an api-independent renderer, which can use GL, D3D8, or GDI (who would want to tho?)... anyway, i already have an image class which loads an image''s raw data. I want to use D3DXCreatetexturefromfileinmemoryex to load it, but how can i do this?? is there any function i can use to replace this?? thankyou, john
Advertisement
quote:Original post by beaton_john
Hi

i am writing an api-independent renderer, which can use GL, D3D8, or GDI (who would want to tho?)...


is contradictory to

quote:Original post by beaton_john

I want to use D3DXCreatetexturefromfileinmemoryex to load it...

thankyou, john


since d3dx is NOT api independant.

BUT straight out of the sdk docs you get this

HRESULT D3DXCreateTextureFromFileInMemoryEx( LPDIRECT3DDEVICE9 pDevice,
LPCVOID pSrcData,
UINT SrcDataSize,
UINT Width,
UINT Height,
UINT MipLevels,
DWORD Usage,
D3DFORMAT Format,
D3DPOOL Pool,
DWORD Filter,
DWORD MipFilter,
D3DCOLOR ColorKey,
D3DXIMAGE_INFO *pSrcInfo,
PALETTEENTRY *pPalette,
LPDIRECT3DTEXTURE9 *ppTexture
);
TechleadEnilno, the Ultima 2 projectwww.dr-code.org/enilno

This topic is closed to new replies.

Advertisement