Jump to content


DirectDraw


3 replies to this topic

#1 Noor

    Senior Member

  • Members
  • PipPipPipPip
  • 503 posts

Posted 12 April 2003 - 12:04 AM

I know that if you create a complex flipping chain in video memory, when you flip the backbuffer to the primary surface, it doesn't actually blit the entire screen, but just modifies a pointer that tells the video hardware where the top left of the screen resides. (Sets that pointer to point to the next surface in the flipping chain).

My question is, is there a way with DirectDraw to have that pointer point to any arbitrary point within a video memory surface?
For example, I want to create a surface in video memory with dimensions 1024x768. Then I want to set the screen resolution to 640x480. Is there a way I can set the screen to be a viewport into the larger surface such that the screen can scroll around anywhere within the surface.
"What ever happened to happily ever after?"

#2 Noor

    Senior Member

  • Members
  • PipPipPipPip
  • 503 posts

Posted 13 April 2003 - 04:46 PM

Ahh, was my question not clear? I didn't get an answer :sigh: .
"What ever happened to happily ever after?"

#3 vinmar

    Member

  • Members
  • PipPip
  • 51 posts

Posted 14 April 2003 - 09:04 AM

Well, I've re-read the question so that I understand it now. But the reason for getting no answer from me is that I haven't got a clue about this. ;)
Its not about having an infinite number of monkeys, its about having the right monkey

#4 anubis

    Senior Member

  • Members
  • PipPipPipPip
  • 2225 posts

Posted 14 April 2003 - 09:58 AM

i don't know what happens if you change the lpSurface pointer of the primary surface. that's the only think that i can think of that releates to your problem. i also have hardly any experience ( used direct draw for a small software rasterizer 2 years ago ) with directx so forgive me if that was complete bs.
If Prolog is the answer, what is the question ?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users