Jump to content
  • Advertisement

Archived

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

frankd

more dx8 surface stuff

This topic is 6414 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

I found the dx8 surface interface, and I''ve got some questions if anyone can help: 1) the D3DXLoadSurfaceFromFileInMemory function, does it load from a bmp in memory? The docs don''t say (also, the texture loading thing only loads from some raw format, which it doesn''t say anything about). 2) the same function takes a colorkey argument, which it converts to alpha transparent wherever it occurs. Does this then work in CopyRects? I know CopyRects doesn''t support colorkeys, but does it support alpha transparency? Or does it just copy the alpha colour as well to the destination. 3) is there any way to interact between surfaces and textures? I want to be able to copy data between the 2. It seems between them they offer everything I need, only I can''t copy between them. If not, what is the point of the colorkey thing in (2) if it''s not supported by any of the surface functions? Thanks, Frank

Share this post


Link to post
Share on other sites
Advertisement
Some (partial?) answers:

1. The D3DX-texture-loading-thingy supports .BMP, .TGA and some other formats (it''s in the DX8 SDK, but I dunno where :o) )

2+3. CopyRects() supports no colorkey, AND no alpha blending. Also, on my system (Matrox Marvel G400), CopyRects() is very slow. It decreases performance below accaptable levels when blitting 1 640x480 bitmap in 16 bit color.

Hope this helps a little.

Greetings, CondorWitte.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!