Skip to content

LambBread/RayApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RayApp

This is a library adding a class "App" for raylib apps, as well as a class Layer for inheriting App-like components.

Example

#include <rayapp.hpp>
class MainApp : public rayapp::App
{
public:
    void OnCreate() override
    {

    }
    void OnUpdate(float fDeltaTime) override
    {
        
    }
    void OnDraw() override
    {
        ClearBackground(RAYWHITE);
        DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY);
    }
};

RAYAPP_MAIN(MainApp, 800, 600, "raylib [core] example - basic window")

Documentation

See the docs

Releases

No releases published

Packages

No packages published