瀏覽代碼

Use 60 FPS for textures_image_loading example (#1867)

pull/1869/head
Daniel Nagy 4 年之前
committed by GitHub
父節點
當前提交
8a46b5e6c0
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      examples/textures/textures_image_loading.c

+ 2
- 1
examples/textures/textures_image_loading.c 查看文件

@ -28,6 +28,7 @@ int main(void)
Texture2D texture = LoadTextureFromImage(image); // Image converted to texture, GPU memory (VRAM)
UnloadImage(image); // Once image has been converted to texture and uploaded to VRAM, it can be unloaded from RAM
SetTargetFPS(60); // Set our game to run at 60 frames-per-second
//---------------------------------------------------------------------------------------
// Main game loop
@ -60,4 +61,4 @@ int main(void)
//--------------------------------------------------------------------------------------
return 0;
}
}

Loading…
取消
儲存