Files
vb01/root.h
T
2021-10-18 19:03:11 +03:00

33 lines
587 B
C++

#ifndef ROOT_H
#define ROOT_H
#include"node.h"
#include"camera.h"
class GLFWwindow;
namespace vb01{
void foo();
class Root{
public:
Root();
void update();
void start(int,int);
inline Camera* getCamera(){return camera;}
inline Node* getRootNode(){return rootNode;}
inline int getWidth(){return width;}
inline int getHeight(){return height;}
static Root* getSingleton();
private:
bool running=false;
int width,height;
GLFWwindow *window;
Node *rootNode;
Camera *camera;
void framebuffer_size_callback(GLFWwindow*,int,int);
};
}
#endif