mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
framework: add zero-argument version of open_framework()
This commit is contained in:
parent
ecfeae8a27
commit
c634c455fd
@ -82,7 +82,7 @@ PandaFramework::
|
|||||||
* control parameters.
|
* control parameters.
|
||||||
*/
|
*/
|
||||||
void PandaFramework::
|
void PandaFramework::
|
||||||
open_framework(int &argc, char **&argv) {
|
open_framework() {
|
||||||
if (_is_open) {
|
if (_is_open) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -162,6 +162,14 @@ open_framework(int &argc, char **&argv) {
|
|||||||
_event_handler.add_hook("window-event", event_window_event, this);
|
_event_handler.add_hook("window-event", event_window_event, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated See the version of open_framework() without arguments.
|
||||||
|
*/
|
||||||
|
void PandaFramework::
|
||||||
|
open_framework(int &argc, char **&argv) {
|
||||||
|
open_framework();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Should be called at the end of an application to close Panda. This is
|
* Should be called at the end of an application to close Panda. This is
|
||||||
* optional, as the destructor will do the same thing.
|
* optional, as the destructor will do the same thing.
|
||||||
|
@ -40,6 +40,7 @@ public:
|
|||||||
PandaFramework();
|
PandaFramework();
|
||||||
virtual ~PandaFramework();
|
virtual ~PandaFramework();
|
||||||
|
|
||||||
|
void open_framework();
|
||||||
void open_framework(int &argc, char **&argv);
|
void open_framework(int &argc, char **&argv);
|
||||||
void close_framework();
|
void close_framework();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user