-
Notifications
You must be signed in to change notification settings - Fork 14
/
package.lisp
74 lines (65 loc) · 1.87 KB
/
package.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
;;;; package.lisp
;; helper packages
(uiop:define-package #:cepl.examples.misc
(:use #:cl #:cepl #:rtg-math)
(:export :*examples-dir*))
(uiop:define-package #:cepl.examples.camera
(:use #:cl #:cepl #:vari #:rtg-math)
(:export :camera
:make-camera
:orthographic-projection
:perspective-projection
:world->cam
:look-at
:world-up
:pos
:dir
:frame-size
:fov
:far
:near
:cam->clip-func
:cam->clip
:cam-viewport
:world->cam
:make-cam-clip-matrix))
(uiop:define-package :cepl.examples.model-parsers
(:use :cl :cepl #:rtg-math)
(:export :load-file
:meshes->lists
:mesh->lists
:mesh-list->gpu
:mesh->gpu
:scene-meshes->gpu
:calc-type))
(uiop:define-package :cepl.examples.meshes
(:use :cl :cffi :split-sequence :cepl #:rtg-math)
(:export :mesh
:vertices
:indicies
:primitive-type
:transform-mesh
:transform-mesh-with-matrix
:polygonize
:flatten-index))
;; packages used in the examples
(uiop:define-package #:cepl.examples
(:use #:cl #:cepl #:cepl.examples.misc
#:rtg-math #:vari #:livesupport
#:cepl.skitter
#:temporal-functions
#:rtg-math #:with-setf))
(uiop:define-package #:cepl.examples+camera
(:use #:cl #:cepl #:cepl.examples.camera
#:cepl.examples.misc
#:rtg-math #:vari #:livesupport
#:cepl.skitter
#:temporal-functions
#:rtg-math #:with-setf))
(uiop:define-package #:cepl.examples+physics
(:use #:cl #:cepl #:cepl.examples.camera
#:cepl.examples.misc
#:rtg-math #:vari #:livesupport
#:cepl.skitter
#:temporal-functions
#:cffi #:with-setf))