Commit Graph

192 Commits

Author SHA1 Message Date
f185f2c31a Fix SEGV crash: Initialize window and font in stateInit()
- Move window initialization and font loading to stateInit()
- Window now opens before splash screens (required for rendering)
- Custom font loaded in stateInit for splash screen use
- Remove RL.config() call from luaCallMain() (window already initialized)
- Remove stateContextInit() call (initialization now done in stateInit)
- Add hasWindow, customFontLoaded, resolution fields to State
- Fix memory management for custom font in stateFree()

This matches the ReiLua-JamVersion architecture where the window
is opened early so splash screens can render properly.
2025-11-03 18:04:54 +05:30
737214b71b Add embedded assets, splash screens, and asset loading support
Features added:
- Embedded main.lua and Lua files support (EMBED_MAIN option)
- Embedded assets support (EMBED_ASSETS option)
- Splash screens with dual logo display (always embedded)
- Asset loading progress tracking API (BeginAssetLoading, UpdateAssetLoading, EndAssetLoading)
- Custom font embedding for splash/loading screens
- --log flag for Windows console control
- --no-logo flag to skip splash screens in development
- Python scripts for embedding (embed_lua.py, embed_assets.py, embed_logo.py, embed_font.py)
- Documentation (EMBEDDING.md, ASSET_LOADING.md, SPLASH_SCREENS.md)

This allows building single-executable releases with all Lua code and assets embedded.
2025-11-03 17:48:56 +05:30
jussi
929076b576 SetMusicPan was setting pitch fix. 2025-10-17 15:41:35 +03:00
jussi
77ba40f97e Fixed fast_tilemap and texture_atlas_repeat examples. 2025-09-18 15:30:12 +03:00
jussi
3f27d9037d Bit fastes uluaGet* functions for vectors, color, rectangle and quaternion. 2025-09-09 23:13:55 +03:00
jussi
3bedd89e1d AudioStream management functions. 2025-09-08 22:36:40 +03:00
jussi
15deeccc4b MeasureTextBoxed and DrawTextBoxedEx to DrawTextBoxed. 2025-06-11 22:44:39 +03:00
jussi
a38e76873b uluaGet* pops lua stack correctly when userdata given in table. 2025-06-11 17:00:25 +03:00
jussi
5b8af05e96 Frustum math from raylib extras. 2025-06-02 20:49:51 +03:00
jussi
e26bb8603c RL.load and RL.unload functions for memory leak debugging. SoundAlias garbage collection. 2025-05-24 23:56:42 +03:00
jussi
6a4f8ab4a3 SetImageData. 2025-05-02 16:09:33 +03:00
jussi
3471e4514f RectPack. 2025-04-09 00:34:19 +03:00
jussi
7d59796907 SDL3 Events. 2025-03-14 22:06:34 +02:00
jussi
63f3c1781c Basic sdl3 support. 2025-03-12 23:26:01 +02:00
jussi
d0ae531dbd uluaPushTransform translation field name fix. 2025-03-10 22:07:20 +02:00
jussi
6ddaea56a5 BUFFER_UNSIGNED_LONG and BUFFER_LONG. 2025-01-16 19:58:28 +02:00
jussi
5ff5a37137 SwapBufferEndianness. 2024-12-15 18:38:07 +02:00
jussi
b4b81f68c4 Gui Icons enumeration. 2024-12-11 00:21:28 +02:00
jussi
cdb719b239 EXPOSE_API_SYMBOLS, SetShaderValueWithBuffer and SetShaderValueVWithBuffer. 2024-12-10 21:50:10 +02:00
jussi
cb2b0e4dff WindowShouldClose and custom main loop example. 2024-11-22 14:57:31 +02:00
jussi
c9ebe23d62 RL.config and InitWindow. 2024-11-21 23:25:28 +02:00
jussi
3d5eeac3d7 New raylib 5.5 raymath functions. 2024-11-21 14:54:10 +02:00
jussi
6317547502 New raylib 5.5 rlgl functions. 2024-11-21 13:28:14 +02:00
jussi
4c0eb17a9c New raylib 5.5 functions. 2024-11-21 00:11:31 +02:00
jussi
479726a5e4 Initial switch to raylib 5.5. 2024-11-20 18:23:42 +02:00
jussi
cddfc09ccc glDepthRange and glPolygonOffset. 2024-10-25 21:19:42 +03:00
jussi
30c7a5eda2 GuiSetSliderDragging, GuiGetSliderDragging, GuiSetSliderActive and GuiGetSliderActive. 2024-10-02 13:02:13 +03:00
jussi
d3202073a7 FontCopy. 2024-09-26 23:02:13 +03:00
jussi
d40bf3a393 GetBufferAsString. 2024-08-29 13:01:21 +03:00
jussi
35e73465ac LoadBufferFormatted, SetBufferData and CopyBufferData. Compressed resource file example. 2024-08-27 21:41:31 +03:00
jussi
b011b2ca4e GetRayBoxCells fix. 2024-08-05 23:35:57 +03:00
jussi
03e9226b5f GetRayBoxCells. 2024-07-19 22:57:31 +03:00
jussi
c7b7975482 DrawGridEx. 2024-07-17 00:06:43 +03:00
jussi
61c932f260 GetMouseOffset and GetMouseScale. 2024-07-02 20:49:25 +03:00
jussi
fd18b5526e GuiGetIcons fix and added GuiSetIcons. 2024-07-02 14:59:38 +03:00
jussi
d3e1842203 DrawTextBoxedEx. 2024-06-15 16:31:40 +03:00
jussi
e9539e9373 DrawTextBoxed uses lineSpacing. GetTextLineSpacing. 2024-06-13 14:52:56 +03:00
jussi
cd8989376e Userdata objects can be passed in table. 2024-05-22 22:40:16 +03:00
jussi
c95c797da6 GetPlatform. 2024-05-20 17:56:28 +03:00
jussi
9edaf7a47b Use GetApplicationDirectory instead of GetWorkingDirectory for basePath if no path argument given. 2024-05-20 15:45:31 +03:00
jussi
b3980ae2a5 GetMeshData. 2024-05-10 11:02:31 +03:00
jussi
4452bccfa6 Bitwise operations for cross Lua compatibility. 2024-05-01 15:21:28 +03:00
jussi
41b6739824 Stencil reflection example. 2024-04-15 21:57:32 +03:00
jussi
3aecd6dd99 OpenGL Stencil management functions. 2024-04-15 20:07:32 +03:00
jussi
ae1d0b65f1 Round and pubsub lib. 2024-03-17 10:38:30 +02:00
jussi
ca238975dc Automation events. 2024-03-01 23:11:54 +02:00
jussi
625e4e0e4d EnableEventWaiting and DisableEventWaiting. 2024-02-25 21:02:11 +02:00
jussi
47ed28b006 Added various missing functions. 2024-02-25 14:06:59 +02:00
jussi
631cea6aa7 Rest of rlgl and raymath functions. 2024-02-24 18:09:53 +02:00
jussi
9f1bec39f9 Api Scanner. 2024-02-24 17:27:34 +02:00