home *** CD-ROM | disk | FTP | other *** search
- # include <math.h>
- # include <stdio.h>
- # include <graph.h>
- # include "worlddr.h"
- # include "plot3d.h"
-
- int color,i;
- char directry[20];
-
- void DrawCross()
- {
- Move2Abs(-1.0,-1.0);
- Line2Rel(0.0,-1.0);
- Line2Rel(2.0,0.0);
- Line2Rel(0.0,1.0);
- Line2Rel(1.0,0.0);
- Line2Rel(0.0,2.0);
- Line2Rel(-1.0,0.0);
- Line2Rel(0.0,1.0);
- Line2Rel(-2.0,0.0);
- Line2Rel(0.0,-1.0);
- Line2Rel(-1.0,0.0);
- Line2Rel(0.0,-2.0);
- Line2Rel(1.0,0.0);
- }
-
- void main()
- {
- Init3D(6);
- tInit();
- /****************************************************
- - IF YOU WANT TO CONFIGURE FOR CGA 4 COLORS
- CHOOSE Init3D(1);
- - HERCULES SUPPORT IS NOW INCLUDED IN MICROSOFT
- C VERSION 5.1. IF YOU WANT TO USE THE
- HERCULES DRIVER YOU MUST FIRST INSTALL
- MSHERC.COM FROM DOS BY TYPING
- msherc<enter>
- THEN IN YOUR MAIN PROGRAM CALL
- Init3D(12);
- - REFER TO THE README.DOC FILE - PART 3
- INCLUDED IN YOUR MICROSOFT C 5.1 COMPILER
- FOR DETAILS ON ADDED HERCULES SUPPORT.
- **************************************************/
-
- SetWorldCoordinates(-10.0,-10.0,10.0,10.0);
- for ( i = 1; i <= 20; i++ ) {
- WorldScale2(1.1,1.1);
- WorldRotate2(10.0);
- SelectColor(15);
- DrawCross();
- SelectColor(0);
- DrawCross();
- }
- Close3DGraphics();
-
- }