From: Mikko Rasa Date: Fri, 24 May 2019 16:39:03 +0000 (+0300) Subject: Add numberless versions of vertex array statements X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=26deb4ad8f59c0ec7b5d128e5e68363865b2d237;p=libs%2Fgl.git Add numberless versions of vertex array statements This should have accompanied 6ee541f, which changed the exporter to use those keywords. --- diff --git a/source/vertexarray.cpp b/source/vertexarray.cpp index 5674bbe0..0ebd4f0f 100644 --- a/source/vertexarray.cpp +++ b/source/vertexarray.cpp @@ -252,6 +252,27 @@ VertexArray::Array::Array(): VertexArray::Loader::Loader(VertexArray &a): VertexArrayBuilder(a) { + add("vertex", static_cast(&Loader::vertex)); + add("vertex", static_cast(&Loader::vertex)); + add("vertex", static_cast(&Loader::vertex)); + add("normal", static_cast(&Loader::normal)); + add("texcoord", static_cast(&Loader::texcoord)); + add("texcoord", static_cast(&Loader::texcoord)); + add("texcoord", static_cast(&Loader::texcoord)); + add("texcoord", static_cast(&Loader::texcoord)); + add("multitexcoord", static_cast(&Loader::multitexcoord)); + add("multitexcoord", static_cast(&Loader::multitexcoord)); + add("multitexcoord", static_cast(&Loader::multitexcoord)); + add("multitexcoord", static_cast(&Loader::multitexcoord)); + add("color", static_cast(&Loader::color)); + add("color", static_cast(&Loader::color)); + add("attrib", static_cast(&Loader::attrib)); + add("attrib", static_cast(&Loader::attrib)); + add("attrib", static_cast(&Loader::attrib)); + add("attrib", static_cast(&Loader::attrib)); + add("tangent", static_cast(&Loader::tangent)); + add("binormal", static_cast(&Loader::binormal)); + add("vertex2", static_cast(&Loader::vertex)); add("vertex3", static_cast(&Loader::vertex)); add("vertex4", static_cast(&Loader::vertex));