RE: [Plib-devel] KobayashiMaru & plib
Brought to you by:
sjbaker
From: Norman V. <nh...@ca...> - 2000-08-06 16:53:25
|
Alexander Rawass writes: >there is a new game in town that uses plib: > > Kobayashi Maru kobayashimaru.sourceforge.net Congratulations to Alexander, and also to Steve and all the others helping to keep PLib cross platform. Except for changing the set_callback code in one derived puObject to use a staticly defined function instead of a class member This code compiles and runs on my Win98 box with Cygwin V1.1.3 by only changing the CXXFLAGS, LDFLAGS and LDLIBS variables in the makefile !!! Norman FYI !!! makefile mods for Cygwin V1.1.3 INCDIRS= -I/usr/local/include LDFLAGS= -L/usr/local/lib GLLIBS= -lglut32 -lopengl32 -lglu32 CXXFLAGS= -Wall -DWIN32 !!! puScrollList.h mods // void slider_callback(puObject *pob); !!! puScrollList.cxx mods !! replace method with smae name with this static static void slider_callback(puObject *pob){ // printf("in slider callback\n"); puSlider *psl=(puSlider *) pob; //float val= pob->getValue(); } !!! change this line in constructor // slider->setCallback( (void (*)(puObject *)) (&puScrollList::slider_callback) ); slider->setCallback(slider_callback); |