14#ifndef SUBPROCESSWINDOW_H
15#define SUBPROCESSWINDOW_H
23#define SUPPORT_SUBPROCESS_WINDOW 1
25#undef SUPPORT_SUBPROCESS_WINDOW
28#ifdef SUPPORT_SUBPROCESS_WINDOW
47 SubprocessWindow(GraphicsEngine *engine, GraphicsPipe *pipe,
48 const std::string &name,
49 const FrameBufferProperties &fb_prop,
50 const WindowProperties &win_prop,
52 GraphicsStateGuardian *gsg,
53 GraphicsOutput *host);
54 virtual ~SubprocessWindow();
58 virtual bool begin_frame(FrameMode mode, Thread *current_thread);
59 virtual void end_frame(FrameMode mode, Thread *current_thread);
65 virtual void close_window();
66 virtual bool open_window();
69 void internal_close_window();
70 bool internal_open_window();
72 ButtonHandle translate_key(
int &keycode,
int os_code,
unsigned int flags)
const;
73 void transition_button(
unsigned int flag, ButtonHandle button);
76 PT(GraphicsBuffer) _buffer;
78 PT(GraphicsWindowInputDevice) _input;
83 SubprocessWindowBuffer *_swbuffer;
85 unsigned int _last_event_flags;
88 static TypeHandle get_class_type() {
91 static void init_type() {
92 GraphicsWindow::init_type();
94 GraphicsWindow::get_class_type());
96 virtual TypeHandle get_type()
const {
97 return get_class_type();
99 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
102 static TypeHandle _type_handle;
virtual void begin_flip()
This function will be called within the draw thread after end_frame() has been called on all windows,...
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.
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.
A window, fullscreen or on a desktop, into which a graphics device sends its output for interactive d...
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 ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.