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
{
MyShader shader;
GL::Mesh mesh;
Matrix4 transformation, projection;
GL::Texture2D diffuseTexture, specularTexture;
/* [AbstractShaderProgram-rendering] */
MyShader shader;
shader.setTransformationMatrix(transformation)
.setProjectionMatrix(projection)
.bindDiffuseTexture(diffuseTexture)

Loading…
Cancel
Save