mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
Add FrameBufferProperties argument to WindowFramework
This commit is contained in:
parent
32ad6785f2
commit
528a607f4a
@ -145,7 +145,8 @@ WindowFramework::
|
||||
////////////////////////////////////////////////////////////////////
|
||||
GraphicsOutput *WindowFramework::
|
||||
open_window(const WindowProperties &props, int flags, GraphicsEngine *engine,
|
||||
GraphicsPipe *pipe, GraphicsStateGuardian *gsg) {
|
||||
GraphicsPipe *pipe, GraphicsStateGuardian *gsg,
|
||||
const FrameBufferProperties &fbprops) {
|
||||
nassertr(_window == (GraphicsOutput *)NULL, _window);
|
||||
|
||||
static int next_window_index = 1;
|
||||
@ -155,9 +156,8 @@ open_window(const WindowProperties &props, int flags, GraphicsEngine *engine,
|
||||
string name = stream.str();
|
||||
|
||||
_window = 0;
|
||||
GraphicsOutput *winout =
|
||||
engine->make_output(pipe, name, 0,
|
||||
FrameBufferProperties::get_default(),
|
||||
GraphicsOutput *winout =
|
||||
engine->make_output(pipe, name, 0, fbprops,
|
||||
props, flags, gsg, NULL);
|
||||
if (winout != (GraphicsOutput *)NULL) {
|
||||
_window = winout;
|
||||
|
@ -63,7 +63,9 @@ public:
|
||||
protected:
|
||||
GraphicsOutput *open_window(const WindowProperties &props, int flags,
|
||||
GraphicsEngine *engine, GraphicsPipe *pipe,
|
||||
GraphicsStateGuardian *gsg = NULL);
|
||||
GraphicsStateGuardian *gsg = NULL,
|
||||
const FrameBufferProperties &fbprops =
|
||||
FrameBufferProperties::get_default());
|
||||
void close_window();
|
||||
|
||||
public:
|
||||
|
Loading…
x
Reference in New Issue
Block a user