Cogs.Core
AttributesGL20.h
1#pragma once
2
3#include <map>
4#include <string>
5
6#include "CommonGL20.h"
7
8namespace Cogs
9{
10 const size_t NumAttributeSemanticsGL20 = 7;
11 const size_t NumAttributeSemanticSlotsGL20 = 8;
12 const size_t MaxVertexAttributesGL20 = NumAttributeSemanticsGL20 * NumAttributeSemanticSlotsGL20;
13 const unsigned char InvalidAttributeLocationGL20 = 0xFF;
14
16 {
17 void initialize();
18
19 GLint getAttributeIndex(const std::string & name, bool hlsl);
20
21 std::map<std::string, GLint> attributeIndexes;
22 std::map<std::string, GLint> attributeIndexesHLSL;
23 };
24}
Contains all Cogs related functionality.
Definition: FieldSetter.h:23