-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.c
More file actions
48 lines (36 loc) · 744 Bytes
/
main.c
File metadata and controls
48 lines (36 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#include <stdlib.h>
#include <time.h>
#include "low.h"
#include "clock.h"
#include "fontnew.h"
#include "math3d.h"
#include "scroll.h"
#include "flag3d.h"
#include "sphere.h"
#include "object3d.h"
#include "matrix.h"
#include "raytrace.h"
#include "bumpmain.h"
int main(void)
{
unsigned char* buffer;
if ((buffer = (unsigned char *)malloc(64000)) == NULL) {
return 1;
}
srand(time(NULL));
init_font();
init_sincos();
init_scroll();
set_mode13h();
clock_init();
do_flag(buffer);
do_sphere(buffer);
do_object3d(buffer);
do_matrix(buffer);
do_raytrace(buffer);
do_bump_mapping(buffer);
unset_mode13h();
clock_shutdown();
free(buffer);
return 0;
}