Revert back to raylib 5.5

Latest vendor release of raylib for C3 doesnt support JPG textures.

Author Mitja Felicijan <mitja.felicijan@gmail.com> 2026-05-15 12:23:01 +0200
Committer Mitja Felicijan <mitja.felicijan@gmail.com> 2026-05-15 12:23:01 +0200
Commit bc564bf6d7ae6ac27d64bbe7f977e12645c1d730 (patch)
-rw-r--r-- Makefile 5
-rw-r--r-- config.c3 6
-rw-r--r-- libs/raylib55.c3l bin 0 B -> 4.0 MB
-rw-r--r-- main.c3 4
4 files changed, 8 insertions, 7 deletions
diff --git a/Makefile b/Makefile
1
MEX_ASSURE   := c3c unzip
1
MEX_ASSURE   := c3c unzip
2
SOURCES      := main.c3 config.c3 embed.c3 toolbar.c3
2
SOURCES      := main.c3 config.c3 embed.c3 toolbar.c3
  
3
RAYLIB       := raylib55
3
  
4
  
4
include makext.mk
5
include makext.mk
5
  
6
  
6
help: .help
7
help: .help
7
  
8
  
8
run: .assure # Build and run application
9
run: .assure # Build and run application
9
	c3c compile-run --libdir libs --lib raylib6 $(SOURCES)
10
	c3c compile-run --libdir libs --lib $(RAYLIB) $(SOURCES)
10
  
11
  
11
extract-ref: .assure # Extract reference header file
12
extract-ref: .assure # Extract reference header file
12
	unzip -p /home/m/Projects/iceworks-c3/libs/raylib6.c3l raylib.c3i > ref.c3i
13
	unzip -p /home/m/Projects/iceworks-c3/libs/$(RAYLIB).c3l raylib.c3i > ref.c3i
13
  
14
  
14
.PHONY: run extract-ref
15
.PHONY: run extract-ref
diff --git a/config.c3 b/config.c3
1
module config;
1
module config;
2
  
2
  
3
const int WINDOW_WIDTH = 1280;
3
const int WINDOW_WIDTH = 2000;
4
const int WINDOW_HEIGHT = 720;
4
const int WINDOW_HEIGHT = 1500;
5
const ZString WINDOW_TITLE = "iceworks";
5
const ZString WINDOW_TITLE = "iceworks";
6
const int TARGET_FPS = 60;
6
const int TARGET_FPS = 60;
7
  
7
  
8
const ZString REGULAR_FONT = "fonts/LiberationSans-Regular.ttf";
8
const ZString REGULAR_FONT = "fonts/LiberationSans-Regular.ttf";
9
const ZString BOLD_FONT = "fonts/LiberationSans-Bold.ttf";
9
const ZString BOLD_FONT = "fonts/LiberationSans-Bold.ttf";
10
  
10
  
11
const float ZOOM_SENSITIVITY = 0.6;
11
const float ZOOM_SENSITIVITY = 0.15;
diff --git a/libs/raylib55.c3l b/libs/raylib55.c3l
diff --git a/main.c3 b/main.c3
1
import std::io;
1
import std::io;
2
import std::collections;
2
import std::collections;
3
import raylib6::rl;
3
import raylib55::rl;
4
  
4
  
5
import config;
5
import config;
6
import embed;
6
import embed;
...
55
    ctx.projects.push(p);
55
    ctx.projects.push(p);
56
  
56
  
57
    // Load test image
57
    // Load test image
58
    rl::RLTexture2D img = rl::load_texture("tests/thumbnail_150x150_10.5kb.jpg");
58
    rl::RLTexture2D img = rl::load_texture("tests/social_square_1080x1080_235kb.jpg");
59
    defer rl::unload_texture(img);
59
    defer rl::unload_texture(img);
60
  
60
  
61
    while(!rl::window_should_close()) {
61
    while(!rl::window_should_close()) {
...