Skip to content

Commit

Permalink
Added groups
Browse files Browse the repository at this point in the history
  • Loading branch information
denis authored and denis committed Dec 8, 2024
1 parent 91e6b9c commit 82deac1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Engine/src/GlobalData/PrismaFunc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ Prisma::PrismaFunc::PrismaFunc()

// Create window
m_window = glfwCreateWindow(settings.width, settings.height, settings.name.c_str(), nullptr, nullptr);
glfwMaximizeWindow(m_window);
//glfwMaximizeWindow(m_window);
glfwSetWindowAttrib(m_window, GLFW_RESIZABLE, GLFW_FALSE);

if (m_window == nullptr)
Expand Down
9 changes: 3 additions & 6 deletions GUI/src/TextureInfo.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include "../include/TextureInfo.h"

#include <algorithm>

Prisma::TextureInfo::TextureInfo()
{
}
Expand All @@ -12,12 +14,7 @@ void Prisma::TextureInfo::showTextures()
// Display the images in a grid layout
for (auto texture : m_textures)
{
int width = texture.data().width;
int height = texture.data().height;
width = width / scale;
height = height / scale;

ImGui::Image((void*)static_cast<intptr_t>(texture.id()), ImVec2(width, height));
ImGui::Image((void*)static_cast<intptr_t>(texture.id()), ImVec2(100, 100));
auto getLast = [](std::string s)
{
size_t found = s.find_last_of('/');
Expand Down

0 comments on commit 82deac1

Please sign in to comment.