Add FrameBufferProperties argument to WindowFramework

This commit is contained in:
rdb 2014-03-20 22:56:53 +00:00
parent 32ad6785f2
commit 528a607f4a
2 changed files with 7 additions and 5 deletions

View File

@ -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;
@ -156,8 +157,7 @@ open_window(const WindowProperties &props, int flags, GraphicsEngine *engine,
_window = 0;
GraphicsOutput *winout =
engine->make_output(pipe, name, 0,
FrameBufferProperties::get_default(),
engine->make_output(pipe, name, 0, fbprops,
props, flags, gsg, NULL);
if (winout != (GraphicsOutput *)NULL) {
_window = winout;

View File

@ -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: