add("vertex", static_cast<void (Loader::*)(float, float, float)>(&Loader::vertex));
add("vertex", static_cast<void (Loader::*)(float, float, float, float)>(&Loader::vertex));
add("normal", static_cast<void (Loader::*)(float, float, float)>(&Loader::normal));
+ add("tangent", static_cast<void (Loader::*)(float, float, float)>(&Loader::tangent));
add("texcoord", static_cast<void (Loader::*)(float)>(&Loader::texcoord));
add("texcoord", static_cast<void (Loader::*)(float, float)>(&Loader::texcoord));
add("texcoord", static_cast<void (Loader::*)(float, float, float)>(&Loader::texcoord));
add("weight", static_cast<void (Loader::*)(float, float)>(&Loader::weight));
add("weight", static_cast<void (Loader::*)(float, float, float)>(&Loader::weight));
add("weight", static_cast<void (Loader::*)(float, float, float, float)>(&Loader::weight));
-
- // Deprecated
- add("vertex2", static_cast<void (Loader::*)(float, float)>(&Loader::vertex));
- add("vertex3", static_cast<void (Loader::*)(float, float, float)>(&Loader::vertex));
- add("vertex4", static_cast<void (Loader::*)(float, float, float, float)>(&Loader::vertex));
- add("normal3", static_cast<void (Loader::*)(float, float, float)>(&Loader::normal));
- add("texcoord1", static_cast<void (Loader::*)(float)>(&Loader::texcoord));
- add("texcoord2", static_cast<void (Loader::*)(float, float)>(&Loader::texcoord));
- add("texcoord3", static_cast<void (Loader::*)(float, float, float)>(&Loader::texcoord));
- add("texcoord4", static_cast<void (Loader::*)(float, float, float, float)>(&Loader::texcoord));
- add("multitexcoord1", static_cast<void (Loader::*)(unsigned, float)>(&Loader::multitexcoord));
- add("multitexcoord2", static_cast<void (Loader::*)(unsigned, float, float)>(&Loader::multitexcoord));
- add("multitexcoord3", static_cast<void (Loader::*)(unsigned, float, float, float)>(&Loader::multitexcoord));
- add("multitexcoord4", static_cast<void (Loader::*)(unsigned, float, float, float, float)>(&Loader::multitexcoord));
- add("color3", static_cast<void (Loader::*)(float, float, float)>(&Loader::color));
- add("color4", static_cast<void (Loader::*)(float, float, float, float)>(&Loader::color));
- add("generic1", static_cast<void (Loader::*)(unsigned, float)>(&Loader::generic));
- add("generic2", static_cast<void (Loader::*)(unsigned, float, float)>(&Loader::generic));
- add("generic3", static_cast<void (Loader::*)(unsigned, float, float, float)>(&Loader::generic));
- add("generic4", static_cast<void (Loader::*)(unsigned, float, float, float, float)>(&Loader::generic));
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
- add("tangent3", static_cast<void (Loader::*)(float, float, float)>(&Loader::tangent));
- add("binormal3", static_cast<void (Loader::*)(float, float, float)>(&Loader::binormal));
- add("tangent", static_cast<void (Loader::*)(float, float, float)>(&Loader::tangent));
- add("binormal", static_cast<void (Loader::*)(float, float, float)>(&Loader::binormal));
-#pragma GCC diagnostic pop
}
} // namespace GL
#ifndef MSP_GL_VERTEXFORMAT_H_
#define MSP_GL_VERTEXFORMAT_H_
-#include <msp/core/attributes.h>
#include <msp/strings/lexicalcast.h>
namespace Msp {
RAW_ATTRIB4
};
-DEPRECATED typedef VertexAttribute VertexComponent;
-
class VertexFormat
{
private:
inline VertexAttribute operator,(VertexAttribute a, unsigned i)
{ return make_indexed_attribute(a, i); }
-DEPRECATED inline VertexAttribute make_indexed_component(VertexAttribute a, unsigned i)
-{ return make_indexed_attribute(a, i); }
-
inline unsigned get_attribute_semantic(unsigned char a)
{ return a>>3; }
inline unsigned get_attribute_size(unsigned char a)
{ return (a&3)+1; }
-DEPRECATED inline unsigned get_component_type(unsigned char c)
-{ return get_attribute_semantic(c); }
-
-DEPRECATED inline unsigned get_component_size(unsigned char c)
-{ return get_attribute_size(c); }
-
-DEPRECATED inline unsigned get_stride(const VertexFormat &f)
-{ return f.stride(); }
-
void operator>>(const LexicalConverter &, VertexAttribute &);
} // namespace GL