Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

jimiwa

D3DXLoadSurfaceFromResource?

This topic is 5280 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

could someone explain to me how to call the D3DXLoadSurfaceFromResource function - i.e. how many parameters does it have, what are they, what values do I pass?

Share this post


Link to post
Share on other sites
Advertisement
Check the DirectX documentation (either offline in the SDK, or online on MSDN).

Syntax

HRESULT WINAPI D3DXLoadSurfaceFromResource( LPDIRECT3DSURFACE9 pDestSurface,
const PALETTEENTRY *pDestPalette,
const RECT *pDestRect,
HMODULE hSrcModule,
LPCTSTR pSrcResource,
const RECT *pSrcRect,
DWORD Filter,
D3DCOLOR ColorKey,
D3DXIMAGE_INFO *pSrcInfo
);


I haven''t used it myself, but YOU CAN ALWAYS TRY TO USE IT without having it correctly done. If you try yourself, you''ll learn more than when you Copy & Paste code.

I find automatic codecompleten tools (like Visual Assist (MSVC)) very handy when ''trying out'' unknown functions.

--
You''re Welcome,
Rick Wong
- Google | Google for GameDev.net | GameDev.net''s DirectX FAQ. (not as cool as the Graphics and Theory FAQ)

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!