switch-examples: Updated all example resolutions to docked 720p

This commit is contained in:
Spencer Vaughn 2023-02-22 06:56:27 -06:00
commit 394c5e178f
127 changed files with 256 additions and 253 deletions

View file

@ -26,7 +26,7 @@
# Define required environment variables # Define required environment variables
#------------------------------------------------------------------------------------------------ #------------------------------------------------------------------------------------------------
# Define target platform: PLATFORM_DESKTOP, PLATFORM_RPI, PLATFORM_DRM, PLATFORM_ANDROID, PLATFORM_WEB, PLATFORM_NX # Define target platform: PLATFORM_DESKTOP, PLATFORM_RPI, PLATFORM_DRM, PLATFORM_ANDROID, PLATFORM_WEB, PLATFORM_NX
PLATFORM ?= PLATFORM_DESKTOP PLATFORM ?= PLATFORM_NX
# Define required raylib variables # Define required raylib variables
PROJECT_NAME ?= raylib_examples PROJECT_NAME ?= raylib_examples

View file

@ -12,6 +12,7 @@
********************************************************************************************/ ********************************************************************************************/
#include "raylib.h" #include "raylib.h"
#include <switch.h>
#define MAX_CIRCLES 64 #define MAX_CIRCLES 64
@ -30,8 +31,10 @@ int main(void)
{ {
// Initialization // Initialization
//-------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------
const int screenWidth = 800; const int screenWidth = 1280;
const int screenHeight = 450; const int screenHeight = 720;
romfsInit();
SetConfigFlags(FLAG_MSAA_4X_HINT); // NOTE: Try to enable MSAA 4X SetConfigFlags(FLAG_MSAA_4X_HINT); // NOTE: Try to enable MSAA 4X

View file

@ -22,8 +22,8 @@ int main(void)
{ {
// Initialization // Initialization
//-------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------
const int screenWidth = 800; const int screenWidth = 1280;
const int screenHeight = 450; const int screenHeight = 720;
InitWindow(screenWidth, screenHeight, "raylib [audio] example - Multichannel sound playing"); InitWindow(screenWidth, screenHeight, "raylib [audio] example - Multichannel sound playing");

View file

@ -20,8 +20,8 @@ int main(void)
{ {
// Initialization // Initialization
//-------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------
const int screenWidth = 800; const int screenWidth = 1280;
const int screenHeight = 450; const int screenHeight = 720;
InitWindow(screenWidth, screenHeight, "raylib [audio] example - music playing (streaming)"); InitWindow(screenWidth, screenHeight, "raylib [audio] example - music playing (streaming)");

View file

@ -58,8 +58,8 @@ int main(void)
{ {
// Initialization // Initialization
//-------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------
const int screenWidth = 800; const int screenWidth = 1280;
const int screenHeight = 450; const int screenHeight = 720;
InitWindow(screenWidth, screenHeight, "raylib [audio] example - raw audio streaming"); InitWindow(screenWidth, screenHeight, "raylib [audio] example - raw audio streaming");

View file

@ -20,8 +20,8 @@ int main(void)
{ {
// Initialization // Initialization
//-------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------
const int screenWidth = 800; const int screenWidth = 1280;
const int screenHeight = 450; const int screenHeight = 720;
InitWindow(screenWidth, screenHeight, "raylib [audio] example - sound loading and playing"); InitWindow(screenWidth, screenHeight, "raylib [audio] example - sound loading and playing");

View file

@ -34,8 +34,8 @@ int main(void)
{ {
// Initialization // Initialization
//-------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------
const int screenWidth = 800; const int screenWidth = 1280;
const int screenHeight = 450; const int screenHeight = 720;
InitWindow(screenWidth, screenHeight, "raylib [audio] example - stream effects"); InitWindow(screenWidth, screenHeight, "raylib [audio] example - stream effects");

View file

@ -22,8 +22,8 @@ int main(void)
{ {
// Initialization // Initialization
//-------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------
const int screenWidth = 800; const int screenWidth = 1280;
const int screenHeight = 450; const int screenHeight = 720;
InitWindow(screenWidth, screenHeight, "raylib [core] example - 2d camera"); InitWindow(screenWidth, screenHeight, "raylib [core] example - 2d camera");

View file

@ -23,8 +23,8 @@ int main ()
{ {
// Initialization // Initialization
//-------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------
const int screenWidth = 800; const int screenWidth = 1280;
const int screenHeight = 450; const int screenHeight = 720;
InitWindow(screenWidth, screenHeight, "raylib [core] example - 2d camera mouse zoom"); InitWindow(screenWidth, screenHeight, "raylib [core] example - 2d camera mouse zoom");

View file

@ -49,8 +49,8 @@ int main(void)
{ {
// Initialization // Initialization
//-------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------
const int screenWidth = 800; const int screenWidth = 1280;
const int screenHeight = 450; const int screenHeight = 720;
InitWindow(screenWidth, screenHeight, "raylib [core] example - 2d camera"); InitWindow(screenWidth, screenHeight, "raylib [core] example - 2d camera");

View file

@ -22,8 +22,8 @@ int main(void)
{ {
// Initialization // Initialization
//-------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------
const int screenWidth = 800; const int screenWidth = 1280;
const int screenHeight = 450; const int screenHeight = 720;
InitWindow(screenWidth, screenHeight, "raylib [core] example - 3d camera first person"); InitWindow(screenWidth, screenHeight, "raylib [core] example - 3d camera first person");

View file

@ -20,8 +20,8 @@ int main(void)
{ {
// Initialization // Initialization
//-------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------
const int screenWidth = 800; const int screenWidth = 1280;
const int screenHeight = 450; const int screenHeight = 720;
InitWindow(screenWidth, screenHeight, "raylib [core] example - 3d camera free"); InitWindow(screenWidth, screenHeight, "raylib [core] example - 3d camera free");

View file

@ -20,8 +20,8 @@ int main(void)
{ {
// Initialization // Initialization
//-------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------
const int screenWidth = 800; const int screenWidth = 1280;
const int screenHeight = 450; const int screenHeight = 720;
InitWindow(screenWidth, screenHeight, "raylib [core] example - 3d camera mode"); InitWindow(screenWidth, screenHeight, "raylib [core] example - 3d camera mode");

View file

@ -20,8 +20,8 @@ int main(void)
{ {
// Initialization // Initialization
//-------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------
const int screenWidth = 800; const int screenWidth = 1280;
const int screenHeight = 450; const int screenHeight = 720;
InitWindow(screenWidth, screenHeight, "raylib [core] example - 3d picking"); InitWindow(screenWidth, screenHeight, "raylib [core] example - 3d picking");

View file

@ -27,8 +27,8 @@ int main(void)
{ {
// Initialization // Initialization
//-------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------
const int screenWidth = 800; const int screenWidth = 1280;
const int screenHeight = 450; const int screenHeight = 720;
InitWindow(screenWidth, screenHeight, "raylib [core] example - basic screen manager"); InitWindow(screenWidth, screenHeight, "raylib [core] example - basic screen manager");

View file

@ -30,8 +30,8 @@ int main(void)
{ {
// Initialization // Initialization
//-------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------
const int screenWidth = 800; const int screenWidth = 1280;
const int screenHeight = 450; const int screenHeight = 720;
InitWindow(screenWidth, screenHeight, "raylib [core] example - basic window"); InitWindow(screenWidth, screenHeight, "raylib [core] example - basic window");

View file

@ -26,8 +26,8 @@
//---------------------------------------------------------------------------------- //----------------------------------------------------------------------------------
// Global Variables Definition // Global Variables Definition
//---------------------------------------------------------------------------------- //----------------------------------------------------------------------------------
const int screenWidth = 800; const int screenWidth = 1280;
const int screenHeight = 450; const int screenHeight = 720;
//---------------------------------------------------------------------------------- //----------------------------------------------------------------------------------
// Module functions declaration // Module functions declaration

View file

@ -35,8 +35,8 @@ int main(void)
{ {
// Initialization // Initialization
//-------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------
const int screenWidth = 800; const int screenWidth = 1280;
const int screenHeight = 450; const int screenHeight = 720;
InitWindow(screenWidth, screenHeight, "raylib [core] example - custom frame control"); InitWindow(screenWidth, screenHeight, "raylib [core] example - custom frame control");

View file

@ -48,8 +48,8 @@ int main(void)
{ {
// Initialization // Initialization
//-------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------
const int screenWidth = 800; const int screenWidth = 1280;
const int screenHeight = 450; const int screenHeight = 720;
// Set custom logger // Set custom logger
SetTraceLogCallback(CustomLog); SetTraceLogCallback(CustomLog);

View file

@ -22,8 +22,8 @@ int main(void)
{ {
// Initialization // Initialization
//-------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------
const int screenWidth = 800; const int screenWidth = 1280;
const int screenHeight = 450; const int screenHeight = 720;
InitWindow(screenWidth, screenHeight, "raylib [core] example - drop files"); InitWindow(screenWidth, screenHeight, "raylib [core] example - drop files");

Some files were not shown because too many files have changed in this diff Show more