renders a spinning cube to a blobs window
Marcel Sondaar
Public Domain
gfx_blob.bas | renders a spinning cube to a blobs window |
Functions | |
ModMain | controls the application |
PutPixel | sets a pixel via the BLOBS interface |
Triangle | renders a triangle |
Sub PutPixel( ByVal x As Long, ByVal y As Long, ByVal colour As Long )
sets a pixel via the BLOBS interface
x | the x coordinate of the pixel |
y | the y coordinate of the pixel |
colour | the color of the pixel |
Sub Triangle( x1 As Long, y1 As Long, x2 As Long, y2 As Long, x3 As Long, y3 As Long, c as Byte )
renders a triangle
x1 | the first point’s x coordinate |
y1 | the first point’s y coordinate |
x2 | the second point’s x coordinate |
y2 | the second point’s y coordinate |
x3 | the third point’s x coordinate |
y3 | the third point’s y coordinate |
c | the color of the triangle |
controls the application
Sub ModMain CDecl alias "main" ()
sets a pixel via the BLOBS interface
Sub PutPixel( ByVal x As Long, ByVal y As Long, ByVal colour As Long )
renders a triangle
Sub Triangle( x1 As Long, y1 As Long, x2 As Long, y2 As Long, x3 As Long, y3 As Long, c as Byte )