News:

PlayBASIC2DLL V0.99 Revision I Commercial Edition released! - Convert PlayBASIC programs to super fast Machine Code. 

Main Menu

Image Spooling (Scrolling Terrain Data Via Streaming)

Started by kevin, December 23, 2008, 06:03:47 PM

Previous topic - Next topic

kevin

 
Image Spooling (Scrolling Terrain Data Via Streaming)



  About:

      This example draws a large custom (not mapped) image as a scrolling backdrop.   Rather than loading the entire image into memory, the example reads sections of a previously converted version the image data into memory as needed.   


     Have fun, feel free to expand upon this

Controls:

     ESC Key = EXIT

   This example was written using PlayBasic V1.64g (retail) and may need to be modified to work with older versions of PlayBasic



Download

   Download Image spooling  (566k)



Source Code Index

   Source Code Index




Big C.

I got a compiler error under PB 164L_B3... It stops at this line (around 292) "Copymemory  Address,GetBankPtr(thisBank)+HeaderSize,Size"

Message: Incorrect Number of Parameters - 'Copymemory' is expecting #3 Parameters... I count three...  ???


kevin

 See-> Bound Functions (login required)

Big C.

thx kevin...

I have put brackets around the paramters at the line I have post above and the code runs...

But I found three more places were I didn't make changes... Line 201 (readmemory), 221 (copymemory) and 301 (writememory)... and the example runs... hmmmm... making me confusing...

kevin

  You can get away without them, but technically, All User Defined Function calls require brackets.