Commit Graph
16 Commits
Author SHA1 Message Date
SpaiR 8a8cd22ed6 feat: introduce binding generator
A squash of hundreds of commits with a binding API generator.

The API generator works with a hybrid model:
1. We define methods and fields in the code.
2. Mark them with API annotations.
3. For specific use cases, we use the old approach with JNI generation comments.

There is also an API to generate an AST tree, which is saved to JSON.
This JSON can be used for full API generation by declaring only field/method names.
Currently, it is used to generate constants.

By eyeballing, 95% of the API has been converted to the new approach.
This is sufficient for the current moment. Only edge cases with specific API calls are left.

fix: ambiguous call for ImGui::GetColorU32

build: disable checkstyle for imgui-binding module

Since the module is heavily generated, checkstyle for it doesn't make sense.

build: make buildSrc to use JDK 11

build: make generateApi optional when compiling project

Initially generated module was not included to the project VCS.
Since it's now in the separate src folder, we don't need to call generator every time.
Only when a new generation result is required.
2024-08-08 14:46:23 +03:00
dependabot[bot] 363eaf7071 build(deps): bump org.lwjgl:lwjgl-bom from 3.3.3 to 3.3.4 (#238)
Bumps [org.lwjgl:lwjgl-bom](https://github.com/LWJGL/lwjgl3) from 3.3.3 to 3.3.4.
- [Release notes](https://github.com/LWJGL/lwjgl3/releases)
- [Commits](https://github.com/LWJGL/lwjgl3/compare/3.3.3...3.3.4)

---
updated-dependencies:
- dependency-name: org.lwjgl:lwjgl-bom
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-07 10:00:24 +03:00
SpaiR f683e6c595 build(deps): bump org.lwjgl:lwjgl from 3.3.2 to 3.3.3 (#205)
fixes #201
2023-09-29 11:03:58 +03:00
SpaiR 3f2532a478 tweak(build): move LICENSE into META-INF folder (#203) 2023-09-29 09:59:37 +03:00
dependabot[bot] 6b836aa2f9 up: bump org.lwjgl:lwjgl-bom from 3.3.1 to 3.3.2 (#175)
Bumps [org.lwjgl:lwjgl-bom](https://github.com/LWJGL/lwjgl3) from 3.3.1 to 3.3.2.
- [Release notes](https://github.com/LWJGL/lwjgl3/releases)
- [Commits](https://github.com/LWJGL/lwjgl3/compare/3.3.1...3.3.2)

---
updated-dependencies:
- dependency-name: org.lwjgl:lwjgl-bom
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-19 21:59:21 +03:00
SpaiR 8a560ca439 [API] Fix dependency tree issue for imgui-java-app
resolve #75
resolve #127

Removed shadowing for `imgui-java-app.jar` which is published to Maven Central.
Shadow Jar now has a prefix `-all` - for those one who prefer to use raw jars instead dependencies in maven/gradle.
2022-12-14 12:01:50 +02:00
SpaiR 2957cb4b88 [Build] CI refactor (#149)
* [Build] CI refactor

* [Build] Fix GenerateLibs

* [Build] Up actions/checkout@v3

* [Build] Remove actions/gradle-build-action

* [Build] Uncomment publish/release jobs

* [Build] Delete obsolete jobs

* [Build] Add more info to the jar manifest

* [Build] Make checkout to fetch tags

* [Build] Return job to update binaries

* [Doc] Update README
2022-12-12 21:45:50 +02:00
Michał Kalinowski 57cb0c9e0a [API] Update lwjgl from 3.3.0 to 3.3.1 (#116) 2022-03-01 21:22:48 +02:00
Michał Kalinowski f47d44e9eb [API] Update lwjgl from 3.2.3 to 3.3.0 (#96)
In order to use imgui-java with the lwjgl 3.3.0 without errors there is need for an update.
To remove code duplication when changing dependencies,
an lwjgl.bom variable was added.
Fixes: #95

- update lwjgl version from 3.2.3 to 3.3.0 across all submodules
2021-12-15 10:33:55 +02:00
SpaiR 255f2e2286 [Build] Move sourceCompatibility option to the root build file 2021-08-29 10:29:54 +03:00
SpaiR 1544682cc4 [Build] Add workflows for automatic releases 2021-07-10 14:15:45 +03:00
SpaiR f1556009a9 [Build] Gradle v7.0 2021-04-10 21:31:16 +03:00
SpaiR 3c0fb93ea0 [Build] Migrate from Bintray to Maven Central 2021-02-06 20:48:29 +02:00
SpaiR b3dda5986f [Build] Fix bintray task 2021-01-25 23:44:21 +02:00
SpaiR dc59810566 Add rendering implementation for LWJGL 2019-12-29 23:59:34 +03:00
SpaiR 2fdf545a84 initialcommit 2019-12-14 21:15:16 +03:00