Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

demo.cxx File Reference

#include "framework.h"
#include "eventHandler.h"
#include "chancfg.h"
#include "string"
#include "renderModeTransition.h"
#include "colorTransition.h"
#include "colorBlendTransition.h"
#include "cullFaceTransition.h"
#include "depthTestTransition.h"
#include "depthWriteTransition.h"
#include "textureTransition.h"
#include "textureApplyTransition.h"
#include "materialTransition.h"
#include "transformTransition.h"
#include "transparencyTransition.h"
#include "drawBoundsTransition.h"
#include "pruneTransition.h"
#include "get_rel_pos.h"
#include "boundingSphere.h"
#include "geomSphere.h"
#include "geomNode.h"
#include "notify.h"
#include "directionalLight.h"
#include "renderRelation.h"
#include "camera.h"
#include "frustum.h"
#include "textNode.h"
#include "colorMatrixTransition.h"
#include "alphaTransformTransition.h"
#include "lensFlareNode.h"
#include "texture.h"
#include "texturePool.h"
#include "spotlight.h"
#include "nodePath.h"
#include "pta_Colorf.h"
#include "pta_float.h"
#include "pt_Node.h"
#include "panda.h"

Go to the source code of this file.

Functions

 PT (GeomNode) geomnode
 PT (TextNode) label2d
void clear_highlight ()
void set_highlight ()
void event_up (CPT_Event)
void event_down (CPT_Event)
void event_left (CPT_Event)
void event_right (CPT_Event)
void event_fkey (CPT_Event event)
void event_B (CPT_Event event)
void enable_highlight ()
void disable_highlight ()
void event_h (CPT_Event)
bool attach_sky ()
void event_k (CPT_Event)
void event_a (CPT_Event)
void event_v (CPT_Event)
void event_L (CPT_Event)
void demo_keys (EventHandler &)
int main (int argc, char *argv[])

Variables

RenderRelation * first_arc
RenderRelation * highlight_arc = NULL
PT_NamedNode highlight_render_node
RenderRelation * current_arc = NULL
NodePath selected_node
PT_NamedNode render2d_top
RenderRelation * render2d_arc = NULL
PT_NamedNode render2d
PT_NamedNode sky = (NamedNode *)NULL
RenderRelation * sky_arc = (RenderRelation *)NULL
RenderRelation * flare_arc = (RenderRelation *)NULL


Function Documentation

bool attach_sky  )  [static]
 

Definition at line 341 of file demo.cxx.

References DCAST, loader, NULL, render, sky, and sky_arc.

Referenced by event_L(), and event_v().

void clear_highlight  )  [static]
 

Definition at line 103 of file demo.cxx.

References current_arc, NodePath::hide_bounds(), NULL, and selected_node.

Referenced by disable_highlight(), event_down(), event_left(), event_right(), and event_up().

void demo_keys EventHandler  ) 
 

Definition at line 479 of file demo.cxx.

References EventHandler::add_hook(), event_a(), event_B(), event_down(), event_fkey(), event_h(), event_handler, event_k(), event_L(), event_left(), event_right(), event_up(), and event_v().

Referenced by main().

void disable_highlight  )  [static]
 

Definition at line 326 of file demo.cxx.

References clear_highlight(), and selected_node.

Referenced by event_h().

void enable_highlight  )  [static]
 

Definition at line 285 of file demo.cxx.

References NodePath::get_child(), NodePath::get_num_children(), highlight_arc, highlight_render_node, NULL, render, root, selected_node, and set_highlight().

Referenced by event_h().

void event_a CPT_Event   )  [static]
 

Definition at line 370 of file demo.cxx.

References first_arc.

Referenced by demo_keys().

void event_B CPT_Event  event  )  [static]
 

Definition at line 273 of file demo.cxx.

References NodePath::ls(), and selected_node.

Referenced by demo_keys().

void event_down CPT_Event   )  [static]
 

Definition at line 145 of file demo.cxx.

References clear_highlight(), NodePath::get_child(), NodePath::get_num_children(), NodePath::is_empty(), selected_node, and set_highlight().

Referenced by demo_keys().

void event_fkey CPT_Event  event  )  [static]
 

Definition at line 199 of file demo.cxx.

References NodePath::clear_color(), NodePath::clear_color_scale(), NodePath::clear_transparency(), Colorf, selected_node, NodePath::set_color(), NodePath::set_color_scale(), and NodePath::set_transparency().

Referenced by demo_keys().

void event_h CPT_Event   )  [static]
 

Definition at line 333 of file demo.cxx.

References disable_highlight(), enable_highlight(), NodePath::is_empty(), and selected_node.

Referenced by demo_keys().

void event_k CPT_Event   )  [static]
 

Definition at line 353 of file demo.cxx.

References first_arc.

Referenced by demo_keys().

void event_L CPT_Event   )  [static]
 

Definition at line 407 of file demo.cxx.

References attach_sky(), PointerToArray< Colorf >::clear(), PointerToArray< float >::clear(), Colorf, flare_arc, TexturePool::load_texture(), NodePath::node(), PointerToArray< Colorf >::push_back(), PointerToArray< float >::push_back(), search(), and sky.

Referenced by demo_keys().

void event_left CPT_Event   )  [static]
 

Definition at line 155 of file demo.cxx.

References clear_highlight(), NodePath::get_child(), NodePath::get_num_children(), selected_node, and set_highlight().

Referenced by demo_keys().

void event_right CPT_Event   )  [static]
 

Definition at line 177 of file demo.cxx.

References clear_highlight(), NodePath::get_child(), NodePath::get_num_children(), selected_node, and set_highlight().

Referenced by demo_keys().

void event_up CPT_Event   )  [static]
 

Definition at line 136 of file demo.cxx.

References clear_highlight(), NodePath::get_node(), root, selected_node, and set_highlight().

Referenced by demo_keys().

void event_v CPT_Event   )  [static]
 

Definition at line 386 of file demo.cxx.

References attach_sky(), NodePath::clear_color_scale(), NodePath::clear_transparency(), search(), NodePath::set_color_scale(), NodePath::set_transparency(), and sky.

Referenced by demo_keys().

int main int  argc,
char *  argv[]
 

Definition at line 516 of file demo.cxx.

References define_keys, demo_keys(), framework_main(), init_libpanda(), init_libpandaegg(), and init_libpandagl().

PT TextNode   ) 
 

PT GeomNode   ) 
 

Definition at line 340 of file character.cxx.

void set_highlight  )  [static]
 

Definition at line 115 of file demo.cxx.

References current_arc, PandaNode::get_bound(), NodePath::get_mat(), highlight_arc, highlight_render_node, NodePath::node(), render, selected_node, and NodePath::show_bounds().

Referenced by enable_highlight(), event_down(), event_left(), event_right(), and event_up().


Variable Documentation

RenderRelation* current_arc = NULL
 

Definition at line 86 of file demo.cxx.

Referenced by clear_highlight(), and set_highlight().

RenderRelation* first_arc
 

Definition at line 73 of file demo.cxx.

Referenced by demo_keys(), event_a(), event_e(), event_h(), event_k(), event_m(), event_o(), event_p(), event_r(), min_shader_keys(), and shader_keys().

RenderRelation* flare_arc = (RenderRelation *)NULL
 

Definition at line 99 of file demo.cxx.

Referenced by event_L().

RenderRelation* highlight_arc = NULL
 

Definition at line 84 of file demo.cxx.

Referenced by enable_highlight(), and set_highlight().

PT_NamedNode highlight_render_node
 

Definition at line 85 of file demo.cxx.

Referenced by enable_highlight(), and set_highlight().

PT_NamedNode render2d
 

Definition at line 92 of file demo.cxx.

RenderRelation* render2d_arc = NULL
 

Definition at line 91 of file demo.cxx.

PT_NamedNode render2d_top
 

Definition at line 90 of file demo.cxx.

NodePath selected_node
 

Definition at line 88 of file demo.cxx.

Referenced by clear_highlight(), disable_highlight(), enable_highlight(), event_B(), event_down(), event_fkey(), event_h(), event_left(), event_right(), event_up(), and set_highlight().

PT_NamedNode sky = (NamedNode *)NULL
 

Definition at line 97 of file demo.cxx.

Referenced by attach_sky(), event_L(), and event_v().

RenderRelation* sky_arc = (RenderRelation *)NULL
 

Definition at line 98 of file demo.cxx.

Referenced by attach_sky().


Generated on Fri Apr 18 00:10:41 2003 for Panda by doxygen1.3