42        mIndexBuffer.create(GL_ELEMENT_ARRAY_BUFFER, GL_STATIC_DRAW);
 
   50            LINE_VERT, 
sizeof(LINE_VERT),
 
   51            SURFACE_FRAG, 
sizeof(SURFACE_FRAG),
 
   52            LINE_GEOM, 
sizeof(LINE_GEOM));
 
 
  107            Color c = this->varBaseColor()->getValue();
 
  109            mShaderProgram->setFloat(
"uMetallic", this->varMetallic()->getValue());
 
  110            mShaderProgram->setFloat(
"uRoughness", this->varRoughness()->getValue());
 
  119            printf(
"Unknown render pass!\n");
 
  125        glGetIntegerv(GL_POLYGON_MODE, &mode);
 
  127        if (this->varRenderMode()->getDataPtr()->currentKey() == EEdgeMode::LINE)
 
  131            glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
 
  132            glLineWidth(this->varLineWidth()->getData());
 
  138            mShaderProgram->setFloat(
"uRadius", this->varRadius()->getValue());
 
  145        glDrawElements(GL_LINES, 
mNumEdges * 2, GL_UNSIGNED_INT, 0);
 
  148        glPolygonMode(GL_FRONT_AND_BACK, mode);
 
 
static Program * createProgramSPIRV(const void *vs, size_t vs_len, const void *fs, size_t fs_len, const void *gs=0, size_t gs_len=0)