readable .vb format

This commit is contained in:
devZoGok
2021-10-19 19:06:41 +03:00
parent a13d4f1244
commit 3753d08ca5
27 changed files with 783 additions and 274 deletions
+2 -2
View File
@@ -31,7 +31,7 @@ namespace vb01{
camera=new Camera();
}
void Root::start(int width,int height){
void Root::start(int width,int height,string name){
this->width=width;
this->height=height;
@@ -39,7 +39,7 @@ namespace vb01{
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR,3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR,3);
glfwWindowHint(GLFW_OPENGL_PROFILE,GLFW_OPENGL_CORE_PROFILE);
window=glfwCreateWindow(width,height,"KEK",NULL,NULL);
window=glfwCreateWindow(width,height,name.c_str(),NULL,NULL);
if(window==NULL){
std::cout<<"Failed to load window.\n";
exit(-1);