GEL
2
GEL is a library for Geometry and Linear Algebra
|
00001 /* 00002 * wireframe.h 00003 * GEL 00004 * 00005 * Created by J. Andreas Brentzen on 05/08/08. 00006 * Copyright 2008 __MyCompanyName__. All rights reserved. 00007 * 00008 */ 00009 #ifndef __GLGRAPHICS_SINGLE_PASS_WIREFRAME__ 00010 #define __GLGRAPHICS_SINGLE_PASS_WIREFRAME__ 00011 00012 #include <GL/glew.h> 00013 #include <CGLA/Vec3f.h> 00014 00015 namespace GLGraphics 00016 { 00019 class SinglePassWireframeRenderer 00020 { 00021 GLhandleARB prog, old_prog; 00022 public: 00024 SinglePassWireframeRenderer(); 00025 00027 bool enable(const CGLA::Vec3f& line_color = CGLA::Vec3f(1,0,0)); 00028 00030 void disable(); 00031 }; 00032 } 00033 #endif