Skip to content

Commit ebd75df

Browse files
committed
Remove rres
rres-raylib is kinda annoying to bind and not sure how regular rres is useful over just some native C# solution Signed-off-by: Tomas Slusny <[email protected]>
1 parent 22113d3 commit ebd75df

25 files changed

+3
-778
lines changed

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,3 @@
44
[submodule "lib/raylib"]
55
path = lib/raylib
66
url = https://github.com/raysan5/raylib
7-
[submodule "lib/rres"]
8-
path = lib/rres
9-
url = https://github.com/raysan5/rres

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
- Raymath
1717
- Rlgl
1818
- Raygui
19-
- Rres
2019

2120
### Supported platforms
2221

lib/rres

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/Raylib.NET.Bindgen/Program.cs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
"Matrix" => "Matrix4x4",
2121
"Rectangle" => "Vector4",
2222
"va_list" => "IntPtr",
23-
_ => Regex.Replace(type, @"\b(rres|rl|r)", ""),
23+
_ => Regex.Replace(type, @"\b(rl|r)", ""),
2424
},
25-
TransformName = (string name) => Regex.Replace(name, @"\b(rres|rl)", ""),
25+
TransformName = (string name) => Regex.Replace(name, @"\b(rl)", ""),
2626
ExistingTypes = new()
2727
{
2828
{ "Vector2", "System.Numerics" },
@@ -42,8 +42,7 @@
4242
},
4343
IncludeFolders = new[] {
4444
$"{libPath}/raylib/src",
45-
$"{libPath}/raygui/src",
46-
$"{libPath}/rres/src",
45+
$"{libPath}/raygui/src"
4746
},
4847
};
4948

@@ -59,10 +58,6 @@
5958
options.FilePath = $"{libPath}/raygui/src/raygui.h";
6059
new Generator(options).Generate();
6160

62-
options.GeneratedClass = "Rres";
63-
options.FilePath = $"{libPath}/rres/src/rres.h";
64-
new Generator(options).Generate();
65-
6661
options.GeneratedClass = "Raylib";
6762
options.FilePath = $"{libPath}/raylib/src/raylib.h";
6863
new Generator(options).Generate();

src/Raylib.NET.Native/build.zig

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ const std = @import("std");
33
pub fn compileRaylib(b: *std.Build, target: std.Build.ResolvedTarget, optimize: std.builtin.OptimizeMode, shared: bool) !*std.Build.Step.Compile {
44
const raylib = b.dependency("raylib", .{ .target = target, .optimize = optimize, .shared = shared, .linux_display_backend = .X11 });
55
const raygui = b.dependency("raygui", .{ .target = target, .optimize = optimize });
6-
const rres = b.dependency("rres", .{ .target = target, .optimize = optimize });
76
const lib = raylib.artifact("raylib");
87

98
switch (target.result.os.tag) {
@@ -58,16 +57,9 @@ pub fn compileRaylib(b: *std.Build, target: std.Build.ResolvedTarget, optimize:
5857
.flags = cflags.items,
5958
});
6059

61-
lib.addCSourceFile(.{
62-
.file = gen_step.add("rres.c", "#define RRES_IMPLEMENTATION\n#include \"rres.h\"\n"),
63-
.flags = cflags.items,
64-
});
65-
6660
lib.addIncludePath(raylib.path("src"));
6761
lib.addIncludePath(raygui.path("src"));
68-
lib.addIncludePath(rres.path("src"));
6962
lib.installHeader(raygui.path("src/raygui.h"), "raygui.h");
70-
lib.installHeader(rres.path("src/rres.h"), "rres.h");
7163

7264
return lib;
7365
}

src/Raylib.NET.Native/build.zig.zon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
.dependencies = .{
77
.raylib = .{ .path = "../../lib/raylib" },
88
.raygui = .{ .path = "../../lib/raygui" },
9-
.rres = .{ .path = "../../lib/rres" },
109
},
1110

1211
.paths = .{

src/Raylib.NET.Test/RresTest.cs

Lines changed: 0 additions & 36 deletions
This file was deleted.

src/Raylib.NET/Enums/CodeLang.cs

Lines changed: 0 additions & 58 deletions
This file was deleted.

src/Raylib.NET/Enums/CompressionType.cs

Lines changed: 0 additions & 30 deletions
This file was deleted.

src/Raylib.NET/Enums/EncryptionType.cs

Lines changed: 0 additions & 62 deletions
This file was deleted.

0 commit comments

Comments
 (0)