Lines Matching refs:triangle
355 const tcu::Vec4 triangle[] =
391 gl.vertexAttribPointer (positionLoc, 4, GL_FLOAT, GL_FALSE, 0, triangle);
432 attribs[0].pointer = triangle;
474 // generater triangle endpoint with following properties
524 // draw colorless (mask = 0,0,0) triangle at random* location, set offset and render green triangle with depthfunc = equal
530 tcu::Vec4 triangle[3];
532 for (int vertexNdx = 0; vertexNdx < DE_LENGTH_OF_ARRAY(triangle); ++vertexNdx)
533 triangle[vertexNdx] = genRandomVec4(rnd);
535 gl.vertexAttribPointer (positionLoc, 4, GL_FLOAT, GL_FALSE, 0, triangle);
537 log << TestLog::Message << "Setup triangle with random coordinates:" << TestLog::EndMessage;
538 for (size_t ndx = 0; ndx < DE_LENGTH_OF_ARRAY(triangle); ++ndx)
540 << "\tx=" << triangle[ndx].x()
541 << "\ty=" << triangle[ndx].y()
542 << "\tz=" << triangle[ndx].z()
543 << "\tw=" << triangle[ndx].w()
546 log << TestLog::Message << "Draw colorless triangle.\tState: DepthFunc = GL_ALWAYS, PolygonOffset(0, 0)." << TestLog::EndMessage;
555 log << TestLog::Message << "Draw green triangle.\tState: DepthFunc = GL_EQUAL, PolygonOffset(0, " << offset << ")." << TestLog::EndMessage;
977 const tcu::Vec4 triangle[] =
988 // log the triangle
989 log << TestLog::Message << "Setup triangle with coordinates:" << TestLog::EndMessage;
990 for (size_t ndx = 0; ndx < DE_LENGTH_OF_ARRAY(triangle); ++ndx)
992 << "\tx=" << triangle[ndx].x()
993 << "\ty=" << triangle[ndx].y()
994 << "\tz=" << triangle[ndx].z()
995 << "\tw=" << triangle[ndx].w()
1023 gl.vertexAttribPointer (positionLoc, 4, GL_FLOAT, GL_FALSE, 0, triangle);
1025 log << TestLog::Message << "Draw triangle. Color = Red.\tState: DepthFunc = ALWAYS, PolygonOffset(0, 0)." << TestLog::EndMessage;
1032 log << TestLog::Message << "Draw triangle. Color = Black.\tState: DepthFunc = EQUAL, PolygonOffset(4, 0)." << TestLog::EndMessage;
1035 gl.polygonOffset (4, 0); // triangle slope == 0
1048 log << TestLog::Message << "Expecting black triangle." << TestLog::EndMessage;
1102 // log triangle info
1155 gl.polygonOffset (10, 0); // clamps any depth on the triangle to 1