*beginners* - Boiled Down 'HelloWorld' demo with OpenGL

Show what you made with Bullet Physics SDK: Games, Demos, Integrations with a graphics engine, modeler or any other application
abaraba
Posts: 56
Joined: Thu Jun 19, 2008 7:54 am

Re: *beginners* - Boiled Down 'HelloWorld' demo with OpenGL

Post by abaraba »

yes, thanks

i was very wrong about those objects being temporary as the allocated memory has nothing to do with a scope... maybe in Java

so, i realized just how terrible that practice could be,
but for the sake of conversation i still think my wrong source and correct source would compile in a binary with same memory footprint, with no memory leak because all the new() operators happen only once in the whole runtime of that application, so there will be no extra memory allocations, but about the same ...even after 100 years ;-)


btw,
4th BoiledDownDemo -"Katamari Damacy remake", screenshots & download:
http://www.bulletphysics.com/Bullet/php ... =17&t=2499

comes with even more memory leaks,
which i should really fix now that i know better.. thank you all for input and feel free to find more bugs!


cheers
z8000
Posts: 24
Joined: Mon Aug 04, 2008 3:54 pm

Re: *beginners* - Boiled Down 'HelloWorld' demo with OpenGL

Post by z8000 »

abaraba wrote: comes with even more memory leaks,
What a great feature! ;-)

Cheers