[Examples] Warning fixes (pt 1) (#1668)
* Fix some warnings in examples. * cleanups from review Co-authored-by: Jeffery Myers <JefMyers@blizzard.com>
This commit is contained in:
parent
c6dd41495b
commit
e48b9a6da1
30 changed files with 104 additions and 103 deletions
|
@ -56,14 +56,14 @@ int main(void)
|
|||
// Scatter random cubes around
|
||||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
float x = GetRandomValue(-50, 50);
|
||||
float y = GetRandomValue(-50, 50);
|
||||
float z = GetRandomValue(-50, 50);
|
||||
float x = (float)GetRandomValue(-50, 50);
|
||||
float y = (float)GetRandomValue(-50, 50);
|
||||
float z = (float)GetRandomValue(-50, 50);
|
||||
translations[i] = MatrixTranslate(x, y, z);
|
||||
|
||||
x = GetRandomValue(0, 360);
|
||||
y = GetRandomValue(0, 360);
|
||||
z = GetRandomValue(0, 360);
|
||||
x = (float)GetRandomValue(0, 360);
|
||||
y = (float)GetRandomValue(0, 360);
|
||||
z = (float)GetRandomValue(0, 360);
|
||||
Vector3 axis = Vector3Normalize((Vector3){x, y, z});
|
||||
float angle = (float)GetRandomValue(0, 10) * DEG2RAD;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue