renamed SDL PI constants to SDL_PI_D and SDL_PI_F.
This commit is contained in:
1 parent
199423612c
commit
0b8309da0c
19 files changed
+150
-150
No files matched your search
+2
-2
@@ -1032,8 +1032,8 @@ static SDL_bool render(void)
|
||||
}
|
||||
currentTime = (double)SDL_GetPerformanceCounter() / SDL_GetPerformanceFrequency();
|
||||
clearColor.float32[0] = (float)(0.5 + 0.5 * SDL_sin(currentTime));
|
||||
clearColor.float32[1] = (float)(0.5 + 0.5 * SDL_sin(currentTime + SDL_M_PIl * 2 / 3));
|
||||
clearColor.float32[2] = (float)(0.5 + 0.5 * SDL_sin(currentTime + SDL_M_PIl * 4 / 3));
|
||||
clearColor.float32[1] = (float)(0.5 + 0.5 * SDL_sin(currentTime + SDL_PI_D * 2 / 3));
|
||||
clearColor.float32[2] = (float)(0.5 + 0.5 * SDL_sin(currentTime + SDL_PI_D * 4 / 3));
|
||||
clearColor.float32[3] = 1;
|
||||
rerecordCommandBuffer(frameIndex, &clearColor);
|
||||
submitInfo.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO;
|
||||
|
||||
Reference in new issue
Block a user