Formatting

This commit is contained in:
2026-09-19 22:40:26 -07:00
parent 0e26ccae98
commit 98b3d4a552
3 changed files with 10 additions and 14 deletions
+5 -4
View File
@@ -2,12 +2,11 @@
#include <any>
#include <functional>
#include <string>
#include <unordered_map>
#include <sophia/types.hpp>
#include <sophia/util/delegate.hpp>
#include <sophia/util/logger.hpp>
#include <string>
#include <unordered_map>
#define BIT(x) (1 << (x))
@@ -116,7 +115,9 @@ class EventSystem {
static_assert(std::is_base_of<Event, E>::value, "E must derive from Event");
EventType eventType = GET_EVENT_TYPE(E);
if (!this->eventDelegates.count(eventType)) { return; }
if (!this->eventDelegates.count(eventType)) {
return;
}
try {
EventDelegate<E>& delegate =
+1 -2
View File
@@ -12,9 +12,8 @@
#pragma once
#include <iostream>
#include <utility>
#include <sophia/types.hpp>
#include <utility>
namespace sophia::log {
+4 -8
View File
@@ -3,11 +3,10 @@
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
#include <string>
#include <vulkan/vulkan.hpp>
#include <sophia/event.hpp>
#include <sophia/types.hpp>
#include <string>
#include <vulkan/vulkan.hpp>
namespace sophia {
@@ -35,11 +34,8 @@ class Window {
private:
static void resizeCallback(GLFWwindow* window, int width, int height);
static void keyEventCallback(GLFWwindow* window,
int key,
int scancode,
int action,
int mods);
static void keyEventCallback(GLFWwindow* window, int key, int scancode,
int action, int mods);
void initialize();
int width, height;