Remove unnecessary glew includes.

Remove copyright from Mesh.cpp
Add default initializers for VertexAttribute
This commit is contained in:
REDxEYE 2025-04-03 14:26:25 +03:00
parent 9730454b90
commit 3a54a37b06
4 changed files with 3 additions and 10 deletions

View File

@ -1,7 +1,3 @@
//
// Created by RED on 24.03.2025.
//
#include "graphics/core/Mesh.hpp" #include "graphics/core/Mesh.hpp"
int MeshStats::meshesCount = 0; int MeshStats::meshesCount = 0;

View File

@ -1,7 +1,5 @@
#pragma once #pragma once
#include <GL/glew.h>
#include "MeshData.hpp" #include "MeshData.hpp"
template<typename VertexStructure> template<typename VertexStructure>

View File

@ -8,9 +8,9 @@
/// @brief Vertex attribute info /// @brief Vertex attribute info
struct VertexAttribute { struct VertexAttribute {
uint32_t type; uint32_t type = 0;
bool normalized; bool normalized = false;
ubyte count; ubyte count = 0;
[[nodiscard]] uint32_t size() const { [[nodiscard]] uint32_t size() const {

View File

@ -3,7 +3,6 @@
#include <vector> #include <vector>
#include <array> #include <array>
#include <memory> #include <memory>
#include <GL/glew.h>
#include <glm/vec3.hpp> #include <glm/vec3.hpp>
#include "graphics/core/MeshData.hpp" #include "graphics/core/MeshData.hpp"