-#include <algorithm>
-#include <msp/io/print.h>
#include <msp/strings/format.h>
-#include <msp/strings/lexicalcast.h>
-#include <msp/strings/utils.h>
#include "error.h"
#include "vertexformat.h"
namespace Msp {
namespace GL {
-VertexFormat::VertexFormat():
- count(0)
-{ }
-
VertexFormat::VertexFormat(VertexAttribute a):
count(1)
{
convert_attribute(str, "GROUP", 1, 4, a, GROUP1) ||
convert_attribute(str, "WEIGHT", 1, 4, a, WEIGHT1) ||
convert_attribute(str, "TEXCOORD", 1, 4, a, TEXCOORD1) ||
- convert_attribute(str, "GENERIC", 1, 4, a, GENERIC1))
+ convert_attribute(str, "GENERIC", 1, 4, a, GENERIC1) ||
+ convert_attribute(str, "PADDING", 1, 4, a, PADDING1))
return;
}
catch(...)