Renamed ex02b and added image placeholder
This commit is contained in:
parent
0ae8fab83a
commit
df0c959523
3 changed files with 3 additions and 2 deletions
BIN
examples/ex02b_basic_shapes.png
Normal file
BIN
examples/ex02b_basic_shapes.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.8 KiB |
|
@ -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
|
||||||
//----------------------------------------------------------
|
//----------------------------------------------------------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue