/
redgpu
/
raygpu
Обзор
Документация
Войти
/
redgpu
/
raygpu
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
examples/core_vsync_fullscreen.c
19 строк
716 B
FIRST_NAME LAST_NAME
test f16 texture
16 янв 2025, 18:13
16 янв 2025, 18:13
724f203
Код
Авторство
О чём код?
#include <raygpu.h> int main(void){ SetConfigFlags(FLAG_VSYNC_HINT | FLAG_FULLSCREEN_MODE); InitWindow(GetMonitorWidth(), GetMonitorHeight(), "WebGPU window"); bool flag = 0; const int textWidth = MeasureText("Hello VSync Enjoyer", 100); while(!WindowShouldClose()){ BeginDrawing(); ClearBackground((Color){130, 130, 130, 255}); DrawText("Hello VSync Enjoyer", GetScreenWidth() / 2 - textWidth / 2, GetScreenHeight() / 2 - 50, 100, (Color){210, 210, 210,255}); DrawCircleSector(GetMousePosition(), 100.0f, 0.0f, 360.0f, 128, WHITE); DrawFPS(10, 10); if(IsKeyPressed(KEY_F)){ ToggleFullscreen(); } EndDrawing(); } }