Skip to content

Commit 9e48a73

Browse files
committed
Merge branch 'master' into platform-lsp
2 parents c318cd5 + 9bf7699 commit 9e48a73

84 files changed

Lines changed: 19078 additions & 2861 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/analyze_codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171

7272
# Initializes the CodeQL tools for scanning.
7373
- name: Initialize CodeQL
74-
uses: github/codeql-action/init@v2
74+
uses: github/codeql-action/init@v3
7575
with:
7676
languages: ${{ matrix.language }}
7777
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -90,7 +90,7 @@ jobs:
9090
cmake --build . --config $BUILD_TYPE
9191
9292
- name: Perform CodeQL Analysis
93-
uses: github/codeql-action/analyze@v2
93+
uses: github/codeql-action/analyze@v3
9494
with:
9595
category: "/language:${{matrix.language}}"
9696
upload: false

.github/workflows/parse_api.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ jobs:
3232
set -x
3333
git config user.name "github-actions[bot]"
3434
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
35-
git add tools/parser
36-
git commit -m "Update raylib_api.* by CI"
35+
git add tools/rlparser
36+
git commit -m "rlparser: update raylib_api.* by CI"
3737
git push

CMakeOptions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if(EMSCRIPTEN)
88
endif()
99
enum_option(PLATFORM "Desktop;Web;Android;Raspberry Pi;DRM;SDL" "Platform to build for.")
1010

11-
enum_option(OPENGL_VERSION "OFF;4.3;3.3;2.1;1.1;ES 2.0;ES 3.0" "Force a specific OpenGL Version?")
11+
enum_option(OPENGL_VERSION "OFF;4.3;3.3;2.1;1.1;ES 2.0;ES 3.0;Software" "Force a specific OpenGL Version?")
1212

1313
# Configuration options
1414
option(BUILD_EXAMPLES "Build the examples." ${PROJECT_IS_TOP_LEVEL})

build.zig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,8 @@ fn compileRaylib(b: *std.Build, target: std.Build.ResolvedTarget, optimize: std.
386386
setDesktopPlatform(raylib, options.platform);
387387
},
388388
.emscripten => {
389+
const activate_emsdk_step = emsdk.zemscripten.activateEmsdkStep(b);
390+
raylib.step.dependOn(activate_emsdk_step);
389391
raylib.root_module.addCMacro("PLATFORM_WEB", "");
390392
if (options.opengl_version == .auto) {
391393
raylib.root_module.addCMacro("GRAPHICS_API_OPENGL_ES3", "");

cmake/LibraryConfigurations.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ if (NOT ${OPENGL_VERSION} MATCHES "OFF")
158158
set(GRAPHICS "GRAPHICS_API_OPENGL_ES2")
159159
elseif (${OPENGL_VERSION} MATCHES "ES 3.0")
160160
set(GRAPHICS "GRAPHICS_API_OPENGL_ES3")
161+
elseif (${OPENGL_VERSION} MATCHES "Software")
162+
set(GRAPHICS "GRAPHICS_API_OPENGL_11_SOFTWARE")
161163
endif ()
162164
if (NOT "${SUGGESTED_GRAPHICS}" STREQUAL "" AND NOT "${SUGGESTED_GRAPHICS}" STREQUAL "${GRAPHICS}")
163165
message(WARNING "You are overriding the suggested GRAPHICS=${SUGGESTED_GRAPHICS} with ${GRAPHICS}! This may fail.")

examples/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ elseif ("${PLATFORM}" STREQUAL "DRM")
105105
list(REMOVE_ITEM example_sources ${CMAKE_CURRENT_SOURCE_DIR}/others/rlgl_standalone.c)
106106
list(REMOVE_ITEM example_sources ${CMAKE_CURRENT_SOURCE_DIR}/others/raylib_opengl_interop.c)
107107

108+
elseif ("${OPENGL_VERSION}" STREQUAL "Software")
109+
list(REMOVE_ITEM example_sources ${CMAKE_CURRENT_SOURCE_DIR}/others/rlgl_standalone.c)
110+
list(REMOVE_ITEM example_sources ${CMAKE_CURRENT_SOURCE_DIR}/others/raylib_opengl_interop.c)
111+
108112
elseif (NOT SUPPORT_GESTURES_SYSTEM)
109113
# Items requiring gestures system
110114
list(REMOVE_ITEM example_sources ${CMAKE_CURRENT_SOURCE_DIR}/textures/textures_mouse_painting.c)

examples/Makefile

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ ifeq ($(TARGET_PLATFORM),$(filter $(TARGET_PLATFORM),PLATFORM_WEB PLATFORM_WEB_R
355355
ifeq ($(BUILD_WEB_WEBGL2),TRUE)
356356
LDFLAGS += -sMIN_WEBGL_VERSION=2 -sMAX_WEBGL_VERSION=2
357357
endif
358-
358+
359359
# Add resources building if required
360360
ifeq ($(BUILD_WEB_RESOURCES),TRUE)
361361
LDFLAGS += --preload-file $(BUILD_WEB_RESOURCES_PATH)
@@ -514,8 +514,10 @@ CORE = \
514514
core/core_basic_window \
515515
core/core_custom_frame_control \
516516
core/core_custom_logging \
517+
core/core_delta_time \
517518
core/core_drop_files \
518519
core/core_high_dpi \
520+
core/core_input_actions \
519521
core/core_input_gamepad \
520522
core/core_input_gestures \
521523
core/core_input_gestures_testbed \
@@ -524,6 +526,7 @@ CORE = \
524526
core/core_input_mouse_wheel \
525527
core/core_input_multitouch \
526528
core/core_input_virtual_controls \
529+
core/core_monitor_change \
527530
core/core_random_sequence \
528531
core/core_random_values \
529532
core/core_render_texture \
@@ -540,24 +543,30 @@ CORE = \
540543
SHAPES = \
541544
shapes/shapes_basic_shapes \
542545
shapes/shapes_bouncing_ball \
546+
shapes/shapes_bullet_hell \
543547
shapes/shapes_circle_sector_drawing \
544548
shapes/shapes_collision_area \
545549
shapes/shapes_colors_palette \
550+
shapes/shapes_dashed_line \
546551
shapes/shapes_digital_clock \
547552
shapes/shapes_double_pendulum \
548553
shapes/shapes_easings_ball \
549554
shapes/shapes_easings_box \
550555
shapes/shapes_easings_rectangles \
551556
shapes/shapes_following_eyes \
557+
shapes/shapes_kaleidoscope \
552558
shapes/shapes_lines_bezier \
553559
shapes/shapes_logo_raylib \
554560
shapes/shapes_logo_raylib_anim \
555561
shapes/shapes_rectangle_advanced \
556562
shapes/shapes_rectangle_scaling \
563+
shapes/shapes_recursive_tree \
557564
shapes/shapes_ring_drawing \
558565
shapes/shapes_rounded_rectangle_drawing \
559566
shapes/shapes_splines_drawing \
560-
shapes/shapes_top_down_lights
567+
shapes/shapes_top_down_lights \
568+
shapes/shapes_triangle_strip \
569+
shapes/shapes_vector_angle
561570

562571
TEXTURES = \
563572
textures/textures_background_scrolling \
@@ -606,12 +615,14 @@ TEXT = \
606615
MODELS = \
607616
models/models_animation_gpu_skinning \
608617
models/models_animation_playing \
618+
models/models_basic_voxel \
609619
models/models_billboard_rendering \
610620
models/models_bone_socket \
611621
models/models_box_collisions \
612622
models/models_cubicmap_rendering \
613623
models/models_first_person_maze \
614624
models/models_geometric_shapes \
625+
models/models_geometry_textures_cube \
615626
models/models_heightmap_rendering \
616627
models/models_loading \
617628
models/models_loading_gltf \
@@ -629,6 +640,7 @@ MODELS = \
629640
models/models_yaw_pitch_roll
630641

631642
SHADERS = \
643+
shaders/shaders_ascii_rendering \
632644
shaders/shaders_basic_lighting \
633645
shaders/shaders_basic_pbr \
634646
shaders/shaders_custom_uniform \
@@ -673,9 +685,9 @@ OTHERS = \
673685
others/easings_testbed \
674686
others/embedded_files_loading \
675687
others/raylib_opengl_interop \
676-
others/raymath_vector_angle \
677688
others/rlgl_compute_shader \
678-
others/rlgl_standalone
689+
others/rlgl_standalone \
690+
others/web_basic_window
679691
#EXAMPLES_LIST_END
680692

681693
# Define processes to execute

examples/Makefile.Web

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ ifeq ($(TARGET_PLATFORM),$(filter $(TARGET_PLATFORM),PLATFORM_WEB PLATFORM_WEB_R
355355
ifeq ($(BUILD_WEB_WEBGL2),TRUE)
356356
LDFLAGS += -sMIN_WEBGL_VERSION=2 -sMAX_WEBGL_VERSION=2
357357
endif
358-
358+
359359
# Add resources building if required
360360
ifeq ($(BUILD_WEB_RESOURCES),TRUE)
361361
LDFLAGS += --preload-file $(BUILD_WEB_RESOURCES_PATH)
@@ -514,8 +514,10 @@ CORE = \
514514
core/core_basic_window \
515515
core/core_custom_frame_control \
516516
core/core_custom_logging \
517+
core/core_delta_time \
517518
core/core_drop_files \
518519
core/core_high_dpi \
520+
core/core_input_actions \
519521
core/core_input_gamepad \
520522
core/core_input_gestures \
521523
core/core_input_gestures_testbed \
@@ -524,6 +526,7 @@ CORE = \
524526
core/core_input_mouse_wheel \
525527
core/core_input_multitouch \
526528
core/core_input_virtual_controls \
529+
core/core_monitor_change \
527530
core/core_random_sequence \
528531
core/core_random_values \
529532
core/core_render_texture \
@@ -540,24 +543,30 @@ CORE = \
540543
SHAPES = \
541544
shapes/shapes_basic_shapes \
542545
shapes/shapes_bouncing_ball \
546+
shapes/shapes_bullet_hell \
543547
shapes/shapes_circle_sector_drawing \
544548
shapes/shapes_collision_area \
545549
shapes/shapes_colors_palette \
550+
shapes/shapes_dashed_line \
546551
shapes/shapes_digital_clock \
547552
shapes/shapes_double_pendulum \
548553
shapes/shapes_easings_ball \
549554
shapes/shapes_easings_box \
550555
shapes/shapes_easings_rectangles \
551556
shapes/shapes_following_eyes \
557+
shapes/shapes_kaleidoscope \
552558
shapes/shapes_lines_bezier \
553559
shapes/shapes_logo_raylib \
554560
shapes/shapes_logo_raylib_anim \
555561
shapes/shapes_rectangle_advanced \
556562
shapes/shapes_rectangle_scaling \
563+
shapes/shapes_recursive_tree \
557564
shapes/shapes_ring_drawing \
558565
shapes/shapes_rounded_rectangle_drawing \
559566
shapes/shapes_splines_drawing \
560-
shapes/shapes_top_down_lights
567+
shapes/shapes_top_down_lights \
568+
shapes/shapes_triangle_strip \
569+
shapes/shapes_vector_angle
561570

562571
TEXTURES = \
563572
textures/textures_background_scrolling \
@@ -606,12 +615,14 @@ TEXT = \
606615
MODELS = \
607616
models/models_animation_gpu_skinning \
608617
models/models_animation_playing \
618+
models/models_basic_voxel \
609619
models/models_billboard_rendering \
610620
models/models_bone_socket \
611621
models/models_box_collisions \
612622
models/models_cubicmap_rendering \
613623
models/models_first_person_maze \
614624
models/models_geometric_shapes \
625+
models/models_geometry_textures_cube \
615626
models/models_heightmap_rendering \
616627
models/models_loading \
617628
models/models_loading_gltf \
@@ -629,6 +640,7 @@ MODELS = \
629640
models/models_yaw_pitch_roll
630641

631642
SHADERS = \
643+
shaders/shaders_ascii_rendering \
632644
shaders/shaders_basic_lighting \
633645
shaders/shaders_basic_pbr \
634646
shaders/shaders_custom_uniform \
@@ -726,12 +738,18 @@ core/core_custom_frame_control: core/core_custom_frame_control.c
726738
core/core_custom_logging: core/core_custom_logging.c
727739
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
728740

741+
core/core_delta_time: core/core_delta_time.c
742+
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
743+
729744
core/core_drop_files: core/core_drop_files.c
730745
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
731746

732747
core/core_high_dpi: core/core_high_dpi.c
733748
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
734749

750+
core/core_input_actions: core/core_input_actions.c
751+
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
752+
735753
core/core_input_gamepad: core/core_input_gamepad.c
736754
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
737755
--preload-file core/resources/ps3.png@resources/ps3.png \
@@ -758,6 +776,9 @@ core/core_input_multitouch: core/core_input_multitouch.c
758776
core/core_input_virtual_controls: core/core_input_virtual_controls.c
759777
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
760778

779+
core/core_monitor_change: core/core_monitor_change.c
780+
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
781+
761782
core/core_random_sequence: core/core_random_sequence.c
762783
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
763784

@@ -802,6 +823,9 @@ shapes/shapes_basic_shapes: shapes/shapes_basic_shapes.c
802823
shapes/shapes_bouncing_ball: shapes/shapes_bouncing_ball.c
803824
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
804825

826+
shapes/shapes_bullet_hell: shapes/shapes_bullet_hell.c
827+
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
828+
805829
shapes/shapes_circle_sector_drawing: shapes/shapes_circle_sector_drawing.c
806830
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
807831

@@ -811,6 +835,9 @@ shapes/shapes_collision_area: shapes/shapes_collision_area.c
811835
shapes/shapes_colors_palette: shapes/shapes_colors_palette.c
812836
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
813837

838+
shapes/shapes_dashed_line: shapes/shapes_dashed_line.c
839+
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
840+
814841
shapes/shapes_digital_clock: shapes/shapes_digital_clock.c
815842
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
816843

@@ -829,6 +856,9 @@ shapes/shapes_easings_rectangles: shapes/shapes_easings_rectangles.c
829856
shapes/shapes_following_eyes: shapes/shapes_following_eyes.c
830857
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
831858

859+
shapes/shapes_kaleidoscope: shapes/shapes_kaleidoscope.c
860+
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
861+
832862
shapes/shapes_lines_bezier: shapes/shapes_lines_bezier.c
833863
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
834864

@@ -844,6 +874,9 @@ shapes/shapes_rectangle_advanced: shapes/shapes_rectangle_advanced.c
844874
shapes/shapes_rectangle_scaling: shapes/shapes_rectangle_scaling.c
845875
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
846876

877+
shapes/shapes_recursive_tree: shapes/shapes_recursive_tree.c
878+
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
879+
847880
shapes/shapes_ring_drawing: shapes/shapes_ring_drawing.c
848881
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
849882

@@ -856,6 +889,12 @@ shapes/shapes_splines_drawing: shapes/shapes_splines_drawing.c
856889
shapes/shapes_top_down_lights: shapes/shapes_top_down_lights.c
857890
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
858891

892+
shapes/shapes_triangle_strip: shapes/shapes_triangle_strip.c
893+
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
894+
895+
shapes/shapes_vector_angle: shapes/shapes_vector_angle.c
896+
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
897+
859898
# Compile TEXTURES examples
860899
textures/textures_background_scrolling: textures/textures_background_scrolling.c
861900
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
@@ -1045,6 +1084,9 @@ models/models_animation_playing: models/models_animation_playing.c
10451084
--preload-file models/resources/models/iqm/guytex.png@resources/models/iqm/guytex.png \
10461085
--preload-file models/resources/models/iqm/guyanim.iqm@resources/models/iqm/guyanim.iqm
10471086

1087+
models/models_basic_voxel: models/models_basic_voxel.c
1088+
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
1089+
10481090
models/models_billboard_rendering: models/models_billboard_rendering.c
10491091
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
10501092
--preload-file models/resources/billboard.png@resources/billboard.png
@@ -1072,6 +1114,10 @@ models/models_first_person_maze: models/models_first_person_maze.c
10721114
models/models_geometric_shapes: models/models_geometric_shapes.c
10731115
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
10741116

1117+
models/models_geometry_textures_cube: models/models_geometry_textures_cube.c
1118+
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
1119+
--preload-file models/resources/cubicmap_atlas.png@resources/cubicmap_atlas.png
1120+
10751121
models/models_heightmap_rendering: models/models_heightmap_rendering.c
10761122
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
10771123
--preload-file models/resources/heightmap.png@resources/heightmap.png
@@ -1140,6 +1186,12 @@ models/models_yaw_pitch_roll: models/models_yaw_pitch_roll.c
11401186
--preload-file models/resources/models/obj/plane_diffuse.png@resources/models/obj/plane_diffuse.png
11411187

11421188
# Compile SHADERS examples
1189+
shaders/shaders_ascii_rendering: shaders/shaders_ascii_rendering.c
1190+
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
1191+
--preload-file shaders/resources/fudesumi.png@resources/fudesumi.png \
1192+
--preload-file shaders/resources/raysan.png@resources/raysan.png \
1193+
--preload-file shaders/resources/shaders/glsl100/ascii.fs@resources/shaders/glsl100/ascii.fs
1194+
11431195
shaders/shaders_basic_lighting: shaders/shaders_basic_lighting.c
11441196
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
11451197
--preload-file shaders/resources/shaders/glsl100/lighting.vs@resources/shaders/glsl100/lighting.vs \

0 commit comments

Comments
 (0)