Home | History | Annotate | Download | only in functional

Lines Matching refs:attributes

75 	vector<Attribute>	attributes;
201 for (int attribNdx = 0; attribNdx < (int)state.attributes.size(); attribNdx++)
205 << "\tGL_VERTEX_ATTRIB_ARRAY_ENABLED : " << (state.attributes[attribNdx].enabled ? "GL_TRUE" : "GL_FALSE") << "\n"
206 << "\tGL_VERTEX_ATTRIB_ARRAY_SIZE : " << state.attributes[attribNdx].size << "\n"
207 << "\tGL_VERTEX_ATTRIB_ARRAY_STRIDE : " << state.attributes[attribNdx].stride << "\n"
208 << "\tGL_VERTEX_ATTRIB_ARRAY_TYPE : " << state.attributes[attribNdx].type << "\n"
209 << "\tGL_VERTEX_ATTRIB_ARRAY_NORMALIZED : " << (state.attributes[attribNdx].normalized ? "GL_TRUE" : "GL_FALSE") << "\n"
210 << "\tGL_VERTEX_ATTRIB_ARRAY_INTEGER : " << (state.attributes[attribNdx].integer ? "GL_TRUE" : "GL_FALSE") << "\n"
211 << "\tGL_VERTEX_ATTRIB_ARRAY_DIVISOR : " << state.attributes[attribNdx].divisor << "\n"
212 << "\tGL_VERTEX_ATTRIB_ARRAY_POINTER : " << state.attributes[attribNdx].offset << "\n"
213 << "\tGL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING : " << m_buffers[state.attributes[attribNdx].bufferNdx] << "\n";
427 for (int attribNdx = 0; attribNdx < (int)state.attributes.size(); attribNdx++)
429 if (state.attributes[attribNdx].integer)
434 if (state.attributes[attribNdx].integer)
438 switch (state.attributes[0].type)
452 else if (state.attributes[attribNdx].type != GL_FLOAT && !state.attributes[attribNdx].normalized)
456 switch (state.attributes[0].type)
480 if (state.attributes[0].integer)
484 switch (state.attributes[0].type)
503 if (state.attributes[0].normalized || state.attributes[0].type == GL_FLOAT)
513 switch (state.attributes[0].type)
550 for (int attribNdx = 0; attribNdx < (int)state.attributes.size(); attribNdx++)
552 GLU_CHECK_CALL(glBindBuffer(GL_ARRAY_BUFFER, m_buffers[state.attributes[attribNdx].bufferNdx]));
553 if (state.attributes[attribNdx].enabled)
558 if (state.attributes[attribNdx].integer)
559 GLU_CHECK_CALL(glVertexAttribIPointer(attribNdx, state.attributes[attribNdx].size, state.attributes[attribNdx].type, state.attributes[attribNdx].stride, (const GLvoid*)((GLintptr)state.attributes[attribNdx].offset)));
561 GLU_CHECK_CALL(glVertexAttribPointer(attribNdx, state.attributes[attribNdx].size, state.attributes[attribNdx].type, state.attributes[attribNdx].normalized, state.attributes[attribNdx].stride, (const GLvoid*)((GLintptr)state.attributes[attribNdx].offset)));
563 GLU_CHECK_CALL(glVertexAttribDivisor(attribNdx, state.attributes[attribNdx].divisor));
719 for (int attribNdx = 0; attribNdx < (int)state.attributes.size(); attribNdx++)
723 << "\tGL_VERTEX_ATTRIB_ARRAY_ENABLED : " << (state.attributes[attribNdx].enabled ? "GL_TRUE" : "GL_FALSE") << "\n"
724 << "\tGL_VERTEX_ATTRIB_ARRAY_SIZE : " << state.attributes[attribNdx].size << "\n"
725 << "\tGL_VERTEX_ATTRIB_ARRAY_STRIDE : " << state.attributes[attribNdx].stride << "\n"
726 << "\tGL_VERTEX_ATTRIB_ARRAY_TYPE : " << state.attributes[attribNdx].type << "\n"
727 << "\tGL_VERTEX_ATTRIB_ARRAY_NORMALIZED : " << (state.attributes[attribNdx].normalized ? "GL_TRUE" : "GL_FALSE") << "\n"
728 << "\tGL_VERTEX_ATTRIB_ARRAY_INTEGER : " << (state.attributes[attribNdx].integer ? "GL_TRUE" : "GL_FALSE") << "\n"
729 << "\tGL_VERTEX_ATTRIB_ARRAY_DIVISOR : " << state.attributes[attribNdx].divisor << "\n"
730 << "\tGL_VERTEX_ATTRIB_ARRAY_POINTER : " << state.attributes[attribNdx].offset << "\n"
731 << "\t GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING : " << m_buffers[state.attributes[attribNdx].bufferNdx] << "\n";
759 m_spec.state.attributes.push_back(Attribute());
760 m_spec.state.attributes[attribNdx].enabled = (m_random.getInt(0, 4) == 0) ? GL_FALSE : GL_TRUE;
761 m_spec.state.attributes[attribNdx].size = m_random.getInt(2,4);
762 m_spec.state.attributes[attribNdx].stride = 2*m_random.getInt(1, 3);
763 m_spec.state.attributes[attribNdx].type = GL_SHORT;
764 m_spec.state.attributes[attribNdx].integer = m_random.getBool();
765 m_spec.state.attributes[attribNdx].divisor = m_random.getInt(0, 1);
766 m_spec.state.attributes[attribNdx].offset = 2*m_random.getInt(0, 2);
767 m_spec.state.attributes[attribNdx].normalized = m_random.getBool();
768 m_spec.state.attributes[attribNdx].bufferNdx = attribNdx+1;
772 m_spec.state.attributes[attribNdx].divisor = 0;
773 m_spec.state.attributes[attribNdx].enabled = GL_TRUE;
774 m_spec.state.attributes[attribNdx].size = 2;
777 m_spec.vao.attributes.push_back(Attribute());
778 m_spec.vao.attributes[attribNdx].enabled = (m_random.getInt(0, 4) == 0) ? GL_FALSE : GL_TRUE;
779 m_spec.vao.attributes[attribNdx].size = m_random.getInt(2,4);
780 m_spec.vao.attributes[attribNdx].stride = 2*m_random.getInt(1, 3);
781 m_spec.vao.attributes[attribNdx].type = GL_SHORT;
782 m_spec.vao.attributes[attribNdx].integer = m_random.getBool();
783 m_spec.vao.attributes[attribNdx].divisor = m_random.getInt(0, 1);
784 m_spec.vao.attributes[attribNdx].offset = 2*m_random.getInt(0, 2);
785 m_spec.vao.attributes[attribNdx].normalized = m_random.getBool();
786 m_spec.vao.attributes[attribNdx].bufferNdx = attribCount - attribNdx;
790 m_spec.vao.attributes[attribNdx].divisor = 0;
791 m_spec.vao.attributes[attribNdx].enabled = GL_TRUE;
792 m_spec.vao.attributes[attribNdx].size = 2;
1003 for (int attribNdx = 0; attribNdx < (int)state.attributes.size(); attribNdx++)
1005 if (state.attributes[attribNdx].integer)
1010 if (state.attributes[attribNdx].integer)
1014 switch (state.attributes[0].type)
1028 else if (state.attributes[attribNdx].type != GL_FLOAT && !state.attributes[attribNdx].normalized)
1032 switch (state.attributes[0].type)
1056 if (state.attributes[0].integer)
1060 switch (state.attributes[0].type)
1080 if (state.attributes[0].normalized || state.attributes[0].type == GL_FLOAT)
1090 switch (state.attributes[0].type)
1127 for (int attribNdx = 0; attribNdx < (int)state.attributes.size(); attribNdx++)
1129 GLU_CHECK_CALL(glBindBuffer(GL_ARRAY_BUFFER, m_buffers[state.attributes[attribNdx].bufferNdx]));
1130 if (state.attributes[attribNdx].enabled)
1135 if (state.attributes[attribNdx].integer)
1136 GLU_CHECK_CALL(glVertexAttribIPointer(attribNdx, state.attributes[attribNdx].size, state.attributes[attribNdx].type, state.attributes[attribNdx].stride, (const GLvoid*)((GLintptr)state.attributes[attribNdx].offset)));
1138 GLU_CHECK_CALL(glVertexAttribPointer(attribNdx, state.attributes[attribNdx].size, state.attributes[attribNdx].type, state.attributes[attribNdx].normalized, state.attributes[attribNdx].stride, (const GLvoid*)((GLintptr)state.attributes[attribNdx].offset)));
1140 GLU_CHECK_CALL(glVertexAttribDivisor(attribNdx, state.attributes[attribNdx].divisor));
1263 state.attributes.push_back(Attribute());
1265 state.attributes[0].enabled = true;
1266 state.attributes[0].size = 2;
1267 state.attributes[0].stride = 0;
1268 state.attributes[0].type = GL_FLOAT;
1269 state.attributes[0].integer = GL_FALSE;
1270 state.attributes[0].divisor = 0;
1271 state.attributes[0].offset = 0;
1272 state.attributes[0].normalized = GL_FALSE;
1290 spec.state.attributes[0].bufferNdx = 1;
1291 spec.vao.attributes[0].bufferNdx = 2;
1300 state.attributes.push_back(Attribute());
1302 state.attributes[0].enabled = true;
1303 state.attributes[0].size = 2;
1304 state.attributes[0].stride = 0;
1305 state.attributes[0].type = GL_FLOAT;
1306 state.attributes[0].integer = GL_FALSE;
1307 state.attributes[0].divisor = 0;
1308 state.attributes[0].offset = 0;
1309 state.attributes[0].normalized = GL_FALSE;
1310 state.attributes[0].bufferNdx = 1;
1327 spec.state.attributes[0].size = 2;
1328 spec.vao.attributes[0].size = 3;
1338 state.attributes.push_back(Attribute());
1340 state.attributes[0].enabled = true;
1341 state.attributes[0].size = 2;
1342 state.attributes[0].stride = 0;
1343 state.attributes[0].type = GL_SHORT;
1344 state.attributes[0].integer = GL_FALSE;
1345 state.attributes[0].divisor = 0;
1346 state.attributes[0].offset = 0;
1347 state.attributes[0].normalized = GL_TRUE;
1348 state.attributes[0].bufferNdx = 1;
1365 spec.vao.attributes[0].stride = 2;
1366 spec.state.attributes[0].stride = 4;
1376 state.attributes.push_back(Attribute());
1378 state.attributes[0].enabled = true;
1379 state.attributes[0].size = 2;
1380 state.attributes[0].stride = 0;
1381 state.attributes[0].type = GL_SHORT;
1382 state.attributes[0].integer = GL_FALSE;
1383 state.attributes[0].divisor = 0;
1384 state.attributes[0].offset = 0;
1385 state.attributes[0].normalized = GL_TRUE;
1386 state.attributes[0].bufferNdx = 1;
1403 spec.vao.attributes[0].type = GL_SHORT;
1404 spec.state.attributes[0].type = GL_BYTE;
1413 state.attributes.push_back(Attribute());
1415 state.attributes[0].enabled = true;
1416 state.attributes[0].size = 2;
1417 state.attributes[0].stride = 0;
1418 state.attributes[0].type = GL_BYTE;
1419 state.attributes[0].integer = GL_TRUE;
1420 state.attributes[0].divisor = 0;
1421 state.attributes[0].offset = 0;
1422 state.attributes[0].normalized = GL_FALSE;
1423 state.attributes[0].bufferNdx = 1;
1440 spec.state.attributes[0].integer = GL_FALSE;
1441 spec.vao.attributes[0].integer = GL_TRUE;
1450 state.attributes.push_back(Attribute());
1451 state.attributes.push_back(Attribute());
1453 state.attributes[0].enabled = true;
1454 state.attributes[0].size = 2;
1455 state.attributes[0].stride = 0;
1456 state.attributes[0].type = GL_SHORT;
1457 state.attributes[0].integer = GL_FALSE;
1458 state.attributes[0].divisor = 0;
1459 state.attributes[0].offset = 0;
1460 state.attributes[0].normalized = GL_TRUE;
1461 state.attributes[0].bufferNdx = 1;
1463 state.attributes[1].enabled = true;
1464 state.attributes[1].size = 4;
1465 state.attributes[1].stride = 0;
1466 state.attributes[1].type = GL_FLOAT;
1467 state.attributes[1].integer = GL_FALSE;
1468 state.attributes[1].divisor = 0;
1469 state.attributes[1].offset = 0;
1470 state.attributes[1].normalized = GL_FALSE;
1471 state.attributes[1].bufferNdx = 2;
1489 spec.vao.attributes[1].divisor = 3;
1490 spec.state.attributes[1].divisor = 2;
1500 state.attributes.push_back(Attribute());
1502 state.attributes[0].enabled = true;
1503 state.attributes[0].size = 2;
1504 state.attributes[0].stride = 0;
1505 state.attributes[0].type = GL_SHORT;
1506 state.attributes[0].integer = GL_FALSE;
1507 state.attributes[0].divisor = 0;
1508 state.attributes[0].offset = 0;
1509 state.attributes[0].normalized = GL_TRUE;
1510 state.attributes[0].bufferNdx = 1;
1527 spec.vao.attributes[0].offset = 2;
1528 spec.state.attributes[0].offset = 4;
1537 state.attributes.push_back(Attribute());
1539 state.attributes[0].enabled = true;
1540 state.attributes[0].size = 2;
1541 state.attributes[0].stride = 0;
1542 state.attributes[0].type = GL_SHORT;
1543 state.attributes[0].integer = GL_FALSE;
1544 state.attributes[0].divisor = 0;
1545 state.attributes[0].offset = 0;
1546 state.attributes[0].normalized = GL_TRUE;
1547 state.attributes[0].bufferNdx = 1;
1564 spec.vao.attributes[0].normalized = GL_TRUE;
1565 spec.state.attributes[0].normalized = GL_FALSE;;
1574 state.attributes.push_back(Attribute());
1576 state.attributes[0].enabled = true;
1577 state.attributes[0].size = 2;
1578 state.attributes[0].stride = 0;
1579 state.attributes[0].type = GL_FLOAT;
1580 state.attributes[0].integer = GL_FALSE;
1581 state.attributes[0].divisor = 0;
1582 state.attributes[0].offset = 0;
1583 state.attributes[0].normalized = GL_TRUE;
1584 state.attributes[0].bufferNdx = 1;
1608 // Use all attributes