Updated Editor architecture
- Everything editor related will be happening in EditorLayer - Added an icon font - Added proper icon - Added project badge in main menu bar - Texture class now keeps track of the texture width and height
This commit is contained in:
@ -38,6 +38,8 @@ public:
|
||||
asset.setFilPath(filepath.string());
|
||||
spdlog::info("Created asset: {0}", asset.GetName());
|
||||
files.push_back(asset);
|
||||
|
||||
assetIcon = YoggieEngine::Texture("rsc/AssetIcon.png");
|
||||
|
||||
}
|
||||
|
||||
@ -45,7 +47,6 @@ public:
|
||||
|
||||
void Draw() override {
|
||||
|
||||
//assetIcon = YoggieEngine::Texture("rsc/AssetIcon.png");
|
||||
ImGui::DragInt("IconSize", &iconSize, 1, 30, 90);
|
||||
ImGui::DragInt("Maximum Columns", &maxColumns, 1, 1, 6);
|
||||
if (ImGui::BeginTable("##resources", 3))
|
||||
@ -81,8 +82,7 @@ public:
|
||||
|
||||
ImGui::PopStyleColor(3);
|
||||
ImGui::EndTable();
|
||||
const GLuint textures[2]{ assetIcon.GetID(), folderIcon.GetID() };
|
||||
glDeleteTextures(2, textures);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user