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
3af5e81985
commit
f497841656
1
direct/src/showbase/showBase.N
Normal file
1
direct/src/showbase/showBase.N
Normal file
@ -0,0 +1 @@
|
||||
forcetype ConfigShowbase
|
@ -36,6 +36,10 @@
|
||||
#include <appTraverser.h>
|
||||
#include <collisionTraverser.h>
|
||||
|
||||
ConfigureDef(config_showbase);
|
||||
ConfigureFn(config_showbase) {
|
||||
}
|
||||
|
||||
static CollisionTraverser *collision_traverser = NULL;
|
||||
|
||||
void render_frame(GraphicsPipe *pipe,
|
||||
@ -260,3 +264,11 @@ void toggle_texture(NodeAttributes &initial_state) {
|
||||
initial_state.set_attribute(TextureTransition::get_class_type(), ta);
|
||||
}
|
||||
}
|
||||
|
||||
// Returns the configure object for accessing config variables from a
|
||||
// scripting language.
|
||||
ConfigShowbase &
|
||||
get_config_showbase() {
|
||||
return config_showbase;
|
||||
}
|
||||
|
||||
|
@ -15,6 +15,10 @@
|
||||
#include <nodeRelation.h>
|
||||
#include <pointerTo.h>
|
||||
#include <nodePath.h>
|
||||
#include <dconfig.h>
|
||||
|
||||
ConfigureDecl(config_showbase, EXPCL_DIRECT, EXPTP_DIRECT);
|
||||
typedef Config::Config<ConfigureGetConfig_config_showbase> ConfigShowbase;
|
||||
|
||||
class CollisionTraverser;
|
||||
|
||||
@ -36,4 +40,7 @@ EXPCL_DIRECT void toggle_wireframe(NodeAttributes &initial_state);
|
||||
EXPCL_DIRECT void toggle_texture(NodeAttributes &initial_state);
|
||||
EXPCL_DIRECT void toggle_backface(NodeAttributes &initial_state);
|
||||
|
||||
EXPCL_DIRECT ConfigShowbase &get_config_showbase();
|
||||
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user