Bullet Collision Detection & Physics Library: btBulletWorldImporter.h Source File

Bullet Collision Detection & Physics Library

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

btBulletWorldImporter.h
Go to the documentation of this file.
1/*
2Bullet Continuous Collision Detection and Physics Library
3Copyright (c) 2003-2012 Erwin Coumans http://bulletphysics.org
4
5This software is provided 'as-is', without any express or implied warranty.
6In no event will the authors be held liable for any damages arising from the use of this software.
7Permission is granted to anyone to use this software for any purpose,
8including commercial applications, and to alter it and redistribute it freely,
9subject to the following restrictions:
10
111. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
122. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
133. This notice may not be removed or altered from any source distribution.
14*/
15
16#ifndef BULLET_WORLD_IMPORTER_H
17#define BULLET_WORLD_IMPORTER_H
18
19#include "btWorldImporter.h"
20
21class btBulletFile;
22
23 namespace bParse
24{
25class btBulletFile;
26
27};
28
32 class btBulletWorldImporter : public btWorldImporter
33{
34public:
35 btBulletWorldImporter(btDynamicsWorld* world = 0);
36
37 virtual ~btBulletWorldImporter();
38
41 bool loadFile(const char* fileName, const char* preSwapFilenameOut = 0);
42
44 bool loadFileFromMemory(char* memoryBuffer, int len);
45
46 bool loadFileFromMemory(bParse::btBulletFile* file);
47
48 //call make sure bulletFile2 has been parsed, either using btBulletFile::parse or btBulletWorldImporter::loadFileFromMemory
49 virtual bool convertAllObjects(bParse::btBulletFile* file);
50};
51
52#endif //BULLET_WORLD_IMPORTER_H
btWorldImporter.h
bParse::btBulletFile
Definition: btBulletFile.h:29
btBulletWorldImporter
The btBulletWorldImporter is a starting point to import .bullet files.
Definition: btBulletWorldImporter.h:33
btBulletWorldImporter::loadFileFromMemory
bool loadFileFromMemory(char *memoryBuffer, int len)
the memoryBuffer might be modified (for example if endian swaps are necessary)
Definition: btBulletWorldImporter.cpp:58
btBulletWorldImporter::loadFile
bool loadFile(const char *fileName, const char *preSwapFilenameOut=0)
if you pass a valid preSwapFilenameOut, it will save a new file with a different endianness this pre-...
Definition: btBulletWorldImporter.cpp:38
btBulletWorldImporter::convertAllObjects
virtual bool convertAllObjects(bParse::btBulletFile *file)
Definition: btBulletWorldImporter.cpp:86
btBulletWorldImporter::~btBulletWorldImporter
virtual ~btBulletWorldImporter()
Definition: btBulletWorldImporter.cpp:34
btDynamicsWorld
The btDynamicsWorld is the interface class for several dynamics implementation, basic,...
Definition: btDynamicsWorld.h:43
btWorldImporter
Definition: btWorldImporter.h:67
bParse
Definition: btBulletWorldImporter.h:24