Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 330 vs 331 for /trunk/Source Code/core.h

Diff revisions: vs.
  @@ -188,6 +188,17 @@
188 188 inline vec4<F32> DIVIDE_BLUE() {
189 189 return vec4<F32>(0.1f,0.1f,0.8f,1.0f);
190 190 }
191 +
192 + inline vec4<U8> RANDOM() {
193 + return vec4<U8>(rand() % 256,
194 + rand() % 256,
195 + rand() % 256,
196 + 255);
197 + }
198 +
199 + inline vec4<F32> RANDOM_NORMALIZED() {
200 + return Util::toFloatColor(RANDOM());
201 + }
191 202 };
192 203
193 204 }; //namespace Divide