Skip to content

Latest commit

 

History

History
92 lines (70 loc) · 4.67 KB

jlimgui-doc.md

File metadata and controls

92 lines (70 loc) · 4.67 KB

JlImGui Documentation.


  • JaylibImGui :
    ImGui binding for Raylib bindings for Java.
    • public static String jlImGuiVersion = 1.2.1 :
      JlImGui Version.

    • public static void setupImGui(int glslV, String font, int fontSize, boolean useIni) :
      Setup ImGui;

      • glslV - Integer; GLSL Version (330 / 100).
      • font - String; Path to font.
      • fontSize - Integer; Font size in pixels.
      • useIni - String; Use Ini savefiles?
    • public static void setupImGui(int glslV, String font, int fontSize) :
      Setup ImGui; Set useIni to false by default.

      • glslV - Integer; GLSL Version (330 / 100).
      • font - String; Path to font.
      • fontSize - Integer; Font size in pixels.
    • public static void setupImGui(int glslV) :
      Setup ImGui; Set font to null and fontSize to 0 by default; Set useIni to false by default.

      • glslV - Integer; GLSL Version (330 / 100).
    • public static void setupImGui() :
      Setup ImGui; Set glslV to 330; Set font to null and fontSize to 0 by default; Set useIni to false by default.

    • public static void process() :
      Process ImGui things (keyboard/mouse/deltas/etc).

    • public static void render() :
      Render ImGui window & draw data.

    • public static void image(Image image, float width, float height) :
      Draw ImGui image (ImGui::Image).

      • image - Image (Raylib); Image class.
      • width - Float; Image width.
      • height - Float; Image height.
    • public static void image(Image image, float width, float height, float[] tint, float[] border) :
      Draw ImGui image (ImGui::Image).

      • image - Image (Raylib); Image class.
      • width - Float; Image width.
      • height - Float; Image height.
      • tint - Float Array; Image tint color (use JaylibImGui::color).
      • border - Float Array; Image border color (use JaylibImGui::color).
    • public static void image(Texture texture, float width, float height) :
      Draw ImGui image (ImGui::Image).

      • texture - Texture (Raylib); Texture class.
      • width - Float; Image width.
      • height - Float; Image height.
    • public static void image(Texture texture, float width, float height, float[] tint, float[] border) :
      Draw ImGui image (ImGui::Image).

      • texture - Texture (Raylib); Texture class.
      • width - Float; Image width.
      • height - Float; Image height.
      • tint - Float Array; Image tint color (use JaylibImGui::color).
      • border - Float Array; Image border color (use JaylibImGui::color).
    • public static void imageButton(Image image, float width, float height) :
      Draw ImGui image button (ImGui::ImageButton).

      • image - Image (Raylib); Image class.
      • width - Float; Image width.
      • height - Float; Image height.
    • public static void imageButton(Image image, float width, float height, int borderSize, float[] tint, float[] border) :
      Draw ImGui image button (ImGui::ImageButton).

      • image - Image (Raylib); Image class.
      • width - Float; Image width.
      • height - Float; Image height.
      • borderSize - Int; Border size.
      • tint - Float Array; Image tint color (use JaylibImGui::color).
      • border - Float Array; Image border color (use JaylibImGui::color).
    • public static void imageButton(Texture texture, float width, float height) :
      Draw ImGui image button (ImGui::ImageButton).

      • texture - Texture (Raylib); Texture class.
      • width - Float; Image width.
      • height - Float; Image height.
    • public static void imageButton(Texture texture, float width, float height, int borderSize, float[] tint, float[] border) :
      Draw ImGui image button (ImGui::ImageButton).

      • texture - Texture (Raylib); Texture class.
      • width - Float; Image width.
      • height - Float; Image height.
      • borderSize - Int; Border size;
      • tint - Float Array; Image tint color (use JaylibImGui::color).
      • border - Float Array; Image border color (use JaylibImGui::color).
    • public static float[] color(int r, int g, int b, int a) :
      Create RGBA (0-255) color array translated into GL color space (0.0-1.0).

      • r - Int; Red.
      • g - Int; Green.
      • b - Int; Blue.
      • a - Int; Alpha.
    • public static void disposeNDestroy() :
      Disponse and destroy ImGui context.

    • public static ImGuiIO getIO() :
      Get ImGui IO (imgui-java class).

    • public static ImGuiImplGl3 getGl3Impl() :
      Get GL ImGui implementation (imgui-java class).

    • public static int[] getKeysMap() :
      Get Raylib keys map.

    • public static String getVersion() :
      Get JlImGui version.


JlImGui v1.2.1