Author Topic: PlgBlt  (Read 2500 times)

0 Members and 1 Guest are viewing this topic.

Peter

  • Guest
PlgBlt
« on: October 14, 2011, 01:07:55 PM »
Deleted
« Last Edit: April 11, 2015, 10:24:02 AM by Peter »

Charles Pegge

  • Guest
Re: PlgBlt
« Reply #1 on: October 14, 2011, 02:20:51 PM »

Hi Peter,

Do you have a new window.h? - Missing plgblt

Charles Pegge

  • Guest
Re: PlgBlt
« Reply #2 on: October 14, 2011, 10:32:47 PM »

Thanks Peter,

I think you may be hitting the speed limit for CPU pixel graphics with this example. The frame rate appears to be quite slow when  the book opens - 15fps?.

Small correction: BmpW and BmpH should be BmpWidth and BmpHeight to match window.h.

I like your transparent examples. Are you planning a game with interdimensional craft :)

Charles

Charles Pegge

  • Guest
Re: PlgBlt
« Reply #3 on: October 15, 2011, 04:20:22 AM »
Hi Peter.

It may be some kind of sync problem that prevents the animation from running smoothly.

This is where Opengl is advantageous. It can animate many obects and surfaces at the same time. Drawing lists can be glCompiled to run entirely in the graphics hardware. The CPU only has to calculate the position, scale and rotation.

Charles

Charles Pegge

  • Guest
Re: PlgBlt
« Reply #4 on: October 15, 2011, 08:27:45 AM »

That one work smoothly Peter.


Interesting function:

http://msdn.microsoft.com/en-us/library/dd162804(v=vs.85).aspx