@@ -943,6 +943,62 @@ namespace endor
943943 sendCommandBufferRequest (req);
944944 }
945945
946+ void WebGLContext::vertexAttrib1fv (const WebGLAttribLocation &index, const vector<float > values)
947+ {
948+ auto req = VertexAttrib1fvCommandBufferRequest (index.programId , index.name , values);
949+ if (index.index .has_value ())
950+ req.setLoc (index.index .value ());
951+ sendCommandBufferRequest (req);
952+ }
953+
954+ void WebGLContext::vertexAttrib1fv (int index, const vector<float > values)
955+ {
956+ auto req = VertexAttrib1fvCommandBufferRequest (0 , index, values);
957+ sendCommandBufferRequest (req);
958+ }
959+
960+ void WebGLContext::vertexAttrib2fv (const WebGLAttribLocation &index, const vector<float > values)
961+ {
962+ auto req = VertexAttrib2fvCommandBufferRequest (index.programId , index.name , values);
963+ if (index.index .has_value ())
964+ req.setLoc (index.index .value ());
965+ sendCommandBufferRequest (req);
966+ }
967+
968+ void WebGLContext::vertexAttrib2fv (int index, const vector<float > values)
969+ {
970+ auto req = VertexAttrib2fvCommandBufferRequest (0 , index, values);
971+ sendCommandBufferRequest (req);
972+ }
973+
974+ void WebGLContext::vertexAttrib3fv (const WebGLAttribLocation &index, const vector<float > values)
975+ {
976+ auto req = VertexAttrib3fvCommandBufferRequest (index.programId , index.name , values);
977+ if (index.index .has_value ())
978+ req.setLoc (index.index .value ());
979+ sendCommandBufferRequest (req);
980+ }
981+
982+ void WebGLContext::vertexAttrib3fv (int index, const vector<float > values)
983+ {
984+ auto req = VertexAttrib3fvCommandBufferRequest (0 , index, values);
985+ sendCommandBufferRequest (req);
986+ }
987+
988+ void WebGLContext::vertexAttrib4fv (const WebGLAttribLocation &index, const vector<float > values)
989+ {
990+ auto req = VertexAttrib4fvCommandBufferRequest (index.programId , index.name , values);
991+ if (index.index .has_value ())
992+ req.setLoc (index.index .value ());
993+ sendCommandBufferRequest (req);
994+ }
995+
996+ void WebGLContext::vertexAttrib4fv (int index, const vector<float > values)
997+ {
998+ auto req = VertexAttrib4fvCommandBufferRequest (0 , index, values);
999+ sendCommandBufferRequest (req);
1000+ }
1001+
9461002 optional<WebGLActiveInfo> WebGLContext::getActiveAttrib (shared_ptr<WebGLProgram> program, unsigned int index)
9471003 {
9481004 assert (program != nullptr && " Program is not null" );
0 commit comments