This is the sketch Reference Manual, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 15 07:43:05 2024 GMT+0.
sketch/sketch.asd
sketch/package.lisp
sketch/math.lisp
sketch/utils.lisp
sketch/environment.lisp
sketch/resources.lisp
sketch/color.lisp
sketch/channels.lisp
sketch/shaders.lisp
sketch/pen.lisp
sketch/font.lisp
sketch/geometry.lisp
sketch/image.lisp
sketch/shapes.lisp
sketch/transforms.lisp
sketch/complex-transforms.lisp
sketch/drawing.lisp
sketch/bindings.lisp
sketch/sketch.lisp
sketch/entities.lisp
sketch/figures.lisp
sketch/controllers.lisp
sketch/canvas.lisp
The main system appears first, followed by any subsystem dependency.
sketch
Sketch is a Common Lisp framework for the creation of electronic art, computer graphics, visual design, game making and more. It is inspired by Processing and OpenFrameworks.
Danilo Vidovic (vydd)
MIT
alexandria
(system).
closer-mop
(system).
glkit
(system).
glu-tessellate
(system).
mathkit
(system).
md5
(system).
sdl2
(system).
cl-plus-c
(system).
sdl2-image
(system).
sdl2-ttf
(system).
sdl2kit
(system).
split-sequence
(system).
static-vectors
(system).
trivial-garbage
(system).
zpng
(system).
package.lisp
(file).
math.lisp
(file).
utils.lisp
(file).
environment.lisp
(file).
resources.lisp
(file).
color.lisp
(file).
channels.lisp
(file).
shaders.lisp
(file).
pen.lisp
(file).
font.lisp
(file).
geometry.lisp
(file).
image.lisp
(file).
shapes.lisp
(file).
transforms.lisp
(file).
complex-transforms.lisp
(file).
drawing.lisp
(file).
bindings.lisp
(file).
sketch.lisp
(file).
entities.lisp
(file).
figures.lisp
(file).
controllers.lisp
(file).
canvas.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
sketch/sketch.asd
sketch/package.lisp
sketch/math.lisp
sketch/utils.lisp
sketch/environment.lisp
sketch/resources.lisp
sketch/color.lisp
sketch/channels.lisp
sketch/shaders.lisp
sketch/pen.lisp
sketch/font.lisp
sketch/geometry.lisp
sketch/image.lisp
sketch/shapes.lisp
sketch/transforms.lisp
sketch/complex-transforms.lisp
sketch/drawing.lisp
sketch/bindings.lisp
sketch/sketch.lisp
sketch/entities.lisp
sketch/figures.lisp
sketch/controllers.lisp
sketch/canvas.lisp
sketch/math.lisp
package.lisp
(file).
sketch
(system).
sketch/utils.lisp
math.lisp
(file).
sketch
(system).
relative-path
(function).
*build*
(special variable).
abs-or-rel
(function).
coerce-float
(function).
copy-buffer
(function).
div2-inexact
(function).
flatten
(function).
group
(function).
group-bits
(function).
lerp-lists
(function).
mix-lists
(function).
object-to-keyword-hash
(function).
order-list
(function).
pad-list
(function).
surface-format
(function).
with-shorthand
(macro).
sketch/environment.lisp
utils.lisp
(file).
sketch
(system).
*env*
(special variable).
copy-env
(function).
env
(structure).
env-buffer-position
(reader).
(setf env-buffer-position)
(writer).
env-debug-key-pressed
(reader).
(setf env-debug-key-pressed)
(writer).
env-font
(reader).
(setf env-font)
(writer).
env-matrix-stack
(reader).
(setf env-matrix-stack)
(writer).
env-model-matrix
(reader).
(setf env-model-matrix)
(writer).
env-p
(function).
env-pen
(reader).
(setf env-pen)
(writer).
env-programs
(reader).
(setf env-programs)
(writer).
env-red-screen
(reader).
(setf env-red-screen)
(writer).
env-resources
(reader).
(setf env-resources)
(writer).
env-vao
(reader).
(setf env-vao)
(writer).
env-view-matrix
(reader).
(setf env-view-matrix)
(writer).
env-white-color-vector
(reader).
(setf env-white-color-vector)
(writer).
env-white-pixel-texture
(reader).
(setf env-white-pixel-texture)
(writer).
env-y-axis-sgn
(reader).
(setf env-y-axis-sgn)
(writer).
initialize-environment
(function).
initialize-gl
(function).
initialize-view-matrix
(function).
make-env
(function).
make-white-pixel-texture
(function).
with-environment
(macro).
sketch/resources.lisp
environment.lisp
(file).
sketch
(system).
image
(class).
image-height
(reader method).
(setf image-height)
(writer method).
image-width
(reader method).
(setf image-width)
(writer method).
load-resource
(function).
cropped-image
(class).
cropped-image-from-image
(function).
cropped-image-uv-rect
(reader method).
(setf cropped-image-uv-rect)
(writer method).
cut-surface
(function).
file-name-extension
(function).
free-resource
(generic function).
image-texture
(method).
image-texture
(reader method).
(setf image-texture)
(writer method).
init-image-texture!
(function).
load-typed-resource
(generic function).
make-image-from-surface
(function).
original-image
(reader method).
(setf original-image)
(writer method).
pixel-uv-rect
(function).
resource
(class).
typeface
(class).
typeface-filename
(reader method).
(setf typeface-filename)
(writer method).
typeface-pointer
(reader method).
(setf typeface-pointer)
(writer method).
sketch/color.lisp
resources.lisp
(file).
sketch
(system).
+black+
(special variable).
+blue+
(special variable).
+cyan+
(special variable).
+gray+
(special variable).
+green+
(special variable).
+indigo+
(special variable).
+magenta+
(special variable).
+orange+
(special variable).
+red+
(special variable).
+white+
(special variable).
+yellow+
(special variable).
color
(class).
color-alpha
(reader method).
(setf color-alpha)
(writer method).
color-blue
(reader method).
(setf color-blue)
(method).
(setf color-blue)
(writer method).
color-brightness
(reader method).
(setf color-brightness)
(method).
(setf color-brightness)
(writer method).
color-filter-grayscale
(function).
color-filter-hsb
(function).
color-filter-invert
(function).
color-filter-rotate
(function).
color-green
(reader method).
(setf color-green)
(method).
(setf color-green)
(writer method).
color-hsba
(function).
color-hue
(reader method).
(setf color-hue)
(method).
(setf color-hue)
(writer method).
color-red
(reader method).
(setf color-red)
(method).
(setf color-red)
(writer method).
color-rgb
(function).
color-rgba
(function).
color-saturation
(reader method).
(setf color-saturation)
(method).
(setf color-saturation)
(writer method).
color-vector
(function).
color-vector-255
(function).
gray
(function).
gray-255
(function).
hash-color
(function).
hex-to-color
(function).
hsb
(function).
hsb-360
(function).
hsb-to-rgb
(function).
lerp-color
(function).
random-color
(function).
rgb
(function).
rgb-255
(function).
rgb-to-hsb
(function).
add-updater-to-accessor
(macro).
color-bgr
(function).
color-bgra
(function).
color-bgra-255
(function).
color-rgba-255
(function).
update-hsb
(function).
update-rgb
(function).
sketch/channels.lisp
color.lisp
(file).
sketch
(system).
define-channel-observer
(macro).
define-named-channel-observer
(macro).
in
(function).
out
(function).
register-input
(function).
reset-all-channels
(function).
%define-channel-observer
(function).
*channel-propagations*
(special variable).
*channels*
(special variable).
*propagations*
(special variable).
copy-propagation
(function).
delete-channel-propagation
(function).
extract-input-registration
(function).
find-inputs-and-outputs
(function).
make-propagation
(function).
out-1
(function).
propagate
(function).
propagation
(structure).
propagation-function
(reader).
(setf propagation-function)
(writer).
propagation-inputs
(reader).
(setf propagation-inputs)
(writer).
propagation-name
(reader).
(setf propagation-name)
(writer).
propagation-outputs
(reader).
(setf propagation-outputs)
(writer).
propagation-p
(function).
reset-channel
(function).
update-propagation-data
(function).
sketch/pen.lisp
shaders.lisp
(file).
sketch
(system).
background
(function).
copy-pen
(function).
flip-pen
(function).
make-pen
(function).
pen
(structure).
pen-curve-steps
(reader).
(setf pen-curve-steps)
(writer).
pen-fill
(reader).
(setf pen-fill)
(writer).
pen-stroke
(reader).
(setf pen-stroke)
(writer).
pen-weight
(reader).
(setf pen-weight)
(writer).
pen-winding-rule
(reader).
(setf pen-winding-rule)
(writer).
set-pen
(function).
with-pen
(macro).
make-default-pen
(function).
pen-p
(function).
sketch/font.lisp
pen.lisp
(file).
sketch
(system).
make-font
(function).
set-font
(function).
text
(function).
text-line-image
(function).
with-font
(macro).
font
(class).
font-align
(reader method).
(setf font-align)
(writer method).
font-color
(reader method).
(setf font-color)
(writer method).
font-face
(reader method).
(setf font-face)
(writer method).
font-line-height
(reader method).
(setf font-line-height)
(writer method).
font-size
(reader method).
(setf font-size)
(writer method).
make-default-font
(function).
make-error-font
(function).
text-align
(function).
text-scale
(function).
sketch/geometry.lisp
font.lisp
(file).
sketch
(system).
bounding-box
(function).
edges
(function).
grow-polygon
(function).
intersect-lines
(function).
normalize-to-bounding-box
(function).
translate-line
(function).
triangulate
(function).
with-lines
(macro).
sketch/image.lisp
geometry.lisp
(file).
sketch
(system).
sketch/shapes.lisp
image.lisp
(file).
sketch
(system).
cubic-bezier-point
(function).
make-line
(function).
make-ngon
(function).
make-polygon
(function).
make-polyline
(function).
make-rect
(function).
make-star
(function).
ngon-vertices
(function).
quadratic-bezier-point
(function).
translated-intersects
(function).
sketch/transforms.lisp
shapes.lisp
(file).
sketch
(system).
pop-matrix
(function).
push-matrix
(function).
rotate
(function).
scale
(function).
set-matrix
(function).
translate
(function).
with-current-matrix
(macro).
with-identity-matrix
(macro).
with-matrix
(macro).
with-rotate
(macro).
with-scale
(macro).
with-translate
(macro).
set-matrix*
(function).
transform-vertex
(function).
sketch/complex-transforms.lisp
transforms.lisp
(file).
sketch
(system).
sketch/drawing.lisp
complex-transforms.lisp
(file).
sketch
(system).
with-uv-rect
(macro).
*buffer-size*
(special variable).
*bytes-per-vertex*
(special variable).
*draw-mode*
(special variable).
*draw-sequence*
(special variable).
*uv-rect*
(special variable).
*vertex-attributes*
(special variable).
+access-mode+
(special variable).
draw-shape
(function).
end-draw
(function).
fill-buffer
(function).
fit-uv-to-rect
(function).
push-vertices
(method).
push-vertices
(method).
push-vertices
(method).
shader-color-texture-values
(function).
start-draw
(function).
sketch/bindings.lisp
drawing.lisp
(file).
sketch
(system).
binding
(class).
binding-accessor
(reader method).
(setf binding-accessor)
(writer method).
binding-channel-name
(reader method).
(setf binding-channel-name)
(writer method).
binding-channelp
(reader method).
(setf binding-channelp)
(writer method).
binding-defaultp
(reader method).
(setf binding-defaultp)
(writer method).
binding-initarg
(reader method).
(setf binding-initarg)
(writer method).
binding-initform
(reader method).
(setf binding-initform)
(writer method).
binding-name
(reader method).
(setf binding-name)
(writer method).
binding-package
(reader method).
(setf binding-package)
(writer method).
binding-prefix
(reader method).
(setf binding-prefix)
(writer method).
channel-value-p
(function).
class-bindings
(function).
copy-binding
(function).
make-accessor
(function).
make-binding
(function).
parse-bindings
(function).
sketch/sketch.lisp
bindings.lisp
(file).
sketch
(system).
*default-height*
(special variable).
*default-width*
(special variable).
close-window
(method).
close-window
(method).
close-window
(method).
close-window
(method).
controller-added-event
(method).
controller-added-event
(method).
controller-axis-motion-event
(method).
controller-axis-motion-event
(method).
controller-button-event
(method).
controller-button-event
(method).
controller-removed-event
(method).
controller-removed-event
(method).
defsketch
(macro).
draw
(generic function).
gl-context
(method).
(setf idle-render)
(method).
idle-render
(method).
initialize-instance
(method).
initialize-instance
(method).
keyboard-event
(method).
keyboard-event
(method).
keyboard-event
(method).
mousebutton-event
(method).
mousemotion-event
(method).
mousewheel-event
(method).
mousewheel-event
(method).
render
(method).
render
(method).
(setf render-enabled)
(method).
render-enabled
(method).
(setf render-enabled)
(method).
render-enabled
(method).
sdl-window
(method).
setup
(generic function).
sketch
(class).
sketch-close-on
(reader method).
(setf sketch-close-on)
(writer method).
sketch-copy-pixels
(reader method).
(setf sketch-copy-pixels)
(writer method).
sketch-fullscreen
(reader method).
(setf sketch-fullscreen)
(writer method).
(setf sketch-fullscreen)
(method).
sketch-height
(reader method).
(setf sketch-height)
(writer method).
(setf sketch-height)
(method).
sketch-resizable
(reader method).
(setf sketch-resizable)
(writer method).
(setf sketch-resizable)
(method).
sketch-title
(reader method).
(setf sketch-title)
(writer method).
(setf sketch-title)
(method).
sketch-width
(reader method).
(setf sketch-width)
(writer method).
(setf sketch-width)
(method).
sketch-y-axis
(reader method).
(setf sketch-y-axis)
(writer method).
(setf sketch-y-axis)
(method).
start-loop
(function).
stop-loop
(function).
textinput-event
(method).
textinput-event
(method).
update-instance-for-redefined-class
(method).
window-event
(method).
window-event
(method).
window-event
(method).
%sketch
(reader method).
(setf %sketch)
(writer method).
*%unwind-and-call-on-error-function*
(special variable).
*initialized*
(special variable).
*sketch*
(special variable).
+scancode-prefix-length+
(constant).
add-delayed-init-fun!
(function).
define-sdl2-forward
(macro).
define-sketch-channel-observers
(function).
define-sketch-defclass
(function).
define-sketch-draw-method
(function).
define-sketch-prepare-method
(function).
define-sketch-writer
(macro).
delay-init-p
(function).
initialize-sketch
(function).
maybe-change-viewport
(function).
on-error
(method).
on-error-handler
(method).
prepare
(generic function).
sketch-%delayed-init-funs
(reader method).
(setf sketch-%delayed-init-funs)
(writer method).
sketch-%entities
(reader method).
(setf sketch-%entities)
(writer method).
sketch-%env
(reader method).
sketch-%setup-called
(reader method).
(setf sketch-%setup-called)
(writer method).
sketch-%window
(reader method).
(setf sketch-%window)
(writer method).
sketch-window
(class).
unwind-and-call-on-error
(macro).
window-%closing
(reader method).
(setf window-%closing)
(writer method).
with-error-handling
(macro).
with-gl-draw
(macro).
with-sketch
(macro).
without-sdl2-scancode-prefix
(function).
sketch/entities.lisp
sketch.lisp
(file).
sketch
(system).
defentity
(macro).
entity-height
(reader method).
(setf entity-height)
(writer method).
entity-width
(reader method).
(setf entity-width)
(writer method).
initialize-instance
(method).
update-instance-for-redefined-class
(method).
*entity*
(special variable).
define-entity-channel-observers
(function).
define-entity-defclass
(function).
define-entity-draw-method
(function).
define-entity-prepare-method
(function).
entity
(class).
register-entity
(method).
sketch/figures.lisp
entities.lisp
(file).
sketch
(system).
deffigure
(macro).
draw-figure
(method).
figure
(class).
sketch/controllers.lisp
figures.lisp
(file).
sketch
(system).
keyboard-event
(method).
mousebutton-event
(method).
mousebutton-event
(method).
mousemotion-event
(method).
mousemotion-event
(method).
mousewheel-event
(method).
on-click
(method).
on-click
(method).
on-enter
(method).
on-hover
(method).
on-hover
(method).
on-hover
(method).
on-key
(method).
on-key
(method).
on-leave
(method).
on-mouse-button
(method).
on-mouse-button
(method).
on-mouse-button
(method).
on-mouse-left
(method).
on-mouse-left
(method).
on-mouse-left
(method).
on-mouse-left-down
(method).
on-mouse-left-down
(method).
on-mouse-left-up
(method).
on-mouse-left-up
(method).
on-mouse-left-up
(method).
on-mouse-middle
(method).
on-mouse-middle
(method).
on-mouse-middle
(method).
on-mouse-middle-down
(method).
on-mouse-middle-down
(method).
on-mouse-middle-up
(method).
on-mouse-middle-up
(method).
on-mouse-middle-up
(method).
on-mouse-right
(method).
on-mouse-right
(method).
on-mouse-right
(method).
on-mouse-right-down
(method).
on-mouse-right-down
(method).
on-mouse-right-up
(method).
on-mouse-right-up
(method).
on-mouse-right-up
(method).
on-text
(method).
on-text
(method).
textinput-event
(method).
*current-entity*
(special variable).
def-on-mouse
(macro).
def-xy-event-method
(macro).
on-middle-click
(method).
on-middle-click
(method).
on-right-click
(method).
on-right-click
(method).
propagate-to-entity
(function).
translate-sdl2-button
(function).
translate-sdl2-button-state
(function).
translate-sdl2-key-state
(function).
sketch/canvas.lisp
controllers.lisp
(file).
sketch
(system).
canvas-height
(reader method).
canvas-image
(method).
canvas-lock
(method).
canvas-paint
(method).
canvas-reset
(method).
canvas-unlock
(method).
canvas-width
(reader method).
draw
(method).
make-canvas
(function).
%canvas-image
(reader method).
(setf %canvas-image)
(writer method).
%canvas-locked
(reader method).
(setf %canvas-locked)
(writer method).
%canvas-vector
(reader method).
(setf %canvas-vector)
(writer method).
%canvas-vector-pointer
(method).
canvas
(class).
Packages are listed by definition order.
sketch
common-lisp
.
*default-height*
(special variable).
*default-width*
(special variable).
+black+
(special variable).
+blue+
(special variable).
+cyan+
(special variable).
+e+
(constant).
+epsilon+
(constant).
+golden-ratio+
(constant).
+gray+
(special variable).
+green+
(special variable).
+half-pi+
(constant).
+indigo+
(special variable).
+magenta+
(special variable).
+orange+
(special variable).
+phi+
(constant).
+pi+
(constant).
+quarter-pi+
(constant).
+red+
(special variable).
+tau+
(constant).
+two-pi+
(constant).
+white+
(special variable).
+yellow+
(special variable).
background
(function).
bezier
(function).
canvas-height
(generic reader).
canvas-image
(generic function).
canvas-lock
(generic function).
canvas-paint
(generic function).
canvas-reset
(generic function).
canvas-unlock
(generic function).
canvas-width
(generic reader).
circle
(function).
clamp-1
(function).
color
(class).
color-alpha
(generic reader).
(setf color-alpha)
(generic writer).
color-blue
(generic reader).
(setf color-blue)
(generic function).
color-brightness
(generic reader).
(setf color-brightness)
(generic function).
color-filter-grayscale
(function).
color-filter-hsb
(function).
color-filter-invert
(function).
color-filter-rotate
(function).
color-green
(generic reader).
(setf color-green)
(generic function).
color-hsba
(function).
color-hue
(generic reader).
(setf color-hue)
(generic function).
color-red
(generic reader).
(setf color-red)
(generic function).
color-rgb
(function).
color-rgba
(function).
color-saturation
(generic reader).
(setf color-saturation)
(generic function).
color-vector
(function).
color-vector-255
(function).
copy-pen
(function).
crop
(generic function).
defentity
(macro).
deffigure
(macro).
define-channel-observer
(macro).
define-named-channel-observer
(macro).
defsketch
(macro).
degrees
(function).
draw
(generic function).
ellipse
(function).
entity-height
(generic reader).
(setf entity-height)
(generic writer).
entity-width
(generic reader).
(setf entity-width)
(generic writer).
fit
(function).
flip-pen
(function).
gray
(function).
gray-255
(function).
hash-color
(function).
hex-to-color
(function).
hsb
(function).
hsb-360
(function).
hsb-to-rgb
(function).
image
(function).
image
(class).
image-height
(generic reader).
(setf image-height)
(generic writer).
image-width
(generic reader).
(setf image-width)
(generic writer).
in
(function).
lerp-color
(function).
line
(function).
load-resource
(function).
make-canvas
(function).
make-font
(function).
make-pen
(function).
ngon
(function).
normalize
(function).
on-click
(generic function).
on-enter
(generic function).
on-hover
(generic function).
on-key
(generic function).
on-leave
(generic function).
on-mouse-button
(generic function).
on-mouse-left
(generic function).
on-mouse-left-down
(generic function).
on-mouse-left-up
(generic function).
on-mouse-middle
(generic function).
on-mouse-middle-down
(generic function).
on-mouse-middle-up
(generic function).
on-mouse-right
(generic function).
on-mouse-right-down
(generic function).
on-mouse-right-up
(generic function).
on-text
(generic function).
out
(function).
pen
(structure).
pen-curve-steps
(reader).
(setf pen-curve-steps)
(writer).
pen-fill
(reader).
(setf pen-fill)
(writer).
pen-stroke
(reader).
(setf pen-stroke)
(writer).
pen-weight
(reader).
(setf pen-weight)
(writer).
pen-winding-rule
(reader).
(setf pen-winding-rule)
(writer).
point
(function).
polygon
(function).
polyline
(function).
pop-matrix
(function).
push-matrix
(function).
radians
(function).
random-color
(function).
rect
(function).
register-input
(function).
relative-path
(function).
reset-all-channels
(function).
rgb
(function).
rgb-255
(function).
rgb-to-hsb
(function).
rotate
(function).
save-png
(function).
scale
(function).
set-font
(function).
set-matrix
(function).
set-pen
(function).
setup
(generic function).
sketch
(class).
sketch-close-on
(generic reader).
(setf sketch-close-on)
(generic writer).
sketch-copy-pixels
(generic reader).
(setf sketch-copy-pixels)
(generic writer).
sketch-fullscreen
(generic reader).
(setf sketch-fullscreen)
(generic function).
sketch-height
(generic reader).
(setf sketch-height)
(generic function).
sketch-resizable
(generic reader).
(setf sketch-resizable)
(generic function).
sketch-title
(generic reader).
(setf sketch-title)
(generic function).
sketch-width
(generic reader).
(setf sketch-width)
(generic function).
sketch-y-axis
(generic reader).
(setf sketch-y-axis)
(generic function).
star
(function).
start-loop
(function).
stop-loop
(function).
text
(function).
text-line-image
(function).
translate
(function).
with-current-matrix
(macro).
with-fit
(macro).
with-font
(macro).
with-identity-matrix
(macro).
with-matrix
(macro).
with-pen
(macro).
with-rotate
(macro).
with-scale
(macro).
with-translate
(macro).
with-uv-rect
(macro).
%canvas-image
(generic reader).
(setf %canvas-image)
(generic writer).
%canvas-locked
(generic reader).
(setf %canvas-locked)
(generic writer).
%canvas-vector
(generic reader).
(setf %canvas-vector)
(generic writer).
%canvas-vector-pointer
(generic function).
%define-channel-observer
(function).
%sketch
(generic reader).
(setf %sketch)
(generic writer).
*%unwind-and-call-on-error-function*
(special variable).
*buffer-size*
(special variable).
*build*
(special variable).
*bytes-per-vertex*
(special variable).
*channel-propagations*
(special variable).
*channels*
(special variable).
*current-entity*
(special variable).
*draw-mode*
(special variable).
*draw-sequence*
(special variable).
*entity*
(special variable).
*env*
(special variable).
*initialized*
(special variable).
*propagations*
(special variable).
*sketch*
(special variable).
*uv-rect*
(special variable).
*vertex-attributes*
(special variable).
+access-mode+
(special variable).
+scancode-prefix-length+
(constant).
abs-or-rel
(function).
add-delayed-init-fun!
(function).
add-updater-to-accessor
(macro).
binding
(class).
binding-accessor
(generic reader).
(setf binding-accessor)
(generic writer).
binding-channel-name
(generic reader).
(setf binding-channel-name)
(generic writer).
binding-channelp
(generic reader).
(setf binding-channelp)
(generic writer).
binding-defaultp
(generic reader).
(setf binding-defaultp)
(generic writer).
binding-initarg
(generic reader).
(setf binding-initarg)
(generic writer).
binding-initform
(generic reader).
(setf binding-initform)
(generic writer).
binding-name
(generic reader).
(setf binding-name)
(generic writer).
binding-package
(generic reader).
(setf binding-package)
(generic writer).
binding-prefix
(generic reader).
(setf binding-prefix)
(generic writer).
bounding-box
(function).
canvas
(class).
channel-value-p
(function).
class-bindings
(function).
coerce-float
(function).
color-bgr
(function).
color-bgra
(function).
color-bgra-255
(function).
color-rgba-255
(function).
copy-binding
(function).
copy-buffer
(function).
copy-env
(function).
copy-propagation
(function).
cropped-image
(class).
cropped-image-from-image
(function).
cropped-image-uv-rect
(generic reader).
(setf cropped-image-uv-rect)
(generic writer).
cubic-bezier-point
(function).
cut-surface
(function).
def-on-mouse
(macro).
def-xy-event-method
(macro).
define-entity-channel-observers
(function).
define-entity-defclass
(function).
define-entity-draw-method
(function).
define-entity-prepare-method
(function).
define-sdl2-forward
(macro).
define-sketch-channel-observers
(function).
define-sketch-defclass
(function).
define-sketch-draw-method
(function).
define-sketch-prepare-method
(function).
define-sketch-writer
(macro).
delay-init-p
(function).
delete-channel-propagation
(function).
div2-inexact
(function).
draw-figure
(generic function).
draw-shape
(function).
edges
(function).
end-draw
(function).
entity
(class).
env
(structure).
env-buffer-position
(reader).
(setf env-buffer-position)
(writer).
env-debug-key-pressed
(reader).
(setf env-debug-key-pressed)
(writer).
env-font
(reader).
(setf env-font)
(writer).
env-matrix-stack
(reader).
(setf env-matrix-stack)
(writer).
env-model-matrix
(reader).
(setf env-model-matrix)
(writer).
env-p
(function).
env-pen
(reader).
(setf env-pen)
(writer).
env-programs
(reader).
(setf env-programs)
(writer).
env-red-screen
(reader).
(setf env-red-screen)
(writer).
env-resources
(reader).
(setf env-resources)
(writer).
env-vao
(reader).
(setf env-vao)
(writer).
env-view-matrix
(reader).
(setf env-view-matrix)
(writer).
env-white-color-vector
(reader).
(setf env-white-color-vector)
(writer).
env-white-pixel-texture
(reader).
(setf env-white-pixel-texture)
(writer).
env-y-axis-sgn
(reader).
(setf env-y-axis-sgn)
(writer).
extract-input-registration
(function).
figure
(class).
file-name-extension
(function).
fill-buffer
(function).
find-inputs-and-outputs
(function).
fit-uv-to-rect
(function).
flatten
(function).
font
(class).
font-align
(generic reader).
(setf font-align)
(generic writer).
font-color
(generic reader).
(setf font-color)
(generic writer).
font-face
(generic reader).
(setf font-face)
(generic writer).
font-line-height
(generic reader).
(setf font-line-height)
(generic writer).
font-size
(generic reader).
(setf font-size)
(generic writer).
free-resource
(generic function).
group
(function).
group-bits
(function).
grow-polygon
(function).
image-texture
(generic function).
(setf image-texture)
(generic writer).
init-image-texture!
(function).
initialize-environment
(function).
initialize-gl
(function).
initialize-sketch
(function).
initialize-view-matrix
(function).
intersect-lines
(function).
lerp-lists
(function).
load-typed-resource
(generic function).
make-accessor
(function).
make-binding
(function).
make-default-font
(function).
make-default-pen
(function).
make-env
(function).
make-error-font
(function).
make-image-from-surface
(function).
make-line
(function).
make-ngon
(function).
make-polygon
(function).
make-polyline
(function).
make-propagation
(function).
make-rect
(function).
make-star
(function).
make-white-pixel-texture
(function).
maybe-change-viewport
(function).
mix-lists
(function).
ngon-vertices
(function).
normalize-to-bounding-box
(function).
object-to-keyword-hash
(function).
on-error
(generic function).
on-error-handler
(generic function).
on-middle-click
(generic function).
on-right-click
(generic function).
order-list
(function).
original-image
(generic reader).
(setf original-image)
(generic writer).
out-1
(function).
pad-list
(function).
parse-bindings
(function).
pen-p
(function).
pixel-uv-rect
(function).
prepare
(generic function).
propagate
(function).
propagate-to-entity
(function).
propagation
(structure).
propagation-function
(reader).
(setf propagation-function)
(writer).
propagation-inputs
(reader).
(setf propagation-inputs)
(writer).
propagation-name
(reader).
(setf propagation-name)
(writer).
propagation-outputs
(reader).
(setf propagation-outputs)
(writer).
propagation-p
(function).
push-vertices
(generic function).
quadratic-bezier-point
(function).
register-entity
(generic function).
reset-channel
(function).
resource
(class).
set-matrix*
(function).
shader-color-texture-values
(function).
sketch-%delayed-init-funs
(generic reader).
(setf sketch-%delayed-init-funs)
(generic writer).
sketch-%entities
(generic reader).
(setf sketch-%entities)
(generic writer).
sketch-%env
(generic reader).
sketch-%setup-called
(generic reader).
(setf sketch-%setup-called)
(generic writer).
sketch-%window
(generic reader).
(setf sketch-%window)
(generic writer).
sketch-window
(class).
start-draw
(function).
surface-format
(function).
text-align
(function).
text-scale
(function).
transform-vertex
(function).
translate-line
(function).
translate-sdl2-button
(function).
translate-sdl2-button-state
(function).
translate-sdl2-key-state
(function).
translated-intersects
(function).
triangulate
(function).
typeface
(class).
typeface-filename
(generic reader).
(setf typeface-filename)
(generic writer).
typeface-pointer
(generic reader).
(setf typeface-pointer)
(generic writer).
unwind-and-call-on-error
(macro).
update-hsb
(function).
update-propagation-data
(function).
update-rgb
(function).
window-%closing
(generic reader).
(setf window-%closing)
(generic writer).
with-environment
(macro).
with-error-handling
(macro).
with-gl-draw
(macro).
with-lines
(macro).
with-shorthand
(macro).
with-sketch
(macro).
without-sdl2-scancode-prefix
(function).
Definitions are sorted by export status, category, package, and then by lexicographic order.
The default height of sketch window
The default width of sketch window
Makes a new pen by swapping PEN’s fill and stroke colors.
***Deprecated***, use the DRAW method.
Draws the instance with set position, dimensions, and scaling mode.
canvas
) &key x y width height mode min-filter mag-filter &allow-other-keys) ¶Draws a canvas with its top-left corner at co-ordinates X & Y. By default,
uses the width and height that the canvas was created with, but these can be
overwritten by parameters WIDTH and HEIGHT.
MIN-FILTER and MAG-FILTER are used to determine pixel colours when the
drawing area is smaller or larger, respectively, than the canvas. By default,
the :LINEAR function is used. :NEAREST is also a common option. Note that, if
CANVAS-LOCK is being used, then MIN-FILTER and MAG-FILTER should be passed
there instead.
See: https://registry.khronos.org/OpenGL-Refpages/gl4/html/glTexParameter.xhtml
sketch
) &key x y width height mode &allow-other-keys) ¶Called repeatedly after creating the sketch window, 60fps.
Called before creating the sketch window.
sketch-window
)) ¶kit.sdl2
.
sketch-window
)) ¶kit.sdl2
.
sketch-window
) c) ¶kit.sdl2
.
sketch
) controller timestamp axis value) ¶kit.sdl2
.
sketch-window
) controller timestamp axis value) ¶kit.sdl2
.
sketch
) controller state timestamp button) ¶kit.sdl2
.
sketch-window
) controller state timestamp button) ¶kit.sdl2
.
sketch-window
) c) ¶kit.sdl2
.
sketch
) &rest initargs &key &allow-other-keys) ¶entity
) &rest initargs &key &allow-other-keys) ¶sketch
) state timestamp repeatp keysym) ¶kit.sdl2
.
sketch-window
) state timestamp repeat-p keysym) ¶kit.sdl2
.
sketch-window
) state timestamp repeatp keysym) ¶kit.sdl2
.
sketch-window
) state timestamp button x y) ¶kit.sdl2
.
sketch-window
) state timestamp button x y) ¶kit.sdl2
.
sketch
) timestamp button-mask x y xrel yrel) ¶kit.sdl2
.
sketch-window
) timestamp button-mask x y xrel yrel) ¶kit.sdl2
.
sketch-window
) timestamp button-mask x y xrel yrel) ¶kit.sdl2
.
sketch-window
) timestamp x y) ¶kit.sdl2
.
sketch-window
) timestamp x y) ¶kit.sdl2
.
sketch-window
)) ¶kit.sdl2
.
sketch-window
)) ¶kit.sdl2
.
sketch-window
)) ¶kit.sdl2
.
sketch-window
) timestamp text) ¶kit.sdl2
.
sketch-window
) timestamp text) ¶kit.sdl2
.
sketch
) added-slots discarded-slots property-list &rest initargs) ¶entity
) added-slots discarded-slots property-list &rest initargs) ¶sketch-window
) type timestamp data1 data2) ¶kit.sdl2
.
sketch-window
) (type (eql :size-changed)
) timestamp data1 data2) ¶kit.sdl2
.
structure-object
.
common-lisp
.
1
100
(member :odd :nonzero :positive :negative :abs-geq-two)
:nonzero
0.0
:red
0.0
:green
0.0
:blue
0.0
:hue
0.0
:saturation
0.0
:brightness
1.0
:alpha
close-window
.
close-window
.
controller-added-event
.
controller-axis-motion-event
.
controller-button-event
.
controller-removed-event
.
draw
.
gl-context
.
(setf idle-render)
.
idle-render
.
initialize-instance
.
initialize-instance
.
keyboard-event
.
keyboard-event
.
mousebutton-event
.
mousemotion-event
.
mousewheel-event
.
on-click
.
on-error
.
on-error-handler
.
on-hover
.
on-key
.
on-middle-click
.
on-mouse-button
.
on-mouse-button
.
on-mouse-left
.
on-mouse-left
.
on-mouse-left-down
.
on-mouse-left-up
.
on-mouse-left-up
.
on-mouse-middle
.
on-mouse-middle
.
on-mouse-middle-down
.
on-mouse-middle-up
.
on-mouse-middle-up
.
on-mouse-right
.
on-mouse-right
.
on-mouse-right-down
.
on-mouse-right-up
.
on-mouse-right-up
.
on-right-click
.
on-text
.
register-entity
.
render
.
(setf render-enabled)
.
render-enabled
.
sdl-window
.
setup
.
(setf sketch-%delayed-init-funs)
.
sketch-%delayed-init-funs
.
(setf sketch-%entities)
.
sketch-%entities
.
sketch-%env
.
(setf sketch-%setup-called)
.
sketch-%setup-called
.
(setf sketch-%window)
.
sketch-%window
.
(setf sketch-close-on)
.
sketch-close-on
.
(setf sketch-copy-pixels)
.
sketch-copy-pixels
.
(setf sketch-fullscreen)
.
(setf sketch-fullscreen)
.
sketch-fullscreen
.
(setf sketch-height)
.
(setf sketch-height)
.
sketch-height
.
(setf sketch-resizable)
.
(setf sketch-resizable)
.
sketch-resizable
.
(setf sketch-title)
.
(setf sketch-title)
.
sketch-title
.
(setf sketch-width)
.
(setf sketch-width)
.
sketch-width
.
(setf sketch-y-axis)
.
(setf sketch-y-axis)
.
sketch-y-axis
.
textinput-event
.
update-instance-for-redefined-class
.
window-event
.
(sketch::make-env)
This slot is read-only.
t
(make-hash-table)
:window
(make-array 0 :adjustable t :fill-pointer t)
"sketch"
:title
sketch:*default-width*
:width
sketch:*default-height*
:height
:fullscreen
:resizable
:copy-pixels
:down
:y-axis
:escape
:close-on
The current entity.
The current sketch instance.
Defines a method for an event, as well as an :around method
that sets the sketch environment and propagates the event to entities.
x & y are assumed to come last in the argument list.
F should be a function with no arguments.
If a VALUE is of form (IN CHANNEL-NAME DEFAULT-VALUE) it is recognized as a channel.
This checks whether the OpenGL context has been created yet. If not, we need to wait before initializing certain resources.
Sent to shaders when no image is active.
Expensive operation that turns CL objects into keywords whose names
are MD5 hashes of those objects, stringified. Uniqueness is not guaranteed,
but may be considered unique for all practical purposes.
Generate uv coordinates (0.0 to 1.0) for portion of IMG within
the rect specified by X Y W H
Image flipping can be done by using negative width and height values
name
.
sketch-window
)) ¶sketch-window
)) ¶The sketch associated with this window.
cropped-image
)) ¶automatically generated reader method
cropped-image
)) ¶automatically generated writer method
cropped-image
)) ¶cropped-image
)) ¶automatically generated reader method
cropped-image
)) ¶automatically generated writer method
Generated by DEFSKETCH.
sketch-window
)) ¶automatically generated reader method
sketch-window
)) ¶automatically generated writer method
structure-object
.
(sb-cga:identity-matrix)
1
0
(make-hash-table)
(setf binding-accessor)
.
binding-accessor
.
(setf binding-channel-name)
.
binding-channel-name
.
(setf binding-channelp)
.
binding-channelp
.
(setf binding-defaultp)
.
binding-defaultp
.
(setf binding-initarg)
.
binding-initarg
.
(setf binding-initform)
.
binding-initform
.
(setf binding-name)
.
binding-name
.
(setf binding-package)
.
binding-package
.
(setf binding-prefix)
.
binding-prefix
.
:name
:prefix
common-lisp
.
:package
:defaultp
:initform
:initarg
:accessor
:channelp
:channel-name
:face
:color
16
:size
1.41
:line-height
:left
:align
gl-window
.
(setf %sketch)
.
%sketch
.
close-window
.
close-window
.
controller-added-event
.
controller-axis-motion-event
.
controller-button-event
.
controller-removed-event
.
keyboard-event
.
keyboard-event
.
mousebutton-event
.
mousebutton-event
.
mousemotion-event
.
mousemotion-event
.
mousewheel-event
.
mousewheel-event
.
render
.
(setf render-enabled)
.
render-enabled
.
textinput-event
.
textinput-event
.
(setf window-%closing)
.
window-%closing
.
window-event
.
window-event
.
The sketch associated with this window.
:sketch
Jump to: | %
(
A B C D E F G H I K L M N O P Q R S T U W |
---|
Jump to: | %
(
A B C D E F G H I K L M N O P Q R S T U W |
---|
Jump to: | %
*
+
A B C D F G H I L M N O P R S T U V W Y |
---|
Jump to: | %
*
+
A B C D F G H I L M N O P R S T U V W Y |
---|
Jump to: | B C D E F G I M P R S T U |
---|
Jump to: | B C D E F G I M P R S T U |
---|