Doc: remove unused code from OpenGL Window example
Change-Id: Ifb2c7206dee55102eba91b4c30543f3ac4838259 Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
This commit is contained in:
parent
a5f470240f
commit
decc546368
@ -57,8 +57,6 @@ public:
|
||||
void render() Q_DECL_OVERRIDE;
|
||||
|
||||
private:
|
||||
GLuint loadShader(GLenum type, const char *source);
|
||||
|
||||
GLuint m_posAttr;
|
||||
GLuint m_colAttr;
|
||||
GLuint m_matrixUniform;
|
||||
@ -113,14 +111,6 @@ static const char *fragmentShaderSource =
|
||||
//! [3]
|
||||
|
||||
//! [4]
|
||||
GLuint TriangleWindow::loadShader(GLenum type, const char *source)
|
||||
{
|
||||
GLuint shader = glCreateShader(type);
|
||||
glShaderSource(shader, 1, &source, 0);
|
||||
glCompileShader(shader);
|
||||
return shader;
|
||||
}
|
||||
|
||||
void TriangleWindow::initialize()
|
||||
{
|
||||
m_program = new QOpenGLShaderProgram(this);
|
||||
|
Loading…
Reference in New Issue
Block a user