summaryrefslogtreecommitdiffhomepage
path: root/examples/textures_logo_raylib.lua
diff options
context:
space:
mode:
authorRay <[email protected]>2017-02-07 09:40:06 +0100
committerGitHub <[email protected]>2017-02-07 09:40:06 +0100
commit94929011330b27f3d027975b52cf0d43ba85c38b (patch)
tree9ddff0e6ddba65004557c3628a3d56dfaf47ea4b /examples/textures_logo_raylib.lua
parent17f09cb03484a408cdd50a3d2e4d6604bb1f4c70 (diff)
parent1f6eb1fc61d2cc0cca54a79c1516432f09c86313 (diff)
downloadraylib-94929011330b27f3d027975b52cf0d43ba85c38b.tar.gz
raylib-94929011330b27f3d027975b52cf0d43ba85c38b.zip
Merge pull request #223 from raysan5/develop
Integrate develop branch into master
Diffstat (limited to 'examples/textures_logo_raylib.lua')
-rw-r--r--examples/textures_logo_raylib.lua49
1 files changed, 0 insertions, 49 deletions
diff --git a/examples/textures_logo_raylib.lua b/examples/textures_logo_raylib.lua
deleted file mode 100644
index 3abcd802..00000000
--- a/examples/textures_logo_raylib.lua
+++ /dev/null
@@ -1,49 +0,0 @@
--------------------------------------------------------------------------------------------
---
--- raylib [textures] example - Texture loading and drawing
---
--- This example has been created using raylib 1.6 (www.raylib.com)
--- raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
---
--- Copyright (c) 2014-2016 Ramon Santamaria (@raysan5)
---
--------------------------------------------------------------------------------------------
-
--- Initialization
--------------------------------------------------------------------------------------------
-local screenWidth = 800
-local screenHeight = 450
-
-InitWindow(screenWidth, screenHeight, "raylib [textures] example - texture loading and drawing")
-
--- NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required)
-local texture = LoadTexture("resources/raylib_logo.png") -- Texture loading
--------------------------------------------------------------------------------------------
-
--- Main game loop
-while not WindowShouldClose() do -- Detect window close button or ESC key
- -- Update
- ---------------------------------------------------------------------------------------
- -- TODO: Update your variables here
- ---------------------------------------------------------------------------------------
-
- -- Draw
- ---------------------------------------------------------------------------------------
- BeginDrawing()
-
- ClearBackground(RAYWHITE)
-
- DrawTexture(texture, screenWidth/2 - texture.width/2, screenHeight/2 - texture.height/2, WHITE)
-
- DrawText("this IS a texture!", 360, 370, 10, GRAY)
-
- EndDrawing()
- ---------------------------------------------------------------------------------------
-end
-
--- De-Initialization
--------------------------------------------------------------------------------------------
-UnloadTexture(texture) -- Texture unloading
-
-CloseWindow() -- Close window and OpenGL context
-------------------------------------------------------------------------------------------- \ No newline at end of file