Review templates for Android
- Removed useless templates - Reviewed all Makefiles - Rework some code for Android support - Added resources to advance template
This commit is contained in:
parent
d012316b87
commit
0d8a994d95
1 changed files with 1252 additions and 1183 deletions
|
|
@ -34,6 +34,8 @@
|
|||
static int framesCounter;
|
||||
static int finishScreen;
|
||||
|
||||
static Texture2D logo;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
// Logo Screen Functions Definition
|
||||
//----------------------------------------------------------------------------------
|
||||
|
|
@ -44,6 +46,8 @@ void InitLogoScreen(void)
|
|||
// TODO: Initialize LOGO screen variables here!
|
||||
framesCounter = 0;
|
||||
finishScreen = 0;
|
||||
|
||||
logo = LoadTexture("resources/raylib_logo.png");
|
||||
}
|
||||
|
||||
// Logo Screen Update logic
|
||||
|
|
@ -64,14 +68,18 @@ void UpdateLogoScreen(void)
|
|||
void DrawLogoScreen(void)
|
||||
{
|
||||
// TODO: Draw LOGO screen here!
|
||||
DrawText("LOGO SCREEN", 20, 20, 40, LIGHTGRAY);
|
||||
DrawText("WAIT for 2 SECONDS...", 290, 220, 20, GRAY);
|
||||
DrawTextEx(font, "LOGO SCREEN", (Vector2){ 20, 10 }, font.baseSize*3, 4, GRAY);
|
||||
DrawText("WAIT for 2 SECONDS...", 290, 400, 20, GRAY);
|
||||
|
||||
DrawTexture(logo, GetScreenWidth()/2 - logo.width/2, 100, WHITE);
|
||||
}
|
||||
|
||||
// Logo Screen Unload logic
|
||||
void UnloadLogoScreen(void)
|
||||
{
|
||||
// TODO: Unload LOGO screen variables here!
|
||||
|
||||
UnloadTexture(logo);
|
||||
}
|
||||
|
||||
// Logo Screen should finish?
|
||||
|
|
|
|||
Loading…
Reference in a new issue