21 lines
501 B
C++
21 lines
501 B
C++
|
#include "../headers/renderer.h"
|
||
|
#include "colors.cpp"
|
||
|
#include "../shaderloader.cpp"
|
||
|
|
||
|
void drawCube() {
|
||
|
// here go something that make cube draw yes
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
void RENDERER::render(GLFWwindow *window)
|
||
|
{
|
||
|
// Here's where we do the rendering itself
|
||
|
glBegin(GL_TRIANGLES);
|
||
|
glColor3f(1.0f, 0.0f, 0.0f);
|
||
|
glDrawElements(GL_TRIANGLES, 6, GL_UNSIGNED_INT, 0);
|
||
|
glEnd();
|
||
|
|
||
|
// This will write the current frame to the screen
|
||
|
glClear(GL_COLOR_BUFFER_BIT);
|
||
|
return;
|
||
|
}
|