Nove repo opengl-learning

This commit is contained in:
TheRetikGM
2021-02-12 15:43:03 +01:00
commit 63e3c0bc8b
1046 changed files with 358397 additions and 0 deletions

26
include/DebugDrawer.h Normal file
View File

@@ -0,0 +1,26 @@
#pragma once
#include <glm/glm.hpp>
class DebugDrawer
{
public:
DebugDrawer();
~DebugDrawer();
void DrawCoordLines(glm::mat4 PVM); // Projection * View * Model
void ChangeCoordLineLength(float len);
private:
float CoordLineLength;
unsigned int Program;
unsigned int VAO;
unsigned int VBO;
const char* vertexShaderSource;
const char* fragmentShaderSource;
float* coordLinesVertices;
void updateDebugLineVertices();
};