Subversion Repositories gelsvn

Rev

Rev 441 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 441 Rev 492
Line 7... Line 7...
7
#include "Geometry/BoundingINode.h"
7
#include "Geometry/BoundingINode.h"
8
#include "Geometry/BoundingLNode.h"
8
#include "Geometry/BoundingLNode.h"
9
#include "Geometry/BoundingTree.h"
9
#include "Geometry/BoundingTree.h"
10
#include "HMesh/Manifold.h"
10
#include "HMesh/Manifold.h"
11
 
11
 
12
#include "SinglePassWireframeRenderer.h"
-
 
13
#include "IDBufferWireFrameRenderer.h"
-
 
14
 
-
 
15
namespace GLGraphics
12
namespace GLGraphics
16
{
13
{
17
	/// Draw an indexed face set (just a triangle list) with normals computed on the fly.
14
	/// Draw an indexed face set (just a triangle list) with normals computed on the fly.
18
	void draw(const Geometry::IndexedFaceSet& geometry);
15
	void draw(const Geometry::IndexedFaceSet& geometry);
19
 
16
 
Line 33... Line 30...
33
	/// Draw an oriented bounding box
30
	/// Draw an oriented bounding box
34
	void draw(const Geometry::OBox& box);
31
	void draw(const Geometry::OBox& box);
35
	
32
	
36
	/// Draw an object of type T which contains only triangles as wireframe. In practice T = Manifold or TriMesh.
33
	/// Draw an object of type T which contains only triangles as wireframe. In practice T = Manifold or TriMesh.
37
	template<typename T>
34
	template<typename T>
38
	inline void draw_triangles_in_wireframe(T& m, bool per_vertex_norms, const CGLA::Vec3f& line_color)
35
	inline void draw_triangles_in_wireframe(T& m, bool per_vertex_norms, const CGLA::Vec3f& line_color);
39
	{
-
 
40
		static SinglePassWireframeRenderer swr;
-
 
41
		swr.enable(line_color);
-
 
42
		draw(m, per_vertex_norms);
-
 
43
		swr.disable();
-
 
44
	}
-
 
45
	
36
 
46
	/// Draw an object of type T as wireframe.  In practice T = Manifold or TriMesh.
37
  /// Draw an object of type T as wireframe.  In practice T = Manifold or TriMesh.
47
	template<class T>
38
	template<class T>
48
	void draw_wireframe_oldfashioned(T& m, bool per_vertex_norms, const CGLA::Vec3f& line_color);
39
	void draw_wireframe_oldfashioned(T& m, bool per_vertex_norms, const CGLA::Vec3f& line_color);
49
	
40
	
50
	
41
	
51
	
-
 
52
	template<class BoxType>
42
	template<class BoxType>
53
	void draw(const Geometry::BoundingINode<BoxType>& node, int level, int max_level);
43
	void draw(const Geometry::BoundingINode<BoxType>& node, int level, int max_level);
54
	template<class BoxType>
44
	template<class BoxType>
55
    void draw(const Geometry::BoundingLNode<BoxType>& node, int level, int max_level);
45
    void draw(const Geometry::BoundingLNode<BoxType>& node, int level, int max_level);
56
	template<class BoxType>
46
	template<class BoxType>