Move ModelObjects and LightManager to filament/support.

PiperOrigin-RevId: 931136854
Change-Id: I3ce3b7265c5d3c9a49fa84be46e87a76c6e2c8b5
This commit is contained in:
Haroon Qureshi
2026-06-12 07:17:21 -07:00
committed by Copybara-Service
parent 1ae561407a
commit 01d5be61e3
10 changed files with 22 additions and 22 deletions
-4
View File
@@ -21,10 +21,6 @@ target_compile_definitions(${MUJOCO_FILAMENT_EXPERIMENTAL_TARGET_NAME} PRIVATE M
target_sources(${MUJOCO_FILAMENT_EXPERIMENTAL_TARGET_NAME}
PUBLIC
compat/light_manager.cc
compat/light_manager.h
compat/model_objects.cc
compat/model_objects.h
compat/scene_bridge.cc
compat/scene_bridge.h
compat/scene_geom_util.cc
@@ -25,13 +25,13 @@
#include <math/vec3.h>
#include <math/vec4.h>
#include <mujoco/mujoco.h>
#include "experimental/filament/compat/light_manager.h"
#include "experimental/filament/compat/model_objects.h"
#include "experimental/filament/compat/scene_geom_util.h"
#include "experimental/filament/compat/scene_objects.h"
#include "render/filament/mjrfilament.h"
#include "render/filament/mjrfilament_cpp.h"
#include "render/filament/support/filament_util.h"
#include "render/filament/support/light_manager.h"
#include "render/filament/support/model_objects.h"
namespace mujoco {
@@ -24,11 +24,11 @@
#include <math/vec3.h>
#include <mujoco/mjvisualize.h>
#include <mujoco/mujoco.h>
#include "experimental/filament/compat/light_manager.h"
#include "experimental/filament/compat/model_objects.h"
#include "experimental/filament/compat/scene_objects.h"
#include "render/filament/mjrfilament.h"
#include "render/filament/mjrfilament_cpp.h"
#include "render/filament/support/model_objects.h"
#include "render/filament/support/light_manager.h"
namespace mujoco {
@@ -21,10 +21,10 @@
#include <mujoco/mjvisualize.h>
#include <mujoco/mujoco.h>
#include "experimental/filament/compat/model_objects.h"
#include "experimental/filament/compat/scene_objects.h"
#include "render/filament/mjrfilament.h"
#include "render/filament/mjrfilament_cpp.h"
#include "render/filament/support/model_objects.h"
namespace mujoco {
@@ -17,10 +17,10 @@
#include <mujoco/mjvisualize.h>
#include <mujoco/mujoco.h>
#include "experimental/filament/compat/model_objects.h"
#include "experimental/filament/compat/scene_objects.h"
#include "render/filament/mjrfilament.h"
#include "render/filament/mjrfilament_cpp.h"
#include "render/filament/mjrfilament.h"
#include "render/filament/support/model_objects.h"
namespace mujoco {
+4
View File
@@ -55,6 +55,10 @@ target_sources(${MUJOCO_FILAMENT_TARGET_NAME}
core/texture.h
support/filament_util.h
support/filament_util.cc
support/light_manager.h
support/light_manager.cc
support/model_objects.h
support/model_objects.cc
)
target_include_directories(${MUJOCO_FILAMENT_TARGET_NAME}
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "experimental/filament/compat/light_manager.h"
#include "render/filament/support/light_manager.h"
#include <memory>
#include <string>
@@ -23,10 +23,10 @@
#include <math/vec3.h>
#include <math/vec4.h>
#include <mujoco/mujoco.h>
#include "experimental/filament/compat/model_objects.h"
#include "render/filament/mjrfilament_cpp.h"
#include "render/filament/mjrfilament.h"
#include "render/filament/support/filament_util.h"
#include "render/filament/support/model_objects.h"
namespace mujoco {
@@ -12,18 +12,18 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef MUJOCO_SRC_EXPERIMENTAL_FILAMENT_COMPAT_LIGHT_MANAGER_H_
#define MUJOCO_SRC_EXPERIMENTAL_FILAMENT_COMPAT_LIGHT_MANAGER_H_
#ifndef MUJOCO_SRC_RENDER_FILAMENT_SUPPORT_LIGHT_MANAGER_H_
#define MUJOCO_SRC_RENDER_FILAMENT_SUPPORT_LIGHT_MANAGER_H_
#include <vector>
#include "experimental/filament/compat/model_objects.h"
#include "render/filament/mjrfilament.h"
#include "render/filament/mjrfilament_cpp.h"
#include "render/filament/support/model_objects.h"
namespace mujoco {
// Manages Light entities for an mjrfScene using data from an mjvScene.
// Manages Light entities for an mjrfScene.
class LightManager {
public:
LightManager(mjrfContext* ctx, mjrfScene* scene, ModelObjects* model_objects);
@@ -53,4 +53,4 @@ class LightManager {
} // namespace mujoco
#endif // MUJOCO_SRC_EXPERIMENTAL_FILAMENT_COMPAT_LIGHT_MANAGER_H_
#endif // MUJOCO_SRC_RENDER_FILAMENT_SUPPORT_LIGHT_MANAGER_H_
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "experimental/filament/compat/model_objects.h"
#include "render/filament/support/model_objects.h"
#include <algorithm>
#include <cfloat>
@@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef MUJOCO_SRC_EXPERIMENTAL_FILAMENT_COMPAT_MODEL_OBJECTS_H_
#define MUJOCO_SRC_EXPERIMENTAL_FILAMENT_COMPAT_MODEL_OBJECTS_H_
#ifndef MUJOCO_SRC_RENDER_FILAMENT_SUPPORT_MODEL_OBJECTS_H_
#define MUJOCO_SRC_RENDER_FILAMENT_SUPPORT_MODEL_OBJECTS_H_
#include <unordered_map>
@@ -81,4 +81,4 @@ class ModelObjects {
} // namespace mujoco
#endif // MUJOCO_SRC_EXPERIMENTAL_FILAMENT_COMPAT_MODEL_OBJECTS_H_
#endif // MUJOCO_SRC_RENDER_FILAMENT_SUPPORT_MODEL_OBJECTS_H_