中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-09-14 23:27
47,812 topics / 349,917 posts / today 0 new / 48,268 members
DOS开发编程 & 发展交流 (开发室) » A C language graphics library and mathematical library
Printable Version  45,718 / 72
Floor1 bmmm906 Posted 2006-01-24 11:53
初级用户 Posts 23 Credits 53
/* 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.

Attachments
数学与图形库.rar (119.12 KiB)
Floor2 cooray Posted 2007-09-07 22:39
初级用户 Posts 34 Credits 71
Download and see, thank you ^_^
Floor3 zian Posted 2007-09-08 00:34
新手上路 Posts 1 Credits 2
Floor4 ysc Posted 2007-09-08 09:10
初级用户 Posts 55 Credits 118
Top, support this good stuff~
Floor5 wangxy200696 Posted 2007-09-12 17:44
初级用户 Posts 22 Credits 52
That's pretty good, but it seems some of the content I've seen in a book about 3D. However, in that book, it requires svag.
Floor6 sohu129 Posted 2007-09-12 19:33
新手上路 Posts 7 Credits 14
Have a try. Get to know C
Floor7 wmc6432107 Posted 2007-09-13 11:05
初级用户 Posts 40 Credits 71
Please provide the Chinese content that needs to be translated. Currently, there is only "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" which is not a meaningful Chinese sentence for translation. Please supply the relevant Chinese text that requires translation.
Floor8 zhuangjia Posted 2008-01-28 22:40
新手上路 Posts 1 Credits 2
Floor9 chnping Posted 2008-01-29 17:43
新手上路 Posts 3 Credits 10
jklhhhhhhhhuuiiiiiighuigig
Floor10 boyachang Posted 2008-01-29 19:34
初级用户 Posts 35 Credits 195
Thanks, just what I needed.
Floor11 lostbear Posted 2008-01-31 15:48
新手上路 Posts 1 Credits 2
Take a look below, thank you!
Floor12 kittking Posted 2008-04-21 20:48
初级用户 Posts 11 Credits 23 From 四川成都
Thanks for the楼主's share~~
Floor13 jefnik Posted 2008-05-09 10:29
初级用户 Posts 9 Credits 20
Floor14 hengliangz Posted 2008-09-04 16:19
新手上路 Posts 4 Credits 8
Well, the LZ is really powerful!
Floor15 opssss Posted 2008-09-15 21:17
新手上路 Posts 1 Credits 2
Good
1 2 3 45  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023