Get mjrfContext from the ModelObjects.

PiperOrigin-RevId: 943888955
Change-Id: Icfe6230e531a100ad5a09efe582977fd3de8f076
This commit is contained in:
Haroon Qureshi
2026-07-07 07:44:11 -07:00
committed by Copybara-Service
parent 6608f1affa
commit 4ab8617429
6 changed files with 35 additions and 28 deletions
@@ -31,8 +31,7 @@ namespace mujoco {
class RenderableManager {
public:
// Populates the mjrScene with the renderables from the model.
RenderableManager(mjrfContext* ctx, mjrfScene* scene,
ModelObjects* model_objects);
RenderableManager(mjrfScene* scene, ModelObjects* model_objects);
~RenderableManager();
// Updates the state of the renderables in the scene.
@@ -75,7 +74,6 @@ class RenderableManager {
int GetSegmentationId(mjtObj obj_type, int obj_index);
mjrfContext* ctx_;
mjrfScene* scene_;
ModelObjects* model_objects_;