\
This commit is contained in:
@@ -151,10 +151,9 @@
|
||||
g++ \
|
||||
modules/Window/src/*.cpp src/App.cpp \
|
||||
utils/Window/*.cpp utils/Window/WindowGLFW/*.cpp \
|
||||
utils/Renderer/*.cpp utils/Renderer/RendererOpenGL/*.cpp
|
||||
utils/Renderer/*.cpp utils/Renderer/RendererOpenGL/*.cpp \
|
||||
-fpic -shared \
|
||||
-I src -I include \
|
||||
-I utils \
|
||||
-I src -I include -I utils \
|
||||
-DRENDERER_OPENGL \
|
||||
-DWINDOW_GLFW \
|
||||
-lGL -lglfw -lGLEW \
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#include "RendererOpenGL.h"
|
||||
|
||||
#include "pch.hpp"
|
||||
|
||||
#define GLEW_STATIC
|
||||
#include <GL/glew.h>
|
||||
|
||||
@@ -11,7 +13,7 @@ namespace Archimedes {
|
||||
|
||||
void RendererOpenGL::render(std::list<renderCmd*> cmdList, int& w, int& h) {
|
||||
|
||||
glViewport(0, 0, &w, &h);
|
||||
glViewport(0, 0, w, h);
|
||||
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "pch.hpp"
|
||||
|
||||
#include "WindowGLFW.h"
|
||||
|
||||
namespace Archimedes {
|
||||
|
||||
Reference in New Issue
Block a user