make_callback_gsg()

This commit is contained in:
David Rose 2012-11-20 12:11:14 +00:00
parent 1733b1abd9
commit 779fceafdd
2 changed files with 15 additions and 0 deletions

View File

@ -62,6 +62,7 @@ protected:
GraphicsOutput *host,
int retry,
bool &precertify);
virtual PT(GraphicsStateGuardian) make_callback_gsg(GraphicsEngine *engine);
private:
void load_display_information();

View File

@ -380,3 +380,17 @@ make_output(const string &name,
// Nothing else left to try.
return NULL;
}
////////////////////////////////////////////////////////////////////
// Function: CocoaGraphicsPipe::make_callback_gsg
// Access: Protected, Virtual
// Description: This is called when make_output() is used to create a
// CallbackGraphicsWindow. If the GraphicsPipe can
// construct a GSG that's not associated with any
// particular window object, do so now, assuming the
// correct graphics context has been set up externally.
////////////////////////////////////////////////////////////////////
PT(GraphicsStateGuardian) CocoaGraphicsPipe::
make_callback_gsg(GraphicsEngine *engine) {
return new CocoaGraphicsStateGuardian(engine, this, NULL);
}