[cairo-commit] [cairo-www] src/OpenGL.mdwn
Carl Worth
cworth at freedesktop.org
Tue Dec 1 02:53:38 PST 2009
src/OpenGL.mdwn | 25 ++++++++++---------------
1 file changed, 10 insertions(+), 15 deletions(-)
New commits:
commit 42a28e981efdf03e97a8a2fc6781c43155bd899a
Author: macslow <macslow at web>
Date: Tue Dec 1 02:53:38 2009 -0800
diff --git a/src/OpenGL.mdwn b/src/OpenGL.mdwn
index 326f080..946a330 100644
--- a/src/OpenGL.mdwn
+++ b/src/OpenGL.mdwn
@@ -176,21 +176,16 @@ Here a clever method is demonstrated to get edge-anti-aliasing for
textured single quads or rectangles. The computational costs are
negligible compared to usual multi- or super-sample based
anti-aliasing. The demonstrated technique needs OpenGL-hardware, which
-is capable of texture-mapping though. The main idea is to leverage the
-texture-filtering functions available on OpenGL-cards to do some
-filtering for us on a cleverly modified texture-image. The edges of an
-image have to be trimmed slightly for this to take effect. The
-cairo-API offers the right means to easily trim an image in advance
-before uploading it to the OpenGL-card as texture-object. Thanks to
-cairo it is also very simple to add nicely rounded corners to the
-texture image to further improve the smooth look of the final object
-on screen.
-
-The visual improvement can be clearly seen in this screenshot...
-
-<a href="http://macslow.thepimp.net/shots/gl-cairo-aatrick.png">
-<img src="http://macslow.thepimp.net/shots/small_gl-cairo-aatrick.png">
-</a>
+is capable of texture-mapping, multi-texturing and executing
+fragment-shaders. The main idea is to leverage the texture-filtering
+functions available on OpenGL-cards to do some filtering for us on a
+cleverly modified texture-image trimmed with a second texture-image
+acting as a mask or stencil. The cairo-API offers the right means to
+easily create this trimming mask texture. Thanks to cairo it is also
+very simple to add nicely rounded corners to the texture image to
+further improve the smooth look of the final object on screen. The
+fragment-shader is used to do the actual masking out operation of
+the two texture-images.
You can check it out the sources via bazaar, like this...
More information about the cairo-commit
mailing list