Panda3D
|
An interface to the glx system for managing GL windows under X. More...
#include "glxGraphicsWindow.h"
Public Member Functions | |
glxGraphicsWindow (GraphicsEngine *engine, GraphicsPipe *pipe, const string &name, const FrameBufferProperties &fb_prop, const WindowProperties &win_prop, int flags, GraphicsStateGuardian *gsg, GraphicsOutput *host) | |
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. | |
virtual void | end_flip () |
This function will be called within the draw thread after begin_flip() has been called on all windows, to finish the exchange of the front and back buffers. | |
virtual TypeHandle | force_init_type () |
virtual TypeHandle | get_type () const |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
Protected Member Functions | |
virtual void | close_window () |
Closes the window right now. | |
virtual bool | open_window () |
Opens the window right now. |
An interface to the glx system for managing GL windows under X.
Definition at line 30 of file glxGraphicsWindow.h.
bool glxGraphicsWindow::begin_frame | ( | FrameMode | mode, |
Thread * | current_thread | ||
) | [virtual] |
This function will be called within the draw thread before beginning rendering for a given frame.
It should do whatever setup is required, and return true if the frame should be rendered, or false if it should be skipped.
Reimplemented from x11GraphicsWindow.
Definition at line 62 of file glxGraphicsWindow.cxx.
References GraphicsOutput::begin_frame_spam(), GraphicsOutput::clear_cube_map_selection(), and GraphicsOutput::get_fb_properties().
void glxGraphicsWindow::close_window | ( | ) | [protected, virtual] |
Closes the window right now.
Called from the window thread.
Reimplemented from x11GraphicsWindow.
Definition at line 139 of file glxGraphicsWindow.cxx.
Referenced by open_window().
void glxGraphicsWindow::end_flip | ( | ) | [virtual] |
This function will be called within the draw thread after begin_flip() has been called on all windows, to finish the exchange of the front and back buffers.
This should cause the window to wait for the flip, if necessary.
Reimplemented from GraphicsOutput.
Definition at line 117 of file glxGraphicsWindow.cxx.
bool glxGraphicsWindow::open_window | ( | ) | [protected, virtual] |
Opens the window right now.
Called from the window thread. Returns true if the window is successfully opened, or false if there was a problem.
Reimplemented from x11GraphicsWindow.
Definition at line 156 of file glxGraphicsWindow.cxx.
References glxGraphicsStateGuardian::choose_pixel_format(), close_window(), x11GraphicsPipe::get_display(), glxGraphicsStateGuardian::get_fb_properties(), x11GraphicsPipe::get_screen(), x11GraphicsWindow::open_window(), FrameBufferProperties::subsumes(), and FrameBufferProperties::verify_hardware_software().