15 #ifndef EGLGRAPHICSWINDOW_H 16 #define EGLGRAPHICSWINDOW_H 18 #include "pandabase.h" 20 #include "eglGraphicsPipe.h" 21 #include "graphicsWindow.h" 22 #include "buttonHandle.h" 52 virtual void close_window();
53 virtual bool open_window();
59 void setup_colormap(XVisualInfo *visual);
60 void handle_keystroke(XKeyEvent &event);
61 void handle_keypress(XKeyEvent &event);
62 void handle_keyrelease(XKeyEvent &event);
64 ButtonHandle get_button(XKeyEvent &key_event,
bool allow_shift);
66 ButtonHandle get_mouse_button(XButtonEvent &button_event);
68 static Bool check_event(X11_Display *display, XEvent *event,
char *arg);
74 X11_Display *_display;
79 EGLDisplay _egl_display;
80 EGLSurface _egl_surface;
83 bool _awaiting_configure;
84 Atom _wm_delete_window;
85 Atom _net_wm_window_type;
86 Atom _net_wm_window_type_splash;
87 Atom _net_wm_window_type_fullscreen;
89 Atom _net_wm_state_fullscreen;
90 Atom _net_wm_state_above;
91 Atom _net_wm_state_below;
92 Atom _net_wm_state_add;
93 Atom _net_wm_state_remove;
95 struct MouseDeviceInfo {
97 int _input_device_index;
106 static void init_type() {
107 GraphicsWindow::init_type();
108 register_type(_type_handle,
"eglGraphicsWindow",
109 GraphicsWindow::get_class_type());
112 return get_class_type();
114 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
120 #include "eglGraphicsWindow.I" virtual void set_properties_now(WindowProperties &properties)
Applies the requested set of properties to the window, if possible, for instance to request a change ...
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...
An interface to the egl system for managing GLES windows under X.
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 object to create GraphicsOutputs that share a particular 3-D API.
This is a base class for the various different classes that represent the result of a frame of render...
virtual void process_events()
Do whatever processing is necessary to ensure that the window responds to user events.
X11_Window get_xwindow() const
Returns the X11 Window handle.
A thread; that is, a lightweight process.
Encapsulates all the communication with a particular instance of a given rendering backend...
virtual bool move_pointer(int device, int x, int y)
Forces the pointer to the indicated position within the window, if possible.
This class is the main interface to controlling the render process.
virtual void end_flip()
This function will be called within the draw thread after begin_flip() has been called on all windows...
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...