chrisdill / raylib-cs

C# bindings for raylib, a simple and easy-to-use library to learn videogames programming

Home Page:http://www.raylib.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature] Add custom build flags (like custom OpenGL version...)

MrScautHD opened this issue · comments

Before submitting a new issue, please verify and check:

  • The issue is specific to Raylib-cs and not raylib
  • I checked there is no similar issue already reported
  • My code has no errors or misuse of Raylib-cs

Issue description

I would love to see this feature in Raylib-cs, then we would have ANGLE support and it would possible to run a new or older version of OpenGL.

public static void SetOpenGLVersion(GlVersion version) {
      // Impliment it here
      // I would suggest doing a variable in the build that can be changed with code, so we can switch the Raylib.dll with the right OpenGL version.
}

Environment

OpenGL

Would require modifying raylib as currently opengl versions are selected with compile flags. Though we are considering custom builds in #118 so this could maybe be looked at with that.

Would require modifying raylib as currently opengl versions are selected with compile flags. Though we are considering custom builds in #118 so this could maybe be looked at with that.

so is that already planned?

Nothing specifically planned at the moment.

Nothing specifically planned at the moment.

So would that easy?
I mean we could just switch the dll or not?
Or do you have anything diffrent planned...

Some changes might only involve changing flags. However selecting the opengl version at runtime means modifying raylib to support this which means making a fork and keeping it in sync with raylib.

well, doing just 5 .dll files would work fine too or? every with a diffrent GL version.

That would not work because there are 6 different opengl configs for raylib. With 5 platform folders in runtimes that would be 30 different libraries greatly increasing the size of the nuget package and complexity of library loading. At that point it is better for users to build a custom version of raylib instead.

That would not work because there are 6 different opengl configs for raylib. With 5 platform folders in runtimes that would be 30 different libraries greatly increasing the size of the nuget package and complexity of library loading. At that point it is better for users to build a custom version of raylib instead.

oh well

So... How you want ro implement it?

@MrScautHD Have a look at the SQLite, SQLitePCL, & SQLitePCLRaw Nuget Packages

sad :/

so it is not comming with the Build system?

The local build is to try and make it easier to customize raylib but by default won't include the change to set it at runtime as it is requires a lot of changes to rlgl. The local build should allow changing it at compile time though.

No, Just the example above was the first idea it should just possible to set it before running it

But fine the pull reuquest is still open so it is coming :)

Btw when next nuget update 😅