Skip to content

Commit e173b26

Browse files
committed
Initial commit
0 parents  commit e173b26

File tree

12 files changed

+592
-0
lines changed

12 files changed

+592
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

.gitignore

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
.gradle
2+
build/
3+
!gradle/wrapper/gradle-wrapper.jar
4+
!**/src/main/**/build/
5+
!**/src/test/**/build/
6+
7+
### IntelliJ IDEA ###
8+
.idea/*
9+
*.iws
10+
*.iml
11+
*.ipr
12+
out/
13+
!**/src/main/**/out/
14+
!**/src/test/**/out/
15+
16+
### Eclipse ###
17+
.apt_generated
18+
.classpath
19+
.factorypath
20+
.project
21+
.settings
22+
.springBeans
23+
.sts4-cache
24+
bin/
25+
!**/src/main/**/bin/
26+
!**/src/test/**/bin/
27+
28+
### NetBeans ###
29+
/nbproject/private/
30+
/nbbuild/
31+
/dist/
32+
/nbdist/
33+
/.nb-gradle/
34+
35+
### VS Code ###
36+
.vscode/
37+
38+
### Mac OS ###
39+
.DS_Store
40+
41+
run/*

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Foundry
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# realtime rainworld level editor
2+
Rewrite of the Rainworld editor with realtime rendering

build.gradle

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
import org.gradle.internal.os.OperatingSystem
2+
3+
plugins {
4+
id 'java'
5+
}
6+
7+
group = 'foundry.rweditor'
8+
version = '1.0-SNAPSHOT'
9+
10+
switch (OperatingSystem.current()) {
11+
case OperatingSystem.LINUX:
12+
project.ext.lwjglNatives = "natives-linux"
13+
def osArch = System.getProperty("os.arch")
14+
if (osArch.startsWith("arm") || osArch.startsWith("aarch64")) {
15+
project.ext.lwjglNatives += osArch.contains("64") || osArch.startsWith("armv8") ? "-arm64" : "-arm32"
16+
} else if (osArch.startsWith("ppc")) {
17+
project.ext.lwjglNatives += "-ppc64le"
18+
} else if (osArch.startsWith("riscv")) {
19+
project.ext.lwjglNatives += "-riscv64"
20+
}
21+
break
22+
case OperatingSystem.MAC_OS:
23+
project.ext.lwjglNatives = System.getProperty("os.arch").startsWith("aarch64") ? "natives-macos-arm64" : "natives-macos"
24+
break
25+
case OperatingSystem.WINDOWS:
26+
def osArch = System.getProperty("os.arch")
27+
project.ext.lwjglNatives = osArch.contains("64")
28+
? "natives-windows${osArch.startsWith("aarch64") ? "-arm64" : ""}"
29+
: "natives-windows-x86"
30+
break
31+
}
32+
33+
repositories {
34+
maven {
35+
name = 'BlameJared Maven'
36+
url = 'https://maven.blamejared.com'
37+
}
38+
mavenCentral()
39+
}
40+
41+
dependencies {
42+
implementation platform("org.lwjgl:lwjgl-bom:3.3.3")
43+
44+
implementation "org.lwjgl:lwjgl"
45+
implementation "org.lwjgl:lwjgl-glfw"
46+
implementation "org.lwjgl:lwjgl-nfd"
47+
implementation "org.lwjgl:lwjgl-opengl"
48+
implementation "org.lwjgl:lwjgl-remotery"
49+
implementation "org.lwjgl:lwjgl-stb"
50+
implementation "org.lwjgl:lwjgl-tinyfd"
51+
runtimeOnly "org.lwjgl:lwjgl::$lwjglNatives"
52+
runtimeOnly "org.lwjgl:lwjgl-glfw::$lwjglNatives"
53+
runtimeOnly "org.lwjgl:lwjgl-nfd::$lwjglNatives"
54+
runtimeOnly "org.lwjgl:lwjgl-opengl::$lwjglNatives"
55+
runtimeOnly "org.lwjgl:lwjgl-stb::$lwjglNatives"
56+
runtimeOnly "org.lwjgl:lwjgl-tinyfd::$lwjglNatives"
57+
implementation "org.joml:joml:1.10.5"
58+
implementation "io.github.spair:imgui-java-app:1.86.11"
59+
implementation "io.github.ocelot:glfw-windows:1.0.1.1"
60+
61+
compileOnly 'org.jetbrains:annotations:24.1.0'
62+
implementation "org.slf4j:slf4j-api:2.0.12"
63+
implementation 'ch.qos.logback:logback-core:1.5.1'
64+
implementation 'ch.qos.logback:logback-classic:1.5.1'
65+
66+
testImplementation platform('org.junit:junit-bom:5.9.1')
67+
testImplementation 'org.junit.jupiter:junit-jupiter'
68+
}
69+
70+
test {
71+
useJUnitPlatform()
72+
}

gradle.properties

Whitespace-only changes.

gradle/wrapper/gradle-wrapper.jar

62.2 KB
Binary file not shown.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
6+
zipStoreBase=GRADLE_USER_HOME
7+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)