-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ModelRenderer / folder renaming / readme edit
- Loading branch information
1 parent
5942dc4
commit 064524b
Showing
16 changed files
with
62 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#pragma once | ||
|
||
#include "Components/Component.hpp" | ||
|
||
#include "Model/Model.hpp" | ||
|
||
// TODO: Review names | ||
class ModelRenderer : Component { | ||
public: | ||
Model model = nullptr; | ||
|
||
/* Default constructor: Initializes a new empty ModelRenderer component. */ | ||
ModelRenderer(); | ||
|
||
/* Destructor: Destroys the ModelRenderer component. Note: May not have additional functionality in this case. */ | ||
~ModelRenderer(); | ||
|
||
/* Display the ModelRenderer component properties in the inspector tab. */ | ||
void display() override; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#include "Components/ModelRenderer.hpp" | ||
|
||
ModelRenderer::ModelRenderer() { | ||
model = nullptr; | ||
} | ||
|
||
ModelRenderer::~ModelRenderer() {} | ||
|
||
void ModelRenderer::display() { | ||
if (ImGui::CollapsingHeader("Model Renderer")) { | ||
ImGui::Text("Model"); | ||
ImGui::SameLine(100); | ||
// TODO: | ||
// Should make a empty field to place the mesh from project explorer. | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#include "Mesh/Model.hpp" | ||
#include "Model/Model.hpp" | ||
|
||
Model::Model(const char *path) { | ||
loadModel(path); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters