mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
build tinysdl with new engine rules
This commit is contained in:
parent
19d45ffbfa
commit
8b407bb654
@ -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);
|
||||
}
|
||||
|
||||
|
@ -42,6 +42,7 @@ protected:
|
||||
const FrameBufferProperties &fb_prop,
|
||||
const WindowProperties &win_prop,
|
||||
int flags,
|
||||
GraphicsEngine *engine,
|
||||
GraphicsStateGuardian *gsg,
|
||||
GraphicsOutput *host,
|
||||
int retry,
|
||||
|
@ -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 {
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user