📄 cogoutput.hxx
字号:
#ifndef cogoutput_hxx
#define cogoutput_hxx
#ifndef cog_hxx
#include "cog.hxx"
#endif
void cogToGL(cogeometry g); // cog2gl.cxx
void cogToGL(cogeometry g, cogeometry g1); // cog2gl.cxx
void cogToGL(cogeometry g, cogeometry g1,cogeometry g2); // cog2gl.cxx
void cogToGL(cogeometry g, cogeometry g1,cogeometry g2,cogeometry g3);
inline void cogOutput(cogeometry g){cogToGL(g);}
inline void cogOutput(cogeometry g,cogeometry g1){cogToGL(g,g1);}
inline void cogOutput(cogeometry g,cogeometry g1,cogeometry g2)
{cogToGL(g,g1,g2);}
inline void cogOutput(cogeometry g,cogeometry g1,cogeometry g2,cogeometry g3)
{cogToGL(g,g1,g2,g3);}
class cogViewer{
public:
virtual void add(cogeometry g, char* name="", char* title="")=0;
virtual void show()=0;
virtual void reset()=0;
};
class cogGLViewer: public cogViewer{
void *rnd;int i;
public:
cogGLViewer(char *title="");
void add(cogeometry g, char* name="", char* title="");
void show();
void reset();
~cogGLViewer();
};
extern cogViewer& cogView;
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -