mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-14 05:40:05 +00:00
218e9f9bf9
set a default camera targets for each demo. note that it is only reset when switching to a different demo, so you can restart at your chosen location. no OpenCL pairbench drawing in OpenGL2 (there is no VBO available etc)
41 lines
724 B
C++
41 lines
724 B
C++
|
|
#ifndef EXAMPLE_ENTRIES_H
|
|
#define EXAMPLE_ENTRIES_H
|
|
|
|
#include "../CommonInterfaces/CommonExampleInterface.h"
|
|
|
|
|
|
|
|
|
|
class ExampleEntries
|
|
{
|
|
|
|
struct ExampleEntriesInternalData* m_data;
|
|
|
|
public:
|
|
|
|
ExampleEntries();
|
|
virtual ~ExampleEntries();
|
|
|
|
static void registerExampleEntry(int menuLevel, const char* name,const char* description, CommonExampleInterface::CreateFunc* createFunc, int option=0);
|
|
|
|
void initExampleEntries();
|
|
|
|
void initOpenCLExampleEntries();
|
|
|
|
int getNumRegisteredExamples();
|
|
|
|
CommonExampleInterface::CreateFunc* getExampleCreateFunc(int index);
|
|
|
|
const char* getExampleName(int index);
|
|
|
|
const char* getExampleDescription(int index);
|
|
|
|
int getExampleOption(int index);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //EXAMPLE_ENTRIES_H
|