libgpac
Documentation of the core library of GPAC
|
import"evg.idl";
Public Member Functions | |
Mesh () | |
Mesh (Path path) | |
void | update_gl () |
void | draw (unsigned long vertex_attrib_location) |
void | draw (unsigned long vertex_attrib_location, unsigned long texture_attrib_location) |
void | draw (unsigned long vertex_attrib_location, unsigned long normal_attrib_location, unsigned long texture_attrib_location) |
void | draw (unsigned long vertex_attrib_location, unsigned long normal_attrib_location, unsigned long color_attrib_location, unsigned long texture_attrib_location) |
Mesh object to describe 3D graphics.
Mesh::Mesh | ( | ) |
Constructs an empty mesh
Mesh::Mesh | ( | Path | path | ) |
Constructs a mesh from a path
path | 2D path to use as source |
void Mesh::update_gl | ( | ) |
Updates underlying OpenGL vertex buffer objects
void Mesh::draw | ( | unsigned long | vertex_attrib_location | ) |
Draw mesh using current program
vertex_attrib_location | uniform location of vertex buffer attribute in program |
void Mesh::draw | ( | unsigned long | vertex_attrib_location, |
unsigned long | texture_attrib_location | ||
) |
Draw mesh using current program
vertex_attrib_location | uniform location of vertex buffer attribute in program |
texture_attrib_location | uniform location of texture coordinate buffer attribute in program |
void Mesh::draw | ( | unsigned long | vertex_attrib_location, |
unsigned long | normal_attrib_location, | ||
unsigned long | texture_attrib_location | ||
) |
Draw mesh using current program
vertex_attrib_location | uniform location of vertex buffer attribute in program |
normal_attrib_location | uniform location of normal buffer attribute in program |
texture_attrib_location | uniform location of texture coordinate buffer attribute in program |
void Mesh::draw | ( | unsigned long | vertex_attrib_location, |
unsigned long | normal_attrib_location, | ||
unsigned long | color_attrib_location, | ||
unsigned long | texture_attrib_location | ||
) |
Draw mesh using current program
vertex_attrib_location | uniform location of vertex buffer attribute in program |
normal_attrib_location | uniform location of normal buffer attribute in program |
color_attrib_location | uniform location of color buffer attribute in program |
texture_attrib_location | uniform location of texture coordinate buffer attribute in program |