Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Michael Vetter
    @jubalh
    i am reading through your notes though. very nice that you uplaoded them
    ball.speed = (Vector2){ 4.0f, 4.0f }; <- but the ball only moves on the Y axis ?
    Ray
    @raysan5
    mmmph... it should move on x, y
    Ahmad Fatoum
    @a3f
    jubalh libuv is nice
    Ahmad Fatoum
    @a3f
    raysan5 I don't know anything about OpenGL, but if you could provide me an example code that compiles under GRAPHICS_API_OPENGL_33 and one that compiles under GRAPHICS_API_OPENGL_21 and another under GRAPHICS_API_OPENGL_11, I could adjust CMake to automatically detect which opengl API to use if the user doesn't specify one.
    actually, selecting the desired OpenGL version is just a flag for rlgl.c module compilation
    @a3f don't know if I answered your question...
    Ahmad Fatoum
    @a3f
    "By default use OpenGL 3.3 on desktop platforms"
    We could easily compile a OpenGL 3.3, 2.1 and 1.1 example to test which one is supported and use that (at least in CMake)
    Our CMake build already compiles small C programs to check whether -fno-strict-aliasing or -Werror=pointer-arith are already supported.
    Ray
    @raysan5
    any computer from 2006 and beyond should supports OpenGL 3.3
    actually 1.1 and 2.1 are really side cases...
    I even put in my roadmap to remove support for them...
    current OpenGL version is 4.6
    Ahmad Fatoum
    @a3f
    I see. I saw you suggested the user in #483 to try out the other OpenGL versions, and configuration management is just about that (Detect what the user has and configure yourself to use it)
    Ray
    @raysan5
    but raylib does not need all the new features...
    yes, I agree but that situation (not supporting 3.3) is really uncommon today
    Ahmad Fatoum
    @a3f
    Ok. Lets see if the user reports that an older OpenGL version worked for them, I will look into having CMake check automatically which OpenGL build to use. Can't hurt.
    Ray
    @raysan5
    despite that, I keep support for 1.1 and 2.1 for those side cases
    ok, thanks for caring about that
    a different thing is OpenGL ES 2.0
    that's the version used on Android, html5 and RaspberryPi...
    and, actually, in current GPUs (<6years old), it can also be enabled on desktop (Windows, Linux, macOS?)
    that's the approximation used by Godot engine, just use OpenGL ES for all platforms
    Ahmad Fatoum
    @a3f
    Is there an opengl macro or function we can call to find out what kind of OpenGL is installed?
    Ray
    @raysan5
    I'm afraid no, it will require a program to ask GPU for the higher supported OpenGL
    Ahmad Fatoum
    @a3f
    Ah, I see
    Ray
    @raysan5
    raylib already queries for that, including some required OpenGL extensions, on initialization
    Ahmad Fatoum
    @a3f
    Oh cool. I will add a reminder to look at this later next month to see if it makes sense to query the GPU as part of the CMake (non-cross) build.
    Ray
    @raysan5
    actually, on this line, at some point I'd like to add support for the new standard graphic API in the market: Vulkan
    Luka
    @cimpresovec
    Hello
    I'd like to ask how I could use the vector helper functions?
    Like Vector2Zero etc.?
    I got the raylib binary, but the raymath header is not included?
    Should I just download it and add it to my project?
    @raysan5
    Ray
    @raysan5
    Hi @cimpresovec, just download it and add it! It's a header-only file.
    Luka
    @cimpresovec
    Thanks @raysan5. I though to, but asked just to make sure. Great library.
    RDR8
    @RDR8
    @raysan5 Congratulations on 100 forks!
    Ray
    @raysan5
    hey! thanks! :smile:
    just going to tweet it in a while!
    Ahmad Fatoum
    @a3f
    cmake -DUSE_WAYLAND=ON should work now. If someone's interested, please test :)
    Ray
    @raysan5
    Hi @a3f, thanks for the implementation!
    I'm thinking about closing Gitter, the new Discord channel is pretty active... what do you think?
    Ahmad Fatoum
    @a3f
    raysan5 Ye, I guess having a single place would be better.
    r00ster
    @r00ster91
    yes
    so the community isnt splitted. Just all at one place