mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
A few fixes related to the recent begin-frame refactor
This commit is contained in:
parent
dfab4fb786
commit
0b02e92c0d
@ -128,7 +128,7 @@ end_frame(FrameMode mode) {
|
|||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: wglGraphicsStateGuardian::begin_render_texture
|
// Function: wglGraphicsStateGuardian::begin_render_texture
|
||||||
// Access: Public, Virtual
|
// Access: Private
|
||||||
// Description: If the GraphicsOutput supports direct render-to-texture,
|
// Description: If the GraphicsOutput supports direct render-to-texture,
|
||||||
// and if any setup needs to be done during begin_frame,
|
// and if any setup needs to be done during begin_frame,
|
||||||
// then the setup code should go here. Any textures that
|
// then the setup code should go here. Any textures that
|
||||||
@ -149,7 +149,7 @@ begin_render_texture() {
|
|||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: GraphicsOutput::end_render_texture
|
// Function: GraphicsOutput::end_render_texture
|
||||||
// Access: Public, Virtual
|
// Access: Private
|
||||||
// Description: If the GraphicsOutput supports direct render-to-texture,
|
// Description: If the GraphicsOutput supports direct render-to-texture,
|
||||||
// and if any setup needs to be done during end_frame,
|
// and if any setup needs to be done during end_frame,
|
||||||
// then the setup code should go here. Any textures that
|
// then the setup code should go here. Any textures that
|
||||||
|
@ -52,9 +52,6 @@ public:
|
|||||||
virtual void select_cube_map(int cube_map_index);
|
virtual void select_cube_map(int cube_map_index);
|
||||||
virtual void release_gsg();
|
virtual void release_gsg();
|
||||||
|
|
||||||
virtual void begin_render_texture();
|
|
||||||
virtual void end_render_texture();
|
|
||||||
|
|
||||||
virtual void process_events();
|
virtual void process_events();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
@ -62,6 +59,8 @@ protected:
|
|||||||
virtual bool open_buffer();
|
virtual bool open_buffer();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
void begin_render_texture();
|
||||||
|
void end_render_texture();
|
||||||
bool make_pbuffer(HDC window_dc);
|
bool make_pbuffer(HDC window_dc);
|
||||||
int choose_pbuffer_format(HDC twindow_dc, bool draw_to_texture);
|
int choose_pbuffer_format(HDC twindow_dc, bool draw_to_texture);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user