China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-31 21:42
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » A C language graphics library and mathematical library View 44,942 Replies 72
Original Poster Posted 2006-01-24 11:53 ·  中国 陕西 西安 电信
初级用户
Credits 53
Posts 23
Joined 2005-10-13 21:55
20-year member
UID 43458
Status Offline
/* 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, Credits to download 1 pts, Downloads: 726)
Floor 2 Posted 2007-09-07 22:39 ·  中国 北京 教育网
初级用户
Credits 71
Posts 34
Joined 2007-09-07 18:08
18-year member
UID 96808
Gender Male
Status Offline
Download and see, thank you ^_^
Floor 3 Posted 2007-09-08 00:34 ·  中国 浙江 温州 电信
新手上路
Credits 2
Posts 1
Joined 2006-08-20 21:10
19-year member
UID 60930
Status Offline
Floor 4 Posted 2007-09-08 09:10 ·  中国 上海 浦东新区 电信
初级用户
★★
Credits 118
Posts 55
Joined 2005-11-26 20:25
20-year member
UID 45985
Status Offline
Top, support this good stuff~
Floor 5 Posted 2007-09-12 17:44 ·  中国 山东 泰安 联通
初级用户
Credits 52
Posts 22
Joined 2007-03-25 03:14
19-year member
UID 82833
Gender Male
Status Offline
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.
Floor 6 Posted 2007-09-12 19:33 ·  中国 浙江 温州 电信
新手上路
Credits 14
Posts 7
Joined 2007-09-11 10:42
18-year member
UID 97083
Gender Male
Status Offline
Have a try. Get to know C
Floor 7 Posted 2007-09-13 11:05 ·  中国 四川 达州 电信
初级用户
Credits 71
Posts 40
Joined 2007-09-10 01:24
18-year member
UID 96987
Gender Male
Status Offline
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.
Floor 8 Posted 2008-01-28 22:40 ·  中国 吉林 长春 联通
新手上路
Credits 2
Posts 1
Joined 2008-01-07 18:54
18-year member
UID 107923
Gender Male
Status Offline
Floor 9 Posted 2008-01-29 17:43 ·  中国 山东 青岛 电信
新手上路
Credits 10
Posts 3
Joined 2008-01-29 16:56
18-year member
UID 109786
Gender Male
Status Offline
jklhhhhhhhhuuiiiiiighuigig
Floor 10 Posted 2008-01-29 19:34 ·  IANA 局域网IP(Private-Use)
初级用户
Credits 195
Posts 35
Joined 2003-04-17 00:00
23-year member
UID 1580
Gender Male
Status Offline
Thanks, just what I needed.
Floor 11 Posted 2008-01-31 15:48 ·  中国 江苏 苏州 电信
新手上路
Credits 2
Posts 1
Joined 2008-01-25 16:57
18-year member
UID 109530
Gender Male
Status Offline
Take a look below, thank you!
Floor 12 Posted 2008-04-21 20:48 ·  中国 贵州 遵义 电信
初级用户
Credits 23
Posts 11
Joined 2008-04-20 14:54
18-year member
UID 116409
Gender Male
From 四川成都
Status Offline
Thanks for the楼主's share~~
在夜的寂静里静静聆听时间流逝的声音......
Floor 13 Posted 2008-05-09 10:29 ·  中国 安徽 合肥 电信
初级用户
Credits 20
Posts 9
Joined 2008-04-28 10:29
18-year member
UID 117157
Gender Female
Status Offline
Floor 14 Posted 2008-09-04 16:19 ·  中国 福建 福州 电信
新手上路
Credits 8
Posts 4
Joined 2008-09-04 15:57
17-year member
UID 124784
Gender Male
Status Offline
Well, the LZ is really powerful!
Floor 15 Posted 2008-09-15 21:17 ·  中国 广东 深圳 南山区 电信
新手上路
Credits 2
Posts 1
Joined 2008-09-15 19:15
17-year member
UID 125718
Gender Male
Status Offline
Good
1 2 3 5 Next ›
Forum Jump: