/* * $Id$ * * $Date$ * $Revision$ * * Written in 2018 by Daniel "Daytona675x" Müßener * * This file is part of the MiniGL library project * See the file Licence.txt for more details * */ #if defined(MGL_TABOR) && !defined(MGL_TABOR_NO_ABI_BRIDGE) #include "mgl/minigl.h" #include "interfaces/glut.h" #include "tabor.h" void TABORIZE_GLUE(glut_GLUTWireCube)(struct GlutIFace *self); void TABORIZE_GLUE(glut_GLUTSolidCube)(struct GlutIFace *self); void TABORIZE_GLUE(glut_GLUTWireSphere)(struct GlutIFace *self, GLint slices, GLint stacks); void TABORIZE_GLUE(glut_GLUTSolidSphere)(struct GlutIFace *self, GLint slices, GLint stacks); void TABORIZE_GLUE(glut_GLUTWireCone)(struct GlutIFace *self, GLint slices, GLint stacks); void TABORIZE_GLUE(glut_GLUTSolidCone)(struct GlutIFace *self, GLint slices, GLint stacks); void TABORIZE_GLUE(glut_GLUTWireTorus)(struct GlutIFace *self, GLint sides, GLint rings); void TABORIZE_GLUE(glut_GLUTSolidTorus)(struct GlutIFace *self, GLint sides, GLint rings); void TABORIZE_GLUE(glut_GLUTWireSierpinskiSponge)(struct GlutIFace *self, int num_levels); void TABORIZE_GLUE(glut_GLUTSolidSierpinskiSponge)(struct GlutIFace *self, int num_levels); void TABORIZE_GLUE(glut_GLUTWireCylinder)(struct GlutIFace *self, GLint slices, GLint stacks); void TABORIZE_GLUE(glut_GLUTSolidCylinder)(struct GlutIFace *self, GLint slices, GLint stacks); void TABORIZE_GLUE(glut_GLUTWireTeapot)(struct GlutIFace *self); void TABORIZE_GLUE(glut_GLUTSolidTeapot)(struct GlutIFace *self); void TABORIZE_GLUE(glut_GLUTSetColor)(struct GlutIFace *self, int nColor); void TABORIZE_GLUE(glut_GLUTGetColor)(struct GlutIFace *self, int color, int component); void TABORIZE(glut_GLUTWireCube)(struct GlutIFace *self, GLdouble size) { TB_GET_CONTEXT; TB_DBL_0=size; TABORIZE_GLUE(glut_GLUTWireCube)(self); } void TABORIZE(glut_GLUTSolidCube)(struct GlutIFace *self, GLdouble size) { TB_GET_CONTEXT; TB_DBL_0=size; TABORIZE_GLUE(glut_GLUTSolidCube)(self); } void TABORIZE(glut_GLUTWireSphere)(struct GlutIFace *self, GLdouble radius, GLint slices, GLint stacks) { TB_GET_CONTEXT; TB_DBL_0=radius; TABORIZE_GLUE(glut_GLUTWireSphere)(self,slices,stacks); } void TABORIZE(glut_GLUTSolidSphere)(struct GlutIFace *self, GLdouble radius, GLint slices, GLint stacks) { TB_GET_CONTEXT; TB_DBL_0=radius; TABORIZE_GLUE(glut_GLUTSolidSphere)(self,slices,stacks); } void TABORIZE(glut_GLUTWireCone)(struct GlutIFace *self, GLdouble base, GLdouble height, GLint slices, GLint stacks) { TB_GET_CONTEXT; TB_DBL_0=base; TB_DBL_1=height; TABORIZE_GLUE(glut_GLUTWireCone)(self,slices,stacks); } void TABORIZE(glut_GLUTSolidCone)(struct GlutIFace *self, GLdouble base, GLdouble height, GLint slices, GLint stacks) { TB_GET_CONTEXT; TB_DBL_0=base; TB_DBL_1=height; TABORIZE_GLUE(glut_GLUTSolidCone)(self,slices,stacks); } void TABORIZE(glut_GLUTWireTorus)(struct GlutIFace *self, GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings) { TB_GET_CONTEXT; TB_DBL_0=innerRadius; TB_DBL_1=outerRadius; TABORIZE_GLUE(glut_GLUTWireTorus)(self,sides,rings); } void TABORIZE(glut_GLUTSolidTorus)(struct GlutIFace *self, GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings) { TB_GET_CONTEXT; TB_DBL_0=innerRadius; TB_DBL_1=outerRadius; TABORIZE_GLUE(glut_GLUTSolidTorus)(self,sides,rings); } void TABORIZE(glut_GLUTWireSierpinskiSponge)(struct GlutIFace *self, int num_levels, GLdouble offset[3], GLdouble scale) { TB_GET_CONTEXT; TB_DBL_0=offset[0]; TB_DBL_1=offset[1]; TB_DBL_2=offset[2]; TB_DBL_3=scale; TABORIZE_GLUE(glut_GLUTWireSierpinskiSponge)(self,num_levels); } void TABORIZE(glut_GLUTSolidSierpinskiSponge)(struct GlutIFace *self, int num_levels, GLdouble offset[3], GLdouble scale) { TB_GET_CONTEXT; TB_DBL_0=offset[0]; TB_DBL_1=offset[1]; TB_DBL_2=offset[2]; TB_DBL_3=scale; TABORIZE_GLUE(glut_GLUTSolidSierpinskiSponge)(self,num_levels); } void TABORIZE(glut_GLUTWireCylinder)(struct GlutIFace *self, GLdouble radius, GLdouble height, GLint slices, GLint stacks) { TB_GET_CONTEXT; TB_DBL_0=radius; TB_DBL_1=height; TABORIZE_GLUE(glut_GLUTWireCylinder)(self,slices,stacks); } void TABORIZE(glut_GLUTSolidCylinder)(struct GlutIFace *self, GLdouble radius, GLdouble height, GLint slices, GLint stacks) { TB_GET_CONTEXT; TB_DBL_0=radius; TB_DBL_1=height; TABORIZE_GLUE(glut_GLUTSolidCylinder)(self,slices,stacks); } void TABORIZE(glut_GLUTWireTeapot)(struct GlutIFace *self, GLdouble size) { TB_GET_CONTEXT; TB_DBL_0=size; TABORIZE_GLUE(glut_GLUTWireTeapot)(self); } void TABORIZE(glut_GLUTSolidTeapot)(struct GlutIFace *self, GLdouble size) { TB_GET_CONTEXT; TB_DBL_0=size; TABORIZE_GLUE(glut_GLUTSolidTeapot)(self); } void TABORIZE(glut_GLUTSetColor)(struct GlutIFace *self, int nColor, GLfloat red, GLfloat green, GLfloat blue) { TB_GET_CONTEXT; TB_FLT_0=red; TB_FLT_1=green; TB_FLT_2=blue; TABORIZE_GLUE(glut_GLUTSetColor)(self,nColor); } GLfloat TABORIZE(glut_GLUTGetColor)(struct GlutIFace *self, int color, int component) { TB_GET_CONTEXT; TABORIZE_GLUE(glut_GLUTGetColor)(self,color,component); return TB_FLT_0; } #endif