RobLoach / raylib-cpp

C++ Object Oriented Wrapper for raylib
https://robloach.github.io/raylib-cpp/
zlib License
630 stars 79 forks source link

Where `SetConfigFlags`? #234

Closed traversebitree closed 1 year ago

traversebitree commented 1 year ago

Where SetConfigFlags? For example, SetConfigFlags(FLAG_MSAA_4X_HINT);

RobLoach commented 1 year ago

Not implemented. Not sure it's required, but happy to have it added.

RobLoach commented 1 year ago

Perhaps have the flags be another parameter on the Window constructor?

Sticky-fingerz commented 1 year ago

I have the same problem. Raylib needs to calling SetConfigFlags(FLAG_MSAA_4X_HINT) before window creation, to enable msaa, according to this example(https://www.raylib.com/examples/core/loader.html?name=core_window_flags) But raylib-cpp has no SetConfigFlags,so next program is not working.

raylib::Window window(1280, 720 "title");
window.SetState(FLAG_WINDOW_RESIZABLE | FLAG_MSAA_4X_HINT); //resize flag is working

Is there another way around this?