Re: [Plib-users] PuSlider rendering problem
Brought to you by:
sjbaker
From: Paolo G. <p.g...@li...> - 2004-02-04 19:57:17
|
Steve Baker <sjb...@ai...> wrote: > Probably: Textures aren't being shared across rendering contexts and the Z-near clip plane is what's > cutting off the model. > I simply add this code. I really don't know how to solve the problem. Could you help me, Steve? Bye, Paolo static void keyboard ( unsigned char key, int, int ){ puKeyboard ( key, PU_DOWN ) ; . . switch(key){ . . case 's': if(first){ slider_window = glutCreateWindow ( "Slider Window" ) ; glutPositionWindow ( 20, 100 ) ; glutReshapeWindow ( 150, 200 ) ; glutDisplayFunc ( sliderdisplayfn ) ; glutMouseFunc ( mousefn ) ; glutMotionFunc ( motionfn ) ; //glutIdleFunc ( sliderdisplayfn ) ; puGroup *slider_group = new puGroup ( 0, 0 ) ; rspeedSlider = new puSlider (10,30,150,TRUE); rspeedSlider->setDelta(0.1f); rspeedSlider->setCBMode( PUSLIDER_DELTA ); rspeedSlider->setCallback(sliderCB); rspeedSlider->setLabel ( "Speed" ) ; rspeedSlider->setLabelPlace ( PUPLACE_BOTTOM_LEFT ) ; rspeedSlider->setValue ( 0.8f ) ; directSlider = new puSlider (80,30,150,TRUE); directSlider->setDelta(0.1f); directSlider->setCBMode( PUSLIDER_DELTA ); directSlider->setCallback(sliderCB); directSlider->setLabel ( "Direction" ) ; directSlider->setLabelPlace ( PUPLACE_BOTTOM_LEFT ) ; slider_group -> close () ; first = 0; } break; |