mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-11-30 14:10:39 +00:00
Updated test programs with SDL_M_PI*
This commit is contained in:
@@ -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 + M_PI * 2 / 3));
|
||||
clearColor.float32[2] = (float)(0.5 + 0.5 * SDL_sin(currentTime + M_PI * 4 / 3));
|
||||
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[3] = 1;
|
||||
rerecordCommandBuffer(frameIndex, &clearColor);
|
||||
submitInfo.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO;
|
||||
|
||||
Reference in New Issue
Block a user