Use int instead of mjtGeom for public API.
PiperOrigin-RevId: 934766146 Change-Id: Iefaf32834ecbe12fe03c932ff593153277fc8f48
This commit is contained in:
committed by
Copybara-Service
parent
492585ca7a
commit
4ec843d70d
@@ -230,10 +230,10 @@ void mjrf_setRenderableMesh(mjrfRenderable* renderable, const mjrfMesh* mesh,
|
|||||||
->SetMesh(mujoco::Mesh::downcast(mesh), elem_offset, elem_count);
|
->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) {
|
int nstack, int nslice, int nquad) {
|
||||||
mujoco::Renderable::downcast(renderable)
|
mujoco::Renderable::downcast(renderable)
|
||||||
->SetGeomMesh(type, nstack, nslice, nquad);
|
->SetGeomMesh(static_cast<mjtGeom>(type), nstack, nslice, nquad);
|
||||||
}
|
}
|
||||||
|
|
||||||
void mjrf_setRenderableMaterial(mjrfRenderable* renderable,
|
void mjrf_setRenderableMaterial(mjrfRenderable* renderable,
|
||||||
|
|||||||
@@ -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
|
// 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
|
// parameters (nstack, nslice, nquad) will have better performance as the internal mesh data can be
|
||||||
// shared across renderables.
|
// 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);
|
int nquad);
|
||||||
|
|
||||||
// Sets the material properties and textures of the renderable.
|
// Sets the material properties and textures of the renderable.
|
||||||
|
|||||||
Reference in New Issue
Block a user