Commit 0db93e29 authored by zmoelnig's avatar zmoelnig
Browse files

reinterpret_cast<t_method>

converted all the CCASTs to C++CASTS with:
for i in *.cpp
do
  sed -e 's|(t_method) *\([^ ]*\)\([,)]\)|reinterpret_cast<t_method>(\1)\2|' -i "${i}"
done

git-svn-id: https://pd-gem.svn.sourceforge.net/svnroot/pd-gem/trunk/Gem@3059 49b2a0ca-c541-4d49-a7ef-d785e4371512
parent ecbfb5f5
......@@ -228,7 +228,7 @@ bool GemBase :: isRunnable()
/////////////////////////////////////////////////////////
void GemBase :: obj_setupCallback(t_class *classPtr)
{
class_addmethod(classPtr, (t_method)&GemBase::gem_MessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&GemBase::gem_MessCallback),
gensym("gem_state"), A_GIMME, A_NULL);
}
void GemBase :: gem_MessCallback(void *data, t_symbol *s, int argc, t_atom *argv)
......
......@@ -352,7 +352,7 @@ static void addEvent(gem_event_t type, char*string, int x, int y, int state, int
event_queue=new gem_event_queue_t;
event_queue->first=NULL;
event_queue->last =NULL;
event_queue->clock=clock_new(NULL, (t_method)eventClock);
event_queue->clock=clock_new(NULL, reinterpret_cast<t_method>(eventClock));
}
gem_event_queue_item_t*item=createEvent(type, string, x, y, state, axis, value, which);
if(NULL==event_queue->first) {
......
......@@ -98,7 +98,7 @@ void GemGluObj :: typeMess(t_symbol *type)
/////////////////////////////////////////////////////////
void GemGluObj :: obj_setupCallback(t_class *classPtr)
{
class_addmethod(classPtr, (t_method)&GemGluObj::numSlicesMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&GemGluObj::numSlicesMessCallback),
gensym("numslices"), A_GIMME, A_NULL);
}
void GemGluObj :: numSlicesMessCallback(void *data, t_symbol*, int argc, t_atom*argv)
......
......@@ -209,7 +209,7 @@ void GemMan :: createContext(char* disp)
*/
}
s_windowClock = clock_new(NULL, (t_method)GemMan::dispatchWinmessCallback);
s_windowClock = clock_new(NULL, reinterpret_cast<t_method>(GemMan::dispatchWinmessCallback));
if (!m_windowContext && !createConstWindow(disp))
{
error("GEM: A serious error occured creating const Context");
......@@ -257,7 +257,7 @@ void GemMan :: initGem()
m_mat_specular[3] = 1.0;
m_mat_shininess = 100.0;
s_clock = clock_new(NULL, (t_method)&GemMan::render);
s_clock = clock_new(NULL, reinterpret_cast<t_method>(&GemMan::render));
GemSIMD simd_init;
......
......@@ -72,9 +72,9 @@ void GemPathBase :: openMess(t_symbol *arrayname)
/////////////////////////////////////////////////////////
void GemPathBase :: obj_setupCallback(t_class *classPtr)
{
class_addmethod(classPtr, (t_method)&GemPathBase::openMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&GemPathBase::openMessCallback),
gensym("open"), A_SYMBOL, A_NULL);
class_addfloat(classPtr, (t_method)&GemPathBase::floatMessCallback);
class_addfloat(classPtr, reinterpret_cast<t_method>(&GemPathBase::floatMessCallback));
}
void GemPathBase :: openMessCallback(void *data, t_symbol *arrayname)
{
......
......@@ -215,7 +215,7 @@ void GemPixDualObj :: rightRender(GemState *statePtr)
/////////////////////////////////////////////////////////
void GemPixDualObj :: obj_setupCallback(t_class *classPtr)
{
class_addmethod(classPtr, (t_method)&GemPixDualObj::gem_rightMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&GemPixDualObj::gem_rightMessCallback),
gensym("gem_right"), A_GIMME, A_NULL);
}
void GemPixDualObj :: gem_rightMessCallback(void *data, t_symbol *s, int argc, t_atom *argv)
......
......@@ -207,8 +207,8 @@ void GemPixObj :: processOnOff(int on)
/////////////////////////////////////////////////////////
void GemPixObj :: obj_setupCallback(t_class *classPtr)
{
class_addfloat(classPtr, (t_method)&GemPixObj::floatMessCallback);
class_addmethod(classPtr, (t_method)&GemPixObj::simdMessCallback,
class_addfloat(classPtr, reinterpret_cast<t_method>(&GemPixObj::floatMessCallback));
class_addmethod(classPtr, reinterpret_cast<t_method>(&GemPixObj::simdMessCallback),
gensym("simd"), A_DEFFLOAT, A_NULL);
}
void GemPixObj :: floatMessCallback(void *data, float n)
......
......@@ -191,13 +191,13 @@ void GemShape :: render(GemState *state)
/////////////////////////////////////////////////////////
void GemShape :: obj_setupCallback(t_class *classPtr)
{
class_addmethod(classPtr, (t_method)&GemShape::linewidthMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&GemShape::linewidthMessCallback),
gensym("width"), A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&GemShape::typeMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&GemShape::typeMessCallback),
gensym("draw"), A_SYMBOL, A_NULL);
class_addmethod(classPtr, (t_method)&GemShape::blendMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&GemShape::blendMessCallback),
gensym("blend"), A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&GemShape::sizeMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&GemShape::sizeMessCallback),
gensym("ft1"), A_FLOAT, A_NULL);
}
void GemShape :: linewidthMessCallback(void *data, t_floatarg linewidth)
......
......@@ -487,24 +487,24 @@ void gemframebuffer :: typeMess(const char* type)
////////////////////////////////////////////////////////
void gemframebuffer :: obj_setupCallback(t_class *classPtr)
{
class_addbang(classPtr, (t_method)&gemframebuffer::bangMessCallback);
class_addmethod(classPtr, (t_method)&gemframebuffer::modeCallback,
class_addbang(classPtr, reinterpret_cast<t_method>(&gemframebuffer::bangMessCallback));
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemframebuffer::modeCallback),
gensym("mode"), A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&gemframebuffer::modeCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemframebuffer::modeCallback),
gensym("rectangle"), A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&gemframebuffer::dimMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemframebuffer::dimMessCallback),
gensym("dimen"), A_FLOAT, A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&gemframebuffer::dimMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemframebuffer::dimMessCallback),
gensym("dim"), A_FLOAT, A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&gemframebuffer::formatMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemframebuffer::formatMessCallback),
gensym("format"), A_DEFSYMBOL, A_NULL);
class_addmethod(classPtr, (t_method)&gemframebuffer::typeMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemframebuffer::typeMessCallback),
gensym("type"), A_DEFSYMBOL, A_NULL);
class_addmethod(classPtr, (t_method)&gemframebuffer::colorMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemframebuffer::colorMessCallback),
gensym("color"), A_FLOAT, A_FLOAT, A_FLOAT, A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&gemframebuffer::texunitCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemframebuffer::texunitCallback),
gensym("texunit"), A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&gemframebuffer::perspectiveMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemframebuffer::perspectiveMessCallback),
gensym("perspec"), A_GIMME, A_NULL);
}
void gemframebuffer :: bangMessCallback(void *data)
......
......@@ -195,9 +195,9 @@ void gemhead :: stopRendering()
/////////////////////////////////////////////////////////
void gemhead :: obj_setupCallback(t_class *classPtr)
{
class_addbang(classPtr, (t_method)&gemhead::bangMessCallback);
class_addfloat(classPtr, (t_method)&gemhead::intMessCallback);
class_addmethod(classPtr, (t_method)&gemhead::setMessCallback,
class_addbang(classPtr, reinterpret_cast<t_method>(&gemhead::bangMessCallback));
class_addfloat(classPtr, reinterpret_cast<t_method>(&gemhead::intMessCallback));
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemhead::setMessCallback),
gensym("set"), A_FLOAT, A_NULL);
}
void gemhead :: bangMessCallback(void *data)
......
......@@ -181,13 +181,13 @@ void gemlist :: rightRender(GemState *state)
/////////////////////////////////////////////////////////
void gemlist :: obj_setupCallback(t_class *classPtr)
{
class_addbang(classPtr, (t_method)&gemlist::triggerMessCallback);
class_addmethod(classPtr, (t_method)&gemlist::gem_rightMessCallback, gensym("gem_right"), A_GIMME, A_NULL);
class_addbang(classPtr, reinterpret_cast<t_method>(&gemlist::triggerMessCallback));
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemlist::gem_rightMessCallback), gensym("gem_right"), A_GIMME, A_NULL);
class_addmethod(classPtr, (t_method)&gemlist::ticktimeMessCallback, gensym("ticktime"), A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&gemlist::lightingMessCallback, gensym("lighting"), A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&gemlist::drawMessCallback, gensym("draw"), A_GIMME, A_NULL);
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemlist::ticktimeMessCallback), gensym("ticktime"), A_FLOAT, A_NULL);
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemlist::lightingMessCallback), gensym("lighting"), A_FLOAT, A_NULL);
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemlist::drawMessCallback), gensym("draw"), A_GIMME, A_NULL);
}
void gemlist::triggerMessCallback(void *data)
......
......@@ -260,15 +260,15 @@ void gemreceive :: priorityMess(t_float f) {
/////////////////////////////////////////////////////////
void gemreceive :: obj_setupCallback(t_class *classPtr)
{
class_addsymbol(classPtr, (t_method)gemreceive::nameCallback);
class_addmethod(classPtr, (t_method)gemreceive::priorityCallback, gensym(""), A_FLOAT, 0);
class_addsymbol(classPtr, reinterpret_cast<t_method>(gemreceive::nameCallback));
class_addmethod(classPtr, reinterpret_cast<t_method>(gemreceive::priorityCallback), gensym(""), A_FLOAT, 0);
gemreceive_proxy_class = class_new(0, 0, 0,
sizeof(t_gemreceive_proxy),
CLASS_NOINLET | CLASS_PD,
A_NULL);
class_addanything(gemreceive_proxy_class, (t_method)gemreceive::proxyCallback);
class_addanything(gemreceive_proxy_class, reinterpret_cast<t_method>(gemreceive::proxyCallback));
}
void gemreceive :: proxyCallback(t_gemreceive_proxy*p, t_symbol*s, int argc, t_atom*argv)
......
......@@ -431,91 +431,91 @@ void gemwin :: fsaaMess(int value)
/////////////////////////////////////////////////////////
void gemwin :: obj_setupCallback(t_class *classPtr)
{
class_addbang(classPtr, (t_method)&gemwin::bangMessCallback);
class_addfloat(classPtr, (t_method)&gemwin::floatMessCallback);
class_addbang(classPtr, reinterpret_cast<t_method>(&gemwin::bangMessCallback));
class_addfloat(classPtr, reinterpret_cast<t_method>(&gemwin::floatMessCallback));
class_addmethod(classPtr, (t_method)&gemwin::renderMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::renderMessCallback),
gensym("render"), A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::titleMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::titleMessCallback),
gensym("title"), A_DEFSYM ,A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::createMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::createMessCallback),
gensym("create"), A_DEFSYM ,A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::createStereoMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::createStereoMessCallback),
gensym("createStereo"), A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::createStereoMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::createStereoMessCallback),
gensym("createstereo"), A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::bufferMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::bufferMessCallback),
gensym("buffer"), A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::fullscreenMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::fullscreenMessCallback),
gensym("fullscreen"), A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::menuBarMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::menuBarMessCallback),
gensym("menubar"), A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::secondscreenMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::secondscreenMessCallback),
gensym("secondscreen"), A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::dimensionsMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::dimensionsMessCallback),
gensym("dimen"), A_FLOAT, A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::offsetMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::offsetMessCallback),
gensym("offset"), A_FLOAT, A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::colorMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::colorMessCallback),
gensym("color"), A_GIMME, A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::clearmaskMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::clearmaskMessCallback),
gensym("clearmask"), A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::perspectiveMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::perspectiveMessCallback),
gensym("perspec"), A_GIMME, A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::viewMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::viewMessCallback),
gensym("view"), A_GIMME, A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::fogMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::fogMessCallback),
gensym("fog"), A_GIMME, A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::fogColorMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::fogColorMessCallback),
gensym("fogcolor"), A_GIMME, A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::fogModeMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::fogModeMessCallback),
gensym("fogmode"), A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::ambientMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::ambientMessCallback),
gensym("ambient"), A_GIMME, A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::specularMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::specularMessCallback),
gensym("specular"), A_GIMME, A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::shininessMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::shininessMessCallback),
gensym("shininess"), A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::cursorMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::cursorMessCallback),
gensym("cursor"), A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::blurMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::blurMessCallback),
gensym("blur"), A_FLOAT, A_NULL);
// just call GemMan directly
class_addmethod(classPtr, (t_method)&gemwin::resetMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::resetMessCallback),
gensym("reset"), A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::destroyMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::destroyMessCallback),
gensym("destroy"), A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::printMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::printMessCallback),
gensym("print"), A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::profileMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::profileMessCallback),
gensym("profile"), A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::lightingMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::lightingMessCallback),
gensym("lighting"), A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::stereoMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::stereoMessCallback),
gensym("stereo"), A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::stereoSepMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::stereoSepMessCallback),
gensym("stereoSep"), A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::stereoFocMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::stereoFocMessCallback),
gensym("stereoFoc"), A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::stereoSepMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::stereoSepMessCallback),
gensym("stereosep"), A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::stereoFocMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::stereoFocMessCallback),
gensym("stereofoc"), A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::stereoLineMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::stereoLineMessCallback),
gensym("stereoLine"), A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::stereoLineMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::stereoLineMessCallback),
gensym("stereoline"), A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::borderMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::borderMessCallback),
gensym("border"), A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::frameMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::frameMessCallback),
gensym("frame"), A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::fpsMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::fpsMessCallback),
gensym("fps"), A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::topmostMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::topmostMessCallback),
gensym("topmost"), A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&gemwin::fsaaMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&gemwin::fsaaMessCallback),
gensym("FSAA"), A_FLOAT, A_NULL);
}
void gemwin :: printMessCallback(void *)
......
......@@ -134,13 +134,13 @@ void colorSquare :: vertColorMess(int whichVert, float r, float g, float b)
/////////////////////////////////////////////////////////
void colorSquare :: obj_setupCallback(t_class *classPtr)
{
class_addmethod(classPtr, (t_method)&colorSquare::vert0MessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&colorSquare::vert0MessCallback),
gensym("vert0"), A_FLOAT, A_FLOAT, A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&colorSquare::vert1MessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&colorSquare::vert1MessCallback),
gensym("vert1"), A_FLOAT, A_FLOAT, A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&colorSquare::vert2MessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&colorSquare::vert2MessCallback),
gensym("vert2"), A_FLOAT, A_FLOAT, A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&colorSquare::vert3MessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&colorSquare::vert3MessCallback),
gensym("vert3"), A_FLOAT, A_FLOAT, A_FLOAT, A_NULL);
}
void colorSquare :: vert0MessCallback(void *data, t_floatarg r, t_floatarg g, t_floatarg b)
......
......@@ -166,9 +166,9 @@ void cuboid :: widthMess(float sizez)
/////////////////////////////////////////////////////////
void cuboid :: obj_setupCallback(t_class *classPtr)
{
class_addmethod(classPtr, (t_method)&cuboid::heightMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&cuboid::heightMessCallback),
gensym("ft2"), A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&cuboid::widthMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&cuboid::widthMessCallback),
gensym("ft3"), A_FLOAT, A_NULL);
}
......
......@@ -101,7 +101,7 @@ void curve :: resolutionMess(int resolution)
/////////////////////////////////////////////////////////
void curve :: obj_setupCallback(t_class *classPtr)
{
class_addmethod(classPtr, (t_method)&curve::resolutionMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&curve::resolutionMessCallback),
gensym("res"), A_FLOAT, A_NULL);
}
void curve :: resolutionMessCallback(void *data, t_floatarg res)
......
......@@ -546,11 +546,11 @@ void curve3d :: renderShape(GemState *state){
//
/////////////////////////////////////////////////////////
void curve3d :: obj_setupCallback(t_class *classPtr){
class_addmethod(classPtr, (t_method)&curve3d::resolutionMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&curve3d::resolutionMessCallback),
gensym("res"), A_FLOAT, A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&curve3d::gridMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&curve3d::gridMessCallback),
gensym("grid"), A_FLOAT, A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&curve3d::setMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&curve3d::setMessCallback),
gensym("set"), A_FLOAT, A_FLOAT, A_FLOAT, A_FLOAT, A_FLOAT, A_NULL);
}
......
......@@ -240,7 +240,7 @@ void disk :: render(GemState *state)
/////////////////////////////////////////////////////////
void disk :: obj_setupCallback(t_class *classPtr)
{
class_addmethod(classPtr, (t_method)&disk::innerRadiusCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&disk::innerRadiusCallback),
gensym("inner"), A_FLOAT, A_NULL);
}
void disk :: innerRadiusCallback(void *data, t_floatarg radius)
......
......@@ -170,11 +170,11 @@ void mesh_square :: renderShape(GemState *state)
/////////////////////////////////////////////////////////
void mesh_square :: obj_setupCallback(t_class *classPtr)
{
class_addmethod(classPtr, (t_method)&mesh_square::gridMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&mesh_square::gridMessCallback),
gensym("grid"), A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&mesh_square::gridXMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&mesh_square::gridXMessCallback),
gensym("gridX"), A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&mesh_square::gridYMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&mesh_square::gridYMessCallback),
gensym("gridY"), A_FLOAT, A_NULL);
}
......
......@@ -240,19 +240,19 @@ void model :: startRendering()
/////////////////////////////////////////////////////////
void model :: obj_setupCallback(t_class *classPtr)
{
class_addmethod(classPtr, (t_method)&model::openMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&model::openMessCallback),
gensym("open"), A_SYMBOL, A_NULL);
class_addmethod(classPtr, (t_method)&model::rescaleMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&model::rescaleMessCallback),
gensym("rescale"), A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&model::smoothMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&model::smoothMessCallback),
gensym("smooth"), A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&model::reverseMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&model::reverseMessCallback),
gensym("revert"), A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&model::materialMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&model::materialMessCallback),
gensym("material"), A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&model::textureMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&model::textureMessCallback),
gensym("texture"), A_FLOAT, A_NULL);
class_addmethod(classPtr, (t_method)&model::groupMessCallback,
class_addmethod(classPtr, reinterpret_cast<t_method>(&model::groupMessCallback),
gensym("group"), A_FLOAT, A_NULL);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment