DrawBlock boundaries?
BlitzPlus Forums/BlitzPlus Programming/DrawBlock boundaries?
Hi all!
the DrawBlock command has no definable width/length parameters, does that mean that it will fill the entire screen, even if I am using the viewport command to restrict drawing to a small rect?
I know the viewport will only display the small rect, but does it tile invisible images until it reaches screen bottom/right?
AshMantle...
You need to load in an image first and pass its handle (or ID) to the Drawblock function.
DrawBlock imageID, x,y [,frame]
Parameters:
image = variable of the image pointer
x = x location to draw the image
y = y location to draw the image
frame = image's frame to draw (optional - default is 0)
Regards
Im sorry.. I gave a poor description :)
I know how to use it.. but I need to know if it fills
the entire screen even if the viewport command have been
used to make a small rectangle e.g. 100x100 pixels..
Drawblock, draws the iamge ignoring a previously set mask color.
You were thinking of tileimage, and tileblock
AshMantle: Using the viewport commands will cull the picture to whatever size and position you want it to. If its a speed issue and you're concerned about it 'drawing' the unseen tiles as well I believe the answer is no... but don't quote me. The only person who really knows the inner workings of Blitz is Mr Sibly himself :)
Argh.. Yes I was thinking of TileImage and TileBlock..
I think I forgot my head around here somewhere..
hmmm...try it and see?
lol
cb