update
This commit is contained in:
17
main.cpp
17
main.cpp
@@ -215,6 +215,10 @@ private:
|
||||
glBindVertexArray(0);
|
||||
}
|
||||
|
||||
void initHeatmapGeometry_() {
|
||||
|
||||
}
|
||||
|
||||
bool initBgProgram() {
|
||||
auto vshader = std::make_unique<LOpenGLShader>(LOpenGLShader::ShaderType::Vertex);
|
||||
auto fshader = std::make_unique<LOpenGLShader>(LOpenGLShader::ShaderType::Fragment);
|
||||
@@ -275,6 +279,12 @@ private:
|
||||
return true;
|
||||
}
|
||||
|
||||
bool initHeatmapProgram() {
|
||||
auto vshader = std::make_unique<LOpenGLShader>(LOpenGLShader::ShaderType::Vertex);
|
||||
auto fshader = std::make_unique<LOpenGLShader>(LOpenGLShader::ShaderType::Fragment);
|
||||
|
||||
}
|
||||
|
||||
void drawBg() {
|
||||
if (!bgProg_ || !bgVao_ || !bgVbo_) {
|
||||
std::cout << "check !bgProg_ || !bgVao_ || !bgVbo_ failed\n";
|
||||
@@ -291,7 +301,7 @@ private:
|
||||
glBindVertexArray(0);
|
||||
|
||||
glEnable(GL_DEPTH_TEST);
|
||||
}
|
||||
}
|
||||
|
||||
void drawPanel() {
|
||||
if (!panelProg_ || !panelVao_ || !panelVbo_ || !panelIbo_) {
|
||||
@@ -435,6 +445,11 @@ private:
|
||||
float panelHeight_ = 0.35;
|
||||
float panelDepth_ = 0.05;
|
||||
|
||||
std::unique_ptr<LOpenGLProgram> heatmapProg_;
|
||||
std::string heatmapVertShaderPath_;
|
||||
std::string heatmapFragShaderPath_;
|
||||
unsigned int heatmapVao_ = 0;
|
||||
unsigned int heatmapVbo_ = 0;
|
||||
|
||||
ViewPort viewport_{800, 600};
|
||||
Camera camera_{glm::vec3(0.0f, 0.0f, 2.0f)};
|
||||
|
||||
Reference in New Issue
Block a user