examples/renderer/19-affine-textures: add metadata for examples.libsdl.org.

This commit is contained in:
Ryan C. Gordon
2025-03-28 14:18:39 -04:00
parent 5ab1aef367
commit 567dfd2ebc
4 changed files with 4 additions and 1 deletions

View File

@@ -85,7 +85,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
const float px = SDL_min(WINDOW_WIDTH, WINDOW_HEIGHT) / SDL_sqrtf(3.0f);
const Uint64 now = SDL_GetTicks();
const float rad = (((float) ((int) (now % 4000))) / 4000.0f) * SDL_PI_F * 2;
const float rad = (((float) ((int) (now % 2000))) / 2000.0f) * SDL_PI_F * 2;
const float cos = SDL_cosf(rad);
const float sin = SDL_sinf(rad);
const float k[3] = { 3.0f / SDL_sqrtf(50.0f), 4.0f / SDL_sqrtf(50.0f), 5.0f / SDL_sqrtf(50.0f)};