Giter Site home page Giter Site logo

gulrak / raylib Goto Github PK

View Code? Open in Web Editor NEW

This project forked from raysan5/raylib

0.0 0.0 0.0 369.19 MB

A simple and easy-to-use library to enjoy videogames programming

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

License: zlib License

C 82.95% Makefile 3.17% HTML 0.81% CMake 1.48% Meson 0.06% Shell 0.83% Batchfile 0.47% Roff 0.06% Zig 0.39% Lua 9.77%

raylib's People

Contributors

a3f avatar asdqwe avatar chriscamacho avatar chrisdill avatar demizdor avatar electronstudio avatar flashback-fx avatar githubprankster avatar gulrak avatar guvacode avatar jeffm2501 avatar jubalh avatar kd7tck avatar mackron avatar marcolizza avatar martinfx avatar not-nik avatar object71 avatar overdev avatar palaui avatar planetis-m avatar randomerrormessage avatar raysan5 avatar rdr8 avatar robloach avatar rover656 avatar sdos280 avatar tsnake41 avatar veins1 avatar victorfisac avatar

Watchers

 avatar

raylib's Issues

[rcore] TakeScreenshot not working on macOS with HighDPI screens

Issue description

void TakeScreenshot(const char *fileName) is using the logical resolution but glfw is actually creating a x2 size frame buffer om retina or high dpi screens. This results in only a quarter of the screen beeing exported in a distorted messed-up way.

Environment

macOS 10.14 and up, any device with high resolution screen

[core] Screenshots and gif recordings on macOS incomplete

ATTENTION: This fork of raylib is not the official version and in no means replacing it, its main purpose is to fix issues that are out of scope in the official raylib, mainly macOS related stuff, so be warned that I will close issues that I think should be reported there

WARNING: Please, read this note carefully before submitting a new issue:

It is important to realise that this is NOT A SUPPORT FORUM, this is for reproducible BUGS with raylib ONLY.

There are lots of generous and helpful people ready to help you out on raylib Discord forum or raylib reddit.

Remember that asking for support questions here actively takes developer time away from improving raylib.


Please, before submitting a new issue verify and check:

  • I tested it on latest raylib version from master branch
  • I checked there is no similar issue already reported
  • My code has no errors or misuse of raylib
  • The issue is related to this forks purpose (mainly macOS) and not a regular raylib issue

Issue description

TakeScreenshot and gif recording (F12 functions) not getting full window on macOS monitor with retina screen or high resolution (e.g. 4k). There was a previous fix for this on this fork that was done on master and also using some additional glfw function but a generic fix seems possible with ray lib functions.

Environment

macOS (at least Catalina and up). 16" MBP 2020, external 4k display

Support of GLFW_COCOA_GRAPHICS_SWITCHING hint

Issue description

As the default of GLFW on macOS is to enforce an available dedicated GPU, even low demanding games and tools are easily getting the GPU fans going, the power consumption is higher, reducing the battery runtime on MacBooks without need.

Environment

macOS on a MacBook Pro with Intel UHD Graphics 630 and dedicated AMD Radeon Pro 5500M

Code Example

The suggested use-case would be something like:

    SetConfigFlags(FLAG_MSAA_4X_HINT | FLAG_VSYNC_HINT | FLAG_WINDOW_RESIZABLE | FLAG_COCOA_GRAPHICS_SWITCHING);
    InitWindow(screenWidth, screenHeight, "raylib [ImGui] example - ImGui Demo");

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.