Commit Graph
100 Commits
Author SHA1 Message Date
SpaiR c776b1b384 v1.87.5 2024-09-23 13:04:19 +03:00
SpaiR 6a66fb761f chore(api): tweak ImPlot api (#273)
- Added missing PlotBarGroups/PlotBarGroupsH methods
- Tweaked args for PlotBars/PlotBarsH
2024-09-23 10:28:27 +03:00
SpaiR 36d9e3a13c fix(api): fix incorrect ImDrawData#getCmdListCmdBufferTextureId return type (#272)
Method must return long to be consistent with API in general.
2024-09-23 09:51:41 +03:00
SpaiR c0ea002d07 build(deps): bump Gradle from 8.9 to 8.10.1 2024-09-23 08:37:40 +03:00
SpaiR b95b479d11 v1.87.4 2024-09-16 09:23:44 +03:00
SpaiR 933a7c60b6 fix(api): missing bindings for TreePush and InputScalar (#268)
Add:
- TreePush with label arg
- InputScalar with dataType arg
2024-09-09 08:37:43 +03:00
SpaiR 56f02fb0ad chore(build): enable gradle build caching 2024-09-08 12:28:17 +03:00
SpaiR c4c03bee9f feat(api): use uintptr_t instead of intptr_t for pointers (#265)
Image methods now accept the `long` type instead of `int`,
as they are expected to work with pointers as well.
2024-08-29 16:54:43 +03:00
SpaiR 473521edba doc: update info about FreeType usage 2024-08-29 11:27:35 +03:00
SpaiR e822240115 v1.87.3 2024-08-26 12:01:53 +03:00
SpaiR 9518b1cec6 feat: ArgVariant annotation and plot methods with count parameter (#264)
* feat(generator): introduce ArgVariant annotation

New annotation provides an ability to generate methods definitions for different types and names.

* feat(api): expose count param for plot* methods
2024-08-26 11:33:55 +03:00
SpaiR cae0581df2 v1.87.2 2024-08-21 14:57:19 +03:00
SpaiR 2086b7977b feat(generator): create unwrapped methods for methods with dst arg (#263)
Also, minor fixes for binding declarations.
2024-08-21 14:31:05 +03:00
SpaiR f18c578a10 v1.87.1 2024-08-19 14:51:44 +03:00
SpaiR 8f76b2083f fix: return methods lost during integration of binding generation API 2024-08-19 14:34:02 +03:00
SpaiR c80abd24f1 v1.87.0 2024-08-19 09:40:24 +03:00
SpaiR 40e27f0e11 chore: more specific exclude for vendor folder 2024-08-19 09:40:13 +03:00
SpaiR e6dd09a635 chore(build): add setup-gradle action (#255)
Should improve general Gradle pipeline.
2024-08-18 11:32:14 +03:00
SpaiR d64569912a docs: remove "Description" header from the PR template 2024-08-18 11:18:43 +03:00
SpaiR 5f9efdc1a3 docs: simplify CONTRIBUTING guide for commit types and scopes 2024-08-18 11:02:08 +03:00
SpaiR 1bc1eb5b36 chore: resolve Kotlin warnings 2024-08-18 10:58:06 +03:00
SpaiR d252c145c5 feat(api): make FreeType a toggleable option which is disabled by default (#254)
* deps(build): bump FreeType from 2.12.1 to 2.13.3

* fix(generator): add missing ImGuiFreeTypeBuilderFlags

* feat(generator): add possibility to provide additional defines specifically for AST

* feat(api): make FreeType optional and disabled by default

FreeType renderer is still included in the final build.
Its usage is toggleable and DISABLED by default.
2024-08-18 10:45:27 +03:00
SpaiR 47d97102f7 feat(api): Dear ImGui v1.87 + ImPlot v0.13 (#252)
* build(deps): bump Dear ImGui from 1.86 to 1.87

* build(deps): bump implot from 0.12 to 0.13

* feat(api,binding): adapt API to Dear ImGui v1.87

* feat(api,binding): adapt API to implot v0.13

* build: generate API for latest changes

* chore(binding): add missing super call for ImGuiStructDestroyable constructor

* chore: minor code style

* feat: adapt ImGuiImplGlfw to 1.87

* feat: adapt ImGuiImplGl3 to 1.87

* feat: adapt imgui-app module to 1.87

* fix: javadoc for updated imgui-binding

* fix: loosing data when setting struct field of char* type

Since we manually release chars, to store them in field we need to do a local copy.

* fix: invalid methods to check program linking in OpenGL

* chore: remove dedicated method to check GLFW version

* fix: add missing include
2024-08-16 15:35:42 +03:00
SpaiR 6ee9625e3f build(generator): make evaluatedValue to be an Int instead of String 2024-08-11 12:08:35 +03:00
SpaiR 746c4887b8 build(generator): create AST tree with all includes and type definitions 2024-08-11 12:08:35 +03:00
SpaiR 7b8ca029c0 build(generator): ast enum content for numbers
Take into account cases, when enum value can be a number.
2024-08-11 12:08:35 +03:00
SpaiR 588903f7f7 feat: remove offset property from GenerateAst JSON (#243)
* fix: GenerateAst task didn't work

* feat: remove offset property from GenerateAst JSON
2024-08-09 11:13:36 +03:00
SpaiR 555b3d4aba build(deps): bump com.badlogicgames.gdx:gdx-jnigen from 2.4.0 to 2.5.1 (#242) 2024-08-08 16:32:46 +03:00
SpaiR ed6f0922a2 build(deps): bump com.gradleup.shadow from 7.1.2 to 8.3.0 (#241)
The plugin has also moved to the new id.
2024-08-08 16:32:35 +03:00
SpaiR 1c396fb82a build(ci): adapt build pipeline for the generator API
build(ci): make "Compare Binding Hash" job also took into account generated and include folders

build(ci): add JDK 11 to the setup-java pipeline

This is required for the buildSrc module, since it uses "spoon" library, which is compiled for JDK11.

build(ci): keep only JDK11

- Add source ant target compatibility output to the MANIFEST.mf file

build: add auto-provisioning for JDK

just in case
2024-08-08 14:46:23 +03:00
SpaiR 4e884a1a17 build(deps): bump Gradle from 7.4.2 to 8.9 2024-08-08 14:46:23 +03:00
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
SpaiR e64df5a433 doc: revamp available commit type names
- Remove excessive commit types
- Add `ci` scope
2024-08-07 16:14:58 +03:00
SpaiR 4ad5032c1c doc: fix maven link in README 2024-08-07 16:03:12 +03:00
SpaiR d00f7b5a12 v1.86.12 2024-08-07 11:54:43 +03:00
SpaiR 46c008eb02 build(binding): add universal macOS ARM64 dylib and static FreeType compilation
- Static FreeType linking flow for all OS
- Flow to build universal binaries for macOS (x86_64, aarch64)
- Simplified CI workflow by removing FreeType branches from the build matrix

Added 2 new scripts:
1. `buildSrc/scripts/vendor_freetype.sh`
2. `buildSrc/scripts/build.sh`

The first script prepares FreeType for usage in the build process.
The result of this script is used in the `GenerateLibs` task.
Other ways of building with FreeType are removed.
If it's impossible to build with FreeType, it is recommended to set `freetype=false`.

The second script aggregates commands to build native binaries.
It includes specific steps, such as creating a universal library for macOS and copying the result to the specific folder `/tmp/imgui/dst`.

Script 1 can be used for local builds. Script 2 is primarily intended for use in CI.
2024-08-07 09:41:09 +03:00
SpaiR e2222f45d3 doc: add conventional commits naming and move to MIT License
- Add conventional commits naming.
- Move imgui-java to a more straightforward MIT License.
  Apache license is ok, yet MIT license is easier to read and understand.
2023-10-01 20:57:31 +03:00
SpaiR 1288f119a8 build: add signing key password 2023-09-29 12:47:09 +03:00
SpaiR 2cef96d993 v1.86.11 2023-09-29 11:35:13 +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 49fffaf02d tweak(api): simplify version get from imgui-java.properties file (#204)
Instead of generating `properties` file we make it always.
To provide version value we replace specific token.

Also, small tweaks in code which gets the version
2023-09-29 10:02:21 +03:00
SpaiR 3f2532a478 tweak(build): move LICENSE into META-INF folder (#203) 2023-09-29 09:59:37 +03:00
SpaiR bca843e51b [Build] Remove submodule update 2023-03-29 21:13:27 +03:00
SpaiR 05ba6f90eb [Build] Create .github/dependabot.yml 2023-03-14 09:32:26 +02:00
SpaiR 9ddf875745 [Build] Add binding hash sort 2023-03-10 09:02:05 +02:00
SpaiR f99f052602 v1.86.10 2023-03-10 08:34:48 +02:00
SpaiR fd7d2f77d4 v1.86.9 2023-03-02 16:31:22 +02:00
SpaiR 4a5c587ffd [API] Add ability to set inputBuffer in ImGuiTextFilter
Useful to have a custom inputText field, but to filter using ImGuiTextFilter

resolves #160
2023-03-02 11:44:23 +02:00
SpaiR 618f687f19 v1.86.8 2023-03-01 11:19:31 +02:00
SpaiR bf92f04c21 [API] Fix inputText with resizable ImString crashes if the ImGuiInputTextCallback is null
fixes #158
2023-03-01 11:01:09 +02:00
SpaiR d8f8f41a76 [API] Make classes from imgui.type which are represent numbers to extend Number class
- ImDouble
 - ImFloat
 - ImInt
 - ImLong
 - ImShort
2023-02-28 19:08:25 +02:00
SpaiR 25fc8bae8f [API] Make all imgui.type classes to implement Comparable<> interface 2023-02-28 19:02:41 +02:00
SpaiR ae6765ad34 v1.86.7 2023-02-08 08:59:44 +02:00
SpaiR a1690409c1 [Build] Tweak Update Binaries job 2023-02-07 17:18:23 +02:00
SpaiR 4f06b4e0de [Doc] Tweak readme 2022-12-28 09:55:54 +02:00
SpaiR 0f4df89e2b v1.86.6 2022-12-27 13:11:19 +02:00
SpaiR 09da8c4aae [Build] Fix maOS deploy 2022-12-27 13:08:09 +02:00
SpaiR e2cfbdcf3f [Build] Change comparison for binary libraries
Instead of size we will compare hash of the `imgui-binding/src/main` folder.
2022-12-27 12:30:06 +02:00
SpaiR cb381e9521 [Build] Fix missing windows natives in deployment 2022-12-25 12:21:10 +02:00
SpaiR 88f98d84ec [Doc] Tweak readme about release page files 2022-12-21 12:03:52 +02:00
SpaiR 87b1004674 [Build] Fix publish.gradle script 2022-12-19 13:40:05 +02:00
SpaiR e913e19982 [Build] Add gradle cache 2022-12-19 11:41:14 +02:00
SpaiR d760b2b9ef [API] Tweak ImString tests 2022-12-19 11:36:10 +02:00
SpaiR 47baed3b42 [API] Add arithmetic ops to ImVec2 and ImVec4
- plus
- minus
- times
2022-12-19 11:30:51 +02:00
SpaiR a2bacb292e [Build] Update artifacts only when needed (#150) 2022-12-15 12:36:35 +02: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 23b3f4f123 [Doc] Remove redundant header 2022-12-13 14:48:53 +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
SpaiR f4214c29dc [Build] ⬆ freetype v2.12.1 2022-11-24 21:55:49 +02:00
SpaiR 56165905b3 [Doc] Move README back to the root 2022-11-24 21:46:47 +02:00
SpaiR ff9b88ddbb [API] Add convenient methods to ImColor helper 2022-09-02 12:18:29 +03:00
SpaiR 142e312971 [API] Fix invalid setNextPlotFormatY
fixes #129
2022-05-12 13:15:11 +03:00
SpaiR 5b0e867bfe [Doc] Simplify PR template 2022-04-29 17:45:44 +03:00
SpaiR c127b46d27 [Build] Add pull_request CI trigger 2022-04-29 17:44:00 +03:00
SpaiR cf091adcc9 [Doc] Move documentation to docs folder 2022-04-17 23:01:56 +03:00
SpaiR 3317536d25 [Build] Gradle v7.4.2 2022-04-17 23:00:51 +03:00
SpaiR f01a5a573d [Build] Tweak build classes 2022-04-17 22:57:06 +03:00
SpaiR 67b23ddf5f [Doc] Update README about automatic module names 2022-03-11 22:56:50 +02:00
SpaiR d04527996b Support links (#121) 2022-03-07 13:10:25 +02:00
SpaiR cca6c47d4a [Doc] Repository documentation (#117) 2022-03-03 13:33:21 +02:00
SpaiR a6ca631506 [Build] Add more logs to the release script 2022-02-02 20:45:09 +02:00
SpaiR a780cec724 [Doc] Change link to the memory editor example 2022-02-02 20:27:34 +02:00
SpaiR 0c37ac6dfd [API] Up GLFW impl 2021-12-27 11:30:16 +02:00
SpaiR 384e24a6c5 [API] Up OpenGL impl 2021-12-26 17:19:04 +02:00
SpaiR e972af840e [API] Dear ImGui v1.86 (#102) 2021-12-26 16:00:21 +02:00
SpaiR dcf0dea9f3 [Build] Gradle 7.3.3 (#101) 2021-12-26 15:52:53 +02:00
SpaiR adf9d5fe4e [Build] Update publish scripts 2021-12-18 10:49:09 +02:00
SpaiR 8e1b6ba784 [Build] Gradle 7.3 2021-12-01 10:44:12 +02:00
SpaiR f172bd6e13 [API] Dear ImGui v1.85 2021-12-01 10:38:46 +02:00
SpaiR aaaa5bc9d3 [Doc] Tweak Readme about the repository cloning 2021-12-01 10:20:11 +02:00
SpaiR e529c610fa [API] Fix dragInt3 only shows 2 boxes
fixes #68
2021-09-12 11:29:01 +03:00
SpaiR 9026dcd4ad [API] Dear ImGui v1.84.1 2021-08-29 11:17:15 +03:00
SpaiR babb8ed313 [Build] Gradle 7.2 2021-08-29 10:35:40 +03:00
SpaiR 255f2e2286 [Build] Move sourceCompatibility option to the root build file 2021-08-29 10:29:54 +03:00
SpaiR a4dd33e421 [Build] Remove useless release changelog line 2021-08-29 10:29:54 +03:00
SpaiR 44a1a18907 [Build] Gradle 7.1.1 2021-07-10 14:15:45 +03:00
SpaiR 1544682cc4 [Build] Add workflows for automatic releases 2021-07-10 14:15:45 +03:00
SpaiR cbdf36f09e v1.83.1 2021-06-21 16:19:39 +03:00
SpaiR b1ea4cedb9 [Doc] Fix javadoc 2021-06-21 16:19:39 +03:00
SpaiR 68b36de553 [Doc] Add info about ImPlot 2021-06-21 16:17:29 +03:00