|
@@ -3,6 +3,7 @@
|
|
|
|
|
|
#include "gaming-core/wrapper/GLFW.h"
|
|
|
#include "gaming-core/wrapper/GL.h"
|
|
|
+#include "gaming-core/wrapper/GLEW.h"
|
|
|
#include "rendering/wrapper/Window.h"
|
|
|
#include "rendering/Options.h"
|
|
|
#include "gaming-core/utils/Clock.h"
|
|
@@ -10,16 +11,6 @@
|
|
|
#include "rendering/Renderer.h"
|
|
|
#include "Game.h"
|
|
|
|
|
|
-bool initGLEW() {
|
|
|
- GLenum err = glewInit();
|
|
|
- if(err != GLEW_OK) {
|
|
|
- std::cout << "could not initialize GLEW: " << glewGetErrorString(err) << "\n";
|
|
|
- return true;
|
|
|
- }
|
|
|
- std::cout << "using GLEW " << glewGetString(GLEW_VERSION) << "\n";
|
|
|
- return false;
|
|
|
-}
|
|
|
-
|
|
|
bool parseArgs(int argAmount, char* const* args, Options& options) {
|
|
|
while(true) {
|
|
|
switch(getopt(argAmount, args, "fv")) {
|
|
@@ -50,7 +41,7 @@ int main(int argAmount, char* const* args) {
|
|
|
Size size(800, 480);
|
|
|
Controller controller;
|
|
|
Window window(size, controller, options);
|
|
|
- if(window.hasError() || initGLEW()) {
|
|
|
+ if(window.hasError() || GLEW::init()) {
|
|
|
return 0;
|
|
|
}
|
|
|
|