aboutsummaryrefslogtreecommitdiffhomepage
path: root/wheelwork.lisp
diff options
context:
space:
mode:
authorColin Okay <colin@cicadas.surf>2022-06-24 09:40:55 -0500
committerColin Okay <colin@cicadas.surf>2022-06-24 09:40:55 -0500
commit87bbb9efe9f0d047e2dd139654964e29a6881793 (patch)
tree5b2390921450c4e3eadb3318bf7f27cb58a82ef0 /wheelwork.lisp
parent229a4caaa430ec5e20e9ad57ccb8c491c5ed653f (diff)
[remove] affine functions
Diffstat (limited to 'wheelwork.lisp')
-rw-r--r--wheelwork.lisp15
1 files changed, 2 insertions, 13 deletions
diff --git a/wheelwork.lisp b/wheelwork.lisp
index 8638c60..c9ce939 100644
--- a/wheelwork.lisp
+++ b/wheelwork.lisp
@@ -25,6 +25,7 @@
whole groups of units"))
(defgeneric drop-unit (unit))
+(defgeneric add-unit (container unit))
(defmethod drop-unit ((unit unit))
"Removes a unit from its container. Returns T if the unit actually was removed."
@@ -34,8 +35,6 @@
(unit-container unit) nil)
t))
-(defgeneric add-unit (container unit))
-
(defmethod add-unit ((container container) (unit unit))
"Adds a unit to the end of a container (thus affecting render
order). Makes sure to remove the unit from its current container if
@@ -47,6 +46,7 @@ necessary."
(list unit)))
unit)
+
(defclass/std event-handler ()
((event-type handler-function :ri))
(:metaclass closer-mop:funcallable-standard-class))
@@ -290,17 +290,6 @@ necessary."
-(defgeneric translate-by (thing dx dy))
-(defgeneric rotate-by (thing radians))
-(defgeneric scale-by (thing sx sy))
-(defgeneric pixel-width (thing))
-(defgeneric (setf pixel-width) (newval thing))
-(defgeneric pixel-height (thing))
-(defgeneric (setf pixel-height) (newval thing))
-
-(defgeneric visible-pixel-at-p (object x y)
- (:documentation "returns T if the visible pixel at screen
- coordintaes x and y belogns to object. Used for event handling."))
(defgeneric model-matrix (thing)
(:documentation "Returns the model matrix"))