-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathengine.lisp
28 lines (24 loc) · 853 Bytes
/
engine.lisp
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
(load "util")
(load "matrix")
(load "shape")
(load "draw")
(load "display")
(load "mdl")
(in-package :graphics)
(declaim (optimize (speed 3)
(safety 0)
(debug 0)))
(setf *random-state* (make-random-state t))
(defvar *edge-matrix* (make-matrix :dimensions '(4 0)))
(defvar *triangle-matrix* (make-matrix :dimensions '(4 0)))
(defvar *coordinate-systems* (list (make-identity-matrix)))
(defvar *transformation-matrix* (make-identity-matrix))
(defvar *x-resolution* 500)
(defvar *y-resolution* 500)
(defvar *background-color* #(0 0 0))
(defvar *foreground-color* #(255 255 255))
(defvar *screen* (make-array (list *x-resolution* *y-resolution*)
:initial-element (cons *background-color* nil)))
(defvar *shading-type* "wireframe")
(defvar *ambient* nil)
(defvar *view-vector* #(0 0 1))