mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-04 11:35:06 +03:00
Code cleanup
This commit is contained in:
@@ -9,7 +9,8 @@
|
||||
#include <src/Resource/ResourceLoader.h>
|
||||
#include <src/Core/String.h>
|
||||
|
||||
class MeshPanel : ComponentPanel {
|
||||
class MeshPanel : ComponentPanel
|
||||
{
|
||||
private:
|
||||
Scope<ModelResourceInspector> _modelInspector;
|
||||
bool _expanded = false;
|
||||
|
||||
@@ -6,12 +6,9 @@
|
||||
#include "src/Core/Logger.h"
|
||||
|
||||
/* TODOS:
|
||||
*
|
||||
* Engine:
|
||||
* Scripting API for editing UI maybe
|
||||
* Launch game standalone
|
||||
* Fix physics system
|
||||
* --play argument rendering in framebuffer
|
||||
[ ] - Parse the bones
|
||||
[ ] - Create SceneStructure Entities(with bone component)
|
||||
[ ] - Create SkinnedMesh resource(?)
|
||||
*/
|
||||
|
||||
// Welcome to the Nuake source code.
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#include "src/Core/Core.h"
|
||||
#include "src/Rendering/AABB.h"
|
||||
#include "src/Resource/Resource.h"
|
||||
#include <src/Resource/Serializable.h>
|
||||
#include "src/Resource/Serializable.h"
|
||||
|
||||
namespace Nuake
|
||||
{
|
||||
@@ -21,7 +21,7 @@ namespace Nuake
|
||||
void AddSurface(std::vector<Vertex> vertices, std::vector<uint32_t> indices);
|
||||
std::vector<Vertex>& GetVertices();
|
||||
std::vector<uint32_t>& GetIndices();
|
||||
|
||||
|
||||
Ref<Material> GetMaterial() inline const;
|
||||
void SetMaterial(Ref<Material> material);
|
||||
|
||||
@@ -33,6 +33,7 @@ namespace Nuake
|
||||
|
||||
json Serialize() override;
|
||||
bool Deserialize(const json& j) override;
|
||||
|
||||
private:
|
||||
Ref<Material> m_Material = nullptr;
|
||||
std::vector<uint32_t> m_Indices;
|
||||
@@ -41,9 +42,9 @@ namespace Nuake
|
||||
Scope<VertexBuffer> m_VertexBuffer;
|
||||
Scope<VertexArray> m_VertexArray;
|
||||
Scope<VertexBuffer> m_ElementBuffer;
|
||||
|
||||
|
||||
void SetupMesh();
|
||||
|
||||
|
||||
AABB m_AABB;
|
||||
void CalculateAABB();
|
||||
};
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
#include "src/Core/FileSystem.h"
|
||||
#include "src/Core/Logger.h"
|
||||
#include "src/Rendering/Mesh/Mesh.h"
|
||||
|
||||
#include "src/Resource/ModelLoader.h"
|
||||
|
||||
namespace Nuake
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
#include "src/Resource/Resource.h"
|
||||
#include "src/Resource/Serializable.h"
|
||||
#include "src/Rendering/Mesh/Mesh.h"
|
||||
|
||||
namespace Nuake
|
||||
{
|
||||
|
||||
class Model : public Resource, ISerializable
|
||||
{
|
||||
private:
|
||||
@@ -21,6 +21,5 @@ namespace Nuake
|
||||
|
||||
json Serialize() override;
|
||||
bool Deserialize(const json& j) override;
|
||||
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user