Closed akashKarmakar02 closed 7 months ago
import static com.raylib.Jaylib.*;
public class Raygui {
public static void main(String[] args) {
int screenWidth = 800;
int screenHeight = 600;
InitWindow(screenWidth, screenHeight, "raygui");
while (!WindowShouldClose()) {
BeginDrawing();
ClearBackground(RAYWHITE);
GuiLabel(new Rectangle(120, 120, 100, 32), "Hello world");
if (GuiButton(new Rectangle(10, 10, 100, 32), "TEST")) {
System.out.println("pressed");
}
EndDrawing();
}
CloseWindow();
}
}
But I will suggest you too make a different package under com.raylib.raygui
the same way it has com.raylib.Jaylib
C doesn’t have namespaces so I can’t see any easy way to do it in an automatically generated binding.
it shows in read me that it includes raygui but i can't import Label, Button how to do it