libgpac
Documentation of the core library of GPAC
visual_manager.h File Reference
#include "drawable.h"
#include "visual_manager_2d.h"
#include "visual_manager_3d.h"
+ Include dependency graph for visual_manager.h:
+ This graph shows which files directly or indirectly include this file:

Data Structures

struct  GF_GLProgInstance
 
struct  GF_VisualManager
 

Macros

#define GF_GL_NUM_OF_FLAGS   6
 
#define GF_GL_NB_FRAG_SHADERS   (1<<(GF_GL_NUM_OF_FLAGS-1) )
 
#define GF_GL_NB_VERT_SHADERS   (1<<(GF_GL_NUM_OF_FLAGS-2) )
 
#define GF_SHADERID   u32
 

Enumerations

enum  {
  GF_GL_HAS_TEXTURE = 1 , GF_GL_HAS_LIGHT = (1<<1) , GF_GL_HAS_COLOR = (1<<2) , GF_GL_HAS_CLIP = (1<<3) ,
  GF_GL_IS_YUV = (1<<4) , GF_GL_IS_ExternalOES = (1<<5)
}
 
enum  { GF_3D_CAMERA_STRAIGHT = 0 , GF_3D_CAMERA_OFFAXIS , GF_3D_CAMERA_LINEAR , GF_3D_CAMERA_CIRCULAR }
 

Functions

GF_VisualManager * visual_new (GF_Compositor *compositor)
 
void visual_del (GF_VisualManager *visual)
 
Bool visual_draw_frame (GF_VisualManager *visual, GF_Node *root, GF_TraverseState *tr_state, Bool is_root_visual)
 
Bool visual_execute_event (GF_VisualManager *visual, GF_TraverseState *tr_state, GF_Event *ev, GF_ChildNodeItem *children)
 
Bool visual_get_size_info (GF_TraverseState *tr_state, Fixed *surf_width, Fixed *surf_height)
 
void visual_clean_contexts (GF_VisualManager *visual)
 
void visual_reset_graphics (GF_VisualManager *visual)
 
GF_GLProgInstancevisual_3d_check_program_exists (GF_VisualManager *root_visual, u32 flags, u32 pix_fmt)
 

Data Structure Documentation

◆ GF_GLProgInstance

struct GF_GLProgInstance
Data Fields
GF_SHADERID vertex
GF_SHADERID fragment
GF_SHADERID prog
u32 flags
u32 pix_fmt

Macro Definition Documentation

◆ GF_GL_NUM_OF_FLAGS

#define GF_GL_NUM_OF_FLAGS   6

◆ GF_GL_NB_FRAG_SHADERS

#define GF_GL_NB_FRAG_SHADERS   (1<<(GF_GL_NUM_OF_FLAGS-1) )

◆ GF_GL_NB_VERT_SHADERS

#define GF_GL_NB_VERT_SHADERS   (1<<(GF_GL_NUM_OF_FLAGS-2) )

◆ GF_SHADERID

#define GF_SHADERID   u32

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
GF_GL_HAS_TEXTURE 
GF_GL_HAS_LIGHT 
GF_GL_HAS_COLOR 
GF_GL_HAS_CLIP 
GF_GL_IS_YUV 
GF_GL_IS_ExternalOES 

◆ anonymous enum

anonymous enum
Enumerator
GF_3D_CAMERA_STRAIGHT 
GF_3D_CAMERA_OFFAXIS 
GF_3D_CAMERA_LINEAR 
GF_3D_CAMERA_CIRCULAR 

Function Documentation

◆ visual_new()

GF_VisualManager* visual_new ( GF_Compositor *  compositor)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ visual_del()

void visual_del ( GF_VisualManager *  visual)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ visual_draw_frame()

Bool visual_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:

◆ visual_execute_event()

Bool visual_execute_event ( 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:

◆ visual_get_size_info()

Bool visual_get_size_info ( GF_TraverseState *  tr_state,
Fixed surf_width,
Fixed surf_height 
)
+ Here is the caller graph for this function:

◆ visual_clean_contexts()

void visual_clean_contexts ( GF_VisualManager *  visual)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ visual_reset_graphics()

void visual_reset_graphics ( GF_VisualManager *  visual)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ visual_3d_check_program_exists()

GF_GLProgInstance* visual_3d_check_program_exists ( GF_VisualManager *  root_visual,
u32  flags,
u32  pix_fmt 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function: