Nove repo opengl-learning
This commit is contained in:
26
include/DebugDrawer.h
Normal file
26
include/DebugDrawer.h
Normal 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();
|
||||
};
|
||||
Reference in New Issue
Block a user