Oxygen Basic

Programming => Example Code => Topic started by: Peter on October 14, 2011, 01:07:55 PM

Title: PlgBlt
Post by: Peter on October 14, 2011, 01:07:55 PM
Deleted
Title: Re: PlgBlt
Post by: Charles Pegge on October 14, 2011, 02:20:51 PM

Hi Peter,

Do you have a new window.h? - Missing plgblt
Title: Re: PlgBlt
Post by: Charles Pegge 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
Title: Re: PlgBlt
Post by: Charles Pegge 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
Title: Re: PlgBlt
Post by: Charles Pegge 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