summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
AgeCommit message (Collapse)Author
2021-03-14Use UnloadFileData()Ray
2021-03-14WARNING: VERY BREAKING CHANGE: Renamed some enum values for consistencyRay
Some enums values have been renamed to be more consistent and also provide a more detailed description: - ShaderLocationIndex: LOC_VERTEX_POSITION -> SHADER_SHADER_LOC_VERTEX_POSITION - ShaderUniformDataType: UNIFORM_VEC2 -> SHADER_UNIFORM_VEC2 - MaterialMapType: MAP_ALBEDO -> MATERIAL_MAP_ALBEDO - PixelFormat: UNCOMPRESSED_GRAYSCALE -> PIXELFORMAT_UNCOMPRESSED_GRAYSCALE
2021-03-12Add config flag: SUPPORT_WINMM_HIGHRES_TIMER #1641Ray
Useful to avoid WinMM requirement and useful to avoid possible performance issues.
2021-03-08Fix fullscreen resolution (#1637)Hristo Stamenov
* Always try to set vsync. Use the internal monitor function to correctly get the display for windows. * Modified how fullscreen gets toggled. - Removed the unsetting and setting of the resize callback function. Instead of that I moved the fullscreen flag setting into a more correct place before setting the fullscreen so that this flag can be used in the callback. - In the resize callback now window size is only set when it is not fullscreen resulting in preserving the window size. - When going fullscreen the larges resolution is used so that there are no problems of the type when you minimize the window you cannot use anything else in your desktop because the resolution might be too low. If a low res effect is desired one should use render texture (this is the approach all game engines use). * Set correct return to window in case of fail to get monitor. * Set the refresh rate on the mode. * Made changes based on review from @raysan5 Co-authored-by: Jeffery Myers <[email protected]>
2021-03-08Always try to set vsync. (#1636)Jeffery Myers
Use the internal monitor function to correctly get the display for windows.
2021-03-03WARNING: BREAKING: RENAMED: enums valuesRay
RENAMED: TextureFilterMode values RENAMED: TextureWrapMode values
2021-03-03Removing +1 on comparing extesnions because this way it checked the file ↵hristo
extension without the . against the file extension with the . resulting in always false. (#1629)
2021-03-02Reviewed defines, try to avoid elif statementsRay
2021-03-02REVIEWED: Wait() to support FreeBSD #1618Ray
2021-03-02Some misc tweaksRay
2021-03-02REVIEWED: GetFileExtension() to include the dot #1523Ray
2021-03-01REVIEWED: GetScreen*() #1570Ray
Now GetScreenWidth() and GetScreenHeight() return the current fbo width and height.
2021-02-14Fix support of touchscreens for RPI (#1586)jpe230
-Checks for absolute pressure in absolute events to simulate a touch or a left mouse click. -Updates touch position on absolute events.
2021-02-14Update core.craysan5
2021-02-09REMOVED: GetGamepadButton() internal funcraysan5
2021-02-08Poll inputs after frame sleep (#1573)masterex1000
2021-02-07Disabling WindowSizeCallback around fullscreen toggle. (#1480)hristo
* Disabling WindowSizeCallback around fullscreen toggle. #1294 fixed the issue that toggle fullscreen changes the screen size because of the WindowSizeCallback. The proposed edit by @raysan5 was to comment out WindowSizeCallback which I essentially simplified to disable the callback around the set window monitor functions. The developers using the ToggleFullscreen function should be aware that they need to size the screen correctly on that same frame. Otherwise they should check if fullscreen and size properly using the GetMonitorWidth and GetMonitorHeight functions. * Update core.c Fix issue from merge
2021-02-07Review latest PR formatingraysan5
2021-02-07Fix initialize GLFW's Joystick subsystem before window is created on Desktop ↵Gil Barbosa Reis
platforms (#1554) (#1572)
2021-02-07Review formating for latest PRraysan5
2021-02-07Fix wrong values shown for monitor width and height in pixels when ↵hristo
fullscreen is toggled. (#1479) This solves issue #1322 which in my opinion was prematurely closed. As the monitor resolution is expected to be the maximum that the monitor supports. My change is that as per GLFW documentation you can get all current video modes sorted by max resolution. When you toggle fullscreen the first video mode returned would be the current screen resolution setup but that doesn't help if you want to know the maximum supported.
2021-02-05REVIEWED: DecompressData()raysan5
2021-02-05removed redundant call to eglGetConfig ↵kernelkinetic
(https://github.com/raysan5/raylib/issues/1550) (#1567)
2021-02-05REVIEWED: Gamepad issues on Androidraysan5
2021-02-05REVIEWED: DecompressData(), memory reallocationraysan5
2021-01-31REVIEWED: Gamepad system, specially for RPIraysan5
2021-01-30Use local (") includes for GLFW since it is included with the source tree. ↵Jeffery Myers
(#1557) This change helps some platforms produce fewer errors/warnings. Co-authored-by: Jeffery Myers <[email protected]>
2021-01-28REVIEWED: SetGamepadMappings()raysan5
return value for all platforms
2021-01-22Remove automatic pointer lock on mouse click #1513Ray
2021-01-21ADDED: SetGamepadMappings() #1506Ray
2021-01-20Merge branch 'master' of https://github.com/raysan5/raylibRay
2021-01-20Review screen capture / gif recording #1540Ray
2021-01-16Fix absolute path handling in GetFileName and GetDirectoryPath (#1534) (#1535)Gil Barbosa Reis
2021-01-14REVIEWED: DecompressData()Ray
Corrected bug!
2021-01-12REDESIGN: Compresion APIRay
Now it compresses/decompresses valid DEFLATE streams instead of zlib streams. It uses the minimal and efficient libraries: sdefl/sinfl.
2021-01-12Add commentsRay
2021-01-06Fix keyboard state change detection on RPI (#1488)badlydrawnrod
* Fix keyboard state change detection on RPI * Rework RaspberryPi evdev keyboard input. - Extract evdev keyboard handling into PollKeyboardEvents() - Move keyboard polling to main thread - Rename EventThreadSpawn() to ConfigureEvdevDevice() as it doesn't necessarily spawn threads - Remove unused code (KeyEventFifo and lastKeyPressed) * Replace tabs with 4 spaces.
2021-01-02Update year to 2021raysan5
2020-12-31 Modify the check condition for the screen window height and width. It can't ↵Victor Gallet
be less than zero because it's an unsigned int (#1497)
2020-12-30Add a current monitor function for window mode windows. (#1492)Jeffery Myers
2020-12-30lookup the returned monitor in the list of monitors to get an index. (#1490)Jeffery Myers
2020-12-29Monitor utilites (#1485)hristo
* Added a new utility function to get the current monitor. Some of the other functions rely on passing on a monitor id but we only have a function for querying the count of monitors available. * Updated the comment to correctly reflect the function action
2020-12-29I noticed that toggle fullscreen always gets the primary monitor when its ↵hristo
more intuitive to use the monitor that the window is currently in. (#1486) This monitor should even probably be passed as an id instead to make it more consistent with the rest of the API but this would break existing applications so I am hesitant to change the function signature directly.
2020-12-24Review some RPI4 tracelogsraysan5
2020-12-24Review tracelog messages for DRM platformraysan5
2020-12-23Review issues when compiling for Androidraysan5
2020-12-23Remove trailing spacesraysan5
2020-12-23Remove unused variableraysan5
2020-12-19Set version for raylib 3.5Ray
2020-12-19Avoid *Rec suffix in some variablesRay
Pefixing/Suffixing some data type identifier in the variables is not a convention used in raylib, just reviewed it for consistency... Still, I kept the *Rec suffix in some functions.