From 6ffb06180634889de5401fd3e66b61441faffa41 Mon Sep 17 00:00:00 2001 From: Joe Shochet Date: Fri, 1 Dec 2000 23:36:08 +0000 Subject: [PATCH] *** empty log message *** --- direct/src/showbase/showBase.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/direct/src/showbase/showBase.cxx b/direct/src/showbase/showBase.cxx index 540345f6cc..d9ac6281c0 100644 --- a/direct/src/showbase/showBase.cxx +++ b/direct/src/showbase/showBase.cxx @@ -42,6 +42,10 @@ ConfigureFn(config_showbase) { static CollisionTraverser *collision_traverser = NULL; +// Default channel config +std::string chan_config = "single"; +std::string window_title = "Panda3D"; + void render_frame(GraphicsPipe *pipe, NodeAttributes &initial_state) { int num_windows = pipe->get_num_windows(); @@ -140,7 +144,11 @@ PT(GraphicsWindow) make_graphics_window(GraphicsPipe *pipe, override.setField(ChanCfgOverrides::Mask, ((unsigned int)(W_DOUBLE|W_DEPTH|W_MULTISAMPLE))); - main_win = ChanConfig(pipe, "single", camera, render, override); + std::string title = config_showbase.GetString("window-title", window_title); + override.setField(ChanCfgOverrides::Title, title); + + std::string conf = config_showbase.GetString("chan-config", chan_config); + main_win = ChanConfig(pipe, conf, camera, render, override); assert(main_win != (GraphicsWindow*)0L); DisplayCallback *dcb = new DisplayCallback(pipe, render, &initial_state);