Commit Graph
21 Commits
Author SHA1 Message Date
sjbaker 3c1ba0023b NULL is not yet defined because this header is sometimes included before stdio.h or stddef.h - rather than change a bazillion places where the header is included, I'll just use 0 instead. 2007-03-06 18:14:37 +00:00
sjbaker a4a3474fb5 The macro 'btFullAssert' is used like this:
btFullAssert ( yadda_yadda ) ;

...in the btScalar.h header, it's defined as:

    #define btFullAssert

...which means that the statement above becomes:

    ( yadda_yadda ) ;

...which means that code may actually be compiled and executed (unnecessarily) - and even when the code is something simple like:

    ( i > 0 && i < 3 ) ;

...the GCC tosses out a 'statement with no effect' warning - before
it optimises away the code.

The fix is:

   #define btFullAssert(x)

...so that the macro still takes a parameter which is now removed
from the sources so you get:

    ;

...which is guaranteed not to generate code.
2007-03-06 18:06:28 +00:00
sjbaker b924cb57d3 Fixed wheels so they rotate in the correct direction. 2007-01-07 05:41:50 +00:00
sjbaker e9b21e21a6 Pathnames between #include files that are intended to be used within application code should not depend on the paths to the subdirectories being known to the compiler because this will not always be the case when an end-user includes your headers.
Includes of files in the local hierarchy must not use <...> please stick with "..."
2006-12-26 15:33:28 +00:00
sjbaker 208bbe7594 Added a set of empty, classless 'extern "C"' probe functions to allow '.so' loaders and application domain 'autotools' to easily and unambiguously check for the correct installation of the various bullet libraries.
eg:

  bulletmath_suffix="-lbulletmath"
  bulletcollision_suffix="-lbulletcollision"
  bulletdynamics_suffix="-lbulletdynamics"
  dnl Check bulletmath library
  AC_CHECK_LIB(bulletmath, btBulletMathProbe, true,
  AC_MSG_ERROR([there seems to be a problem with the bulletmath library]))
  LIBS="$bulletmath_suffix $LIBS"
  dnl Check bulletcollision library
  AC_CHECK_LIB(bulletcollision, btBulletCollisionProbe, true,
  AC_MSG_ERROR([there seems to be a problem with the bulletcollision library]))
  LIBS="$bulletcollision_suffix $LIBS"
  dnl Check bulletdynamics library
  AC_CHECK_LIB(bulletdynamics, btBulletDynamicsProbe, true,
  AC_MSG_ERROR([there seems to be a problem with the bulletdynamics library]))
  LIBS="$bulletdynamics_suffix $LIBS"
2006-12-26 00:39:32 +00:00
sjbaker 8d92ca34c2 Windows programmers: Beware! The case of the filename is significant in #include directives - even though the lame-ass M$ compiler doesn't check it. 2006-12-23 16:20:00 +00:00
sjbaker db573e4a59 Clean up about a bazillion compilation warnings. 2006-12-22 02:33:42 +00:00
sjbaker 15bb51d780 Fixed compilation problem with GCC 3.3.5 - which appears at first glance to be due to a compiler error. 2006-11-20 23:21:05 +00:00
sjbaker 6bb806d26b More cleanup. 2006-11-20 06:48:45 +00:00
sjbaker 04d41b7a0a Cleanup compilation warnings. 2008-02-12 04:22:31 +00:00
sjbaker 6c61060339 Cleaned up some compile-time warnings. 2006-11-04 15:34:56 +00:00
sjbaker ef993557fe Fixed elevation wrap-around problem in Demo's. 2006-10-15 19:10:30 +00:00
sjbaker ca4a071880 Fixed bug - paying attention to compiler warnings saves lives! 2006-10-14 17:52:26 +00:00
sjbaker a7eca49065 Added some performance measuring tools.
Speeded up collision detection significantly.
2006-10-01 16:36:57 +00:00
sjbaker 9ebc440ee5 Added simple collision detection. 2006-10-01 03:45:08 +00:00
sjbaker 2aaab1ab1a Assorted cleanup of compilation warnings. Also fixed some actual errors:
#include "renderTexture.h"...when the file is actually called 'RenderTexture.h'.
2006-10-01 00:08:09 +00:00
sjbaker 2b286e4748 Added new GPU physics demo into both trunk and branch. 2006-09-27 19:18:52 +00:00
sjbaker 86f5b09623 Added newline at the ends of these files in order to prevent g++ warnings. 2006-09-24 17:25:13 +00:00
sjbaker f1627677df Fixed over 500 compile warnings. Mostly:
* Unused variables.
* Missing newlines at ends of #included files.
* signed int loop variables where the termination condition is an unsigned 'get number of' function.
* 'NULL' used inappropriately for an integer or character constant (NULL is a pointer)
* abstract base classes with no virtual destructor.
* Floating point constants used to initialise integer variables.
2006-09-23 14:51:54 +00:00
sjbaker dad2cb634e * Merged in my latest changes into SVN repository.
* Arranged to avoid reading/writing textures at same time.
* Removed depth and stencil buffers from FBO's.
* Eliminated 1-component FBO that caused grief for FBO completeness test.
* Added back missing cubeShaderNoTexture.vert
2006-09-20 00:44:41 +00:00
sjbaker 22fdf584b8 Reverse order of entries in CHANGES 2006-09-19 22:46:33 +00:00