// Sets the callback for TESS_COMBINE_DATA. func (tess *Tesselator) SetCombineCallback(f TessCombineHandler) { if tess.tess == nil { panic("Uninitialised Tesselator. @see glu.NewTess.") } tess.combineData = f C.setGluTessCallback(tess.tess, C.GLenum(TESS_COMBINE_DATA)) }
// Sets the callback for TESS_EDGE_FLAG_DATA. func (tess *Tesselator) SetEdgeFlagCallback(f TessEdgeFlagHandler) { if tess.tess == nil { panic("Uninitialised Tesselator. @see glu.NewTess.") } tess.edgeFlagData = f C.setGluTessCallback(tess.tess, C.GLenum(TESS_EDGE_FLAG_DATA)) }
// Sets the callback for TESS_ERROR_DATA. func (tess *Tesselator) SetErrorCallback(f TessErrorHandler) { if tess.tess == nil { panic("Uninitialised Tesselator. @see glu.NewTess.") } tess.errorData = f C.setGluTessCallback(tess.tess, C.GLenum(TESS_ERROR_DATA)) }
// Sets the callback for TESS_END_DATA. func (tess *Tesselator) SetEndCallback(f TessEndHandler) { if tess.tess == nil { panic("Uninitialised Tesselator. @see glu.NewTess.") } tess.endData = f C.setGluTessCallback(tess.tess, C.GLenum(TESS_END_DATA)) }
// Sets the callback for TESS_VERTEX_DATA. func (tess *Tesselator) SetVertexCallback(f TessVertexHandler) { if tess.tess == nil { panic("Uninitialised Tesselator. @see glu.NewTess.") } tess.vertexData = f C.setGluTessCallback(tess.tess, C.GLenum(TESS_VERTEX_DATA)) }
// Sets the callback for TESS_BEGIN_DATA. func (tess *Tesselator) SetBeginCallback(f TessBeginHandler) { if tess.tess == nil { panic("Uninitialised Tesselator. @see glu.NewTess.") } tess.beginData = f C.setGluTessCallback(tess.tess, C.GLenum(TESS_BEGIN_DATA)) }