mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-08-08 17:57:02 +08:00
refactor: remove unused GLFW includes and commented-out code
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
namespace Cubed {
|
||||
|
||||
struct MoveState {
|
||||
|
||||
@@ -50,7 +50,6 @@ public:
|
||||
const Texture* get_pbr_texture() const;
|
||||
const std::vector<std::unique_ptr<Texture>>& item_textures() const;
|
||||
const Texture* get_skin() const;
|
||||
// Must call after MapTable::init_map() and glfwMakeContextCurrent(window);
|
||||
void init_texture();
|
||||
|
||||
void need_reload();
|
||||
|
||||
@@ -59,13 +59,6 @@ void DevPanel::init() {
|
||||
|
||||
void DevPanel::render() {
|
||||
ASSERT_MSG(m_player, "Player Is Null");
|
||||
/*
|
||||
if (glfwGetWindowAttrib(window, GLFW_ICONIFIED) != 0)
|
||||
{
|
||||
ImGui_ImplGlfw_Sleep(10);
|
||||
continue;
|
||||
}
|
||||
*/
|
||||
|
||||
// Start the Dear ImGui frame
|
||||
ImGui_ImplOpenGL3_NewFrame();
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
#include "Cubed/tools/log.hpp"
|
||||
#include "Cubed/tools/shader_tools.hpp"
|
||||
|
||||
#include <GLFW/glfw3.h>
|
||||
#include <format>
|
||||
#include <glm/gtc/type_ptr.hpp>
|
||||
|
||||
|
||||
@@ -234,8 +234,7 @@ void Window::set_vsync(bool enable) {
|
||||
|
||||
void Window::imgui_init() {
|
||||
float main_scale = SDL_GetWindowDisplayScale(m_window);
|
||||
// float main_scale =
|
||||
// ImGui_ImplGlfw_GetContentScaleForMonitor(glfwGetPrimaryMonitor());
|
||||
|
||||
Logger::info("Main Scale {}", main_scale);
|
||||
// Setup Dear ImGui context
|
||||
IMGUI_CHECKVERSION();
|
||||
|
||||
Reference in New Issue
Block a user