Set flags directly on Renderer class.
This removes a dependency on mjvScene from the App class. PiperOrigin-RevId: 824983816 Change-Id: I20dd411e6359ee411f9b0b86d4442c090ba4bd5c
This commit is contained in:
committed by
Copybara-Service
parent
7ba0d96d77
commit
3b79d3f14b
@@ -55,6 +55,10 @@ class Renderer {
|
||||
// Saves a screenshot of the simulation state into the given file.
|
||||
void SaveScreenshot(const std::string& filename, int width, int height);
|
||||
|
||||
// Rendering flags.
|
||||
mjtByte GetFlag(mjtRndFlag flag) const { return scene_.flags[flag];}
|
||||
void SetFlag(mjtRndFlag flag, mjtByte value) { scene_.flags[flag] = value; }
|
||||
|
||||
// Returns the mjvScene used by the renderer.
|
||||
mjvScene& GetScene() { return scene_; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user