summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/api.texi18
1 files changed, 8 insertions, 10 deletions
diff --git a/doc/api.texi b/doc/api.texi
index 7854b53..813c66a 100644
--- a/doc/api.texi
+++ b/doc/api.texi
@@ -1286,7 +1286,7 @@ blocks to implement additional rendering techniques.
* Lines and Shapes:: Draw line segments and polygons.
* Fonts:: Drawing text.
* Particles:: Pretty little flying pieces!
-* Blending and Depth Testing:: Control how pixels are combined.
+* Blending:: Control how pixels are combined.
* Framebuffers:: Render to texture.
* Viewports:: Restrict rendering to a particular area.
* Rendering Engine:: Rendering state management.
@@ -1632,7 +1632,7 @@ particles. Achieving the desired particle effect involves tweaking
the following keyword arguments as needed:
- @var{blend-mode}: Pixel blending mode. @code{alpha} by default.
-(@pxref{Blending and Depth Testing} for more about blend modes).
+(@pxref{Blending} for more about blend modes).
- @var{start-color}: The tint color of the particle at the beginning of its
life. White by default.
@@ -1733,8 +1733,8 @@ Add @var{emitter} to @var{particles}.
Remove @var{emitter} to @var{particles}
@end deffn
-@node Blending and Depth Testing
-@subsection Blending and Depth Testing
+@node Blending
+@subsection Blending
Rendering a scene often involves drawing layers of objects that
overlap each other. Blending determines how two overlapping pixels
@@ -1924,12 +1924,11 @@ Return the currently bound framebuffer (@pxref{Framebuffers}).
@end deffn
@deffn {Procedure} current-blend-mode
-Return the currently bound blend mode (@pxref{Blending and Depth
-Testing}).
+Return the currently bound blend mode (@pxref{Blending}).
@end deffn
@deffn {Procedure} current-depth-test
-Return @code{#t} if depth testing is currently enabled (@pxref{Blending and Depth Testing}).
+Return @code{#t} if depth testing is currently enabled (@pxref{Blending}).
@end deffn
@deffn {Procedure} current-texture
@@ -1951,13 +1950,12 @@ Evaluate @var{body} with the current framebuffer bound to
@deffn {Syntax} with-blend-mode @var{blend-mode} @var{body} ...
Evaluate @var{body} with the current blend mode bound to
-@var{blend-mode} (@pxref{Blending and Depth Testing}).
+@var{blend-mode} (@pxref{Blending}).
@end deffn
@deffn {Syntax} with-depth-test @var{depth-test?} @var{body} ...
Evaluate @var{body} with the depth-test disabled if @var{depth-test?}
-is @code{#f}, or enabled otherwise (@pxref{Blending and Depth
-Testing}).
+is @code{#f}, or enabled otherwise (@pxref{Blending}).
@end deffn
@deffn {Syntax} with-texture @var{texture} @var{body} ...