/* by Bian Mingming, Xi'an University of Posts and Telecommunications. */
/*This is a C language graphics library and math library I wrote myself, tested and passed under TC2.0. Please use it with confidence O_o!
All functions draw relative to the adjusted coordinate origin, not the screen origin coordinate. Please pay attention to this!!!
The feature is that all drawing functions are added with color settings,
and 3D drawing is specially added. When doing 3D drawing, you need to initialize the observer's coordinates and distance (InitPer()).
Also, initialize the observer's rotation angle relative to the x-axis and the angle of depression relative to the xy plane (InitPoltting()).
Because all 3D drawing functions are drawn relative to this initial value.
Note: When including this library, you also need to include stdio.h, dos.h, conio.h, math.h, graphics.h, math.inc and other libraries.
Here you can also have an include "myhead.h". This file is in the compressed package.
You can continue to build your own library on this basis. You can also make any modifications. O_o!
Hehe! I did it very roughly, please criticize and correct!!!
Here are a few examples: 3Ddemo.c, 3Ddemo2.c, 3Ddemo3.c.
bmmm906@sohu.com
qq:53793208
Class 0303, Electronic Science, South Campus, Xi'an University of Posts and Telecommunications, Mailbox 75.
/*This is a C language graphics library and math library I wrote myself, tested and passed under TC2.0. Please use it with confidence O_o!
All functions draw relative to the adjusted coordinate origin, not the screen origin coordinate. Please pay attention to this!!!
The feature is that all drawing functions are added with color settings,
and 3D drawing is specially added. When doing 3D drawing, you need to initialize the observer's coordinates and distance (InitPer()).
Also, initialize the observer's rotation angle relative to the x-axis and the angle of depression relative to the xy plane (InitPoltting()).
Because all 3D drawing functions are drawn relative to this initial value.
Note: When including this library, you also need to include stdio.h, dos.h, conio.h, math.h, graphics.h, math.inc and other libraries.
Here you can also have an include "myhead.h". This file is in the compressed package.
You can continue to build your own library on this basis. You can also make any modifications. O_o!
Hehe! I did it very roughly, please criticize and correct!!!
Here are a few examples: 3Ddemo.c, 3Ddemo2.c, 3Ddemo3.c.
bmmm906@sohu.com
qq:53793208
Class 0303, Electronic Science, South Campus, Xi'an University of Posts and Telecommunications, Mailbox 75.
Attachments

