| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
* (draw-scene-node): Add uniforms parameter and use the uniforms when
rendering a mesh.
|
|
|
|
| |
* sly/font.scm (make-label): Create sprite mesh.
|
|
|
|
|
| |
* sly/sprite.scm (make-sprite): Add anchor and color keyword
parameters. Color is currently unused.
|
|
|
|
|
|
|
|
|
|
|
| |
* sly/camera.scm (camera-before-draw-handler,
camera-after-draw-handler): New procedures.
(make-camera): Add before-draw and after-draw keyword parameters.
(orthographic-camera): Use #:allow-other-keys.
(run-handler): New procedure.
(draw-camera): Enable/disable GL features before/after drawing and run
handlers.
* sly/window.scm (open-window): Remove calls to GL procedures.
|
|
|
|
|
| |
* sly/game.scm (start-game-loop): Support rendering a single camera
object instead of just a list of cameras.
|
|
|
|
| |
* sly/camera (orthographic-camera): New procedure.
|
|
|
|
|
|
|
| |
* sly/scene.scm (<scene-node>): Add transform field.
(make-scene-node): Initialize transform.
(scene-node-dirty?, recompute-transform!): New procedures.
(draw-scene-node): Don't generate new transform if node isn't dirty.
|
|
|
|
|
|
| |
* sly/scene.scm (make-scene-node): Default rotation to
identity-quaternion.
(draw-scene-node): Convert quaternion to transformation matrix.
|
|
|
|
| |
* sly/math.scm (square): New procedure.
|
|
|
|
| |
* sly/transition.scm (guess-interpolator): Use slerp for quaternions.
|
|
|
|
|
| |
* Makefile.am (SOURCES): Add 'sly/quaternion.scm'.
* sly/quaternion.scm: New file.
|
| |
|
|
|
|
| |
* sly/transition.scm (transition): Use signal-generator.
|
| |
|
|
|
|
| |
* sly/signal.scm (signal-negate): New procedure.
|
|
|
|
| |
* sly/camera.scm (draw-camera): Use signal-let.
|
|
|
|
| |
* sly/signal.scm (signal-let): Use signal-ref-maybe instead of signal-ref.
|
|
|
|
|
|
|
|
| |
* sly/scene.scm (scene-node-position, scene-node-scale,
scene-node-rotation, scene-node-uniforms, scene-node-children): Do not
unbox signal value.
(define/signal-ref): Delete it.
(update-scene-node, draw-scene-node): Use signal-let.
|
|
|
|
| |
* sly/sprite.scm (make-sprite): Add docstring.
|
|
|
|
| |
* sly/sprite.scm (load-sprite): New procedure.
|
|
|
|
| |
* sly/transform.scm (translate, scale): Use match.
|
|
|
|
| |
* sly/texture.scm (anchor-texture): Use match.
|
|
|
|
|
| |
* sly/texture.scm (bitmap->texture, load-texture): Add min-filter and
mag-filter parameters.
|
| |
|
|
|
|
| |
* examples/scene-graph: Update.
|
|
|
|
|
|
|
| |
* sly/scene.scm (%scene-node-mesh, scene-node-mesh): Delete.
(make-scene-node): Remove mesh parameter.
(update-scene-node): Skip over mesh nodes.
(draw-scene-node): Draw mesh nodes.
|
|
|
|
| |
* sly/sprite.scm (make-animated-sprite): New procedure.
|
|
|
|
| |
* sly/helpers.scm (forever): New macro.
|
|
|
|
|
| |
* sly/signal.scm (yield): New variable.
(signal-generator): New macro.
|
|
|
|
| |
* data/Makefile.am (shaders_DATA): Remove old shaders and add new ones.
|
|
|
|
| |
* examples/scene-graph.scm: New file.
|
|
|
|
| |
* sly/shape.scm (make-cube): Fix texture vertices.
|
|
|
|
|
| |
* sly/mesh.scm (draw-mesh): Use the public uniform-set!
* sly/shader.scm: Export uniform-set!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* data/shaders/default-fragment.glsl: New file.
* data/shaders/default-vertex.glsl: New file.
* data/shaders/font-fragment.glsl: Delete.
* data/shaders/font-vertex.glsl: Delete.
* data/shaders/sprite-fragment.glsl: Delete.
* data/shaders/sprite-vertex.glsl: Delete.
* examples/common.scm: Remove call to enable-sprites.
* sly/font.scm (font-shader): Delete.
(enable-fonts): Remove shader loading.
(make-label): Use default shader.
* sly/shape.scm (make-cube): Make texture and shader optional keyword
arguments.
* sly/sprite.scm (sprite-shader, enable-sprites): Delete.
(make-sprite): Make shader an optional keyword argument.
|
|
|
|
| |
* sly/shader.scm (load-default-shader): New procedure.
|
|
|
|
| |
* sly/mesh.scm (draw-mesh): Don't bind texture if there isn't one.
|
|
|
|
|
| |
* Makefile.am (SOURCES): Add it.
* sly/shape.scm: New file.
|
|
|
|
| |
* sly/primitives.scm: Delete it.
|
|
|
|
|
|
| |
* sly/font.scm (make-label): Return mesh.
(label?, label-font, label-text, label-position, label-color,
draw-label): Delete.
|
|
|
|
| |
* sly/sprite.scm: Rewrite.
|
|
|
|
| |
* sly/math.scm (half): New procedure.
|
|
|
|
| |
* sly/game.scm (start-game-loop): Add cameras parameter.
|
|
|
|
|
| |
* Makefile.am (SOURCES): Add it.
* sly/scene.scm: New file.
|
|
|
|
|
| |
* Makefile.am (SOURCES): Add it.
* sly/camera.scm: New file.
|
|
|
|
|
| |
* Makefile.am (SOURCES): Add it.
* sly/mesh.scm: New file.
|
|
|
|
| |
* sly/transform.scm (look-at): New procedure.
|
|
|
|
|
| |
* sly/vector.scm (normalize): Preserve dimensionality in the case where
magnitude is 0.
|
|
|
|
|
| |
* sly/math.scm (cotan): New procedure.
* sly/transform.scm (perspective-projection): Simplify.
|
|
|
|
| |
* sly/transform.scm (transform*): Perform matrix multiplication correctly.
|
|
|
|
| |
* sly/wrappres/gl.scm (gl-scissor): New procedure.
|