Amiga.org
Amiga computer related discussion => Amiga Gaming => Topic started by: ElPolloDiabl on May 26, 2010, 08:22:28 PM
-
What is the blitz basic version of graphics get and put?
I written the pixels on the screen, now I want to copy them and tile them.
thanks in advance
-
I searched around and can't find an answer. I'm trying to figure it out using createimage.
-
:bump:
-
You mean you want to copy a portion of the screen you have already created and then tile it ?
Which version of blitz is this and on what computer ?
-
Blitz3D on WindowsXP on a amd box.:nervous:
-
Blitz3D on WindowsXP on a amd box.:nervous:
The syntax between Blitz Basic (amiga) and Blitz3D is totally different... But the Blitz3D IDE has fantastic built in documentation, just read through the GFX functions.
-
readpixel, and writepixel, lets you read and write pixels from a screen
readpixelfast and writepixelfast, are the faster ones, but have no error checking, and need you to lock the screen buffer.
You can use createimage
if you create one, set it as the current buffer
draw what you want to it.
then you can paste it with drawimage.
It has been years since I have touched blitz3d, wrote an openGL engine in it, then ran away hehe.
I had so much fun with blitz+, and blitzMAX.
-
copypixel works it'll have to do. Got it with Createimage too....
gfx1 = CreateImage(13,13)
SetBuffer ImageBuffer(gfx1)
For x=1 To 13
For y=1To 13
Read Clr
If clr = 0 Then Color 0,200,0
If clr = 0 Then Plot x,y
If clr = 2 Then Color 0,150,0
If clr = 2 Then Plot x,y
Next
Next
SetBuffer BackBuffer()
TileImage gfx1,0,0