Home | History | Annotate | Download | only in glshared

Lines Matching defs:Quad

167 struct Quad
175 Quad quad;
182 static Quad getRandomQuad (de::Random& rnd, int targetW, int targetH)
202 Quad quad;
204 quad.posA = tcu::IVec2(flipX ? (x+width-1) : x, flipY ? (y+height-1) : y);
205 quad.posB = tcu::IVec2(flipX ? x : (x+width-1), flipY ? y : (y+height-1));
207 return quad;
219 command.quad = getRandomQuad(rnd, targetW, targetH);
282 static void renderQuad (sglr::Context& ctx, const glu::VertexArrayPointer& posPtr, const Quad& quad, const float depth)
286 const bool flipX = quad.posB.x() < quad.posA.x();
287 const bool flipY = quad.posB.y() < quad.posA.y();
288 const int viewportX = de::min(quad.posA.x(), quad.posB.x());
289 const int viewportY = de::min(quad.posA.y(), quad.posB.y());
290 const int viewportW = de::abs(quad.posA.x()-quad.posB.x())+1;
291 const int viewportH = de::abs(quad.posA.y()-quad.posB.y())+1;
308 renderQuad(ctx, posPtr, cmd.quad, cmd.depth);