Skip to main content
gamedev.net
🔒 Locked

A simple DirectDraw question

Started by skywind 2 replies 150+ views
Original Post
skywind
skywind
I am learning ddraw recently, I want to know how to create a surface with the different PixelDepth: eg. I want to create a 1000x1000x24bit surface in the display mode of 640x480x16bit, how to do it. help! thank you!
Life is :-(Life is :-)
Prefect
Prefect
Note that most gfx cards will complain if you try to allocate a video memory surface that''s bigger than the screen resolution.

cu,
Prefect
Widelands - laid back, free software strategy
furby100
furby100
If you use textures and Direct3D, then tecnically, it is possible. If you use DirectDraw, however, you will have to convert your surface to 16-bit. You could do this manually or using GDIs BitBlt function and GetDC on the surface.



Just because you''re outnumbered doesn''t mean you''re wrong.


sharewaregames.20m.com

Topic Locked

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

Sign in to reply to this topic.