Skip to content

som3a-dev/raydebug

Repository files navigation

raydebug

A simple, easy to use debug overlay library for raylib, Written in c99

Features:

  • Default elements for primitives (float, int, etc), raylib types (Vector2, Rectangle, etc) and other elements like FPS

  • Automatic layout (word wrapping & vertical stretching)


Setup

Simply add raydebug.c and raydebug.h to your raylib project


Examples

Example Snippet

        BeginDrawing();
        ClearBackground((Color){20, 20, 20, 255});

        DebugDrawBegin(0, 0, boxW, boxH, fontSize, font, textColor, backgroundColor, fitVertical);

        DebugDrawVec2("Player Pos", playerPos, 4);
        DebugDrawBool("Player on ground", true);
        DebugDrawFloat("My Float", 5.83f, 0);
        DebugDrawInt("My Int", 76);
        DebugDrawFPS();

        DebugDrawEnd();

        EndDrawing();

Example Screenshot

Example

About

A simple, easy to use debug overlay library for raylib

Resources

License

Stars

Watchers

Forks

Contributors