Skip to content

Instantly share code, notes, and snippets.

@barcharcraz
Last active August 29, 2015 13:58
Show Gist options
  • Save barcharcraz/f7ed665fa352fa7917cf to your computer and use it in GitHub Desktop.
Save barcharcraz/f7ed665fa352fa7917cf to your computer and use it in GitHub Desktop.
proc addStaticMesh*(scene: SceneId, model, texture: string, pos: TVec3f): EntityId {.discardable.} =
result = genEntity()
scene.add(result)
result.add(loadMesh(model))
result.add(getTexture(texture))
result.add(initMaterial())
result.add(initTransform(pos))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment