Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Which one to download? #52

Closed
ghost opened this issue May 5, 2021 · 4 comments
Closed

Which one to download? #52

ghost opened this issue May 5, 2021 · 4 comments

Comments

@ghost
Copy link

ghost commented May 5, 2021

I'm really confused. I only wanted to use imgui-app, but the jar imgui-app-1.82.2.jar seems not enough.

@SpaiR
Copy link
Owner

SpaiR commented May 5, 2021

imgui-app should be enough. Why do you think it isn't? Look at the example module. There is only one dependency toimgui-app.

@ghost
Copy link
Author

ghost commented May 5, 2021

imgui-app should be enough. Why do you think it isn't? Look at the example module. There is only one dependency toimgui-app.

Have a look at this example code:

import imgui.ImGui;
import imgui.app.Application;

public class Main extends Application {
    @Override
    protected void configure(Configuration config) {
        config.setTitle("Dear ImGui is Awesome!");
    }

    @Override
    public void process() {
        ImGui.text("Hello, World!");
    }

    public static void main(String[] args) {
        launch(new Main());
    }
}

You see, it also imports imgui.ImGui, don't you? Without this import, ImGui.text will definitely not work. Also, where is Configuration defined? The Configuration class in imgui-app definitely not accepted, type mismatch. Thanks.

@SpaiR
Copy link
Owner

SpaiR commented May 5, 2021

I see. The idea was that imgui-app.jar will be like the only dependency to run the app. And it is actually does, but only when using maven/gradle. The jar itself doesn't include imgui/lwjgl. I'll fix it in future release and will make it a proper fatjar. Until then, if you're using raw jars, you should also add other dependecies, like: imgui-java, imgui-lwjgl3 and lwjgl itself. Or follow the video https://youtu.be/Xq-eVcNtUbw

@ghost ghost closed this as completed May 5, 2021
@SpaiR
Copy link
Owner

SpaiR commented May 5, 2021

Let it be open until I'll fix the problem.

@SpaiR SpaiR reopened this May 5, 2021
@SpaiR SpaiR closed this as completed in 7a98fb7 May 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant