Browse Source

GL: show the actual variable declaration in a doc snippet.

To be consistent with what's shown for the async compile.
pull/589/head
Vladimír Vondruš 4 years ago
parent
commit
e9520c2a5a
  1. 2
      doc/snippets/MagnumGL.cpp

2
doc/snippets/MagnumGL.cpp

@ -471,11 +471,11 @@ vert.addFile("MyShader.vert");
#ifndef MAGNUM_TARGET_GLES #ifndef MAGNUM_TARGET_GLES
{ {
MyShader shader;
GL::Mesh mesh; GL::Mesh mesh;
Matrix4 transformation, projection; Matrix4 transformation, projection;
GL::Texture2D diffuseTexture, specularTexture; GL::Texture2D diffuseTexture, specularTexture;
/* [AbstractShaderProgram-rendering] */ /* [AbstractShaderProgram-rendering] */
MyShader shader;
shader.setTransformationMatrix(transformation) shader.setTransformationMatrix(transformation)
.setProjectionMatrix(projection) .setProjectionMatrix(projection)
.bindDiffuseTexture(diffuseTexture) .bindDiffuseTexture(diffuseTexture)

Loading…
Cancel
Save