Lines Matching full:rnd
144 void randomizeDrawOp (de::Random& rnd, DrawPrimitiveOp& drawOp)
160 drawOp.type = (PrimitiveType)rnd.getInt(0, PRIMITIVETYPE_LAST-1);
161 drawOp.count = rnd.getInt(minPrimitives, maxPrimitives);
162 drawOp.blend = (BlendMode)rnd.getInt(0, BLENDMODE_LAST-1);
163 drawOp.depth = (DepthMode)rnd.getInt(0, DEPTHMODE_LAST-1);
164 drawOp.stencil = (StencilMode)rnd.getInt(0, STENCILMODE_LAST-1);
165 drawOp.stencilRef = rnd.getInt(minStencilRef, maxStencilRef);
174 const float cx = rnd.getFloat(-1.0f, 1.0f);
175 const float cy = rnd.getFloat(-1.0f, 1.0f);
182 position.x() = cx + rnd.getFloat(-maxTriOffset, maxTriOffset);
183 position.y() = cy + rnd.getFloat(-maxTriOffset, maxTriOffset);
184 position.z() = rnd.getFloat(minDepth, maxDepth);
187 color.x() = rnd.getFloat(minRGB, maxRGB);
188 color.y() = rnd.getFloat(minRGB, maxRGB);
189 color.z() = rnd.getFloat(minRGB, maxRGB);
190 color.w() = rnd.getFloat(minAlpha, maxAlpha);
203 p1.x() = cx + rnd.getFloat(-maxTriOffset, maxTriOffset);
204 p1.y() = cy + rnd.getFloat(-maxTriOffset, maxTriOffset);
205 p1.z() = rnd.getFloat(minDepth, maxDepth);
208 p2.x() = cx + rnd.getFloat(-maxTriOffset, maxTriOffset);
209 p2.y() = cy + rnd.getFloat(-maxTriOffset, maxTriOffset);
210 p2.z() = rnd.getFloat(minDepth, maxDepth);
714 de::Random rnd (deStringHash(getName()) ^ deInt32Hash(numContexts));
730 randomizeDrawOp(rnd, *drawOp);
917 de::Random rnd (deStringHash(getName()) ^ deInt32Hash(numContexts));
941 randomizeDrawOp(rnd, *drawOp);