Bläddra i källkod

REVIEWED: examples: moved some examples out of others

pull/5574/head
Ray 2 dagar sedan
förälder
incheckning
d40ad48326
10 ändrade filer med 10 tillägg och 22 borttagningar
  1. +0
    -7
      examples/Makefile
  2. +6
    -6
      examples/core/core_window_web.c
  3. Binär
      examples/core/core_window_web.png
  4. +0
    -6
      examples/examples_list.txt
  5. Binär
      examples/others/web_basic_window.png
  6. +0
    -0
      examples/shaders/resources/shaders/glsl430/gol.glsl
  7. +0
    -0
      examples/shaders/resources/shaders/glsl430/gol_render.glsl
  8. +0
    -0
      examples/shaders/resources/shaders/glsl430/gol_transfert.glsl
  9. +4
    -3
      examples/shaders/shaders_rlgl_compute.c
  10. +0
    -0
      examples/shaders/shaders_rlgl_compute.png

+ 0
- 7
examples/Makefile Visa fil

@ -729,13 +729,6 @@ AUDIO = \
audio/audio_spectrum_visualizer \
audio/audio_stream_effects
OTHERS = \
others/easings_testbed \
others/embedded_files_loading \
others/raylib_opengl_interop \
others/rlgl_compute_shader \
others/rlgl_standalone \
others/web_basic_window
#EXAMPLES_LIST_END
# Define processes to execute

examples/others/web_basic_window.c → examples/core/core_window_web.c Visa fil

@ -1,14 +1,14 @@
/*******************************************************************************************
*
* raylib [others] example - basic window
*
* This example has been adapted to compile for PLATFORM_WEB and PLATFORM_DESKTOP
* As you will notice, code structure is slightly different to the other examples
* raylib [core] example - window web
*
* Example complexity rating: [] 1/4
*
* Example originally created with raylib 1.3, last time updated with raylib 5.5
*
* This example has been adapted to compile for PLATFORM_WEB and PLATFORM_DESKTOP
* As you will notice, code structure is slightly different to the other examples
*
* Example licensed under an unmodified zlib/libpng license, which is an OSI-certified,
* BSD-like license that allows static linking with closed source software
*
@ -40,7 +40,7 @@ int main(void)
{
// Initialization
//--------------------------------------------------------------------------------------
InitWindow(screenWidth, screenHeight, "raylib [others] example - web basic window");
InitWindow(screenWidth, screenHeight, "raylib [core] example - window web");
#if defined(PLATFORM_WEB)
emscripten_set_main_loop(UpdateDrawFrame, 0, 1);
@ -79,7 +79,7 @@ void UpdateDrawFrame(void)
ClearBackground(RAYWHITE);
DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY);
DrawText("Welcome to raylib web structure!", 220, 200, 20, SKYBLUE);
EndDrawing();
//----------------------------------------------------------------------------------

Binär
examples/core/core_window_web.png Visa fil

Före Efter
Bredd: 800  |  Höjd: 450  |  Storlek: 15 KiB

+ 0
- 6
examples/examples_list.txt Visa fil

@ -211,9 +211,3 @@ audio;audio_stream_effects;★★★★;4.2;5.0;2022;2025;"Ramon Santamaria";@ra
audio;audio_sound_multi;★★☆☆;5.0;5.0;2023;2025;"Jeffery Myers";@JeffM2501
audio;audio_sound_positioning;★★☆☆;5.5;5.5;2025;2025;"Le Juez Victor";@Bigfoot71
audio;audio_spectrum_visualizer;★★★☆;6.0;5.6-dev;2025;2025;"IANN";@meisei4
others;rlgl_standalone;★★★★;1.6;4.0;2014;2025;"Ramon Santamaria";@raysan5
others;rlgl_compute_shader;★★★★;4.0;4.0;2021;2025;"Teddy Astie";@tsnake41
others;easings_testbed;★★★☆;2.5;3.0;2019;2025;"Juan Miguel López";@flashback-fx
others;raylib_opengl_interop;★★★★;3.8;4.0;2021;2025;"Stephan Soller";@arkanis
others;embedded_files_loading;★★☆☆;3.0;3.5;2020;2025;"Kristian Holmgren";@defutura
others;web_basic_window;★☆☆☆;5.6-dev;5.6-dev;2014;2025;"Ramon Santamaria";@raysan5

Binär
examples/others/web_basic_window.png Visa fil

Före Efter
Bredd: 800  |  Höjd: 450  |  Storlek: 10 KiB

examples/others/resources/shaders/glsl430/gol.glsl → examples/shaders/resources/shaders/glsl430/gol.glsl Visa fil


examples/others/resources/shaders/glsl430/gol_render.glsl → examples/shaders/resources/shaders/glsl430/gol_render.glsl Visa fil


examples/others/resources/shaders/glsl430/gol_transfert.glsl → examples/shaders/resources/shaders/glsl430/gol_transfert.glsl Visa fil


examples/others/rlgl_compute_shader.c → examples/shaders/shaders_rlgl_compute.c Visa fil

@ -2,8 +2,8 @@
*
* raylib [others] example - compute shader
*
* NOTE: This example requires raylib OpenGL 4.3 versions for compute shaders support,
* shaders used in this example are #version 430 (OpenGL 4.3)
* WARNING: This example requires raylib compiled with OpenGL 4.3 version for
* compute shaders support, shaders used in this example are #version 430
*
* Example complexity rating: [] 4/4
*
@ -19,9 +19,10 @@
********************************************************************************************/
#include "raylib.h"
#include "rlgl.h"
#include <stdlib.h>
#include <stdlib.h> // Required for: NULL
// IMPORTANT: This must match gol*.glsl GOL_WIDTH constant
// This must be a multiple of 16 (check golLogic compute dispatch)

examples/others/rlgl_compute_shader.png → examples/shaders/shaders_rlgl_compute.png Visa fil


Laddar…
Avbryt
Spara