home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Zodiac Super OZ
/
MEDIADEPOT.ISO
/
FILES
/
13
/
N_B_V203.ZIP
/
POLY-3D.DMO
< prev
next >
Wrap
Text File
|
1996-07-04
|
4KB
|
68 lines
$if 0
┌──────────────────────────╖ PowerBASIC v3.20
┌──┤ DASoft ╟──────────────────────┬──────────────────╖
│ ├──────────────────────────╢ Copyright 1995 │ DATE: 1995-10-01 ╟─╖
│ │ FILE NAME POLY-3D .DMO ║ by ╘════════════════─ ║ ║
│ │ ║ Don Schullian, Jr. ║ ║
│ ╘══════════════════════════╝ ║ ║
│ A license is hereby granted to the holder to use this source code in ║ ║
│ any program, commercial or otherwise, without receiving the express ║ ║
│ permission of the copyright holder and without paying any royalties, ║ ║
│ as long as this code is not distributed in any compilable format. ║ ║
│ IE: source code files, PowerBASIC Unit files, and printed listings ║ ║
╘═╤═════════════════════════════════════════════════════════════════════╝ ║
│ .................................... ║
╘═══════════════════════════════════════════════════════════════════════╝
$endif
'.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°
' ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
'┌────────────────────────────
$INCLUDE "DAS-NB03.INC" '│ math lib
$INCLUDE "DAS-NBV1.INC" '│ graphics lib
$INCLUDE "PUBLICS .INC" '│ public variables pPi#
'│
SCREEN 12 '│
GraphicSETUP '│
CLS '│
'│
DIM tB AS PolygonTYPE '│ back box
DIM tF AS PolygonTYPE '│ front box
'│
tF.X = 100 : tB.X = 75 '│ Wire Frame
tF.Y = 70 : tB.Y = 40 '│
tF.Radius = 50 : tB.Radius = 40 '│
tF.Aspect = 1 : tB.Aspect = 1 '│
tF.StartDeg = 45 : tB.StartDeg = 45 '│
tF.Points = 4 : tB.Points = 4 '│
tF.Pmode = 3 : tB.Pmode = 3 '│
tF.Colour = 14 : tB.Colour = 14 '│ colours match each other
Draw3DPolygon tF, tB, 2 '│
'│
tF.X = 300 : tB.X = 275 '│ Hidded Lines
tB.Colour = 7 '│ colours don't match
Draw3DPolygon tF, tB, 1 '│
'│
tF.X = 500 : tB.X = 475 '│ Solid Cube
tB.Colour = 14 '│ tB.colour is out of range
Draw3DPolygon tF, tB, 0 '│
'═══════════════════════════════════════════════╡
tF.X = 100 : tB.X = 130 '│ Wire Frame
tF.Y = 270 : tB.Y = 340 '│
tF.Radius = 50 : tB.Radius = 40 '│
tF.Aspect = 0.6: tB.Aspect = 0.6 '│
tF.StartDeg = 45 : tB.StartDeg = 45 '│
tF.Points = 4 : tB.Points = 4 '│
tF.Pmode = 3 : tB.Pmode = 3 '│
tF.Colour = 14 : tB.Colour = 14 '│
Draw3DPolygon tF, tB, 2 '│
'│
tF.X = 300 : tB.X = 330 '│ Hidded Lines
tB.Colour = 7 '│
Draw3DPolygon tF, tB, 1 '│
'│
tF.X = 500 : tB.X = 530 '│ Solid Cube
tB.Colour = 14 '│
Draw3DPolygon tF, tB, 0 '│
'└───────────────────────────