Attaching Clipper in Windowed Mode
I attach DirectDrawClipper object to primary(front) surface only under Windowed mode. Because it is quite easy for us to substitute our own code for the clipper attached to back or offscreen surface.
My 3D application does not need backsurface''s DirectDrawClipper. ;-)
Kwanji
My 3D application does not need backsurface''s DirectDrawClipper. ;-)
Kwanji
No, I don''t. But if your application uses dialogbox or messagebox in fullscreen mode, the DirectDrawClipper which is attached to primary surface helps you.
My application uses neither. :D
Kwanji
My application uses neither. :D
Kwanji
When creating a clipper, it requires that you specify a RECT. How do I calculate the "client area" RECT of the window? The area where the actions take place, excluding title bar, border and such.
You need not calculate the RECT of ''client area''. Because IDirectDrawClipper::SetHWnd() method associates clipper with handle of window, and makes it retrieve valid area automatically.
Hope this helps you
Kwanji, from Japan
Hope this helps you
Kwanji, from Japan
If you had multiple windows on the primary buffer you were blitting to, you would need to do a SetClipper on the primary buffer with the correct clipper before each back->primary blit...
I can''t think of a good reason to attach a clipper to the back buffer, but you may need a seperate clipper for each back buffer (to be used on the primary...)
I can''t think of a good reason to attach a clipper to the back buffer, but you may need a seperate clipper for each back buffer (to be used on the primary...)
Ah, DX8 does it all for you...
Please state the nature of the debugging emergency.
Please state the nature of the debugging emergency.
Yeah, but you can''t get a pointer to the memory of a surface!
Or is there a bonus function to do it now? (used to be Lock)
Or is there a bonus function to do it now? (used to be Lock)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement