[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/backend render_handler_ogl.cpp
From: |
Markus Gothe |
Subject: |
[Gnash-commit] gnash/backend render_handler_ogl.cpp |
Date: |
Tue, 31 Oct 2006 20:33:42 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Markus Gothe <nihilus> 06/10/31 20:33:42
Modified files:
backend : render_handler_ogl.cpp
Log message:
Code found on the Octane2 not commited... (Just some PoC-code from
Timo.)
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/backend/render_handler_ogl.cpp?cvsroot=gnash&r1=1.42&r2=1.43
Patches:
Index: render_handler_ogl.cpp
===================================================================
RCS file: /sources/gnash/gnash/backend/render_handler_ogl.cpp,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -b -r1.42 -r1.43
--- render_handler_ogl.cpp 29 Oct 2006 23:52:57 -0000 1.42
+++ render_handler_ogl.cpp 31 Oct 2006 20:33:42 -0000 1.43
@@ -6,7 +6,7 @@
// A render_handler that uses SDL & OpenGL
-/* $Id: render_handler_ogl.cpp,v 1.42 2006/10/29 23:52:57 nihilus Exp $ */
+/* $Id: render_handler_ogl.cpp,v 1.43 2006/10/31 20:33:42 nihilus Exp $ */
//#include "gnash.h"
#include "render_handler.h"
@@ -657,6 +657,24 @@
// Markus: Implement anti-aliasing here...
#if 0
+/*
+Code from Timo Kanera...
+if (gl_antialias)
+ {
+ glShadeModel (GL_SMOOTH);
+ glEnable (GL_POLYGON_SMOOTH);
+ glEnable (GL_LINE_SMOOTH);
+ glEnable (GL_POINT_SMOOTH);
+ mp_msg(MSGT_VO, MSGL_INFO, "[sgi] antialiasing on\n");
+}
+else {
+ glShadeModel (GL_FLAT);
+ glDisable (GL_POLYGON_SMOOTH);
+ glDisable (GL_LINE_SMOOTH);
+ glDisable (GL_POINT_SMOOTH);
+ mp_msg(MSGT_VO, MSGL_INFO, "[sgi] antialiasing off\n");
+}
+*/
// See if we want to, and can, use multitexture
// antialiasing.
s_multitexture_antialias = false;