From f5bc5cd5ed8263e5182aa8b5a10ae01138839d02 Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Sat, 8 Nov 2025 20:39:52 -0500 Subject: [PATCH] feat: add functions to set visual properties for nodes including model, texture, color, dimensions, and entity type --- src/StardustBridge.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/StardustBridge.hpp b/src/StardustBridge.hpp index 76e95eb..69ccf9a 100644 --- a/src/StardustBridge.hpp +++ b/src/StardustBridge.hpp @@ -27,6 +27,13 @@ public: // Update a node's transform. Returns false if the node doesn't exist. bool updateNodeTransform(NodeId id, const glm::mat4& transform); + + // Set visual properties for a node + bool setNodeModel(NodeId id, const std::string& modelUrl); + bool setNodeTexture(NodeId id, const std::string& textureUrl); + bool setNodeColor(NodeId id, const glm::vec3& color, float alpha = 1.0f); + bool setNodeDimensions(NodeId id, const glm::vec3& dimensions); + bool setNodeEntityType(NodeId id, uint8_t entityType); // Remove a node. Returns false if the node doesn't exist. bool removeNode(NodeId id);