![]()  | 
  
    libgpac
    
   Documentation of the core library of GPAC 
   | 
  
 Include dependency graph for mesh.h:
 This graph shows which files directly or indirectly include this file:Data Structures | |
| struct | SFVec3f_bytes | 
| struct | GF_Vertex | 
| struct | GF_Mesh | 
| struct | GF_MeshSphereAngles | 
| struct | AABBNode | 
Macros | |
| #define | MESH_MAKE_COL(_argb) GF_COL_ARGB(FIX2INT(255*(_argb.alpha)), FIX2INT(255*(_argb.blue)), FIX2INT(255*(_argb.green)), FIX2INT(255*(_argb.red))) | 
| #define | MESH_GET_COLOR(_argb, _vertex) { _argb.alpha = INT2FIX(GF_COL_A((_vertex).color))/255; _argb.red = INT2FIX(GF_COL_R((_vertex).color))/255; _argb.green = INT2FIX(GF_COL_G((_vertex).color))/255; _argb.blue = INT2FIX(GF_COL_B((_vertex).color))/255; } | 
| #define | MESH_NORMAL_UNIT 1 | 
| #define | MESH_SET_NORMAL(_vertex, _nor) { SFVec3f_bytes __nor; __nor.x = (s8) (_nor.x*100); __nor.y = (s8) (_nor.y*100); __nor.z = (s8) (_nor.z*100); __nor.__dummy=0; _vertex.normal = __nor; } | 
| #define | MESH_GET_NORMAL(_nor, _vertex) { (_nor).x = _vertex.normal.x; (_nor).y = _vertex.normal.y; (_nor).z = _vertex.normal.z; gf_vec_norm(&(_nor)); } | 
| #define | MESH_TEX_OFFSET 12 | 
| #define | MESH_NORMAL_OFFSET 20 | 
| #define | MESH_COLOR_OFFSET 24 | 
| #define | IDX_TYPE u32 | 
Enumerations | |
| enum | { MESH_TRIANGLES = 0 , MESH_POINTSET , MESH_LINESET } | 
| enum | {  MESH_HAS_COLOR = 1 , MESH_IS_2D = 1<<1 , MESH_NO_TEXTURE = 1<<2 , MESH_IS_CW = 1<<3 , MESH_IS_SOLID = 1<<4 , MESH_IS_SMOOTHED = 1<<5 , MESH_HAS_ALPHA = 1<<6 , MESH_WAS_VISIBLE = 1<<7 }  | 
| enum | {  AABB_NONE , AABB_LONGEST , AABB_BALANCED , AABB_BEST_AXIS , AABB_SPLATTER , AABB_FIFTY }  | 
| struct GF_Vertex | 
 Collaboration diagram for GF_Vertex:| Data Fields | ||
|---|---|---|
| SFVec3f | pos | |
| SFVec2f | texcoords | |
| SFVec3f_bytes | normal | |
| u32 | color | |
| struct GF_Mesh | 
| struct AABBNode | 
| #define MESH_MAKE_COL | ( | _argb | ) | GF_COL_ARGB(FIX2INT(255*(_argb.alpha)), FIX2INT(255*(_argb.blue)), FIX2INT(255*(_argb.green)), FIX2INT(255*(_argb.red))) | 
| #define MESH_GET_COLOR | ( | _argb, | |
| _vertex | |||
| ) | { _argb.alpha = INT2FIX(GF_COL_A((_vertex).color))/255; _argb.red = INT2FIX(GF_COL_R((_vertex).color))/255; _argb.green = INT2FIX(GF_COL_G((_vertex).color))/255; _argb.blue = INT2FIX(GF_COL_B((_vertex).color))/255; } | 
| #define MESH_NORMAL_UNIT 1 | 
| #define MESH_SET_NORMAL | ( | _vertex, | |
| _nor | |||
| ) | { SFVec3f_bytes __nor; __nor.x = (s8) (_nor.x*100); __nor.y = (s8) (_nor.y*100); __nor.z = (s8) (_nor.z*100); __nor.__dummy=0; _vertex.normal = __nor; } | 
| #define MESH_GET_NORMAL | ( | _nor, | |
| _vertex | |||
| ) | { (_nor).x = _vertex.normal.x; (_nor).y = _vertex.normal.y; (_nor).z = _vertex.normal.z; gf_vec_norm(&(_nor)); } | 
| #define MESH_TEX_OFFSET 12 | 
| #define MESH_NORMAL_OFFSET 20 | 
| #define MESH_COLOR_OFFSET 24 | 
| #define IDX_TYPE u32 | 
| anonymous enum | 
| anonymous enum | 
| GF_Mesh * new_mesh | ( | ) | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| void mesh_free | ( | GF_Mesh * | mesh | ) | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| void mesh_reset | ( | GF_Mesh * | mesh | ) | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| void mesh_update_bounds | ( | GF_Mesh * | mesh | ) | 
 Here is the call graph for this function:
 Here is the caller graph for this function:
 Here is the caller graph for this function:| void mesh_set_vertex | ( | GF_Mesh * | mesh, | 
| Fixed | x, | ||
| Fixed | y, | ||
| Fixed | z, | ||
| Fixed | nx, | ||
| Fixed | ny, | ||
| Fixed | nz, | ||
| Fixed | u, | ||
| Fixed | v | ||
| ) | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| void mesh_set_point | ( | GF_Mesh * | mesh, | 
| Fixed | x, | ||
| Fixed | y, | ||
| Fixed | z, | ||
| SFColorRGBA | col | ||
| ) | 
 Here is the caller graph for this function:
 Here is the call graph for this function:
 Here is the caller graph for this function:
 Here is the call graph for this function:
 Here is the caller graph for this function:| void mesh_recompute_normals | ( | GF_Mesh * | mesh | ) | 
 Here is the call graph for this function:
 Here is the caller graph for this function:
 Here is the caller graph for this function:| void mesh_new_unit_bbox | ( | GF_Mesh * | mesh | ) | 
 Here is the call graph for this function:
 Here is the caller graph for this function:
 Here is the call graph for this function:
 Here is the caller graph for this function:
 Here is the call graph for this function:
 Here is the caller graph for this function:
 Here is the call graph for this function:
 Here is the caller graph for this function:
 Here is the call graph for this function:
 Here is the caller graph for this function:| void mesh_new_cylinder | ( | GF_Mesh * | mesh, | 
| Fixed | height, | ||
| Fixed | radius, | ||
| Bool | bottom, | ||
| Bool | side, | ||
| Bool | top, | ||
| Bool | low_res | ||
| ) | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| void mesh_new_cone | ( | GF_Mesh * | mesh, | 
| Fixed | height, | ||
| Fixed | radius, | ||
| Bool | bottom, | ||
| Bool | side, | ||
| Bool | low_res | ||
| ) | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| void mesh_new_sphere | ( | GF_Mesh * | mesh, | 
| Fixed | radius, | ||
| Bool | low_res, | ||
| GF_MeshSphereAngles * | angles | ||
| ) | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| void mesh_new_ils | ( | GF_Mesh * | mesh, | 
| GF_Node * | __coord, | ||
| MFInt32 * | coordIndex, | ||
| GF_Node * | __color, | ||
| MFInt32 * | colorIndex, | ||
| Bool | colorPerVertex, | ||
| Bool | do_close | ||
| ) | 
 Here is the call graph for this function:
 Here is the caller graph for this function:
 Here is the call graph for this function:
 Here is the caller graph for this function:
 Here is the call graph for this function:
 Here is the caller graph for this function:
 Here is the call graph for this function:
 Here is the caller graph for this function:
 Here is the call graph for this function:
 Here is the caller graph for this function:
 Here is the call graph for this function:
 Here is the caller graph for this function:
 Here is the call graph for this function:
 Here is the caller graph for this function:
 Here is the call graph for this function:
 Here is the caller graph for this function:| void mesh_extrude_path | ( | GF_Mesh * | mesh, | 
| GF_Path * | path, | ||
| MFVec3f * | thespine, | ||
| Fixed | creaseAngle, | ||
| Bool | begin_cap, | ||
| Bool | end_cap, | ||
| MFRotation * | spine_ori, | ||
| MFVec2f * | spine_scale, | ||
| Bool | tx_along_spine | ||
| ) | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| void mesh_extrude_path_ext | ( | GF_Mesh * | mesh, | 
| GF_Path * | path, | ||
| MFVec3f * | thespine, | ||
| Fixed | creaseAngle, | ||
| Fixed | min_cx, | ||
| Fixed | min_cy, | ||
| Fixed | width_cx, | ||
| Fixed | width_cy, | ||
| Bool | begin_cap, | ||
| Bool | end_cap, | ||
| MFRotation * | spine_ori, | ||
| MFVec2f * | spine_scale, | ||
| Bool | tx_along_spine | ||
| ) | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| Bool gf_mesh_intersect_ray | ( | GF_Mesh * | mesh, | 
| GF_Ray * | r, | ||
| SFVec3f * | outPoint, | ||
| SFVec3f * | outNormal, | ||
| SFVec2f * | outTexCoords | ||
| ) | 
 Here is the call graph for this function:
 Here is the caller graph for this function:
 Here is the call graph for this function:
 Here is the caller graph for this function:| void gf_mesh_build_aabbtree | ( | GF_Mesh * | mesh | ) | 
 Here is the call graph for this function:
 Here is the caller graph for this function: