From 3a54a37b062eb9354a4d9565a88dfd5e96ab0932 Mon Sep 17 00:00:00 2001 From: REDxEYE Date: Thu, 3 Apr 2025 14:26:25 +0300 Subject: [PATCH] Remove unnecessary glew includes. Remove copyright from Mesh.cpp Add default initializers for VertexAttribute --- src/graphics/core/Mesh.cpp | 4 ---- src/graphics/core/Mesh.inl | 2 -- src/graphics/core/MeshData.hpp | 6 +++--- src/graphics/render/commons.hpp | 1 - 4 files changed, 3 insertions(+), 10 deletions(-) diff --git a/src/graphics/core/Mesh.cpp b/src/graphics/core/Mesh.cpp index 5df57129..f1f79f3e 100644 --- a/src/graphics/core/Mesh.cpp +++ b/src/graphics/core/Mesh.cpp @@ -1,7 +1,3 @@ -// -// Created by RED on 24.03.2025. -// - #include "graphics/core/Mesh.hpp" int MeshStats::meshesCount = 0; diff --git a/src/graphics/core/Mesh.inl b/src/graphics/core/Mesh.inl index 756353b3..5e1edcf2 100644 --- a/src/graphics/core/Mesh.inl +++ b/src/graphics/core/Mesh.inl @@ -1,7 +1,5 @@ #pragma once -#include - #include "MeshData.hpp" template diff --git a/src/graphics/core/MeshData.hpp b/src/graphics/core/MeshData.hpp index bf8c7307..1bcceb9e 100644 --- a/src/graphics/core/MeshData.hpp +++ b/src/graphics/core/MeshData.hpp @@ -8,9 +8,9 @@ /// @brief Vertex attribute info struct VertexAttribute { - uint32_t type; - bool normalized; - ubyte count; + uint32_t type = 0; + bool normalized = false; + ubyte count = 0; [[nodiscard]] uint32_t size() const { diff --git a/src/graphics/render/commons.hpp b/src/graphics/render/commons.hpp index 9a54e7fe..96e53864 100644 --- a/src/graphics/render/commons.hpp +++ b/src/graphics/render/commons.hpp @@ -3,7 +3,6 @@ #include #include #include -#include #include #include "graphics/core/MeshData.hpp"