20 if (_engine ==
nullptr) {
21 _engine = GraphicsEngine::get_global_ptr();
45 return _event_handler;
61 _window_title = title;
69 return _windows.size();
77 nassertr(n >= 0 && n < (
int)_windows.size(),
nullptr);
97 return _wireframe_enabled;
105 return _texture_enabled;
113 return _two_sided_enabled;
121 return _lighting_enabled;
129 return _perpixel_enabled;
137 return _background_type;
181 _recorder = recorder;
int get_num_windows() const
Returns the number of windows that are currently open.
WindowFramework::BackgroundType get_background_type() const
Returns the current background type setting.
A class to monitor events from the C++ side of things.
bool is_empty() const
Returns true if the NodePath contains no nodes.
A class to manage a loose queue of isolated tasks, which can be performed either synchronously (in th...
int find_window(const GraphicsOutput *win) const
Returns the index of the first WindowFramework object found that references the indicated GraphicsOut...
bool get_perpixel() const
Returns the current state of the perpixel flag.
This encapsulates the data that is normally associated with a single window, or with a single display...
void set_exit_flag()
Sets the flag that indicates it is time for the application to exit.
const NodePath & get_highlight() const
Returns the currently highlighted node, if any, or an empty NodePath if no node is highlighted.
const NodePath & get_data_root() const
Returns the root of the data graph.
bool get_lighting() const
Returns the current state of the lighting flag.
void clear_exit_flag()
Resets the exit flag after it has previously been set.
void add(AsyncTask *task)
Adds the indicated task to the active queue.
static AsyncTask::DoneStatus task_igloop(GenericAsyncTask *task, void *data)
Called once per frame to render the scene.
bool has_highlight() const
Returns true if any node is highlighted, false otherwise.
Associates a generic C-style function pointer with an AsyncTask object.
AsyncTaskManager & get_task_mgr()
Returns the Task Manager object that manages tasks in the framework.
void close_window(int n)
Closes the nth window and removes it from the list.
EventHandler & get_event_handler()
Returns the EventHandler object that serves events in the framework.
void set_recorder(RecorderController *recorder)
Assigns a RecorderController with the PandaFramework.
void set_window_title(const std::string &title)
Specifies the title that is set for all subsequently created windows.
RecorderController * get_recorder() const
Returns the RecorderController that has been associated with the PandaFramework, if any,...
This object manages the process of recording the user's runtime inputs to a bam file so that the sess...
This class is the main interface to controlling the render process.
GraphicsEngine * get_graphics_engine()
Returns the GraphicsEngine that is used to render all the windows in the framework.
bool get_two_sided() const
Returns the current state of the two_sided flag.
WindowFramework * get_window(int n) const
Returns the nth window currently open.
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
bool get_wireframe() const
Returns the current state of the wireframe flag.
bool get_texture() const
Returns the current state of the texture flag.