summaryrefslogtreecommitdiffhomepage
path: root/src/raylib.h
AgeCommit message (Collapse)Author
2020-12-19Minor tweakRay
2020-12-19ADDED: MemAlloc() / MemFree() #1440Ray
Exposing internal memory allocator/free, useful for advance users when required
2020-12-19Update raylib.hRay
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.
2020-12-19Support font chars padding on drawing #1432Ray
Previous implementation did not consider any padding while drawing the characters on screen (despite being available on the font atlas), so, only minimum character area was drawn. If some text effect shader was required (shadow, glow, outline...), there was no space in the drawn quad to draw that pixels effect. This commit corrects that issue.
2020-12-19Minimal tweakRay
2020-12-18WARNING: RENAMED several functions for consistency #1440Ray
This is a BREAKING CHANGE! To address the linked issue, several functions have been renamed and couterpart functions have been created to free loaded memory: - RENAMED: GetImageData() -> LoadImageColors() - RENAMED: GetImagePalette() -> LoadImagePalette() - RENAMED: GetWaveData() -> LoadWaveSamples() - ADDED: UnloadImageColors() - ADDED: UnloadImagePalette() - ADDED: UnloadWaveSamples()
2020-12-18WARNING: GetKeyPressed() <-> GetCharPressed() #1336Ray
Previous GetKeyPressed() method was actually returning unicode codepoints equivalent values instead of the key-code of the pressed key. So, it has been replaced by GetCharPressed(), returning unicode codepoints and GetKeyPressed() now returns key-codes.
2020-12-14REVIEWED: Font struct, added charsPadding #1432 -WIP-Ray
Not implemented usage of this variable yet but already setup for the future... some functions require review to consider it on drawing...
2020-12-14ADDED: UnloadFileData() / UnloadFileText() #1440Ray
2020-12-14Add mesh collision function so we can check meshes directly instead of ↵Jeffery Myers
having to put them in a model. (#1459) Make model collision function call the mesh function.
2020-12-05Add function to get the position of a monitor (and fix some comments) (#1449)Jeffery Myers
2020-12-01ADDED: UnloadModelKeepMeshes() #1441Ray
2020-11-28REMOVED: GetImageDataNormalized()raysan5
Let the advance users manage it as they want...
2020-11-28ADDED: UnloadFontData()raysan5
2020-11-23REVIEWED: Window state flags -WIP-Ray
WARNING: Several functions removed, replaced by SetWindowState() / ClearWindowState() equivalents, only for advance users. ADDED: ClearWindowState() to reset window state REMOVED: HideWindow() / UnhideWindow() REMOVED: DecorateWindow() / UndecorateWindow()
2020-11-23REDESIGNED: Window state config #1367 -WIP-Ray
Some flags not working properly yet...
2020-11-22Added some commentsRay
2020-11-22Exposing some file access results to user layer #1420Ray
2020-11-15[text] Consider characters padding -WIP- #1432raysan5
2020-11-03Remove trailing spacesRay
2020-11-01Reverted ChangeDirectory() redesignRay
It returns true on success again
2020-11-01REDESIGNED: ChangeDirectory()Ray
Not returning error code (or success), just log if it fails
2020-10-31A couple of little comment fixes (#1416)Dominus Iniquitatis
2020-10-24Some tweaksraysan5
2020-10-21Reviewed PR #1407Ray
2020-10-21Added desktop cursor getter and setter functions (#1407)Chance Snow
* [core] Added desktop cursor getter and setter functions * Example: Set mouse cursor in text input box * Setup standard cursors _after_ GLFW window initialization * Remove old `int GetMouseWheelMove` declaration
2020-10-05mouse: Return float movement for precise scrolling where possible (#1397)Doyle
2020-09-28Review Texture typeRay
Texture type also maps to Texture2D and TextureCubemap
2020-09-27[wip] rlDrawMeshInstanced (#1318)seanpringle
* rlDrawMeshInstanced first attempt * rlDrawMeshInstanced OpenGL 3.3 and VAO checks * rlDrawMeshInstanced GetShaderAttribLocation; comments * example instanced shader * RLGL_STANDALONE RAYMATH_STANDALONE Vector4 * apply suggested naming changes; add instanced mesh example * remove orphan variables
2020-09-27Platform DRM (#1388)kernelkinetic
* updated README.md * fixed CMakeLists.txt to allow building and debugging with Visual Studio Code and CMAKE Tools extension * added PLATFORM_DRM contains mouse pointer code from https://github.com/chriscamacho * removed redundant cleanup in InitGraphicsDevice * fixed DRM connector mode selection * added choosen DRM connected mode to log output * added respecting TargetFPS on DRM mode selection, default to 60 * added support for GetMonitorRefreshRate * changed SUPPORT_MOUSE_CURSOR_RPI to SUPPORT_MOUSE_CURSOR_NATIVE * changed avoidProgressive to allowInterlaced * cleanup, function extraction and improved mode selection * README reverted to original for PR * line endings fixed for core.c * removed old code * mouse pointer reverted to small square * replaced SetGraphicDeviceName() by DEFAULT_GRAPHIC_DEVICE_DRM Co-authored-by: kernelkinetic <[email protected]>
2020-09-21REVIEWED: GenTextureCubemap()raysan5
Added some tracelog messages
2020-09-18REDESIGNED: GenTexture*() #721raysan5
Functions have been redesigned to use rlgl and allow to externalize them (aka removing them from rlgl because they use custom shaders...).
2020-09-17WARNING: struct RenderTexture2D: Removed `depthTexture`raysan5
Not required anymore, attachment type is queried when required
2020-09-14Review memory loading functions signesnessRay
2020-09-14Reverted some previous changes...raysan5
2020-09-14Reviewed some structs to reduce size and paddingraysan5
Also updated raylib Wiki about struct sizes in 32bit and 64bit
2020-09-13Remove function declaration added by errorRay
2020-09-13ADDED: LoadFontFromMemory() (TTF only) #1327Ray
2020-09-13WARNING: REDESIGNED: LoadFontData()Ray
2020-09-13ADDED: LoadWaveFromMemory() #1327Ray
2020-09-13ADDED: LoadImageFromMemory() #1327Ray
2020-09-13WARNING: RENAMED: GetExtension() to GetFileExtension()Ray
2020-09-07REDESIGNED: ColorFromHSV()raysan5
Replaced Vector3 by direct values, easier to use and understand
2020-09-01Review custom blend modes mechanismraysan5
rlBlendMode() has been added to rlgl to be used on BLEND_CUSTOM. This functionality is exposed to advance users. In any case, new blending modes could be added if required.
2020-09-01Multiple blendmodes (#1324)cedemax
Co-authored-by: max <[email protected]>
2020-09-01adding new windows functions (#1357)Juan Medina
2020-07-20[wip] MeshNormalsSmooth() (#1317)seanpringle
* MeshSmoothNormals() by average * wrong comment * spelling * use correct function naming convention
2020-07-10WARNING: REMOVED: LoadImageEx()raysan5
Reason for removal: This function forces a specific Image data format, it copies data internally (it could be confusing and lead to memory leaks), it's redundant, there is a simpler alternative and raylib promotes using structures directly
2020-07-10ADDED: LoadImageAnim() to load animated sequence of imagesraysan5