Skip to content

GTk3 + RayLib #1061

@hbiblia

Description

@hbiblia

Hi

I am doing a 2.5D engine using Gtk3 and raylib to render.

To integrate raylib, create gtk-raylib.c and gtk-raylib.h, clone core.c now called raylib-core.c, remove GLFW3 and everything related to non-Desktop platforms, since it is not necessary within GTK3.

GLAD inside rlgl.h place a conditional macro for when I am using epoxy.h which is what I am using in GTk3 and is the one "recommended" for GtkGLArea.

gtk-raylib.c handles the render as GLFW3 does and allows you to use "gtk_raylib_embed_new" which in turn uses gtk_gl_area ...

Captura de pantalla (23)

I still don't have support for any kind of input, but I hope to complete it and make the web examples work.

When this is complete I will share gtk-raylib-2.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions