14#ifndef WGLGRAPHICSBUFFER_H
15#define WGLGRAPHICSBUFFER_H
23#ifndef WIN32_LEAN_AND_MEAN
24#define WIN32_LEAN_AND_MEAN 1
35class EXPCL_PANDA_WGLDISPLAY wglGraphicsBuffer :
public GraphicsBuffer {
37 wglGraphicsBuffer(GraphicsEngine *engine, GraphicsPipe *pipe,
38 const std::string &name,
43 GraphicsOutput *host);
44 virtual ~wglGraphicsBuffer();
56 virtual void close_buffer();
57 virtual bool open_buffer();
60 void bind_texture_to_pbuffer();
61 bool rebuild_bitplanes();
62 void release_pbuffer();
64 static void process_1_event();
69 Texture::TextureType _pbuffer_type;
78 static void init_type() {
79 GraphicsBuffer::init_type();
81 GraphicsBuffer::get_class_type());
84 return get_class_type();
86 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
91 friend class wglGraphicsStateGuardian;
A container for the various kinds of properties we might ask to have on a graphics frameBuffer before...
virtual void process_events()
Honor any requests recently made via request_open() or request_close().
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.
get_supports_render_texture
Returns true if this particular GraphicsOutput can render directly into a texture,...
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 select_target_tex_page(int page)
Called internally when the window is in render-to-a-texture mode and we are in the process of renderi...
Encapsulates all the communication with a particular instance of a given rendering backend.
Represents a texture object, which is typically a single 2-d image but may also represent a 1-d or 3-...
A thread; that is, a lightweight 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 window before we o...
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.