Vendor raylib-esp32 v1.0.3 (63db94b) under lib/ — raylib 6.x core with the rlsw software renderer plus the ESP32-S3 port layer (SPI display drivers, async double-buffered flush). raylib/examples, projects, tools and logo are trimmed (~80 MB of content nothing here compiles); see lib/raylib-esp32/VENDOR.md for provenance. New floorplan3d-demo (emulator-template base) renders the NetDeck demo map (nd_demomap.h) as a 3D floor plan — bulkhead walls, blast door, cover crates, airlock pad, terminal — through the real on-device 3D stack on the desktop: - rcore_emu.c: desktop PLATFORM_CUSTOM layer mirroring rcore_esp32.c, flushing the RGB565 sw-renderer buffer into emuGfx::fb instead of SPI - raylib_emu_config.h: same module/limit defines as the device build - HUD via 3x5 bitmap font into fb: rlsw's 2D textured-quad path (DrawText/DrawRectangle) misplaces/flips quads and samples wrong atlas texels in this build; the 3D path is pixel-accurate Verified: dual build (make netdeck) green, demo smoke test clean at ~59 FPS, 600-frame stability run OK.
120 lines
4.5 KiB
C
120 lines
4.5 KiB
C
/**
|
|
* raylib_emu_config.h — raylib build configuration for the FloorPlan3D
|
|
* emulator demo (desktop port of raylib-esp32's raylib_esp32_config.h).
|
|
*
|
|
* raylib-esp32 (lib/raylib-esp32) runs raylib 6.x on the ESP32-S3 using the
|
|
* rlsw software renderer (GRAPHICS_API_OPENGL_SOFTWARE) behind a custom
|
|
* platform layer. This demo uses the exact same raylib code and renderer on
|
|
* the desktop, so what you see in the emulator is what the T-Deck would
|
|
* render — only the display flush differs (SDL framebuffer instead of SPI).
|
|
*
|
|
* This header is force-included (-include) into every raylib translation
|
|
* unit by the Makefile, mirroring the library's pio_build.py.
|
|
*/
|
|
#ifndef RAYLIB_EMU_CONFIG_H
|
|
#define RAYLIB_EMU_CONFIG_H
|
|
|
|
#ifndef EXTERNAL_CONFIG_FLAGS
|
|
#define EXTERNAL_CONFIG_FLAGS
|
|
#endif
|
|
|
|
// Software renderer framebuffer — same format as on the ESP32 build so the
|
|
// 565→8888 blit into emuGfx::fb is byte-identical to the device path.
|
|
#define SW_FRAMEBUFFER_COLOR_TYPE R5G6B5
|
|
#define SW_FRAMEBUFFER_DEPTH_TYPE D16
|
|
#define SW_FRAMEBUFFER_OUTPUT_BGRA false
|
|
|
|
// ---------------------------------------------------------------------------
|
|
// Module selection (audio off, same as on-device)
|
|
// ---------------------------------------------------------------------------
|
|
#define SUPPORT_MODULE_RSHAPES 1
|
|
#define SUPPORT_MODULE_RTEXTURES 1
|
|
#define SUPPORT_MODULE_RTEXT 1
|
|
#define SUPPORT_MODULE_RMODELS 1
|
|
#define SUPPORT_MODULE_RAUDIO 0
|
|
|
|
// ---------------------------------------------------------------------------
|
|
// rcore
|
|
// ---------------------------------------------------------------------------
|
|
#define SUPPORT_CAMERA_SYSTEM 1
|
|
#define SUPPORT_GESTURES_SYSTEM 1
|
|
#define SUPPORT_RPRAND_GENERATOR 1
|
|
#define SUPPORT_MOUSE_GESTURES 0
|
|
#define SUPPORT_SSH_KEYBOARD_RPI 0
|
|
#define SUPPORT_WINMM_HIGHRES_TIMER 0
|
|
#define SUPPORT_PARTIALBUSY_WAIT_LOOP 0
|
|
#define SUPPORT_SCREEN_CAPTURE 0
|
|
#define SUPPORT_GIF_RECORDING 0
|
|
#define SUPPORT_AUTOMATION_EVENTS 0
|
|
#define SUPPORT_CLIPBOARD_IMAGE 0
|
|
|
|
#define MAX_FILEPATH_CAPACITY 512
|
|
#define MAX_FILEPATH_LENGTH 256
|
|
#define MAX_KEYBOARD_KEYS 128
|
|
#define MAX_MOUSE_BUTTONS 4
|
|
#define MAX_GAMEPADS 1
|
|
#define MAX_GAMEPAD_AXES 4
|
|
#define MAX_GAMEPAD_BUTTONS 16
|
|
#define MAX_GAMEPAD_VIBRATION_TIME 2.0f
|
|
#define MAX_TOUCH_POINTS 4
|
|
#define MAX_KEY_PRESSED_QUEUE 8
|
|
#define MAX_CHAR_PRESSED_QUEUE 8
|
|
#define MAX_DECOMPRESSION_SIZE 16
|
|
|
|
// ---------------------------------------------------------------------------
|
|
// rlgl (embedded-friendly batch sizes, same as the ESP32 build)
|
|
// ---------------------------------------------------------------------------
|
|
#define RL_SUPPORT_MESH_GPU_SKINNING 0
|
|
#define RL_DEFAULT_BATCH_BUFFERS 1
|
|
#define RL_DEFAULT_BATCH_DRAWCALLS 128
|
|
#define RL_DEFAULT_BATCH_MAX_TEXTURE_UNITS 2
|
|
#define RL_MAX_MATRIX_STACK_SIZE 16
|
|
#define RL_MAX_SHADER_LOCATIONS 16
|
|
#define RL_CULL_DISTANCE_NEAR 0.05
|
|
#define RL_CULL_DISTANCE_FAR 1000.0
|
|
|
|
// ---------------------------------------------------------------------------
|
|
// rshapes
|
|
// ---------------------------------------------------------------------------
|
|
#define SUPPORT_QUADS_DRAW_MODE 1
|
|
#define SPLINE_SEGMENT_DIVISIONS 16
|
|
|
|
// ---------------------------------------------------------------------------
|
|
// rtextures — image file formats (PNG for the window icon, same as device)
|
|
// ---------------------------------------------------------------------------
|
|
#define SUPPORT_FILEFORMAT_PNG 1
|
|
#define SUPPORT_FILEFORMAT_BMP 0
|
|
#define SUPPORT_FILEFORMAT_TGA 0
|
|
#define SUPPORT_FILEFORMAT_JPG 0
|
|
#define SUPPORT_FILEFORMAT_GIF 0
|
|
#define SUPPORT_FILEFORMAT_QOI 1
|
|
#define SUPPORT_FILEFORMAT_PSD 0
|
|
#define SUPPORT_FILEFORMAT_DDS 0
|
|
#define SUPPORT_FILEFORMAT_HDR 0
|
|
#define SUPPORT_FILEFORMAT_PIC 0
|
|
#define SUPPORT_FILEFORMAT_KTX 0
|
|
#define SUPPORT_FILEFORMAT_ASTC 0
|
|
#define MAX_IMAGE_FLIP_QUEUE 2
|
|
|
|
// ---------------------------------------------------------------------------
|
|
// rtext — font file formats (embedded default font only, like on device)
|
|
// ---------------------------------------------------------------------------
|
|
#define SUPPORT_FILEFORMAT_FNT 1
|
|
#define SUPPORT_FILEFORMAT_TTF 0
|
|
#define SUPPORT_FILEFORMAT_BMF 0
|
|
#define MAX_TEXT_BUFFER_LENGTH 512
|
|
#define MAX_TEXTSPLIT_COUNT 64
|
|
|
|
// ---------------------------------------------------------------------------
|
|
// rmodels — 3D model file formats
|
|
// ---------------------------------------------------------------------------
|
|
#define SUPPORT_FILEFORMAT_OBJ 1
|
|
#define SUPPORT_FILEFORMAT_MTL 1
|
|
#define SUPPORT_FILEFORMAT_GLTF 1
|
|
#define SUPPORT_FILEFORMAT_M3D 1
|
|
#define SUPPORT_FILEFORMAT_VOX 0
|
|
#define SUPPORT_FILEFORMAT_IQM 0
|
|
#define SUPPORT_MESH_GENERATION 1
|
|
|
|
#endif // RAYLIB_EMU_CONFIG_H
|