|
VuoSubmesh | VuoSubmesh_make (unsigned int vertexCount, unsigned int elementCount) |
| Allocates the vertex (position, normal, ...) and element arrays.
|
|
VuoSubmesh | VuoSubmesh_makeGl (unsigned int vertexCount, unsigned int combinedBuffer, unsigned int combinedBufferSize, void *normalOffset, void *tangentOffset, void *bitangentOffset, void *textureCoordinateOffset, unsigned int elementCount, unsigned int elementBuffer, unsigned int elementBufferSize, VuoMesh_ElementAssemblyMethod elementAssemblyMethod) |
| Creates a VuoSubmesh consisting of data that's already been uploaded to the GPU.
|
|
unsigned long | VuoSubmesh_getGlMode (VuoSubmesh submesh) |
| Returns the GL mode (e.g., GL_TRIANGLES ) that submesh should be interpreted as.
|
|
unsigned long | VuoSubmesh_getSplitPrimitiveCount (VuoSubmesh submesh) |
| Returns the number of split primitives in submesh .
|
|
unsigned long | VuoSubmesh_getSplitVertexCount (VuoSubmesh submesh) |
| Returns the number of split vertices in submesh .
|
|
void | VuoMesh_free (void *value) |
| Frees the mesh and each of its submeshes, including the vertex and element arrays within it.
|
|
VuoMesh | VuoMesh_make (unsigned int submeshCount) |
| Creates and registers a mesh with empty slots for the given number of sub-meshes.
|
|
void | VuoMesh_upload (VuoMesh mesh) |
| Uploads mesh to the GPU.
|
|
VuoMesh | VuoMesh_makeFromSingleSubmesh (VuoSubmesh submesh) |
| Creates and registers a mesh with space for one submesh, and sets it to the given submesh.
|
|
static VuoMesh | VuoMesh_makeSingletonFromSingleSubmesh (VuoSubmesh submesh) |
| Creates and registers a singleton mesh with space for one submesh, and sets it to the given submesh.
|
|
static VuoMesh | VuoMesh_makeQuadWithNormalsInternal (void) |
| Returns a quad with dimensions 1x1, on the XY plane, centered at the origin.
|
|
static VuoMesh | VuoMesh_makeQuadWithoutNormalsInternal (void) |
| Returns a quad with dimensions 1x1, on the XY plane, centered at the origin.
|
|
static VuoMesh | VuoMesh_makeEquilateralTriangleInternal (void) |
| Returns an equilateral triangle with bottom edge length 1, pointing upward on the XY plane, centered at the origin.
|
|
VuoMesh | VuoMesh_makeQuad (void) |
| Returns a quad with dimensions 1x1, on the XY plane, centered at the origin.
|
|
VuoMesh | VuoMesh_makeQuadWithoutNormals (void) |
| Returns a quad with dimensions 1x1, on the XY plane, centered at the origin.
|
|
VuoMesh | VuoMesh_makeEquilateralTriangle (void) |
| Returns an equilateral triangle with bottom edge length 1, pointing upward on the XY plane, centered at the origin.
|
|
VuoMesh | VuoMesh_make_VuoPoint2d (VuoList_VuoPoint2d positions, VuoMesh_ElementAssemblyMethod elementAssemblyMethod, VuoReal primitiveSize) |
| Returns a VuoMesh consisting of the given positions and element assembly method.
|
|
VuoMesh | VuoMesh_make_VuoPoint3d (VuoList_VuoPoint3d positions, VuoMesh_ElementAssemblyMethod elementAssemblyMethod, VuoReal primitiveSize) |
| Returns a VuoMesh consisting of the given positions and element assembly method.
|
|
VuoMesh | VuoMesh_copy (const VuoMesh mesh) |
| Makes a copy of the mesh and its submeshes.
|
|
VuoMesh_ElementAssemblyMethod | VuoMesh_elementAssemblyMethodFromCString (const char *elementAssemblyMethodString) |
| Returns the VuoMesh_ElementAssemblyMethod corresponding with the string elementAssemblyMethodString .
|
|
const char * | VuoMesh_cStringForElementAssemblyMethod (VuoMesh_ElementAssemblyMethod elementAssemblyMethod) |
| Returns a string constant representing elementAssemblyMethod .
|
|
VuoPoint4d * | extractElements (CGLContextObj cgl_ctx, VuoSubmesh *submesh, unsigned int vertexCount, unsigned int bufferCount, unsigned int bufferIndex) |
| Pulls an element array from gl buffer.
|
|
void | VuoSubmeshMesh_download (VuoSubmesh *submesh) |
| Copies element data from GPU back to the CPU.
|
|
VuoBox | VuoMesh_bounds (const VuoMesh v, float matrix[16]) |
| Iterates through mesh's vertices finding the center and extents.
|
|
VuoMesh | VuoMesh_valueFromJson (json_object *js) |
| Decodes the JSON object js to create a new value.
|
|
json_object * | VuoMesh_jsonFromValue (const VuoMesh value) |
| Encodes value as a JSON object.
|
|
char * | VuoSubmesh_summaryFromValue (const VuoSubmesh value) |
| A brief summary of the contents of this submesh.
|
|
char * | VuoMesh_summaryFromValue (const VuoMesh value) |
| A brief summary of the contents of this mesh, including a list of sub-meshes.
|
|