build tinysdl with new engine rules

This commit is contained in:
David Rose 2009-03-07 22:06:24 +00:00
parent 19d45ffbfa
commit 8b407bb654
4 changed files with 13 additions and 11 deletions

View File

@ -91,6 +91,7 @@ make_output(const string &name,
const FrameBufferProperties &fb_prop,
const WindowProperties &win_prop,
int flags,
GraphicsEngine *engine,
GraphicsStateGuardian *gsg,
GraphicsOutput *host,
int retry,
@ -116,7 +117,7 @@ make_output(const string &name,
((flags&BF_can_bind_every)!=0)) {
return NULL;
}
return new TinySDLGraphicsWindow(this, name, fb_prop, win_prop,
return new TinySDLGraphicsWindow(engine, this, name, fb_prop, win_prop,
flags, gsg, host);
}

View File

@ -42,6 +42,7 @@ protected:
const FrameBufferProperties &fb_prop,
const WindowProperties &win_prop,
int flags,
GraphicsEngine *engine,
GraphicsStateGuardian *gsg,
GraphicsOutput *host,
int retry,

View File

@ -32,14 +32,14 @@ TypeHandle TinySDLGraphicsWindow::_type_handle;
// Description:
////////////////////////////////////////////////////////////////////
TinySDLGraphicsWindow::
TinySDLGraphicsWindow(GraphicsPipe *pipe,
TinySDLGraphicsWindow(GraphicsEngine *engine, GraphicsPipe *pipe,
const string &name,
const FrameBufferProperties &fb_prop,
const WindowProperties &win_prop,
int flags,
GraphicsStateGuardian *gsg,
GraphicsOutput *host) :
GraphicsWindow(pipe, name, fb_prop, win_prop, flags, gsg, host)
GraphicsWindow(engine, pipe, name, fb_prop, win_prop, flags, gsg, host)
{
_screen = NULL;
_frame_buffer = NULL;
@ -304,7 +304,7 @@ open_window() {
TinyGraphicsStateGuardian *tinygsg;
if (_gsg == 0) {
// There is no old gsg. Create a new one.
tinygsg = new TinyGraphicsStateGuardian(_pipe, NULL);
tinygsg = new TinyGraphicsStateGuardian(_engine, _pipe, NULL);
_gsg = tinygsg;
} else {

View File

@ -31,7 +31,7 @@
////////////////////////////////////////////////////////////////////
class EXPCL_TINYDISPLAY TinySDLGraphicsWindow : public GraphicsWindow {
public:
TinySDLGraphicsWindow(GraphicsPipe *pipe,
TinySDLGraphicsWindow(GraphicsEngine *engine, GraphicsPipe *pipe,
const string &name,
const FrameBufferProperties &fb_prop,
const WindowProperties &win_prop,