Engine API Enhancements

This commit is contained in:
Isuru Samarathunga
2025-10-08 00:45:02 +05:30
parent 57c4309cf2
commit 1f9d5426b8
13 changed files with 205 additions and 141 deletions

View File

@ -15,27 +15,22 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
#include <IAEngine/Engine.hpp>
#include <Scene.hpp>
#include <IAEngine/Scene.hpp>
namespace ia::iae
{
Scene *Scene::Create()
RefPtr<Scene> Scene::Create()
{
return new Scene();
return MakeRefPtr<Scene>();
}
Scene *Scene::Create(IN CONST String &sceneXML)
RefPtr<Scene> Scene::Create(IN CONST String &sceneXML)
{
const auto scene = new Scene();
const auto scene = MakeRefPtr<Scene>();
return scene;
}
VOID Scene::Destroy(IN Scene *scene)
{
delete scene;
}
VOID Scene::Draw()
{
for (auto &t : m_nodes)