include/GLProgramAttributes.h
raw| 1 | #pragma once |
| 2 | |
| 3 | namespace render |
| 4 | { |
| 5 | |
| 6 | /** |
| 7 | * Enumeration for vertex attributes to be bound to a GLProgram, to avoid using |
| 8 | * magic numbers. |
| 9 | */ |
| 10 | struct GLProgramAttribute |
| 11 | { |
| 12 | enum Index |
| 13 | { |
| 14 | Position = 0, |
| 15 | TexCoord = 8, |
| 16 | Tangent = 9, |
| 17 | Bitangent = 10, |
| 18 | Normal = 11, |
| 19 | Colour = 12, |
| 20 | }; |
| 21 | }; |
| 22 | |
| 23 | } |