#ifndef GLAD #define GLAD #include #endif #include #include "hotbar.hpp" #include "shader.hpp" #include "Rectangle.hpp" #include "block.hpp" #include "chunk.hpp" #include #include Hotbar::Hotbar(){ std::cout <<"Hotbar begin:" << glfwGetTime() << std::endl; shader = Shader("shaders/vertex_shader.glsl", "shaders/fragment_shader.glsl"); for(int i=0;i<9;i++){ icon[i] = blockIcon((BlockID)i,-0.5+i/9.0,-1.0,1.0/9.0); } } void Hotbar::Draw(float screenRatio,int texture,int selected){ glDisable(GL_DEPTH_TEST); //for(int i=0;i<9;i++){ // std::cout <<"i=" <