GPAC
Open Source Multimedia Framework. For more information, check out http://gpac.wp.mines-telecom.fr
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
visual_manager_3d.c File Reference
#include "visual_manager.h"
#include "texturing.h"
#include "nodes_stacks.h"
#include <gpac/options.h>
+ Include dependency graph for visual_manager_3d.c:

Functions

Drawable3Ddrawable_3d_new (GF_Node *node)
 
void drawable_3d_del (GF_Node *n)
 
void drawable3d_check_focus_highlight (GF_Node *node, GF_TraverseState *tr_state, GF_BBox *orig_bounds)
 
static void visual_3d_setup_traversing_state (GF_VisualManager *visual, GF_TraverseState *tr_state)
 
void visual_3d_viewpoint_change (GF_TraverseState *tr_state, GF_Node *vp, Bool animate_change, Fixed fieldOfView, SFVec3f position, SFRotation orientation, SFVec3f local_center)
 
void visual_3d_setup_projection (GF_TraverseState *tr_state, Bool is_layer)
 
static void visual_3d_draw_background (GF_TraverseState *tr_state, u32 layer_type)
 
static void visual_3d_draw_background_on_axis (GF_TraverseState *tr_state, u32 layer_type)
 
void visual_3d_init_draw (GF_TraverseState *tr_state, u32 layer_type)
 
static Bool visual_3d_has_alpha (GF_TraverseState *tr_state, GF_Node *geom)
 
void visual_3d_register_context (GF_TraverseState *tr_state, GF_Node *geometry)
 
void visual_3d_flush_contexts (GF_VisualManager *visual, GF_TraverseState *tr_state)
 
static void visual_3d_draw_node (GF_TraverseState *tr_state, GF_Node *root_node)
 
Bool visual_3d_draw_frame (GF_VisualManager *visual, GF_Node *root, GF_TraverseState *tr_state, Bool is_root_visual)
 
static void reset_collide_cursor (GF_Compositor *compositor)
 
void visual_3d_check_collisions (GF_TraverseState *tr_state, GF_ChildNodeItem *node_list)
 
Bool visual_3d_node_cull (GF_TraverseState *tr_state, GF_BBox *bbox, Bool skip_near)
 
void visual_3d_pick_node (GF_VisualManager *visual, GF_TraverseState *tr_state, GF_Event *ev, GF_ChildNodeItem *children)
 
void visual_3d_vrml_drawable_pick (GF_Node *n, GF_TraverseState *tr_state, GF_Mesh *mesh, Drawable *drawable)
 
void visual_3d_vrml_drawable_collide (GF_Node *node, GF_TraverseState *tr_state)
 
static GF_TextureHandlervisual_3d_setup_texture_2d (GF_TraverseState *tr_state, DrawAspect2D *asp, GF_Mesh *mesh)
 
void visual_3d_set_2d_strike (GF_TraverseState *tr_state, DrawAspect2D *asp)
 
void visual_3d_draw_2d_with_aspect (Drawable *st, GF_TraverseState *tr_state, DrawAspect2D *asp)
 
void visual_3d_draw_2d (Drawable *st, GF_TraverseState *tr_state)
 
void visual_3d_draw_from_context (DrawableContext *ctx, GF_TraverseState *tr_state)
 
static Bool visual_3d_setup_material (GF_TraverseState *tr_state, u32 mesh_type, Fixed *diffuse_alpha)
 
Bool visual_3d_setup_texture (GF_TraverseState *tr_state, Fixed diffuse_alpha)
 
void visual_3d_disable_texture (GF_TraverseState *tr_state)
 
Bool visual_3d_setup_appearance (GF_TraverseState *tr_state)
 
void visual_3d_draw (GF_TraverseState *tr_state, GF_Mesh *mesh)
 

Variables

static const char * szPlaneNames []
 

Function Documentation

Drawable3D* drawable_3d_new ( GF_Node node)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void drawable_3d_del ( GF_Node n)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void drawable3d_check_focus_highlight ( GF_Node node,
GF_TraverseState *  tr_state,
GF_BBox orig_bounds 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void visual_3d_setup_traversing_state ( GF_VisualManager *  visual,
GF_TraverseState *  tr_state 
)
static

+ Here is the caller graph for this function:

void visual_3d_viewpoint_change ( GF_TraverseState *  tr_state,
GF_Node vp,
Bool  animate_change,
Fixed  fieldOfView,
SFVec3f  position,
SFRotation  orientation,
SFVec3f  local_center 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void visual_3d_setup_projection ( GF_TraverseState *  tr_state,
Bool  is_layer 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void visual_3d_draw_background ( GF_TraverseState *  tr_state,
u32  layer_type 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void visual_3d_draw_background_on_axis ( GF_TraverseState *  tr_state,
u32  layer_type 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void visual_3d_init_draw ( GF_TraverseState *  tr_state,
u32  layer_type 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Bool visual_3d_has_alpha ( GF_TraverseState *  tr_state,
GF_Node geom 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void visual_3d_register_context ( GF_TraverseState *  tr_state,
GF_Node geometry 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void visual_3d_flush_contexts ( GF_VisualManager *  visual,
GF_TraverseState *  tr_state 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void visual_3d_draw_node ( GF_TraverseState *  tr_state,
GF_Node root_node 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool visual_3d_draw_frame ( GF_VisualManager *  visual,
GF_Node root,
GF_TraverseState *  tr_state,
Bool  is_root_visual 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void reset_collide_cursor ( GF_Compositor *  compositor)
static

+ Here is the caller graph for this function:

void visual_3d_check_collisions ( GF_TraverseState *  tr_state,
GF_ChildNodeItem node_list 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool visual_3d_node_cull ( GF_TraverseState *  tr_state,
GF_BBox bbox,
Bool  skip_near 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void visual_3d_pick_node ( GF_VisualManager *  visual,
GF_TraverseState *  tr_state,
GF_Event ev,
GF_ChildNodeItem children 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void visual_3d_vrml_drawable_pick ( GF_Node n,
GF_TraverseState *  tr_state,
GF_Mesh mesh,
Drawable *  drawable 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void visual_3d_vrml_drawable_collide ( GF_Node node,
GF_TraverseState *  tr_state 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_TextureHandler* visual_3d_setup_texture_2d ( GF_TraverseState *  tr_state,
DrawAspect2D *  asp,
GF_Mesh mesh 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void visual_3d_set_2d_strike ( GF_TraverseState *  tr_state,
DrawAspect2D *  asp 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void visual_3d_draw_2d_with_aspect ( Drawable *  st,
GF_TraverseState *  tr_state,
DrawAspect2D *  asp 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void visual_3d_draw_2d ( Drawable *  st,
GF_TraverseState *  tr_state 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void visual_3d_draw_from_context ( DrawableContext *  ctx,
GF_TraverseState *  tr_state 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Bool visual_3d_setup_material ( GF_TraverseState *  tr_state,
u32  mesh_type,
Fixed diffuse_alpha 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool visual_3d_setup_texture ( GF_TraverseState *  tr_state,
Fixed  diffuse_alpha 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void visual_3d_disable_texture ( GF_TraverseState *  tr_state)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool visual_3d_setup_appearance ( GF_TraverseState *  tr_state)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void visual_3d_draw ( GF_TraverseState *  tr_state,
GF_Mesh mesh 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

const char* szPlaneNames[]
static
Initial value:
=
{
"Near", "Far", "Left", "Right", "Bottom", "Top"
}