add InProcessExampleBrowser to make it easy to instantiate the ExampleBrowser in its own thread
example usage:
int main(int argc, char* argv[])
{
btInProcessExampleBrowserInternalData* data = btCreateInProcessExampleBrowser(argc,argv);
while (!(btIsExampleBrowserTerminated(data)))
{
}
btShutDownExampleBrowser(data);
return 0;
}
This commit is contained in:
13
examples/ExampleBrowser/InProcessExampleBrowser.h
Normal file
13
examples/ExampleBrowser/InProcessExampleBrowser.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#ifndef IN_PROCESS_EXAMPLE_BROWSER_H
|
||||
#define IN_PROCESS_EXAMPLE_BROWSER_H
|
||||
|
||||
struct btInProcessExampleBrowserInternalData;
|
||||
|
||||
btInProcessExampleBrowserInternalData* btCreateInProcessExampleBrowser(int argc,char** argv2);
|
||||
|
||||
bool btIsExampleBrowserTerminated(btInProcessExampleBrowserInternalData* data);
|
||||
|
||||
void btShutDownExampleBrowser(btInProcessExampleBrowserInternalData* data);
|
||||
|
||||
|
||||
#endif //IN_PROCESS_EXAMPLE_BROWSER_H
|
||||
Reference in New Issue
Block a user