Remove unnecessary glew includes.
Remove copyright from Mesh.cpp Add default initializers for VertexAttribute
This commit is contained in:
parent
9730454b90
commit
3a54a37b06
@ -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;
|
||||||
|
|||||||
@ -1,7 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <GL/glew.h>
|
|
||||||
|
|
||||||
#include "MeshData.hpp"
|
#include "MeshData.hpp"
|
||||||
|
|
||||||
template<typename VertexStructure>
|
template<typename VertexStructure>
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
@ -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"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user