Skip to content

Simplify raylib-cpp #199

@TokyoSU

Description

@TokyoSU

I think writing raylib:: for each think is pretty anoying, so ive done a workaround to simplify it:

// add more when a new release appear !

using RWindow = raylib::Window;
using RVector2 = raylib::Vector2;
using RVector3 = raylib::Vector3;
using RCamera = raylib::Camera;
using RCamera2D = raylib::Camera2D;
using RCamera3D = raylib::Camera3D;
using RColor = raylib::Color;
using RTexture = raylib::Texture;
using RRenderTexture = raylib::RenderTexture;
using RRenderTexture2D = raylib::RenderTexture2D;
using RShader = raylib::Shader;
using RModel = raylib::Model;
using RModelAnimation = raylib::ModelAnimation;

this will maintain the code clean, maybe doing a simple .hpp or .h to include it after raylib-cpp.hpp by default could be great, else i will do with this one :x

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