Lines Matching full:attributes

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