/
redgpu
/
bullet
Обзор
Документация
Войти
/
redgpu
/
bullet
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
examples/SharedMemory/physx/PhysXC_API.cpp
16 строк
448 B
erwincoumans
texture caching and geometry caching (PhysX) for much faster loading of many same objects, helps benchmarking/comparison.
22 фев 2019, 06:24
22 фев 2019, 06:24
71b1191
Код
Авторство
О чём код?
#ifdef BT_ENABLE_PHYSX #include "PhysXC_API.h" #include "../PhysicsDirect.h" #include "PhysXServerCommandProcessor.h" B3_SHARED_API b3PhysicsClientHandle b3ConnectPhysX(int argc, char* argv[]) { PhysXServerCommandProcessor* sdk = new PhysXServerCommandProcessor(argc,argv); PhysicsDirect* direct = new PhysicsDirect(sdk, true); bool connected; connected = direct->connect(); return (b3PhysicsClientHandle)direct; } #endif //BT_ENABLE_PHYSX