home *** CD-ROM | disk | FTP | other *** search
- # include <graph.h>
- # include "asyncxx.h"
- # include "hpplot.h"
- # include "worlddr.h"
- # include "plot3d.h"
-
- int color,i,j;
- float AxL,angle;
- float mat3[16];
- float x,y;
- char str[3];
-
- void main()
- {
- tInit3();
-
- /****************************************************
- - 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 INCLUDED IN YOUR
- MICROSOFT C 5.1 COMPILER
- **************************************************/
-
- Init3D(6);
- SetWorldCoordinates(-10.0,-10.0,10.0,10.0);
- SelectColor(2);
- WorldRotate3(10.0,2);
- WorldRotate3(10.0,1);
- AxL = 5.0;
- angle = 3.6;
- for (j = 0; j <= 2; j++){
- for ( i = 0; i <= 100; i++ ){
- WorldRotate3(angle,j);
- SelectColor(15);
- Draw3DAxes(AxL,AxL,AxL);
- SelectColor(0);
- Draw3DAxes(AxL,AxL,AxL);
- }
- }
- Close3DGraphics();
- }