mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-28 07:48:37 -04:00
*** empty log message ***
This commit is contained in:
parent
9a24491c0e
commit
134d6d8a46
@ -99,11 +99,11 @@ GuiManager* GuiManager::get_ptr(GraphicsWindow* w, MouseAndKeyboard* mak) {
|
||||
frust2d.make_ortho_2D();
|
||||
cam->set_projection(OrthoProjection(frust2d));
|
||||
GraphicsChannel *chan = w->get_channel(0); // root/full-window channel
|
||||
nassertv(chan != (GraphicsChannel*)0L);
|
||||
nassertr(chan != (GraphicsChannel*)0L, NULL);
|
||||
GraphicsLayer *layer = chan->make_layer();
|
||||
nassertv(layer != (GraphicsLayer*)0L);
|
||||
nassertr(layer != (GraphicsLayer*)0L, NULL);
|
||||
DisplayRegion *dr = layer->make_display_region();
|
||||
nassertv(dr != (DisplayRegion*)0L);
|
||||
nassertr(dr != (DisplayRegion*)0L, NULL);
|
||||
dr->set_camera(cam);
|
||||
if (gui_cat->is_debug())
|
||||
gui_cat->debug() << "2D layer created" << endl;
|
||||
|
Loading…
x
Reference in New Issue
Block a user