summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2023-09-01 09:00:01 -0400
committerDavid Thompson <dthompson2@worcester.edu>2023-11-08 21:35:34 -0500
commit1425a0dc73f7fa37612b7a82f090e9b10ddebf25 (patch)
tree97de459a6b021c7abb04944cdde512efe5909bd4 /doc
parentd969c19756227899b39967989fa971fa3452e872 (diff)
First pass of rendering engine rewrite.
The (chickadee graphics gpu) module now handles most of the low-level OpenGL object creation/deletion/binding. The (chickadee graphics engine) module handles the with-graphics-state stuff via a render context object. There's lots of stuff that isn't great, but it's the first step towards a graphics backend agnostic rendering layer.
Diffstat (limited to 'doc')
-rw-r--r--doc/api.texi11
1 files changed, 3 insertions, 8 deletions
diff --git a/doc/api.texi b/doc/api.texi
index 50ce301..b6aef7b 100644
--- a/doc/api.texi
+++ b/doc/api.texi
@@ -4483,8 +4483,8 @@ and state changes happen within the context of this engine.
Performing a custom draw call could look something like this:
@lisp
-(with-graphics-state ((g:blend-mode blend:alpha)
- (g:texture-0 my-texture))
+(with-graphics-state ((blend-mode blend:alpha)
+ (texture 0 my-texture))
(shader-apply my-shader #:foo 1))
@end lisp
@@ -4502,17 +4502,12 @@ values afterwards.
@end deffn
One additional piece of state that the rendering engine has, that is
-not part of the GPU state, is the current projection matrix:
+not strictly part of the GPU state, is the current projection matrix:
@deffn {Procedure} current-projection
Return the currently bound projection matrix (@pxref{Matrices}).
@end deffn
-@deffn {Syntax} with-projection projection body @dots{}
-Evaluate @var{body} with the current projection matrix bound to
-@var{projection} (@pxref{Matrices}).
-@end deffn
-
@subsubsection Rendering
Chickadee likens a GPU draw call to a Scheme procedure call. A shader