gfx_blob.bas

renders a spinning cube to a blobs window

Author

Marcel Sondaar

License

Public Domain

Summary
gfx_blob.basrenders a spinning cube to a blobs window
Functions
ModMaincontrols the application
PutPixelsets a pixel via the BLOBS interface
Trianglerenders a triangle

Functions

ModMain

Sub ModMain CDecl alias "main" ()

controls the application

PutPixel

Sub PutPixel(ByVal x As Long,
ByVal y As Long,
ByVal colour As Long)

sets a pixel via the BLOBS interface

in

xthe x coordinate of the pixel
ythe y coordinate of the pixel
colourthe color of the pixel

Triangle

Sub Triangle(x1 As Long,
y1 As Long,
x2 As Long,
y2 As Long,
x3 As Long,
y3 As Long,
as Byte)

renders a triangle

in

x1the first point’s x coordinate
y1the first point’s y coordinate
x2the second point’s x coordinate
y2the second point’s y coordinate
x3the third point’s x coordinate
y3the third point’s y coordinate
cthe color of the triangle
Sub ModMain CDecl alias "main" ()
controls the application
Sub PutPixel(ByVal x As Long,
ByVal y As Long,
ByVal colour As Long)
sets a pixel via the BLOBS interface
Sub Triangle(x1 As Long,
y1 As Long,
x2 As Long,
y2 As Long,
x3 As Long,
y3 As Long,
as Byte)
renders a triangle