Generate a single bullet.h headerfile for serialization, to make it easier to load .bullet files with no dependencies on the Bullet SDK (except Bullet/LinearMath and Bullet/Extras/Serialize/BulletFileLoader)

Added a work-in-progress example how to load a .bullet file using this bullet.h file (and not using the Bullet SDK)
This commit is contained in:
erwin.coumans
2011-02-21 22:32:12 +00:00
parent f19995aeab
commit ecaf8d2594
54 changed files with 1419 additions and 2321 deletions

View File

@@ -0,0 +1,33 @@
INCLUDE_DIRECTORIES(
${BULLET_PHYSICS_SOURCE_DIR}/src
)
LINK_LIBRARIES(
BulletFileLoader
)
IF (WIN32)
SET(ADDITIONAL_SRC
${BULLET_PHYSICS_SOURCE_DIR}/msvc/bullet.rc
)
ENDIF()
SET(READBULLET_SRC
main.cpp
BulletDataExtractor.cpp
BulletDataExtractor.h
${BULLET_PHYSICS_SOURCE_DIR}/src/LinearMath/btSerializer.cpp
${BULLET_PHYSICS_SOURCE_DIR}/src/LinearMath/btAlignedAllocator.cpp
)
ADD_EXECUTABLE(AppReadBulletSample
${READBULLET_SRC}
${ADDITIONAL_SRC}
)
IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES)
SET_TARGET_PROPERTIES(AppReadBulletSample PROPERTIES DEBUG_POSTFIX "_Debug")
SET_TARGET_PROPERTIES(AppReadBulletSample PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel")
SET_TARGET_PROPERTIES(AppReadBulletSample PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo")
ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES)