Browse Source

AbstractShaderProgram documentation: number attributes from 0.

According to my observations (and crazy bugfixing madness) ATI cards
don't support anything else than attributes numbered from 0 with
successive numbers.

Also fixed (pedantic) comma at the end of enum.
vectorfields
Vladimír Vondruš 14 years ago
parent
commit
cd4fce8926
  1. 6
      src/AbstractShaderProgram.h

6
src/AbstractShaderProgram.h

@ -35,9 +35,9 @@ functions and properties:
attribute is bound, for example:
@code
enum Attribute {
Vertex = 1,
Normal = 2,
TextureCoords = 3,
Vertex = 0,
Normal = 1,
TextureCoords = 2
};
@endcode
See also bindAttribute().

Loading…
Cancel
Save