mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-17 12:12:10 -04:00
*** empty log message ***
This commit is contained in:
parent
5bcdbdf7ee
commit
88d6d4469e
@ -57,10 +57,10 @@ class ShowBase:
|
|||||||
self.cam = self.camera.find('**/+Camera')
|
self.cam = self.camera.find('**/+Camera')
|
||||||
|
|
||||||
# Set up a 2-d layer for drawing things behind Gui labels.
|
# Set up a 2-d layer for drawing things behind Gui labels.
|
||||||
self.render2d = NodePath(setupPanda2d(self.win))
|
self.render2d = NodePath(setupPanda2d(self.win, "render2d"))
|
||||||
|
|
||||||
# Set up another 2-d layer for drawing the Gui labels themselves.
|
# Set up another 2-d layer for drawing the Gui labels themselves.
|
||||||
self.renderGui = NodePath(setupPanda2d(self.win))
|
self.renderGui = NodePath(setupPanda2d(self.win, "renderGui"))
|
||||||
|
|
||||||
# Set up an auxiliary 3-d layer for rendering floating heads
|
# Set up an auxiliary 3-d layer for rendering floating heads
|
||||||
# or other 3-d objects on top of text or widgets in the 2-d
|
# or other 3-d objects on top of text or widgets in the 2-d
|
||||||
|
@ -157,11 +157,11 @@ PT(GraphicsWindow) make_graphics_window(GraphicsPipe *pipe,
|
|||||||
// can contain 2-d geometry and will be rendered on top of the
|
// can contain 2-d geometry and will be rendered on top of the
|
||||||
// existing 3-d window. Returns the top node of the scene graph.
|
// existing 3-d window. Returns the top node of the scene graph.
|
||||||
NodePath
|
NodePath
|
||||||
setup_panda_2d(GraphicsWindow *win) {
|
setup_panda_2d(GraphicsWindow *win, const string &graph_name) {
|
||||||
PT(Node) render2d_top;
|
PT(Node) render2d_top;
|
||||||
|
|
||||||
render2d_top = new NamedNode("render2d_top");
|
render2d_top = new NamedNode(graph_name + "_top");
|
||||||
Node *render2d = new NamedNode("render2d");
|
Node *render2d = new NamedNode(graph_name);
|
||||||
RenderRelation *render2d_arc = new RenderRelation(render2d_top, render2d);
|
RenderRelation *render2d_arc = new RenderRelation(render2d_top, render2d);
|
||||||
|
|
||||||
// Set up some overrides to turn off certain properties which we
|
// Set up some overrides to turn off certain properties which we
|
||||||
|
@ -34,7 +34,7 @@ EXPCL_DIRECT PT(GraphicsWindow)
|
|||||||
NodeAttributes &initial_state
|
NodeAttributes &initial_state
|
||||||
);
|
);
|
||||||
|
|
||||||
EXPCL_DIRECT NodePath setup_panda_2d(GraphicsWindow *win);
|
EXPCL_DIRECT NodePath setup_panda_2d(GraphicsWindow *win, const string &name);
|
||||||
EXPCL_DIRECT void add_render_layer(GraphicsWindow *win, Node *render_top,
|
EXPCL_DIRECT void add_render_layer(GraphicsWindow *win, Node *render_top,
|
||||||
Camera *camera);
|
Camera *camera);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user