Renderstates for Bit()

Started by
0 comments, last by Ro 24 years, 1 month ago
All I want to do is stretch a portion of a DirectDraw surface onto a window using MFC, however it does it really slowly - but I don''t think it''s due to MFC. I assume that it''s because some of the default render states isn''t optimal for just 2D scaling. Is this a correct assumption? I''m using DX 7.0a. Does the render states have to be set to something in particular to get it to go faster? I''m not using color keying or anything like that, just want to do plain scaling with a DirectDraw surface. My surface which represents the world is kinda large though (1000x500) and I have a viewport that scrolls through it.
Advertisement
Hi

Try to use the Blit fUnctions of the DirectDraw Surfaces, they are very fast espacially when streching because they use the graphicscard Hardware todo this ( i asume that one of the surfaces lies in Video Memory).
As far as i know, the Render states don''t affect 2D Operations at all, only Operations with DrawPrimitive and so on.

Lars
--------> http://www.larswolter.de <---------

This topic is closed to new replies.

Advertisement