04-16-2005, 03:59 AM
How do I use the PUT command to draw a sprite in an off-screen buffer (virtual screen, whatever)?
PUTting to a buffer
|
04-16-2005, 03:59 AM
How do I use the PUT command to draw a sprite in an off-screen buffer (virtual screen, whatever)?
04-16-2005, 04:59 AM
Quote:How do I use the PUT command to draw a sprite in an off-screen buffer (virtual screen, whatever)? examples/gfx/rel-sprites.bas :bounce: v13b is aviable Joshy
sorry about my english
04-16-2005, 05:29 AM
I already saw that example, but it doesn't use the PUT command. I already know how to plot 1 pixel at a time. I was looking for a built-in sub. Oh well.
04-16-2005, 05:52 AM
Gfx commands like PSET and PUT can draw to GET/PUT buffers. I forget the syntax - but I'm sure that was added recently.
EDIT: Yep, it's in docs/gfxlib.txt. PUT [buffer,][STEP](x,y), arrayname[(idx)] [,mode] And buffer would be a GET/PUT format array. Or you can still do QB-style page flipping with the SCREENSET command, if that's what you mean by off-screen buffer.
04-16-2005, 10:03 AM
Quote:Gfx commands like PSET and PUT can draw to GET/PUT buffers. I forget the syntax - but I'm sure that was added recently. I tried that PUT syntax, but it didn't seem to work... Maybe because of tiny_ptc or sdl?
04-16-2005, 12:05 PM
nop gfx lib is directX or GDI it all low level stuff thanks to the geniuse that is lillo.
04-16-2005, 03:20 PM
The buffer needs to be a valid GET/PUT buffer before you can use any primitive (including PUT) on it.
Code: DIM buffer(64004) AS UBYTE Use SCREENSET/SCREENCOPY to deal with this; have a look at docs/gfxlib.txt for details.
ngelo Mottola - EC++
04-16-2005, 10:43 PM
Quote:The buffer needs to be a valid GET/PUT buffer before you can use any primitive (including PUT) on it. Ohhhhhh...! I didn't know that. Thanks. |
« Next Oldest | Next Newest »
|