DrawBlock boundaries?

BlitzPlus Forums/BlitzPlus Programming/DrawBlock boundaries?

ashmantle(Posted 2003) [#1]
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?

Kevin_(Posted 2003) [#2]

You need to load in an image first and pass its handle (or ID) to the Drawblock function.

DrawBlock imageID, x,y [,frame]

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)


ashmantle(Posted 2003) [#3]
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..

skn3(Posted 2003) [#4]
Drawblock, draws the iamge ignoring a previously set mask color.

You were thinking of tileimage, and tileblock

Neo Genesis10(Posted 2003) [#5]
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 :)

ashmantle(Posted 2003) [#6]
Argh.. Yes I was thinking of TileImage and TileBlock..

I think I forgot my head around here somewhere..

cbmeeks(Posted 2003) [#7]
hmmm...try it and see?