Use int instead of mjtGeom for public API.

PiperOrigin-RevId: 934766146
Change-Id: Iefaf32834ecbe12fe03c932ff593153277fc8f48
This commit is contained in:
Haroon Qureshi
2026-06-19 00:12:47 -07:00
committed by Copybara-Service
parent 492585ca7a
commit 4ec843d70d
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -230,10 +230,10 @@ void mjrf_setRenderableMesh(mjrfRenderable* renderable, const mjrfMesh* mesh,
->SetMesh(mujoco::Mesh::downcast(mesh), elem_offset, elem_count);
}
void mjrf_setRenderableGeomMesh(mjrfRenderable* renderable, mjtGeom type,
void mjrf_setRenderableGeomMesh(mjrfRenderable* renderable, int type,
int nstack, int nslice, int nquad) {
mujoco::Renderable::downcast(renderable)
->SetGeomMesh(type, nstack, nslice, nquad);
->SetGeomMesh(static_cast<mjtGeom>(type), nstack, nslice, nquad);
}
void mjrf_setRenderableMaterial(mjrfRenderable* renderable,
+1 -1
View File
@@ -439,7 +439,7 @@ void mjrf_setRenderableMesh(mjrfRenderable* renderable, const mjrfMesh* mesh, in
// Sets the mesh of the renderable to a built-in mesh based on the geom type. Note: using the same
// parameters (nstack, nslice, nquad) will have better performance as the internal mesh data can be
// shared across renderables.
void mjrf_setRenderableGeomMesh(mjrfRenderable* renderable, mjtGeom type, int nstack, int nslice,
void mjrf_setRenderableGeomMesh(mjrfRenderable* renderable, int type, int nstack, int nslice,
int nquad);
// Sets the material properties and textures of the renderable.