瀏覽代碼

Renamed ex02b and added image placeholder

raysan5 11 年之前
父節點
當前提交
df0c959523
共有 3 個文件被更改,包括 3 次插入2 次删除
  1. 0 0
      examples/ex02b_basic_shapes.c
  2. 二進制
      examples/ex02b_basic_shapes.png
  3. 3 2
      examples/ex04a_textures.c

+ 0 - 0
examples/ex02b_shapes.c → examples/ex02b_basic_shapes.c


二進制
examples/ex02b_basic_shapes.png


+ 3 - 2
examples/ex04a_textures.c

@@ -38,7 +38,8 @@ int main()
         
         
             ClearBackground(RAYWHITE);
             ClearBackground(RAYWHITE);
             
             
-            DrawTexture(texture, screenWidth/2 - texture.width/2, screenHeight/2 - texture.height/2, WHITE);
+            DrawTexture(texture, screenWidth/2 - texture.width/2, 
+                        screenHeight/2 - texture.height/2, WHITE);
             
             
             DrawText("this IS a texture!", 360, 370, 10, 1, GRAY);
             DrawText("this IS a texture!", 360, 370, 10, 1, GRAY);
         
         
@@ -48,7 +49,7 @@ int main()
 
 
     // De-Initialization
     // De-Initialization
     //---------------------------------------------------------
     //---------------------------------------------------------
-    UnloadTexture(texture);        // Texture unloading
+    UnloadTexture(texture);       // Texture unloading
     
     
     CloseWindow();                // Close window and OpenGL context
     CloseWindow();                // Close window and OpenGL context
     //----------------------------------------------------------
     //----------------------------------------------------------