15 #ifndef SUBPROCESSWINDOW_H
16 #define SUBPROCESSWINDOW_H
18 #include "pandabase.h"
24 #define SUPPORT_SUBPROCESS_WINDOW 1
26 #undef SUPPORT_SUBPROCESS_WINDOW
29 #ifdef SUPPORT_SUBPROCESS_WINDOW
31 #include "graphicsWindow.h"
32 #include "graphicsBuffer.h"
34 #include "subprocessWindowBuffer.h"
59 virtual ~SubprocessWindow();
70 virtual void close_window();
71 virtual bool open_window();
74 void internal_close_window();
75 bool internal_open_window();
77 ButtonHandle translate_key(
int &keycode,
int os_code,
unsigned int flags)
const;
78 void transition_button(
unsigned int flag,
ButtonHandle button);
89 unsigned int _last_event_flags;
95 static void init_type() {
96 GraphicsWindow::init_type();
97 register_type(_type_handle,
"SubprocessWindow",
98 GraphicsWindow::get_class_type());
101 return get_class_type();
103 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
109 #include "subprocessWindow.I"
111 #endif // SUPPORT_SUBPROCESS_WINDOW
virtual void process_events()
Do whatever processing is necessary to ensure that the window responds to user events.
virtual void set_properties_now(WindowProperties &properties)
Applies the requested set of properties to the window, if possible, for instance to request a change ...
Represents a texture object, which is typically a single 2-d image but may also represent a 1-d or 3-...
virtual void end_frame(FrameMode mode, Thread *current_thread)
This function will be called within the draw thread after rendering is completed for a given frame...
A window, fullscreen or on a desktop, into which a graphics device sends its output for interactive d...
A container for the various kinds of properties we might ask to have on a graphics window before we o...
An offscreen buffer for rendering into.
The name of a file, such as a texture file or an Egg file.
An object to create GraphicsOutputs that share a particular 3-D API.
This is a special class that is designed to faciliate SubprocessWindow.
This is a base class for the various different classes that represent the result of a frame of render...
A thread; that is, a lightweight process.
virtual void begin_flip()
This function will be called within the draw thread after end_frame() has been called on all windows...
Encapsulates all the communication with a particular instance of a given rendering backend...
This class is the main interface to controlling the render process.
TypeHandle is the identifier used to differentiate C++ class types.
A container for the various kinds of properties we might ask to have on a graphics frameBuffer before...
virtual bool begin_frame(FrameMode mode, Thread *current_thread)
This function will be called within the draw thread before beginning rendering for a given frame...