]> git.localhorst.tv Git - blobs.git/blobdiff - src/app/init.hpp
simple planet render
[blobs.git] / src / app / init.hpp
index 63334e89aa46d403ab7930ba5dd3ba586f5b90f8..f1378e0c6d5a63ad81fc844ec3dbcef1ed891269 100644 (file)
@@ -1,43 +1,16 @@
 #ifndef BLOBS_APP_INIT_HPP_
 #define BLOBS_APP_INIT_HPP_
 
+#include "../graphics/Viewport.hpp"
+
 #include <al.h>
 #include <SDL.h>
-#include <stdexcept>
 #include <string>
 
 
 namespace blobs {
 namespace app {
 
-class AlutError
-: public std::runtime_error {
-
-public:
-       explicit AlutError(ALenum);
-       AlutError(ALenum, const std::string &);
-
-};
-
-class SDLError
-: public std::runtime_error {
-
-public:
-       SDLError();
-       explicit SDLError(const std::string &);
-
-};
-
-class NetError
-: public std::runtime_error {
-
-public:
-       NetError();
-       explicit NetError(const std::string &);
-
-};
-
-
 class InitSDL {
 
 public:
@@ -124,7 +97,7 @@ public:
 class Window {
 
 public:
-       Window();
+       Window(int w, int h);
        ~Window();
 
        Window(const Window &) = delete;
@@ -172,15 +145,6 @@ public:
 };
 
 
-struct InitHeadless {
-
-       InitHeadless();
-
-       InitSDL init_sdl;
-       InitNet init_net;
-
-};
-
 struct Init {
 
        Init(bool double_buffer = true, int sample_size = 1);
@@ -193,6 +157,7 @@ struct Init {
        Window window;
        GLContext ctx;
        InitGLEW init_glew;
+       graphics::Viewport viewport;
 
 };