plib-users Mailing List for PLIB (Page 25)
Brought to you by:
sjbaker
You can subscribe to this list here.
2000 |
Jan
|
Feb
(24) |
Mar
(54) |
Apr
(29) |
May
(58) |
Jun
(29) |
Jul
(675) |
Aug
(46) |
Sep
(40) |
Oct
(102) |
Nov
(39) |
Dec
(40) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(45) |
Feb
(23) |
Mar
(30) |
Apr
(64) |
May
(28) |
Jun
(61) |
Jul
(55) |
Aug
(35) |
Sep
(24) |
Oct
(23) |
Nov
(21) |
Dec
(67) |
2002 |
Jan
(98) |
Feb
(23) |
Mar
(13) |
Apr
(23) |
May
(43) |
Jun
(45) |
Jul
(54) |
Aug
(5) |
Sep
(56) |
Oct
(17) |
Nov
(53) |
Dec
(26) |
2003 |
Jan
(67) |
Feb
(36) |
Mar
(22) |
Apr
(35) |
May
(26) |
Jun
(35) |
Jul
(10) |
Aug
(49) |
Sep
(17) |
Oct
(3) |
Nov
(30) |
Dec
(10) |
2004 |
Jan
(12) |
Feb
(18) |
Mar
(52) |
Apr
(50) |
May
(22) |
Jun
(13) |
Jul
(16) |
Aug
(23) |
Sep
(21) |
Oct
(29) |
Nov
(6) |
Dec
(26) |
2005 |
Jan
(9) |
Feb
(19) |
Mar
(13) |
Apr
(19) |
May
(12) |
Jun
(8) |
Jul
(6) |
Aug
(10) |
Sep
(22) |
Oct
(3) |
Nov
(6) |
Dec
(17) |
2006 |
Jan
(10) |
Feb
(8) |
Mar
(5) |
Apr
(5) |
May
(6) |
Jun
(8) |
Jul
(8) |
Aug
(13) |
Sep
(2) |
Oct
(1) |
Nov
(9) |
Dec
(6) |
2007 |
Jan
(3) |
Feb
(4) |
Mar
(12) |
Apr
(2) |
May
(6) |
Jun
|
Jul
(22) |
Aug
|
Sep
(9) |
Oct
(13) |
Nov
|
Dec
|
2008 |
Jan
(1) |
Feb
(6) |
Mar
(2) |
Apr
(4) |
May
(15) |
Jun
(28) |
Jul
(8) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2009 |
Jan
(5) |
Feb
(5) |
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2010 |
Jan
|
Feb
|
Mar
(2) |
Apr
(7) |
May
(4) |
Jun
(2) |
Jul
(5) |
Aug
|
Sep
|
Oct
(3) |
Nov
|
Dec
|
2011 |
Jan
(7) |
Feb
(2) |
Mar
(1) |
Apr
|
May
(4) |
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
(1) |
Nov
(4) |
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(4) |
Nov
|
Dec
|
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2024 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Simon <sim...@ho...> - 2004-04-21 14:06:28
|
Hi, well Adam summed it all up for me quite well. Thank you it=92s = really appreciated. Now back to the drawing board to rework everything :=AC) =20 =20 |
From: Adam C. <ajc...@ho...> - 2004-04-21 12:19:50
|
(Feel free to correctme here guys.. ) My understanding is that with game design, the graphics engine (which utilized the scene graph) and the physiscs engines are kept separate. An object in question (say a car or a block in your example) has access to both a physics model that represents it's behavior, as well as a pointer to it's relevant information in the scene graph. That way, everytime you update an object, it gathers information from it's current state and the physics model, and then uses that information to manupulate it's characteristics within the scene graph. -Adam >From: "Simon" <sim...@ho...> >Reply-To: pli...@li... >To: <pli...@li...> >Subject: [Plib-users] ssg pyysics >Date: Wed, 21 Apr 2004 12:06:16 +0100 > >Hi, thanks Wolfram its great to get a reply although I don't think I >explained myself very well. The aim I'm trying to reach is to have a stack >of blocks on top of each other. I then want to knock them down. I found >this great physics example to do with dice falling down some stairs. I >can >get it to work with a non plib scene but I was trying to link it to an ssg >tree. What I really want to know is how everyone goes about that. > > > >In the non plib demo each object maintains a set of physics related >properties. There is also a physics class that each inherits from. >Basically the physics engine runs constantly and checks then updates each >object in relation to each other object. I think in just writing this I am >beginning to work the answer out myself. Isnt it funny how sometimes just >writing or saying something out loud can make things so much clearer. > > > >So now I guess the question is should the physics engine class be added to >the tree or left to run outside of it? It's a little difficult for me to >recall everything as the project has been on hold until this bit gets >worked >out. For anyone interested; the demo that I'm basing this on for now is >from Chris Haag. I got it off his site originally but that seems to be >down >at the moment. Theres a copy of it on the NeHe site: > > > >http://nehe.gamedev.net/data/downloads/download.asp?letter=S > > > >It's called Stairs by Chris Haag. > > > >Thanks for the patience, if I get it to work then I could submit it as an >ssg example. I'm using the 3D Studio loader for the dice and the stairs so >the example would incorporate that as well. > > > >-Simon > _________________________________________________________________ Is your PC infected? Get a FREE online computer virus scan from McAfee® Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 |
From: Simon <sim...@ho...> - 2004-04-21 11:01:14
|
Hi, thanks Wolfram its great to get a reply although I don't think I explained myself very well. The aim I'm trying to reach is to have a = stack of blocks on top of each other. I then want to knock them down. I = found this great physics example to do with dice falling down some stairs. I = can get it to work with a non plib scene but I was trying to link it to an = ssg tree. What I really want to know is how everyone goes about that. =20 =20 In the non plib demo each object maintains a set of physics related properties. There is also a physics class that each inherits from. Basically the physics engine runs constantly and checks then updates = each object in relation to each other object. I think in just writing this I = am beginning to work the answer out myself. Isnt it funny how sometimes = just writing or saying something out loud can make things so much clearer. =20 So now I guess the question is should the physics engine class be added = to the tree or left to run outside of it? It's a little difficult for me = to recall everything as the project has been on hold until this bit gets = worked out. For anyone interested; the demo that I'm basing this on for now is from Chris Haag. I got it off his site originally but that seems to be = down at the moment. Theres a copy of it on the NeHe site: =20 http://nehe.gamedev.net/data/downloads/download.asp?letter=3DS =20 It's called Stairs by Chris Haag. =20 Thanks for the patience, if I get it to work then I could submit it as = an ssg example. I'm using the 3D Studio loader for the dice and the stairs = so the example would incorporate that as well. =20 -Simon |
From: Wolfram K. <w_...@rz...> - 2004-04-21 08:43:02
|
Normally, you do something like this per iteration of the physics engine: calc forces=20 convert to accelaration speed =3D speed + accelaration * deltatime position =3D position + speed * deltatime In your case, accelaration is constant Bye bye, Wolfram. |
From: Wolfram K. <w_...@rz...> - 2004-04-21 08:41:09
|
>IIRC there's a limit of 65536 (unsigned short) vertices per ssg leaf, so Actualy, with plib-out-of-cvs, it is 32767 (signed short). Sharon, how many vertices do you have? >Greetings - > >Paolo Bye bye, Wolfram |
From: Brian S. <sch...@ho...> - 2004-04-20 20:55:32
|
How do I go about setting a callback function for the cancel button, I set the callback for the entire puFileSelector, which works for the ok button, but I need to do something with that cancel button, thanks _________________________________________________________________ Lose those love handles! MSN Fitness shows you two moves to slim your waist. http://fitness.msn.com/articles/feeds/article.aspx?dept=exercise&article=et_pv_030104_lovehandles |
From: Simon <sim...@ho...> - 2004-04-20 15:39:53
|
Hi, a while ago I posted about trying to hook up a physics engine to = ssg. I don't recall getting any replies. I was wondering if someone could give = me an over view of how they go about adding things like gravity to each = object. I have the feeling that I'm missing something really basic. =20 Thank you -Simon |
From: Paolo L. <p.l...@ci...> - 2004-04-20 09:03:26
|
Sharon, IIRC there's a limit of 65536 (unsigned short) vertices per ssg leaf, so the error seems due to an overflow into the ssgVtxArray structure (confirmed by the diagnostic "as file became more complex"). Greetings - Paolo -----Messaggio originale----- Da: pli...@li... [mailto:pli...@li...] Per conto di Sharon Inviato: marted=EC 20 aprile 2004 8.41 A: pli...@li... Oggetto: [Plib-users] 3ds file load error Hi, Steve, I created the whole landscape(for a driving environment) in 3d max and exported it to a .3ds file, then I use ssgLoad3ds to load this file. The whole landscape is a NURBS surface. It's working fine until tonight after I added some vertexes to create a hill. I got this error:=20 unhandled error in 0xC0000005: Access Violation. I set the breakpoint and debugged the program. When I use plib 1.6, the error is in "*v3 =3D *( indices -> get ( vv3 ) ) ;" of this method in ssgVexArray.cxx: void ssgVtxArray::getTriangle ( int n, short *v1, short *v2, short *v3 ) { short vv1, vv2, vv3 ; ssgVtxTable::getTriangle ( n, &vv1, &vv2, &vv3 ) ; *v1 =3D *( indices -> get ( vv1 ) ) ; *v2 =3D *( indices -> get ( vv2 ) ) ; *v3 =3D *( indices -> get ( vv3 ) ) ; } After I upgraded plib to 1.8.3, I got the exception in " tlist [ tnum*3+ 1 ] =3D v2 ;" of this method in ssgOptimiser.cxx: short OptVertexList::add ( short v1, short v2, short v3 ) { if ( v1 =3D=3D v2 || v2 =3D=3D v3 || v3 =3D=3D v1 ) /* Toss degenerate = triangles */ { vlist [ v1 ] -> dent () ; /* Un-reference their vertices */ vlist [ v2 ] -> dent () ; vlist [ v3 ] -> dent () ; return -1 ; } =20 tlist [ tnum*3+ 0 ] =3D v1 ; tlist [ tnum*3+ 1 ] =3D v2 ; tlist [ tnum*3+ 2 ] =3D v3 ; =20 return tnum++ ; } The above error only happened when my 3ds file became more complex. I double if your 3ds parser could parse the very complex NURBS surfaces. I rendered my landscape in 3d max and the render result is correct. Looking forward to your help. Thanks. Sharon Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25=A2 |
From: Sharon <sha...@ya...> - 2004-04-20 07:41:18
|
Hi, Steve, I created the whole landscape(for a driving environment) in 3d max and exported it to a .3ds file, then I use ssgLoad3ds to load this file. The whole landscape is a NURBS surface. It's working fine until tonight after I added some vertexes to create a hill. I got this error: unhandled error in 0xC0000005: Access Violation. I set the breakpoint and debugged the program. When I use plib 1.6, the error is in "*v3 = *( indices -> get ( vv3 ) ) ;" of this method in ssgVexArray.cxx: void ssgVtxArray::getTriangle ( int n, short *v1, short *v2, short *v3 ) { short vv1, vv2, vv3 ; ssgVtxTable::getTriangle ( n, &vv1, &vv2, &vv3 ) ; *v1 = *( indices -> get ( vv1 ) ) ; *v2 = *( indices -> get ( vv2 ) ) ; *v3 = *( indices -> get ( vv3 ) ) ; } After I upgraded plib to 1.8.3, I got the exception in " tlist [ tnum*3+ 1 ] = v2 ;" of this method in ssgOptimiser.cxx: short OptVertexList::add ( short v1, short v2, short v3 ) { if ( v1 == v2 || v2 == v3 || v3 == v1 ) /* Toss degenerate triangles */ { vlist [ v1 ] -> dent () ; /* Un-reference their vertices */ vlist [ v2 ] -> dent () ; vlist [ v3 ] -> dent () ; return -1 ; } tlist [ tnum*3+ 0 ] = v1 ; tlist [ tnum*3+ 1 ] = v2 ; tlist [ tnum*3+ 2 ] = v3 ; return tnum++ ; } The above error only happened when my 3ds file became more complex. I double if your 3ds parser could parse the very complex NURBS surfaces. I rendered my landscape in 3d max and the render result is correct. Looking forward to your help. Thanks. Sharon --------------------------------- Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25¢ |
From: Sharon <sha...@ya...> - 2004-04-15 00:17:44
|
Hi, I wonder if there is any kind of class or variable which I can use to attach a ssgTransform to the camera. Then when I move my camera, the ssgTransform is also moving correctly. For example, I have a car which is a ssgTransform. sgSetCoord ( & carpos, x, y, z, h, p ,r ) ; sgSetCoord ( & campos, xc,yc ,zc, hc, pc, rc). Here I have different y, z for the car's initial position and camera position. I want to make the camera always follow the car. I already did calculation for xy plane. The result turns out very good. Now I want my car to move in the slope. The path's projection can be in yz, or xz plane. As there is y,z difference between car and camera, calculation becomes very complex and boring......:( I tried ssgCutout, it doesn't work for this. Can I get any kind of plib class or variable to do the above work? thanks. Sharon --------------------------------- Do you Yahoo!? Yahoo! Tax Center - File online by April 15th |
From: Brian S. <sch...@ho...> - 2004-04-08 01:33:05
|
>Brian Smith wrote: >>Bruce: >> Your right!! i didn't even realize that, how then would I create this >>object as a global variable, in my header file I just have puOneShot >>*backButton; to make it global, then when it gets to createTeamButtons() >>it does create a new one (why the address was different between the >>backButton created and the backButton called to hide). However if I put >>this line in the header file >>puOneShot *backButton = new puOneShot (20.0, 20.0, 170.0, 50.0); >> >>I get a fatal error before anything starts up saying >> >>FATAL: puiGetWindow: callbacks are not initialized >> >>I'm guessing this is so because at the time of the .h file I have not >>initialized pui yet. So how would I create a global object?? > >At the top of your program: > >puOneShot *backButton = NULL ; > >...then somewhere *AFTER* puInit() but *BEFORE* you go into your main >processing loop: > > backButton = new puOneShot ( ...whatever... ) ; > >If you are feeling cautious, then in your callback, you can put: > > assert ( backButton != NULL ) ; thanks bruce and steve everything is working good, I appreciate it _________________________________________________________________ MSN Toolbar provides one-click access to Hotmail from any Web page FREE download! http://toolbar.msn.com/go/onm00200413ave/direct/01/ |
From: Steve B. <sjb...@ai...> - 2004-04-08 00:36:05
|
Brian Smith wrote: > Bruce: > Your right!! i didn't even realize that, how then would I create this > object as a global variable, in my header file I just have puOneShot > *backButton; to make it global, then when it gets to > createTeamButtons() it does create a new one (why the address was > different between the backButton created and the backButton called to > hide). However if I put this line in the header file > puOneShot *backButton = new puOneShot (20.0, 20.0, 170.0, 50.0); > > I get a fatal error before anything starts up saying > > FATAL: puiGetWindow: callbacks are not initialized > > I'm guessing this is so because at the time of the .h file I have not > initialized pui yet. So how would I create a global object?? At the top of your program: puOneShot *backButton = NULL ; ...then somewhere *AFTER* puInit() but *BEFORE* you go into your main processing loop: backButton = new puOneShot ( ...whatever... ) ; If you are feeling cautious, then in your callback, you can put: assert ( backButton != NULL ) ; ---------------------------- Steve Baker ------------------------- HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://www.sjbaker.org Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net -----BEGIN GEEK CODE BLOCK----- GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ -----END GEEK CODE BLOCK----- |
From: Brian S. <sch...@ho...> - 2004-04-07 22:43:30
|
Bruce: Your right!! i didn't even realize that, how then would I create this object as a global variable, in my header file I just have puOneShot *backButton; to make it global, then when it gets to createTeamButtons() it does create a new one (why the address was different between the backButton created and the backButton called to hide). However if I put this line in the header file puOneShot *backButton = new puOneShot (20.0, 20.0, 170.0, 50.0); I get a fatal error before anything starts up saying FATAL: puiGetWindow: callbacks are not initialized I'm guessing this is so because at the time of the .h file I have not initialized pui yet. So how would I create a global object?? -Brian >Brian: > I had to go back to my deleted mail to check this. In one of your >later mails you said that backButton is global but you are redefining it >in: > >void createTeamButtons() { > puOneShot *backButton = new puOneShot (20.0, 20.0, 170.0, 50.0); >... > > >You may want to double check that > >Bruce > >-----Original Message----- >From: pli...@li... >[mailto:pli...@li...] On Behalf Of Brian Smith >Sent: Tuesday, April 06, 2004 10:20 PM >To: pli...@li... >Subject: Re: [Plib-users] pui help > > > > > >Brian Smith wrote: > >>Running VC++6.0 with windows XP, plib 1.8.2, I was wondering if anyone > >>could help me out, I need to hide puObjects but whenever I use >.hide() > >>the program crashes and I get an unhandled exception: access >violation. > >>Any suggestions?? thanks in advance. > > > >Well, I've used hide() quite a bit with no problems - we're going to > >need a LOT more information if this is truly a PLIB bug. > > > >It crashes inside hide() ? > > > >If so, it *MUST* be that the puObject you are calling it on is an > >invalid pointer...all hide() does is access an internal member and call > > >puPostRefresh - and all THAT does is set a global. > > > >However, if calling hide() causes it to die sometime later then we > >could be looking at something complicated. > > > >Could you get us a stack back-trace from the crash? Or maybe > >show us some source code? > > > >I'll try and explain what the program is doind and show ya the relevant >source. I have two display functions, the first one has no pui objects >at >all but when i switch to the second display function there are some >buttons >on it, one of the buttons I have is a back button which returns to the >first >display function. > >so when the second display function is eventually called I call the >function >createTeamButtons() which is this: > >void createTeamButtons() { > puOneShot *backButton = new puOneShot (20.0, 20.0, 170.0, 50.0); > backButton->setLegend("Back"); > backButton->setCallback(backButtonCallback); >} > >the callback function for this button (backButtonCallback) is this: > >void backButtonCallback(puObject *) { > glutKeyboardFunc(NULL); > glutSpecialFunc(NULL); > glutIdleFunc(Main_Display); > glutDisplayFunc(Main_Display); > glutPassiveMotionFunc(Main_MouseMove); > glutMouseFunc(Main_MouseChoose); > hideTeamButtons(); >} > >and hide TeamButtons() is this: > >void hideTeamButtons() { > backButton->hide(); >} > >so in the program when I click the back button the program crashes and >an >error dialog pops up saying: > >Unhandled exception in program.exe: 0xC0000005: Access Violation. > >I say it crashes on hide because: 1)when I debug it is calling the hide > >function in pu.h while crash > 2)if hide() isn't in >hideTeamButtons() (I was gonna try just > deleting everything >everytime the program returns to the first > display function but >figured hide would be much easier) > >there are more buttons for the second display function but this is the >most >relevent one, if I try hide one or hide them all doesn't matter so only >put >the one in. Thats all i got for ya, if theres anything else ya want let >me >know. > >-Brian _________________________________________________________________ Persistent heartburn? Check out Digestive Health & Wellness for information and advice. http://gerd.msn.com/default.asp |
From: Clay, B. <bc...@ba...> - 2004-04-07 19:01:57
|
Brian: I had to go back to my deleted mail to check this. In one of your later mails you said that backButton is global but you are redefining it in: void createTeamButtons() { puOneShot *backButton =3D new puOneShot (20.0, 20.0, 170.0, 50.0); ... You may want to double check that Bruce -----Original Message----- From: pli...@li... [mailto:pli...@li...] On Behalf Of Brian Smith Sent: Tuesday, April 06, 2004 10:20 PM To: pli...@li... Subject: Re: [Plib-users] pui help >Brian Smith wrote: >>Running VC++6.0 with windows XP, plib 1.8.2, I was wondering if anyone >>could help me out, I need to hide puObjects but whenever I use .hide()=20 >>the program crashes and I get an unhandled exception: access violation. =20 >>Any suggestions?? thanks in advance. > >Well, I've used hide() quite a bit with no problems - we're going to=20 >need a LOT more information if this is truly a PLIB bug. > >It crashes inside hide() ? > >If so, it *MUST* be that the puObject you are calling it on is an=20 >invalid pointer...all hide() does is access an internal member and call >puPostRefresh - and all THAT does is set a global. > >However, if calling hide() causes it to die sometime later then we=20 >could be looking at something complicated. > >Could you get us a stack back-trace from the crash? Or maybe >show us some source code? > I'll try and explain what the program is doind and show ya the relevant=20 source. I have two display functions, the first one has no pui objects at=20 all but when i switch to the second display function there are some buttons=20 on it, one of the buttons I have is a back button which returns to the first=20 display function. so when the second display function is eventually called I call the function=20 createTeamButtons() which is this: void createTeamButtons() { puOneShot *backButton =3D new puOneShot (20.0, 20.0, 170.0, 50.0); backButton->setLegend("Back"); backButton->setCallback(backButtonCallback); } the callback function for this button (backButtonCallback) is this: void backButtonCallback(puObject *) { glutKeyboardFunc(NULL); glutSpecialFunc(NULL); glutIdleFunc(Main_Display); glutDisplayFunc(Main_Display); glutPassiveMotionFunc(Main_MouseMove); glutMouseFunc(Main_MouseChoose); hideTeamButtons(); } and hide TeamButtons() is this: void hideTeamButtons() { backButton->hide(); } so in the program when I click the back button the program crashes and an=20 error dialog pops up saying: Unhandled exception in program.exe: 0xC0000005: Access Violation. I say it crashes on hide because: 1)when I debug it is calling the hide function in pu.h while crash 2)if hide() isn't in=20 hideTeamButtons() (I was gonna try just deleting everything=20 everytime the program returns to the first display function but=20 figured hide would be much easier) there are more buttons for the second display function but this is the most=20 relevent one, if I try hide one or hide them all doesn't matter so only put=20 the one in. Thats all i got for ya, if theres anything else ya want let me=20 know. -Brian _________________________________________________________________ MSN Toolbar provides one-click access to Hotmail from any Web page - FREE=20 download! http://toolbar.msn.com/go/onm00200413ave/direct/01/ ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&op=3Dcli= ck _______________________________________________ plib-users mailing list pli...@li... https://lists.sourceforge.net/lists/listinfo/plib-users |
From: Brian S. <sch...@ho...> - 2004-04-07 17:50:10
|
>>Hmmm - what's unusual about this is switching all of those GLUT function >>callbacks within a PUI callback which presumably is in turn inside one of >>those very GLUT callbacks that you're changing. >> >>I've never tried to do that kind of thing. I'd usually have just one GLUT >>callback for each of those events - and use an 'if' statement at the start >>of the callback to make it do nothing in 'back-button' mode. That >>somehow >>seems 'kinder' than switching the callbacks around all the time. >> >>So I wonder if this is some kind of a GLUT screwup. >> >>Have you tried building this application against 'freeglut' (and if you >>have - have you tried building it against the classic 'GLUT')? There are >>several freeglut developers on this list - so it's not like I'm just >>trying >>to punt the problem over to someone else! >> >>I'm thinking that if somehow the return stack was being corrupted - then >>backButton->hide() would be the first thing to attempt to do a 'return', >>so it would be the thing that would show up in the crash report even >>though >>it is not the code with the bug in it. >> >>It's a long shot - but that's the only odd thing I can see from the >>information you've given us. >> >>The actual hide function itself is *FAR* too simple to cause this problem >>unless either the stack or the 'backButton' pointer is corrupted. >> >>You could discount the latter possibility by doing: >> >> fprintf ( stderr, "backButton=%p\n", backButton ) ; >> >>...and sticking that in the line just below the 'new OneShot' - and again >>just before the call to 'hide()'. If the address changes then that's >>what screwed up. If it doesn't change then it's something else. >> >>However, this is very likely to be some kind of general memory screwup - >>which means that the odds are high that this will eventually turn out to >>be an application bug. >> >>>Unhandled exception in program.exe: 0xC0000005: Access Violation. >> >>I don't know Windows/MSVC - but if that '0xC0000005' is a memory address >>then it's a suspiciously round number...such as you might get in the >>scenario I'm suggesting above where the return address has been screwed >>up. >> >>It's very hard to diagnose these things at long range. > >Steve, > I stuck in those printfs and the address did change, I'm looking through >my program again and can't seem to find why it is doing this. Is it >because I am changing the GLUT callbacks inside a pui callback? The reason >I have different callback function is mainly for organizational purposes, I >dont like functions that are thousands of lines long it looks messy. As >for Bruce's comment the button is a global variable declared in a .h file >so that is not the problem (with VC++6 it wouldn't compile otherwise). > Another thing I just remembered is to get to the second display function I (simplified) click on the screen. So I am changing all the glutCallbacks inside my glutMousefunc callback, I'm not sure if that is what you meant by chaging the callbacks inside the pui callback which is inside a callback. I actually change glutcallbacks within a glutcallback a lot throughout the program but no problems there _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar get it now! http://toolbar.msn.com/go/onm00200415ave/direct/01/ |
From: Brian S. <sch...@ho...> - 2004-04-07 16:19:36
|
>Hmmm - what's unusual about this is switching all of those GLUT function >callbacks within a PUI callback which presumably is in turn inside one of >those very GLUT callbacks that you're changing. > >I've never tried to do that kind of thing. I'd usually have just one GLUT >callback for each of those events - and use an 'if' statement at the start >of the callback to make it do nothing in 'back-button' mode. That somehow >seems 'kinder' than switching the callbacks around all the time. > >So I wonder if this is some kind of a GLUT screwup. > >Have you tried building this application against 'freeglut' (and if you >have - have you tried building it against the classic 'GLUT')? There are >several freeglut developers on this list - so it's not like I'm just trying >to punt the problem over to someone else! > >I'm thinking that if somehow the return stack was being corrupted - then >backButton->hide() would be the first thing to attempt to do a 'return', >so it would be the thing that would show up in the crash report even though >it is not the code with the bug in it. > >It's a long shot - but that's the only odd thing I can see from the >information you've given us. > >The actual hide function itself is *FAR* too simple to cause this problem >unless either the stack or the 'backButton' pointer is corrupted. > >You could discount the latter possibility by doing: > > fprintf ( stderr, "backButton=%p\n", backButton ) ; > >...and sticking that in the line just below the 'new OneShot' - and again >just before the call to 'hide()'. If the address changes then that's >what screwed up. If it doesn't change then it's something else. > >However, this is very likely to be some kind of general memory screwup - >which means that the odds are high that this will eventually turn out to >be an application bug. > >>Unhandled exception in program.exe: 0xC0000005: Access Violation. > >I don't know Windows/MSVC - but if that '0xC0000005' is a memory address >then it's a suspiciously round number...such as you might get in the >scenario I'm suggesting above where the return address has been screwed up. > >It's very hard to diagnose these things at long range. Steve, I stuck in those printfs and the address did change, I'm looking through my program again and can't seem to find why it is doing this. Is it because I am changing the GLUT callbacks inside a pui callback? The reason I have different callback function is mainly for organizational purposes, I dont like functions that are thousands of lines long it looks messy. As for Bruce's comment the button is a global variable declared in a .h file so that is not the problem (with VC++6 it wouldn't compile otherwise). _________________________________________________________________ Persistent heartburn? Check out Digestive Health & Wellness for information and advice. http://gerd.msn.com/default.asp |
From: Clay, B. <bc...@ba...> - 2004-04-07 12:21:44
|
Brian: Is this in a C or CPP file? If Cpp I am not quite sure how it compiled because backbutton is a local variable to "createteambuttons". "backbutton" would not be defined in the "teambuttons" function. I have seen Dev Studio pass some real dumb errors on my part and not say a word of warning though. That is still suspect code though since backbutton is not a global variable. Thy making it global and see what happens. Bruce -----Original Message----- From: pli...@li... [mailto:pli...@li...] On Behalf Of Brian Smith Sent: Tuesday, April 06, 2004 10:20 PM To: pli...@li... Subject: Re: [Plib-users] pui help >Brian Smith wrote: >>Running VC++6.0 with windows XP, plib 1.8.2, I was wondering if anyone >>could help me out, I need to hide puObjects but whenever I use .hide()=20 >>the program crashes and I get an unhandled exception: access violation. =20 >>Any suggestions?? thanks in advance. > >Well, I've used hide() quite a bit with no problems - we're going to=20 >need a LOT more information if this is truly a PLIB bug. > >It crashes inside hide() ? > >If so, it *MUST* be that the puObject you are calling it on is an=20 >invalid pointer...all hide() does is access an internal member and call >puPostRefresh - and all THAT does is set a global. > >However, if calling hide() causes it to die sometime later then we=20 >could be looking at something complicated. > >Could you get us a stack back-trace from the crash? Or maybe >show us some source code? > I'll try and explain what the program is doind and show ya the relevant=20 source. I have two display functions, the first one has no pui objects at=20 all but when i switch to the second display function there are some buttons=20 on it, one of the buttons I have is a back button which returns to the first=20 display function. so when the second display function is eventually called I call the function=20 createTeamButtons() which is this: void createTeamButtons() { puOneShot *backButton =3D new puOneShot (20.0, 20.0, 170.0, 50.0); backButton->setLegend("Back"); backButton->setCallback(backButtonCallback); } the callback function for this button (backButtonCallback) is this: void backButtonCallback(puObject *) { glutKeyboardFunc(NULL); glutSpecialFunc(NULL); glutIdleFunc(Main_Display); glutDisplayFunc(Main_Display); glutPassiveMotionFunc(Main_MouseMove); glutMouseFunc(Main_MouseChoose); hideTeamButtons(); } and hide TeamButtons() is this: void hideTeamButtons() { backButton->hide(); } so in the program when I click the back button the program crashes and an=20 error dialog pops up saying: Unhandled exception in program.exe: 0xC0000005: Access Violation. I say it crashes on hide because: 1)when I debug it is calling the hide function in pu.h while crash 2)if hide() isn't in=20 hideTeamButtons() (I was gonna try just deleting everything=20 everytime the program returns to the first display function but=20 figured hide would be much easier) there are more buttons for the second display function but this is the most=20 relevent one, if I try hide one or hide them all doesn't matter so only put=20 the one in. Thats all i got for ya, if theres anything else ya want let me=20 know. -Brian _________________________________________________________________ MSN Toolbar provides one-click access to Hotmail from any Web page - FREE=20 download! http://toolbar.msn.com/go/onm00200413ave/direct/01/ ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&op=3Dcli= ck _______________________________________________ plib-users mailing list pli...@li... https://lists.sourceforge.net/lists/listinfo/plib-users |
From: Steve B. <sjb...@ai...> - 2004-04-07 05:35:29
|
Brian Smith wrote: > the callback function for this button (backButtonCallback) is this: > > void backButtonCallback(puObject *) { > glutKeyboardFunc(NULL); > glutSpecialFunc(NULL); > glutIdleFunc(Main_Display); > glutDisplayFunc(Main_Display); > glutPassiveMotionFunc(Main_MouseMove); > glutMouseFunc(Main_MouseChoose); > hideTeamButtons(); > } > > and hide TeamButtons() is this: > > void hideTeamButtons() { > backButton->hide(); > } Hmmm - what's unusual about this is switching all of those GLUT function callbacks within a PUI callback which presumably is in turn inside one of those very GLUT callbacks that you're changing. I've never tried to do that kind of thing. I'd usually have just one GLUT callback for each of those events - and use an 'if' statement at the start of the callback to make it do nothing in 'back-button' mode. That somehow seems 'kinder' than switching the callbacks around all the time. So I wonder if this is some kind of a GLUT screwup. Have you tried building this application against 'freeglut' (and if you have - have you tried building it against the classic 'GLUT')? There are several freeglut developers on this list - so it's not like I'm just trying to punt the problem over to someone else! I'm thinking that if somehow the return stack was being corrupted - then backButton->hide() would be the first thing to attempt to do a 'return', so it would be the thing that would show up in the crash report even though it is not the code with the bug in it. It's a long shot - but that's the only odd thing I can see from the information you've given us. The actual hide function itself is *FAR* too simple to cause this problem unless either the stack or the 'backButton' pointer is corrupted. You could discount the latter possibility by doing: fprintf ( stderr, "backButton=%p\n", backButton ) ; ...and sticking that in the line just below the 'new OneShot' - and again just before the call to 'hide()'. If the address changes then that's what screwed up. If it doesn't change then it's something else. However, this is very likely to be some kind of general memory screwup - which means that the odds are high that this will eventually turn out to be an application bug. > Unhandled exception in program.exe: 0xC0000005: Access Violation. I don't know Windows/MSVC - but if that '0xC0000005' is a memory address then it's a suspiciously round number...such as you might get in the scenario I'm suggesting above where the return address has been screwed up. It's very hard to diagnose these things at long range. ---------------------------- Steve Baker ------------------------- HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://www.sjbaker.org Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net -----BEGIN GEEK CODE BLOCK----- GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ -----END GEEK CODE BLOCK----- |
From: Brian S. <sch...@ho...> - 2004-04-07 02:20:12
|
>Brian Smith wrote: >>Running VC++6.0 with windows XP, plib 1.8.2, I was wondering if anyone >>could help me out, I need to hide puObjects but whenever I use .hide() >>the program crashes and I get an unhandled exception: access violation. >>Any suggestions?? thanks in advance. > >Well, I've used hide() quite a bit with no problems - we're going to need >a LOT more information if this is truly a PLIB bug. > >It crashes inside hide() ? > >If so, it *MUST* be that the puObject you are calling it on is an >invalid pointer...all hide() does is access an internal member and call >puPostRefresh - and all THAT does is set a global. > >However, if calling hide() causes it to die sometime later then >we could be looking at something complicated. > >Could you get us a stack back-trace from the crash? Or maybe >show us some source code? > I'll try and explain what the program is doind and show ya the relevant source. I have two display functions, the first one has no pui objects at all but when i switch to the second display function there are some buttons on it, one of the buttons I have is a back button which returns to the first display function. so when the second display function is eventually called I call the function createTeamButtons() which is this: void createTeamButtons() { puOneShot *backButton = new puOneShot (20.0, 20.0, 170.0, 50.0); backButton->setLegend("Back"); backButton->setCallback(backButtonCallback); } the callback function for this button (backButtonCallback) is this: void backButtonCallback(puObject *) { glutKeyboardFunc(NULL); glutSpecialFunc(NULL); glutIdleFunc(Main_Display); glutDisplayFunc(Main_Display); glutPassiveMotionFunc(Main_MouseMove); glutMouseFunc(Main_MouseChoose); hideTeamButtons(); } and hide TeamButtons() is this: void hideTeamButtons() { backButton->hide(); } so in the program when I click the back button the program crashes and an error dialog pops up saying: Unhandled exception in program.exe: 0xC0000005: Access Violation. I say it crashes on hide because: 1)when I debug it is calling the hide function in pu.h while crash 2)if hide() isn't in hideTeamButtons() (I was gonna try just deleting everything everytime the program returns to the first display function but figured hide would be much easier) there are more buttons for the second display function but this is the most relevent one, if I try hide one or hide them all doesn't matter so only put the one in. Thats all i got for ya, if theres anything else ya want let me know. -Brian _________________________________________________________________ MSN Toolbar provides one-click access to Hotmail from any Web page FREE download! http://toolbar.msn.com/go/onm00200413ave/direct/01/ |
From: Steve B. <sjb...@ai...> - 2004-04-07 01:26:49
|
Brian Smith wrote: > Running VC++6.0 with windows XP, plib 1.8.2, I was wondering if anyone > could help me out, I need to hide puObjects but whenever I use .hide() > the program crashes and I get an unhandled exception: access > violation. Any suggestions?? thanks in advance. Well, I've used hide() quite a bit with no problems - we're going to need a LOT more information if this is truly a PLIB bug. It crashes inside hide() ? If so, it *MUST* be that the puObject you are calling it on is an invalid pointer...all hide() does is access an internal member and call puPostRefresh - and all THAT does is set a global. However, if calling hide() causes it to die sometime later then we could be looking at something complicated. Could you get us a stack back-trace from the crash? Or maybe show us some source code? ---------------------------- Steve Baker ------------------------- HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://www.sjbaker.org Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net -----BEGIN GEEK CODE BLOCK----- GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ -----END GEEK CODE BLOCK----- |
From: Brian S. <sch...@ho...> - 2004-04-07 00:58:31
|
Running VC++6.0 with windows XP, plib 1.8.2, I was wondering if anyone could help me out, I need to hide puObjects but whenever I use .hide() the program crashes and I get an unhandled exception: access violation. Any suggestions?? thanks in advance. -Brian _________________________________________________________________ Persistent heartburn? Check out Digestive Health & Wellness for information and advice. http://gerd.msn.com/default.asp |
From: Brian S. <sch...@ho...> - 2004-04-06 20:21:18
|
Well i rechecked my build settings and rebuilt all the libraries, still the same problem, ignoring libcd.lib worked. Thanks, just hope I don't have to use it! -Brian >Brian: > It looks like the sg lib is built using debug code generation while >the rest is built with multi-threaded debug code generation. Double >check the build settings for your libraries and projects. If they are >all ok then you could try putting libcd.lib on the ignore library list >in VC6 link tab > >Bruce > > >-----Original Message----- >From: pli...@li... >[mailto:pli...@li...] On Behalf Of Brian Smith >Sent: Tuesday, April 06, 2004 12:29 AM >To: pli...@li... >Subject: [Plib-users] including sg.h problems > > >I'm using VC++ 6.0 on windows XP, I built all the libraries for plib >1.8.2 >and am linking to them in my project, as well as all .h files are in the > >right place. My problem is when I include sg.h i get these link errors: > >Linking... >LIBCMT.lib(dosmap.obj) : error LNK2005: __dosmaperr already defined in >LIBCD.lib(dosmap.obj) >LIBCMT.lib(osfinfo.obj) : error LNK2005: __alloc_osfhnd already defined >in >LIBCD.lib(osfinfo.obj) >LIBCMT.lib(osfinfo.obj) : error LNK2005: __set_osfhnd already defined in > >LIBCD.lib(osfinfo.obj) >LIBCMT.lib(osfinfo.obj) : error LNK2005: __free_osfhnd already defined >in >LIBCD.lib(osfinfo.obj) >LIBCMT.lib(osfinfo.obj) : error LNK2005: __get_osfhandle already defined >in >LIBCD.lib(osfinfo.obj) >LIBCMT.lib(osfinfo.obj) : error LNK2005: __open_osfhandle already >defined in >LIBCD.lib(osfinfo.obj) >LIBCMT.lib(lseek.obj) : error LNK2005: __lseek already defined in >LIBCD.lib(lseek.obj) >LIBCMT.lib(write.obj) : error LNK2005: __write already defined in >LIBCD.lib(write.obj) >LIBCMT.lib(tolower.obj) : error LNK2005: __tolower already defined in >LIBCD.lib(tolower.obj) >LIBCMT.lib(tolower.obj) : error LNK2005: _tolower already defined in >LIBCD.lib(tolower.obj) >LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of other >libs; use /NODEFAULTLIB:library >Debug/Baseball.exe : fatal error LNK1169: one or more multiply defined >symbols found > > >This happens when I #include <plib/sg.h> (#inclde<plib/ul.h> compiles >and >links with no problems), Files that don't rely on sg.h work, sg.h seems >to >be the source. Anyone can help thanks in advance > >_________________________________________________________________ >Free up your inbox with MSN Hotmail Extra Storage! Multiple plans >available. >http://join.msn.com/?pgmarket=en-us&page=hotmail/es2&ST=1/go/onm00200362 >ave/direct/01/ > > > >------------------------------------------------------- >This SF.Net email is sponsored by: IBM Linux Tutorials >Free Linux tutorial presented by Daniel Robbins, President and CEO of >GenToo technologies. Learn everything from fundamentals to system >administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >_______________________________________________ >plib-users mailing list >pli...@li... >https://lists.sourceforge.net/lists/listinfo/plib-users > > >------------------------------------------------------- >This SF.Net email is sponsored by: IBM Linux Tutorials >Free Linux tutorial presented by Daniel Robbins, President and CEO of >GenToo technologies. Learn everything from fundamentals to system >administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click >_______________________________________________ >plib-users mailing list >pli...@li... >https://lists.sourceforge.net/lists/listinfo/plib-users _________________________________________________________________ Is your PC infected? Get a FREE online computer virus scan from McAfee® Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 |
From: Steve B. <sjb...@ai...> - 2004-04-06 15:12:41
|
I've added this into the PUI documentation. Steve Baker wrote: > That's not how things work in 1.8.0 and later. > > Just build PLIB without any special compile flags: > > ./configure ; make ; make install > > It is now ready to work with GLUT, SDL, FLTK and PW...or > even (with some effort) with your own windowing routines. > > > in the makefile from pu there is a puGlut.h file. > > In the puGlut.h file is a glut.h > > Yes - that's true - but if you don't use GLUT, it won't > be included into your program. > >> I compiled my programm: >> >> /usr/include/plib/pu.h:2139: puGLUT.h: No such file or directory > > > Here is what you do: > > EITHER: > > 1) #define PU_USE_GLUT or PU_USE_PW or PU_USE_FLTK or PU_USE_SDL ...to > explicitly tell PUI which library you want it to use. > > ...OR... > > 2) Include the header file for whatever windowing library you are > using (PW, SDL, FLTK, GLUT, etc) BEFORE you '#include <plib/pu.h>'. > pu.h will then automatically detect which windowing library you are > using and set PU_USE_<whatever> appropriately. > > ...OR... > > 3) #define PU_USE_NONE ...and pu.h will assume nothing about your > windowing library. This is an OK thing to do for every file EXCEPT > the one that calls puInit(). If you have PU_USE_NONE in the file > that calls puInit then it may result in some small problems if you want > to do certain operations for which PUI needs to query the windowing > library. > > ...OR... > > 4) Do none of the above - in which case PUI will assume you are using > GLUT/freeglut for reverse-compatibility purposes. > > Check out the example programs for PU - notably fltk_demo and sdl_example > in the examples/src/pui area and pw_pui in the examples/src/pw area. > > If you have your own windowing library (ie not PW, GLUT, SDL or FLTK), > then you can make it work properly with PUI by defining four inline > functions and passing them into 'puSetWindowFuncs'. Look at (for > example) puGLUT.h to see how this is done. > > ---------------------------- Steve Baker ------------------------- > HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> > HomePage : http://www.sjbaker.org > Projects : http://plib.sf.net http://tuxaqfh.sf.net > http://tuxkart.sf.net http://prettypoly.sf.net > -----BEGIN GEEK CODE BLOCK----- > GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- > V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ > -----END GEEK CODE BLOCK----- > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > plib-users mailing list > pli...@li... > https://lists.sourceforge.net/lists/listinfo/plib-users > -- ---------------------------- Steve Baker ------------------------- HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://www.sjbaker.org Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net -----BEGIN GEEK CODE BLOCK----- GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ -----END GEEK CODE BLOCK----- |
From: Steve B. <sjb...@ai...> - 2004-04-06 14:37:03
|
neu...@su... wrote: > I want to use pu without glut. > I type in: > > ./configure --without-glut > make > su .. > make install That's not how things work in 1.8.0 and later. Just build PLIB without any special compile flags: ./configure ; make ; make install It is now ready to work with GLUT, SDL, FLTK and PW...or even (with some effort) with your own windowing routines. > in the makefile from pu there is a puGlut.h file. > In the puGlut.h file is a glut.h Yes - that's true - but if you don't use GLUT, it won't be included into your program. > I compiled my programm: > > /usr/include/plib/pu.h:2139: puGLUT.h: No such file or directory Here is what you do: EITHER: 1) #define PU_USE_GLUT or PU_USE_PW or PU_USE_FLTK or PU_USE_SDL ...to explicitly tell PUI which library you want it to use. ...OR... 2) Include the header file for whatever windowing library you are using (PW, SDL, FLTK, GLUT, etc) BEFORE you '#include <plib/pu.h>'. pu.h will then automatically detect which windowing library you are using and set PU_USE_<whatever> appropriately. ...OR... 3) #define PU_USE_NONE ...and pu.h will assume nothing about your windowing library. This is an OK thing to do for every file EXCEPT the one that calls puInit(). If you have PU_USE_NONE in the file that calls puInit then it may result in some small problems if you want to do certain operations for which PUI needs to query the windowing library. ...OR... 4) Do none of the above - in which case PUI will assume you are using GLUT/freeglut for reverse-compatibility purposes. Check out the example programs for PU - notably fltk_demo and sdl_example in the examples/src/pui area and pw_pui in the examples/src/pw area. If you have your own windowing library (ie not PW, GLUT, SDL or FLTK), then you can make it work properly with PUI by defining four inline functions and passing them into 'puSetWindowFuncs'. Look at (for example) puGLUT.h to see how this is done. ---------------------------- Steve Baker ------------------------- HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://www.sjbaker.org Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net -----BEGIN GEEK CODE BLOCK----- GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ -----END GEEK CODE BLOCK----- |
From: <neu...@su...> - 2004-04-06 14:09:33
|
I want to use pu without glut. I type in: ./configure --without-glut make su .. make install in the makefile from pu there is a puGlut.h file. In the puGlut.h file is a glut.h I compiled my programm: /usr/include/plib/pu.h:2139: puGLUT.h: No such file or directory The pu.h file include the puGlut.h file. PS:The CVS version from 12.Nov.2003 works. Thank You for your help Harald __________________________________________________________________ Turbospeed zum Turbopreis! Surfen Sie doch auch mit der DSL-Flatrate von Tiscali. Nur 15,90 EUR im Monat. Basiert auf T-DSL. Weitere Kosten Nicht =FCberall verf=FCgbar. 6 Monate Mindestvertragslaufzeit. Und falls Sie wider Erwarten im ersten Monat nicht zufrieden sein sollten= , gew=E4hrt Tiscali Ihnen ein sofortiges K=FCndigungsrecht und Sie erhalten= Ihr Geld zur=FCck. Klicken Sie hier: http://registrierung.tiscali.de/produkte/1342_dslflatrate.php?akkcode=3D1= 0253 |