瀏覽代碼

explained a bit more the core_window_letterbox example (#925)

pull/929/head
João Coelho 6 年之前
committed by Ray
父節點
當前提交
68ffbc06c7
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      examples/core/core_window_letterbox.c

+ 2
- 2
examples/core/core_window_letterbox.c 查看文件

@ -29,7 +29,7 @@ int main(void)
int gameScreenWidth = 640;
int gameScreenHeight = 480;
// Render texture initialization
// Render texture initialization, used to hold the rendering result so we can easily resize it
RenderTexture2D target = LoadRenderTexture(gameScreenWidth, gameScreenHeight);
SetTextureFilter(target.texture, FILTER_BILINEAR); // Texture scale filter to use
@ -59,7 +59,7 @@ int main(void)
BeginDrawing();
ClearBackground(BLACK);
// Draw everything in the render texture
// Draw everything in the render texture, note this will not be rendered on screen, yet
BeginTextureMode(target);
ClearBackground(RAYWHITE); // Clear render texture background color

Loading…
取消
儲存