14#ifndef EGLGRAPHICSPIXMAP_H
15#define EGLGRAPHICSPIXMAP_H
31 eglGraphicsPixmap(GraphicsEngine *engine, GraphicsPipe *pipe,
32 const std::string &name,
33 const FrameBufferProperties &fb_prop,
34 const WindowProperties &win_prop,
36 GraphicsStateGuardian *gsg,
37 GraphicsOutput *host);
38 virtual ~eglGraphicsPixmap();
40 virtual bool begin_frame(FrameMode mode, Thread *current_thread);
41 virtual void end_frame(FrameMode mode, Thread *current_thread);
44 virtual void close_buffer();
45 virtual bool open_buffer();
48 X11_Display *_display;
51 EGLSurface _egl_surface;
52 EGLDisplay _egl_display;
55 static TypeHandle get_class_type() {
58 static void init_type() {
59 GraphicsBuffer::init_type();
61 GraphicsBuffer::get_class_type());
63 virtual TypeHandle get_type()
const {
64 return get_class_type();
66 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
69 static TypeHandle _type_handle;
An offscreen buffer for rendering into.
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.
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(),...