Browsing StarfallEx's section
โ† Back to ACE
Back to StarfallEx

SFEX.mesh.generate

C๐Ÿท๏ธ Mesh

Part of StarfallEx namespace

๐Ÿ”— External
mesh.generate(mesh_obj, prim_type, prim_count, func)
View on GitHub|lua/starfall/libs_sh/mesh.lua:1024
๐Ÿ“‹ Has LDoc๐Ÿ‘๏ธ 0 viewsUpdated 2 months ago

Description

Generates mesh data. If an Mesh object is passed, it will populate that mesh with the data. Otherwise, it will render directly to renderer.

Parameters

NameTypeDescription
mesh_obj?MeshOptional Mesh object, mesh to build. (default: nil)
prim_typenumberInt, primitive type, see MATERIAL
prim_countnumberInt, the amount of primitives
funcfunctionThe function provided that will generate the mesh vertices

Returns

No return values documented.

Examples

No examples available.

Used In

No usages found in the codebase.