Add Wayland DRM leasing support to the Linux DRM backend
This commit is contained in:
parent
3366acf975
commit
cc772e4bcb
8 changed files with 1567 additions and 54 deletions
|
@ -474,6 +474,9 @@ ifeq ($(TARGET_PLATFORM),PLATFORM_DRM)
|
|||
# Libraries for DRM compiling
|
||||
# NOTE: Required packages: libasound2-dev (ALSA)
|
||||
LDLIBS = -lraylib -lGLESv2 -lEGL -lpthread -lrt -lm -lgbm -ldrm -ldl -latomic
|
||||
ifeq ($(ENABLE_WAYLAND_DRM_LEASING), yes)
|
||||
LDFLAGS += $(shell pkg-config --libs wayland-client) -DENABLE_WAYLAND_DRM_LEASING
|
||||
endif
|
||||
endif
|
||||
ifeq ($(TARGET_PLATFORM),PLATFORM_WEB)
|
||||
# Libraries for web (HTML5) compiling
|
||||
|
|
|
@ -20,10 +20,12 @@ int main(void)
|
|||
{
|
||||
// Initialization
|
||||
//---------------------------------------------------------
|
||||
const int screenWidth = 800;
|
||||
const int screenHeight = 450;
|
||||
const int screenWidth = 1920;
|
||||
const int screenHeight = 1080;
|
||||
|
||||
SetTraceLogLevel(LOG_TRACE);
|
||||
SetConfigFlags(FLAG_MSAA_4X_HINT);
|
||||
SetTargetFPS(120); // Set our game to run at 60 frames-per-second
|
||||
InitWindow(screenWidth, screenHeight, "raylib [shapes] example - bouncing ball");
|
||||
|
||||
Vector2 ballPosition = { GetScreenWidth()/2.0f, GetScreenHeight()/2.0f };
|
||||
|
@ -33,7 +35,6 @@ int main(void)
|
|||
bool pause = 0;
|
||||
int framesCounter = 0;
|
||||
|
||||
SetTargetFPS(60); // Set our game to run at 60 frames-per-second
|
||||
//----------------------------------------------------------
|
||||
|
||||
// Main game loop
|
||||
|
@ -79,4 +80,4 @@ int main(void)
|
|||
//----------------------------------------------------------
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue