I hope from this example you can see what im trying to do..
Graphics 640,480
Include "inc.bmx"
Global mem:TBank = CreateBank(GraphicsWidth()*GraphicsHeight())
For x = 0 To GraphicsWidth()-1
y = 10
PokeByte(mem,x*y,1)
Next
Repeat
Cls
For x = 0 To GraphicsWidth() - 1
For y = 0 To GraphicsHeight() - 1
If PeekByte(mem,x*y) = 1
Plot x,y
End If
Next
Next
Flip
If KeyHit(key_escape) Then End
Forever
If i could get that to actually draw a straight line across the screen, i think i would have a better understanding. But instead i get a very odd pattern that looks more like i started to draw a bunch of weird blocks with a black curve cutting out the rest of the screen.
I know plot is not a very speedy way to do this, but after i understand the banks then i will use a faster method of drawing to the screen.
|