⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tessellator.h

📁 最新osg包
💻 H
字号:
/*******************************************************      Lightwave Object Loader for OSG  Copyright (C) 2004 Marco Jez <marco.jez@poste.it>  OpenSceneGraph is (C) 2004 Robert Osfield********************************************************/#ifndef LWOSG_TESSELLATOR_#define LWOSG_TESSELLATOR_#include "Polygon.h"#include <osg/ref_ptr>#include <osg/Array>#include <osg/PrimitiveSet>#include <osg/GLU>#include <vector>#ifndef CALLBACK#define CALLBACK#endifnamespace lwosg{	class Tessellator {	public:		bool tessellate(const Polygon &poly, const osg::Vec3Array *points, osg::DrawElementsUInt *out, const std::vector<int> *remap = 0);		~Tessellator();	protected:		void finalize_primitive();	private:		friend void CALLBACK cb_begin_data(GLenum, void *);		friend void CALLBACK cb_vertex_data(void *, void *);		friend void CALLBACK cb_end_data(void *);		friend void CALLBACK cb_error_data(GLenum, void *);		osg::ref_ptr<osg::DrawElementsUInt> out_;		GLenum prim_type_;		GLenum last_error_;		typedef std::vector<int> Index_list;		Index_list incoming_;	};}#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -