<commit_before>#include <glm/gtc/matrix_transform.hpp>
#include "Core/Engine.hh"
#include "Core/Renderer.hh"
#include "DemoScene.hh"

#include "ResourceManager/SharedMesh.hh"
#include "ResourceManager/Texture.hh"
#include "ResourceManager/CubeMap.hh"
#include "ResourceManager/ResourceManager.hh"

#include <Managers/AssetsConvertorManager.hh>
#include <MediaFiles/AMediaFile.hpp>
#include <MediaFiles/MaterialFile.hpp>
#include <MediaFiles/ObjFile.hpp>
#include <MediaFiles/TextureFile.hpp>

#include <Components/RotationForce.hh>
#include <Components/CameraComponent.hh>

#include <OpenGL/ComputeShader.hh>
#include <OpenGL/Attribute.hh>
#include <OpenGL/include/SDL/SDL_opengl.h>

#include <Systems/RotationForceSystem.hpp>
#include <Systems/GraphNodeSystem.hpp>
#include <Systems/CameraSystem.hpp>
#include <Systems/MeshRenderSystem.h>

#include <Core/Engine.hh>

#include <SDL\SDL.h>

DemoScene::DemoScene(Engine &engine) : AScene(engine)
{
}

DemoScene::~DemoScene(void)
{
}

bool 			DemoScene::userStart()
{	
	std::srand(0);

	// System Tests
	//
	//
	addSystem<MeshRendererSystem>(0);
	addSystem<GraphNodeSystem>(0); // UPDATE ENTITIES TRANSFORMATION
	addSystem<CameraSystem>(200); // UPDATE CAMERA AND RENDER TO SCREEN


	// end System Test
	{
		auto &convertor = _engine.getInstance<AssetsConvertorManager>();
		convertor.setOutputDirectory("./Assets/Serialized/");

		//auto success = convertor.load("./Assets/cube/cube.obj");
		//convertor.serializeData("cube");
		//convertor.clear();

		//success = convertor.load("./Assets/ball/ball.obj");
		//convertor.serializeData("ball");
		//convertor.clear();

		//success = convertor.load("./Assets/galileo/galileo.obj");
		//convertor.serializeData("galileo");
		//convertor.clear();

		//success = convertor.load("./Assets/crytek-sponza/sponza.obj");
		//convertor.serializeData("sponza");
		//convertor.clear();
//		AMediaFile::loadFromList("./Assets/Serialized/export__cube.cpd");
//		AMediaFile::loadFromList("./Assets/Serialized/export__ball.cpd");
//		AMediaFile::loadFromList("./Assets/Serialized/export__galileo.cpd");
		AMediaFile::loadFromList("./Assets/Serialized/export__sponza.cpd");
		std::cout << "::" << std::endl;
	}
	{
		//auto &loader = _engine.getInstance<AssetsLoader>();
		//loader.loadFromList("./Assets/Serialized/export__cube.cpd");
	}



	return (true);
}

bool 			DemoScene::userUpdate(double time)
{<commit_msg>Some tests<commit_after>#include <glm/gtc/matrix_transform.hpp>
#include "Core/Engine.hh"
#include "Core/Renderer.hh"
#include "DemoScene.hh"

#include "ResourceManager/SharedMesh.hh"
#include "ResourceManager/Texture.hh"
#include "ResourceManager/CubeMap.hh"
#include "ResourceManager/ResourceManager.hh"

#include <Managers/AssetsConvertorManager.hh>
#include <MediaFiles/AMediaFile.hpp>
#include <MediaFiles/MaterialFile.hpp>
#include <MediaFiles/ObjFile.hpp>
#include <MediaFiles/TextureFile.hpp>

#include <Components/RotationForce.hh>
#include <Components/CameraComponent.hh>

#include <OpenGL/ComputeShader.hh>
#include <OpenGL/Attribute.hh>
#include <OpenGL/include/SDL/SDL_opengl.h>

#include <Systems/RotationForceSystem.hpp>
#include <Systems/GraphNodeSystem.hpp>
#include <Systems/CameraSystem.hpp>
#include <Systems/MeshRenderSystem.h>

#include <Core/Engine.hh>

#include <SDL\SDL.h>

DemoScene::DemoScene(Engine &engine) : AScene(engine)
{
}

DemoScene::~DemoScene(void)
{
}

bool 			DemoScene::userStart()
{	
	std::srand(0);

	// System Tests
	//
	//
	addSystem<MeshRendererSystem>(0);
	addSystem<GraphNodeSystem>(0); // UPDATE ENTITIES TRANSFORMATION
	addSystem<CameraSystem>(200); // UPDATE CAMERA AND RENDER TO SCREEN


	// end System Test
	{
		auto &convertor = _engine.getInstance<AssetsConvertorManager>();
		convertor.setOutputDirectory("./Assets/Serialized/");

		//auto success = convertor.load("./Assets/cube/cube.obj");
		//convertor.serializeData("cube");
		//convertor.clear();

		//success = convertor.load("./Assets/ball/ball.obj");
		//convertor.serializeData("ball");
		//convertor.clear();

		//success = convertor.load("./Assets/galileo/galileo.obj");
		//convertor.serializeData("galileo");
		//convertor.clear();

		//success = convertor.load("./Assets/crytek-sponza/sponza.obj");
		//convertor.serializeData("sponza");
		//convertor.clear();
		AMediaFile::loadFromList("./Assets/Serialized/export__cube.cpd");
		AMediaFile::loadFromList("./Assets/Serialized/export__ball.cpd");
		AMediaFile::loadFromList("./Assets/Serialized/export__galileo.cpd");
		AMediaFile::loadFromList("./Assets/Serialized/export__sponza.cpd");
		std::cout << "::" << std::endl;
	}
	{
		//auto &loader = _engine.getInstance<AssetsLoader>();
		//loader.loadFromList("./Assets/Serialized/export__cube.cpd");
	}



	return (true);
}

bool 			DemoScene::userUpdate(double time)
{
{'fraction_non_alphanumeric': 0.17144051850303157, 'fraction_numerical': 0.0025088856366297305, 'mean_word_length': 5.344827586206897, 'pattern_counts': {'":': 2, '<': 55, '<?xml version=': 0, '>': 47, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6123297', 'n_tokens_mistral': 1791, 'n_tokens_neox': 1689, 'n_words': 217}