From 3ac906db9e3f02eafd41c778cf0b48fa9e6e4f7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 22 Nov 2012 21:01:22 +0100 Subject: [PATCH] Fixed AbstractShaderProgram documentation. Forgot to do it in 259a9f6666ac73d83ebf41d082aca524df695061. --- src/AbstractShaderProgram.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/AbstractShaderProgram.h b/src/AbstractShaderProgram.h index 7729a25cb..19653753c 100644 --- a/src/AbstractShaderProgram.h +++ b/src/AbstractShaderProgram.h @@ -53,9 +53,9 @@ functions and properties: - %Attribute definitions with location and type for configuring meshes, for example: @code -static const Attribute<0, Point3D> Position; -static const Attribute<1, Vector3> Normal; -static const Attribute<2, Vector2> TextureCoordinates; +typedef Attribute<0, Point3D> Position; +typedef Attribute<1, Vector3> Normal; +typedef Attribute<2, Vector2> TextureCoordinates; @endcode @todoc Output attribute location (for bindFragmentDataLocationIndexed(), referenced also from Framebuffer::mapDefaultForDraw() / Framebuffer::mapForDraw()) @@ -127,9 +127,9 @@ the program: @code // Shaders attached... -bindAttributeLocation(Position.Location, "position"); -bindAttributeLocation(Normal.Location, "normal"); -bindAttributeLocation(TextureCoords.Location, "textureCoordinates"); +bindAttributeLocation(Position::Location, "position"); +bindAttributeLocation(Normal::Location, "normal"); +bindAttributeLocation(TextureCoordinates::Location, "textureCoordinates"); bindFragmentDataLocationIndexed(0, 0, "color"); bindFragmentDataLocationIndexed(1, 1, "ambient");