raysan5
e95d8bc655
Minor format tweaks
2021-06-05 12:33:05 +02:00
Ray
e00d2439b9
WARNING: BREAKING: Consistency renamings
...
RENAMED: InitAudioStream() -> LoadAudioStream()
RENAMED: CloseAudioStream() -> UnloadAudioStream()
2021-06-03 23:36:47 +02:00
Crydsch
edeaff4bd4
Better collisions ( #1803 )
...
* review collisions ray-box and ray-sphere
* Applied raysan's refactor
Improved GetRayCollisionBox
* Replace GetRayCollisionGround with GetCollisionQuad
* Update example core_3d_picking
* Update example models_loading
* Fixed issues after merge
* remove debug stuff
Co-authored-by: Cry dsch <chris.obo@gmx.net>
2021-06-03 20:15:27 +02:00
Marco G. Maia
1a7dace57e
Update docs for supported blend modes ( #1801 )
2021-06-01 15:00:19 +02:00
Ray
0870295a7c
RENAMED: enum Gestures -> Gesture
...
Consistency tweak
2021-05-31 20:40:27 +02:00
Ray
1c5de9721a
WARNING: BREAKING: RENAMED: RayHitInfo to RayCollision #1781
...
- RENAMED: RayHitInfo to RayCollision
- RENAMED/REDESIGNED: Multiple Ray collision functions to be more consistent and return RayCollision data -WIP-
2021-05-31 11:41:56 +02:00
Ray
71995d52b3
REVIEWED: exit() on LOG_FATAL instead of LOG_ERROR #1796
2021-05-30 18:02:06 +02:00
Ray
e3ba11bead
Review some comments
2021-05-29 13:54:05 +02:00
Ray
7959d95db0
Review raylib structs comments
2021-05-25 23:19:03 +02:00
Ray
9f45fea31e
Remove line break in DrawTextRecEx()
2021-05-25 11:59:34 +02:00
Ray
03710c9d8e
Some code tweaks for consistency
2021-05-22 16:54:04 +02:00
Ray
5765b7895c
Minor comments tweaks
2021-05-22 14:35:10 +02:00
raysan5
60ca8acd0a
Update version to 3.8-dev to note breaking changes
...
Some breaking changes were introduced lately, it's better to note that current version is not 3.7 anymore...
2021-05-21 22:59:00 +02:00
Ray
23a08a483e
WARNING: RENAMED: IsMusicPlaying() -> IsMusicStreamPlaying()
2021-05-20 19:27:04 +02:00
Ray
e401d5c48e
WARNING: RENAMED: MeshBoundingBox() -> GetMeshBoundingBox()
...
Renamed for consistency with other function in raylib.
2021-05-20 19:24:28 +02:00
Ray
9360e4e2c1
Comment minor tweak
2021-05-20 19:14:42 +02:00
Ray
6bd63de8d0
Reviewed latest PR
...
REMOVED: DrawBillboardEx()
2021-05-11 01:02:53 +02:00
nobytesgiven
ac204a11f7
Redesigned billboards - added rotation/pro functions ( #1759 )
...
* Redesigned billboards - added rotation/pro functions
* updated parameters
Co-authored-by: nobytesgiven <nobytesigiven@github.com>
2021-05-11 00:55:43 +02:00
Lambert Wang
e39e45824d
Add RenderPolyLinesEx routine ( #1758 )
...
Co-authored-by: Lambert Wang <lambert.ww@gmail.com>
2021-05-10 20:08:58 +02:00
Lambert Wang
2545f62565
Added support for additional mouse buttons ( #1753 )
...
* Added support for additional mouse buttons
* Renamed mouse button enum
Co-authored-by: Lambert Wang <lambert.ww@gmail.com>
2021-05-08 18:26:24 +02:00
Ray
a41ed986bd
Expose RAYLIB_VERSION in raylib.h #1747
2021-05-04 11:20:47 +02:00
Ray
e5708a8f36
Comment tweak
2021-05-03 19:05:53 +02:00
Rabia Alhaffar
399894ac90
Fixed definition of UNCOMPRESSED_R8G8B8A8 ( #1740 )
2021-04-27 20:17:47 +02:00
Ray
a44815e939
REMOVED: GenMeshDefault()
2021-04-26 00:36:13 +02:00
Ray
7ad17386f6
Update raylib.h
2021-04-23 17:24:25 +02:00
Ray
dcf52c132f
Remove trail spaces
2021-04-22 18:55:24 +02:00
Ray
ac79d22a9b
Reviewed file comments
2021-04-21 00:41:55 +02:00
Ray
bb743e8c6e
ADDED: UpdateMeshBuffer()
2021-04-20 12:16:16 +02:00
Ray
b3f75b91ff
REDESIGNED: Vr stereo mode
2021-04-06 23:23:03 +02:00
Ray
84d0d21f23
Reviewed Vr stereo
2021-04-06 23:06:03 +02:00
Ray
71b86bf4d0
REDESIGNED: Vr stereo rendering
2021-04-06 22:49:41 +02:00
Ray
109d00cb14
Reorganized shaders functions
2021-04-06 13:10:12 +02:00
Ray
551944e15b
Minor comment tweaks
2021-04-06 13:04:15 +02:00
raysan5
b52cd8f605
Reorganized functions by module
2021-04-05 13:35:59 +02:00
raysan5
4c9d2e719e
Merge branch 'master' of https://github.com/raysan5/raylib
2021-04-04 14:59:29 +02:00
raysan5
66f3434571
REDESIGNED: Shapes texture/rec moved to shapes module
2021-04-04 14:59:17 +02:00
Rob Loach
d58b7b509e
Make SaveFile* callbacks return a boolean ( #1697 )
2021-04-03 08:56:42 +02:00
raysan5
c21baf0d92
ADDED: GenMeshDefault() #1556
2021-04-02 15:56:35 +02:00
raysan5
aed0fee2ca
Remove trailing spaces
2021-04-01 20:24:33 +02:00
raysan5
cdc3754449
ADDED: Support model normal matrix location #1691
2021-03-31 20:44:16 +02:00
raysan5
23a764190e
ADDED: LoadShaderFromMemory() #1690
2021-03-28 20:12:48 +02:00
raysan5
bc6b16beb2
REVIEWED: DrawTexturePoly()
2021-03-28 20:07:59 +02:00
Ray
f9bab14fdb
REVIEWED: DrawMeshInstanced()
2021-03-26 00:12:29 +01:00
Ray
cba412cc31
WARNING: BREAKING: rlgl redesign -WIP-
...
rlgl module has been completely redesigned to move Mesh/Material structures to [models] module. Still some work to do, broken elements:
- [models] OpenGL 1.1 mesh rendering: DrawMesh()
- [models] Mesh Instancing: DrawMeshInstanced()
- [models] Stereo rendering: DrawMesh()
- [models] GL_FLOAT, GL_UNSIGNED_INT exposed
- [models] GenMeshCustom()
- [rlgl] GenTexture*() functions removal?
2021-03-25 14:28:12 +01:00
chriscamacho
9569d6a802
Add DrawTexturedPoly and example ( #1677 )
...
* adds DrawTexturedPoly with example
* the actual example ... ahem
* moved DrawTexturePoly to textures function and example
NB function name changed to fit with other DrawTextureXXX functions
(no "d" )
Co-authored-by: codifies <you@example.com>
2021-03-25 14:22:10 +01:00
Ray
bb73a8089a
Reviewed DrawFPS() comment
2021-03-24 17:06:32 +01:00
Ray
9bea64b5e4
REMOVED: DrawGizmo()
...
This is a very simple and specific implementation that should be better addressed by the users
2021-03-24 17:02:40 +01:00
Ray
2ce28f75ad
WARNING: BREAKING: REDESIGNED: rlgl module
...
- Many functions renamed to follow rl*() convention
- Some internal functions exposed in the API
- Some functionality moved to other modules
- Reorganized all functions by categories
- Make sure it keeps working with OpenGL 1.1 and 2.1
2021-03-22 20:45:04 +01:00
Ray
24dae29a03
Review latest PR and some formatting
2021-03-22 20:41:33 +01:00
Jeffery Myers
2c0a533948
[AUDIO] Music Looping enhancements ( #1665 )
...
* Add loop functions for music files.
Tell xm tracker to loop tracker when loop state changes.
Don't let looped xm tracker streams restart, they are infinite
Use modulo to make time tracker for xm looped streams work correctly.
* Remove loop functions, set XM loop in update based on flag.
Formatting cleanups.
Co-authored-by: Jeffery Myers <JefMyers@blizzard.com>
2021-03-22 20:36:13 +01:00
Ray
ed4ca6a7f3
WARNING: BREAKING: rlgl module redesign -WIP-
...
- Some rlgl functions have been moved to core
- Some functions have been made internal to rlgl
- rlgl functions prefixed with rl*()
2021-03-21 01:29:31 +01:00
Ray
a76fcaba3e
BIG CHANGE: REDESIGNED: Vr device simulator #1582
...
Vr simulator has been moved to core module and completely redesigned. Now user is in charge of stereo-render fbo and also in full control of distortion shader. Code is a bit more complex but better aligned with other raylib examples.
2021-03-20 18:36:25 +01:00
Ray
5049137715
Added KEY_NULL #520
2021-03-20 13:08:13 +01:00
frithrah
2f367a905e
Changed DrawRing and DrawCircleSector angle params from int to float to allow greater accuracy. ( #1656 )
...
Co-authored-by: Simon <simon@frithrah.com>
2021-03-19 19:13:55 +01:00
Ray
3e25760950
REMOVED: GetMouseCursor()
...
This function could be confusing depending on the context, it's better to let the user track the current active cursor
2021-03-19 18:20:14 +01:00
Ray
8527dbc6e2
WARNING: REMOVED: GamepadNumber enum
2021-03-19 18:16:05 +01:00
Ray
07d82a91c5
WARNING: BREAKING: RENAMED: camera.type to camera.projection
2021-03-19 13:56:46 +01:00
Ray
a1d9987e7c
WARNING: BREAKING: REVIEWED some enums naming
...
Now enum names are more consistent between them.
2021-03-19 13:19:54 +01:00
Ray
664fbb87f5
REVIEWED: Material params #1649
...
Just assigned a fixed memory size for custom Material parameters in case of being required, so we shouldn't worry about allocating/freeing them.
2021-03-18 13:57:53 +01:00
Hristo Stamenov
bc9194690c
Implement UnloadModelAnimations ( #1648 )
2021-03-14 19:30:18 +01:00
Ray
01e28263be
WARNING: VERY BREAKING CHANGE: Renamed some enum values for consistency
...
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-14 11:05:51 +01:00
Ray
fe3256be9f
Renamed some functions to use latest raylib version
2021-03-12 18:00:36 +01:00
Ray
8a30a2408c
ADDED: Required callbacks
...
Removed memory allocation callbacks
2021-03-08 18:48:27 +01:00
Ray
0d096b43c2
Update some comments to warn users about callbacks
2021-03-04 20:44:22 +01:00
Ray
c4a7c702b4
FEATURE: Several callbacks added -WIP- #1523 #1329
...
NOTE: This feature is still under consideration and not complete.
2021-03-04 12:06:28 +01:00
Ray
dfe797060a
WARNING: BREAKING: RENAMED: enums values
...
RENAMED: TextureFilterMode values
RENAMED: TextureWrapMode values
2021-03-03 19:47:37 +01:00
Ray
408f5aedb8
WARNING: BREAKING: RENAMED enum values
...
RENAMED: CubemapLayoutType and NPatchType
2021-03-03 19:36:28 +01:00
Ray
bcc4418ff0
REVIEWED: GetFileExtension() to include the dot #1523
2021-03-02 01:07:08 +01:00
Agnis "NeZvērs" Aldiņš
209445ccde
LoadMusicStreamFromMemory ( #1606 )
...
* define SUPPORT_FILEFORMAT_MOD in config.h
* RLAPI LoadModuleFromData() definition in raylib.h
* LoadModuleFromData() definition in raudio.h
* LoadModuleFromData implementation in raudio.c
* Rename API to LoadMusicStreamFromMemory & default unload.
* raudio.c tabs to spaces
* Styling curly bracket and removing dev debugging TRACELOG
Co-authored-by: nezvers <agnis16@inbox.lv>
2021-02-22 19:45:52 +01:00
raysan5
0c63c7c907
Possible callbacks -WIP-
2021-02-14 16:47:08 +01:00
raysan5
090c790e50
Review formating for latest PR
2021-02-07 20:47:40 +01:00
raysan5
0f309b9b16
REMOVED: MeshNormalsSmooth() #1421
...
Current implementation is probably wrong and it should be reimplemented from scratch, in the meantime, I prefer to remove the function.
2021-02-05 19:49:05 +01:00
raysan5
62ccec0ac5
REMOVED: SetTraceLogExit()
...
I feel nobody has ever used this function...
2021-02-05 14:36:28 +01:00
Ray
3431d58586
Designing some callbacks -WIP-
2021-02-05 10:17:21 +01:00
raysan5
96db787657
REVIEWED: Gamepad system, specially for RPI
2021-01-31 03:07:26 +01:00
Ray
f4f208c4ae
ADDED: UploadMesh() #1529
...
Upload mesh data to GPU and get VAO/VBO identifiers
2021-01-22 12:16:19 +01:00
Ray
f2c0981c57
Review typo
2021-01-22 11:57:18 +01:00
Ray
18ab694f70
ADDED: SetGamepadMappings() #1506
2021-01-21 14:39:03 +01:00
Ray
eb7820b2b0
Review comment
2021-01-15 00:20:35 +01:00
raysan5
d7b4b9e485
Update year to 2021
2021-01-02 18:15:13 +01:00
hristo
75c6fd047b
Monitor utilites ( #1485 )
...
* 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-29 13:37:08 +01:00
raysan5
521ed1cef0
Review DrawLineBezierQuad(), formating and aprameters order
2020-12-26 13:09:34 +01:00
Violet White
de13fca3b1
Add Quadratic Bezier drawing ( #1468 )
...
* Add quadratic bezier to shapes.c
* Add DrawLineBezierQuad to header
2020-12-26 13:04:38 +01:00
raysan5
0a9e080998
Remove trailing spaces
2020-12-23 15:03:26 +01:00
raysan5
b78ee13791
ADDED: CheckCollisionLines()
...
Removed function from raymath
2020-12-23 12:45:53 +01:00
Ray
d82113ec34
Camera funcs, review params names
...
Just for a better consistency
2020-12-19 20:14:34 +01:00
Ray
9097d0b4ef
REVIEW: CheckCollisionSpheres() params naming
2020-12-19 20:05:32 +01:00
Ray
f30354fc35
Minor tweak
2020-12-19 20:01:07 +01:00
Ray
d2d72b1dfb
ADDED: MemAlloc() / MemFree() #1440
...
Exposing internal memory allocator/free, useful for advance users when required
2020-12-19 19:43:25 +01:00
Ray
cbf7369a3d
Update raylib.h
2020-12-19 19:28:06 +01:00
Ray
2374281204
Avoid *Rec suffix in some variables
...
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-19 19:27:31 +01:00
Ray
e404a18226
Support font chars padding on drawing #1432
...
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-19 12:16:23 +01:00
Ray
51e8f37688
Minimal tweak
2020-12-19 00:22:58 +01:00
Ray
e07bc372a1
WARNING: RENAMED several functions for consistency #1440
...
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-18 21:03:08 +01:00
Ray
96542269d0
WARNING: GetKeyPressed() <-> GetCharPressed() #1336
...
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-18 18:58:02 +01:00
Ray
5f690819e7
REVIEWED: Font struct, added charsPadding #1432 -WIP-
...
Not implemented usage of this variable yet but already setup for the future... some functions require review to consider it on drawing...
2020-12-14 23:47:11 +01:00
Ray
d360a49f36
ADDED: UnloadFileData() / UnloadFileText() #1440
2020-12-14 20:47:58 +01:00
Jeffery Myers
7a0e73331d
Add mesh collision function so we can check meshes directly instead of having to put them in a model. ( #1459 )
...
Make model collision function call the mesh function.
2020-12-14 19:26:32 +01:00
Jeffery Myers
03df593263
Add function to get the position of a monitor (and fix some comments) ( #1449 )
2020-12-05 21:51:20 +01:00
Ray
60928ec82c
ADDED: UnloadModelKeepMeshes() #1441
2020-12-01 23:44:10 +01:00
raysan5
d6f4f3ee88
REMOVED: GetImageDataNormalized()
...
Let the advance users manage it as they want...
2020-11-28 19:11:31 +01:00
raysan5
14c1ee2681
ADDED: UnloadFontData()
2020-11-28 19:07:41 +01:00
Ray
3d1ae3500c
REVIEWED: Window state flags -WIP-
...
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-23 23:46:05 +01:00
Ray
468a0bedd8
REDESIGNED: Window state config #1367 -WIP-
...
Some flags not working properly yet...
2020-11-23 00:49:27 +01:00
Ray
a560fe9a1e
Added some comments
2020-11-22 10:56:17 +01:00
Ray
bb9d734f69
Exposing some file access results to user layer #1420
2020-11-22 00:10:16 +01:00
raysan5
55dc8171f8
[text] Consider characters padding -WIP- #1432
2020-11-15 12:39:59 +01:00
Ray
3e1cd487df
Remove trailing spaces
2020-11-03 23:47:33 +01:00
Ray
5ac9cb04c2
Reverted ChangeDirectory() redesign
...
It returns true on success again
2020-11-01 19:06:21 +01:00
Ray
01d9af12f7
REDESIGNED: ChangeDirectory()
...
Not returning error code (or success), just log if it fails
2020-11-01 18:14:55 +01:00
Dominus Iniquitatis
fc1fc250e7
A couple of little comment fixes ( #1416 )
2020-10-31 14:40:35 +01:00
raysan5
482b8a5e7e
Some tweaks
2020-10-24 10:37:15 +02:00
Ray
f12db180cd
Reviewed PR #1407
2020-10-21 11:08:37 +02:00
Chance Snow
9833fe45eb
Added desktop cursor getter and setter functions ( #1407 )
...
* [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-21 10:55:52 +02:00
Doyle
b29311c7ca
mouse: Return float movement for precise scrolling where possible ( #1397 )
2020-10-05 20:16:23 +02:00
Ray
a850246030
Review Texture type
...
Texture type also maps to Texture2D and TextureCubemap
2020-09-28 00:40:32 +02:00
seanpringle
4bcddc3b15
[wip] rlDrawMeshInstanced ( #1318 )
...
* 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-27 10:29:05 +02:00
kernelkinetic
e90b4d8915
Platform DRM ( #1388 )
...
* 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 <kernelkinetic@outlook.com>
2020-09-27 10:18:43 +02:00
raysan5
032b2db398
REVIEWED: GenTextureCubemap()
...
Added some tracelog messages
2020-09-21 13:18:53 +02:00
raysan5
152665ff48
REDESIGNED: GenTexture*() #721
...
Functions have been redesigned to use rlgl and allow to externalize them (aka removing them from rlgl because they use custom shaders...).
2020-09-18 13:50:51 +02:00
raysan5
fa2c114636
WARNING: struct RenderTexture2D: Removed depthTexture
...
Not required anymore, attachment type is queried when required
2020-09-17 13:44:03 +02:00
Ray
8cf0be4b6c
Review memory loading functions signesness
2020-09-14 19:20:38 +02:00
raysan5
43b9113c0c
Reverted some previous changes...
2020-09-14 15:55:31 +02:00
raysan5
d7853127db
Reviewed some structs to reduce size and padding
...
Also updated raylib Wiki about struct sizes in 32bit and 64bit
2020-09-14 15:36:50 +02:00
Ray
c196b09d33
Remove function declaration added by error
2020-09-13 16:43:19 +02:00
Ray
db652daf42
ADDED: LoadFontFromMemory() (TTF only) #1327
2020-09-13 16:42:31 +02:00
Ray
88c5deac87
WARNING: REDESIGNED: LoadFontData()
2020-09-13 16:41:52 +02:00
Ray
5b60a743bd
ADDED: LoadWaveFromMemory() #1327
2020-09-13 15:38:57 +02:00
Ray
768b29dd74
ADDED: LoadImageFromMemory() #1327
2020-09-13 15:37:15 +02:00
Ray
cb8cbb038b
WARNING: RENAMED: GetExtension() to GetFileExtension()
2020-09-13 14:07:08 +02:00
raysan5
f1ed8be5d7
REDESIGNED: ColorFromHSV()
...
Replaced Vector3 by direct values, easier to use and understand
2020-09-07 19:33:06 +02:00
raysan5
a1422ba1c1
Review custom blend modes mechanism
...
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-01 21:02:19 +02:00
cedemax
bfafb80cde
Multiple blendmodes ( #1324 )
...
Co-authored-by: max <max.cedercreutz@cetopo.com>
2020-09-01 20:33:49 +02:00
Juan Medina
dcbe481a28
adding new windows functions ( #1357 )
2020-09-01 20:29:13 +02:00
seanpringle
cebcdea80f
[wip] MeshNormalsSmooth() ( #1317 )
...
* MeshSmoothNormals() by average
* wrong comment
* spelling
* use correct function naming convention
2020-07-20 11:05:18 +02:00
raysan5
0db0e6acd8
WARNING: REMOVED: LoadImageEx()
...
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-10 19:18:29 +02:00
raysan5
c57323f29c
ADDED: LoadImageAnim() to load animated sequence of images
2020-07-10 13:59:01 +02:00
Vlad Adrian
4d71e9b44f
Added new function DrawTextureTiled() ( #1291 )
...
* Implemented DrawTextureTiled()
* Example added
2020-06-27 23:59:14 +02:00
Ray
ba39a1b304
ADDED: UpdateTextureRec()
2020-06-25 16:26:59 +02:00
Shylie
25fb24ba7d
[add] GetMonitorRefreshRate(int monitor); ( #1289 )
2020-06-24 18:28:57 +02:00
raysan5
c078640fa5
Commented Fade() macro
2020-06-16 10:37:31 +02:00
raysan5
afcc584fb6
RE-ADDED: Fade() function to avoid multiple breaking changes
...
Probably there is a better way to do this but this is a temporary solution for backward compatibility
2020-06-16 10:36:05 +02:00
raysan5
ad954dc7ab
WARNING: BIG CHANGE: Move Color functions to texture module
...
WARNING: Some functions ADDED and some RENAMED:
- RENAMED: Fade() -> ColorAlpha() [Added #define for compatibility]
- ADDED: ColorAlphaBlend()
- ADDED: GetPixelColor()
- ADDED: SetPixelColor()
2020-06-15 12:02:50 +02:00
raysan5
d0e9228660
REDESIGNED: ImageResizeCanvas(), optimized #1218
2020-06-07 18:33:30 +02:00
raysan5
a9fb0aa207
ImageToPOT() renamed parameter
2020-06-07 18:32:20 +02:00
ChrisDill
aff47d1564
Added bool IsCursorOnScreen(void). ( #1262 )
...
- The Mouse struct already stores cursorOnScreen. This function simply exposes it to the usage code.
2020-05-26 11:59:25 +02:00
Random
d9a96c4ca0
added BLEND_SET ( #1251 )
...
* added BLEND_SET
* renamed BLEND_SET to BLEND_ADD_COLORS
2020-05-16 13:39:38 +02:00
raysan5
257f232d41
WARNING: BREAKING CHANGE: Review audio looping system
...
Current looping system was broken, `loopCount` has been converted to `bool looping` and user can enable/disable with `music.looping = false`. `SetMusicLoopCount()` has been removed.
2020-05-14 14:00:37 +02:00
Mickaël Malécot
0bd64b7975
Gamepad axis bug fixes and improvement ( #1228 )
...
* Fix gamepad axis count
* Fix Xbox axis drawing
* Ignore low axis values
* Revert "Fix gamepad axis count"
This reverts commit f08ae4bf
* Fix GamepadAxis API
* Fix conflict with master
* Revert Gamepad MAX definitions
* Revert MAX_GAMEPAD_AXIS update
2020-05-09 12:39:41 +02:00
raysan5
7a1d3d807f
WARNING: RENAMED: ImageExtractPalette() -> GetImagePalette()
2020-05-09 12:07:18 +02:00
raysan5
959447d8ed
Reorganized texture functions
...
Removed ImageAlphaMask() dependency on [text] LoadBMFont()
2020-05-09 12:05:00 +02:00
raysan5
f6ca045735
ADDED: DrawTriangle3D() and DrawTriangleStrip3D()
...
Those functions could be very useful for custom triangle data drawing, using internal batch system.
2020-05-07 12:46:45 +02:00
raysan5
51c3bef497
Review exposed #defines and allow user re-defining
...
There are multiple #define values around raylib, usually not exposed for redefinition, just reviewed all of them to allow users redefining them on compile time if required.
Also, multiple #define have been renamed and commented.
2020-05-01 17:31:44 +02:00
raysan5
6e2d39c51b
ADDED: IsWindowFocused()
2020-04-27 17:41:29 +02:00
raysan5
8e59ecb50c
ADDED: GetWindowScaleDPI()
2020-04-24 23:17:32 +02:00
raysan5
cc816345bf
WARNING: API BREAK: Removed LoadImagePro()
...
Actually this function is useless and potentially dangerous, internally, a shallow copy of data was done. Same could be accomplished accesing image.data directly.
2020-04-10 19:26:36 +02:00
raysan5
b132da0ac2
WARNING: API BREAK: Reviewed ImageDrawText*() params order
...
To unify with DrawText*() equivalent functions
2020-04-10 19:10:15 +02:00
raysan5
adb20569be
Review shared library building
2020-04-01 11:06:05 +02:00
raysan5
fc7ec5e907
Update raylib.h
2020-03-30 17:11:35 +02:00
Dani Martin
62cdb2299b
[cppcheck] Improvements in SaveStorageValue() in core.c ( #1160 )
...
* [cppcheck] Improvements in SaveStorageValue() in core.c
in file core.c cppcheck shows errors only in function SaveStorageValue():
* Common realloc mistake: 'fileData' nulled but not freed upon failure
* Memory pointed to by 'fileData' is freed twice.
Validation:
* Tested examples/core/core_storage_values.c
* Launched Unit Test for this function
* Rerun CPPCHECK afer fix
* [cppcheck] Change functions header to accept only positive position in files
Changes:
* Functions SaveStorageValue(), LoadStorageValue() (core.c)
* Functions LoadFileData(), SaveFileData() (utils.c)
* Headers in raylib.h
Validation:
* Tested examples/core/core_storage_values.c
* Launched Unit Test for these functions
* Rerun CPPCHECK afer fix
2020-03-30 13:51:36 +02:00
raysan5
733ed972f7
Reorganize image functions
2020-03-29 13:37:33 +02:00
raysan5
5d7050bdf9
Reorganize image/texture functions for consistency
2020-03-29 13:31:12 +02:00
Rob Loach
a025636fa1
Update ImageDraw*() functions to match arguments of Draw*() ( #1156 )
...
* Update ImageDraw*() functions to match arguments of Draw*()
Updated draw functions:
ImageDrawPixel()
ImageDrawPixelV()
ImageDrawCircle()
ImageDrawCircleV()
ImageDrawLine()
ImageDrawLineV()
ImageDrawRectangle()
ImageDrawRectangleV()
ImageDrawRectangleRec()
* [nodepadpp] Update Notepad++ ImageDraw defintions
This updates the Notepad++ definitions with the updated ImageDraw methods.
* [examples] Add ImageDraw calls to textures_image_drawing
* Update ImageDraw*() methods
2020-03-29 12:43:34 +02:00
raysan5
96005f2566
ADDED: IsWindowFullscreen()
2020-03-25 18:52:38 +01:00
Sourav Gupta
574c689ff7
Added draw functions to ImageDraw*() ( #1138 )
...
Added draw functions:
ImageClearBackground()
ImageDrawPixel()
ImageDrawLineEx()
ImageDrawCircle()
2020-03-21 20:23:50 +01:00
Ray
74c486201d
ADDED: LoadFileText() and SaveFileText()
...
Improved file access checks
2020-03-04 00:21:46 +01:00
Ray
05992a6fce
Tweaks
2020-02-27 16:37:32 +01:00
Ray
89ecad1e29
Review macros
2020-02-27 13:18:55 +01:00
Ray
e5b5aea998
WARNING: RENAMED: Storage functions
...
Renamed functions for consistency:
- StorageLoadValue() > LoadStorageValue()
- StorageSaveValue() > SaveStorageValue()
2020-02-26 23:40:53 +01:00
Ray
1046449339
ADDED: LoadFileData(), SaveFileData()
2020-02-26 20:29:33 +01:00
Ray
91b2dc2aa9
[raudio] ADDED: SetAudioStreamBufferSizeDefault()
...
There could be some cases where we need to define the internal audio buffer size, now it's possible.
RENAMED: InitAudioBuffer() to LoadAudioBuffer()
RENAMED: CloseAudioBuffer() to UnloadAudioBuffer()
Renamed some defines and reviewed some comments.
2020-02-14 17:13:37 +01:00
Ray
40b73a8a91
Develop branch integration ( #1091 )
...
* [core] REDESIGNED: Implement global context
* [rlgl] REDESIGNED: Implement global context
* Reviewed globals for Android
* Review Android globals usage
* Update Android globals
* Bump raylib version to 3.0 !!!
* [raudio] REDESIGNED: Implement global context
* [raudio] Reorder functions
* [core] Tweaks on descriptions
* Issues with SUPPORT_MOUSE_GESTURES
* [camera] Use global context
* REDESIGN: Move shapes drawing texture/rec to RLGL context
* Review some issues on standalone mode
* Update to use global context
* [GAME] Upload RE-PAIR game from GGJ2020 -WIP-
* Update game: RE-PAIR
* [utils] TRACELOG macros proposal
* Update config.h
2020-02-03 18:31:30 +01:00
Ray
4992edab24
ADDED: DrawPoint3D()
2020-01-29 12:21:22 +01:00
Ray
4f7d090fb2
ADDED: DrawEllipse() and DrawEllipseLines() #1047
2020-01-27 16:21:37 +01:00
Ray
954f029118
Support touch/mouse indistinctly
...
REMOVED: IsTouchDetected()
2020-01-27 15:31:43 +01:00
Ray
5ec87c4c6f
ADDED: TextCopy() #1083
2020-01-26 18:38:46 +01:00
Ray
f28c1ef675
ADDED: IsTouchDetected()
2020-01-24 19:45:51 +01:00
Ray
eee995ec3d
ADDED: GetWorldToScreenEx()
...
Addressing issue #1056
2020-01-24 18:54:53 +01:00
raysan5
bec467705e
Review custom allocators
2020-01-19 11:23:38 +01:00
raysan5
406373caa9
Review functions definition modifiers
2020-01-19 11:22:28 +01:00
Ray
e0d4cc3143
ADDED: DrawPolyLines()
2020-01-09 18:34:20 +01:00
raysan5
21c30f43d4
Update year to 2020
2020-01-05 20:01:54 +01:00
raysan5
350cb0a8a8
GenTextureCubemap(): renamed parameter
2019-12-29 13:52:48 +01:00
Ray
3ffe34f9bb
ADDED: DrawTextCodepoint()
...
- Renamed GetGlyphIndex() parameter
- Review DrawTextEx() implementation
- Review DrawTextRecEx() implementation
2019-12-01 13:28:14 +01:00
Darryl Dixon - Piece Digital
776304e8e8
Comments ( #1026 )
...
* swapped comments, expanded comment for clarity
* revert alignments
* adjusted for consistency
2019-11-25 00:13:05 +01:00
raysan5
1d3f230c92
Review key input queue PR #1012
...
Keeping original API
2019-11-24 13:39:45 +01:00
Ushio
ae301a1d23
add api FIFO based character input. ( #1012 )
...
* add api FIFO based character input.
* rename input character functions
* replace tab to space x4 #1012
2019-11-24 12:46:00 +01:00
ChrisDill
00c611a5fb
[Core] Added ColorFromNormalized which is the reverse of ColorNormalize. ( #1011 )
2019-11-08 21:02:41 +01:00
Ray
d73abe73e5
REDESIGN: TextToUtf8()
...
ADDED: CodepointToUtf8()
2019-10-28 20:53:32 +01:00
Ray
f6df47dfe5
ADDED: TextToUtf8() -WIP-
...
RENAMED: TextCountCodepoints() -> GetCodepointsCount()
2019-10-27 23:56:48 +01:00
chriscamacho
90b3dceb54
added GetMatrixProjection fixed issue with GL11 where model matrix was identity ( #999 )
2019-10-27 12:13:18 +01:00
Ray
ea70c47a1a
Review latest PR
2019-10-21 17:55:37 +02:00
Tyler Jessilynn Bezera
3f7fa6d6e7
Add multi texture support for materials in GLTF format ( #979 )
...
* Initial commit of addition for GLTF materials.. should support loading more than just albedo map.
* Clean up
* fixed seg faults and leaks
* temp don't overwrite defuse colour when rendering
* undid something dumb!
* correctly mixed diffuse map color when rendering to preserve not overwrite it
2019-10-21 17:38:23 +02:00
Ray
e0cb892d2d
ADDED: GetCodepoints()
...
Get the unicode equivalent characters (as int array) from a UTF-8 text array... maybe this function is renamed to be clearer to users...
2019-10-11 20:12:15 +02:00
Catalin Moldovan
99e86d180b
Const corectness for LoadShaderCode ( #977 )
...
* Const corectness for LoadShaderCode
* Added const for standalone variant as well.
2019-09-25 16:31:10 +02:00
raysan5
08165fed18
Review DecompressData() types, for consistency
2019-09-15 11:15:33 +02:00
Ray
0a2177b4bc
ADDED: GetWindowPosition()
2019-09-10 12:43:44 +02:00
Ray
ae2452d280
ADDED small compression API
...
- ADDED: CompressData()
- ADDED: DecompressData()
2019-09-09 21:56:16 +02:00
Ray
fc95ceadf0
Remove sampleLeft from Music struct... -WIP-
...
...moved to internal AudioBuffer structure as totalFramesProcessed, now time measure works again... but there is some problem with looping...
Also note some inconsistencies between frames and samples, it seems those concepts are not considered correctly in the code.
2019-09-03 23:08:02 +02:00
raysan5
4e43192561
Review latest PR
2019-08-27 13:15:56 +02:00
arvyy
97101d1003
Add screen->world and world->screen functions for 2D; add extended camera2D example ( #947 )
2019-08-27 13:05:28 +02:00
raysan5
f565ff018e
REMOVED: FLAG_SHOW_LOGO
...
raylib logo animation has been removed. That funtionality was very restrictive, not configurable at all and hardly ever used, also, it added a coupling dependency of `core` module with `shapes` and `text` modules.
2019-08-27 11:24:04 +02:00
raysan5
addbd88833
Expose scissor functionality
2019-08-26 21:09:03 +02:00
raysan5
20fa362700
Review comment
2019-08-21 18:59:15 +02:00
raysan5
c387bc586d
RENAMED: IsAudioBufferProcessed() -> IsAudioStreamProcessed()
...
Renamed for consistency with similar functions
2019-08-13 17:41:31 +02:00
raysan5
cef1e6e2e2
Added notes about vertex order
2019-08-11 21:26:12 +02:00
raysan5
740834bb83
REVIEW: GetDirectoryPath() and GetPrevDirectoryPath()
2019-08-11 12:04:54 +02:00
Michael Vetter
5f1990e044
Fix build caused by GetImageAlphaBorder() ( #931 )
...
Fix build failure introduced in 2a913b6587
2019-08-07 09:23:15 +02:00
Ray
3d5fa81bf2
WARNING: Redesigned structs
...
- Mesh, Shader, Material structs have been reviewed to minimize size when passed by value, all required code has been reviewed.
- GetCollisionRayModel() reviewed to avoid pointer, not required because model is not modified inside the function
- UnloadMesh() reviewed, pointer not required
- CheckCollisionRay*() parameters name reviewed
2019-08-07 00:32:44 +02:00
Ray
2a913b6587
ADDED: GetImageAlphaBorder()
2019-08-07 00:28:05 +02:00
Ray
042499188c
ADDED: DirectoryExists() and GetPrevDirectoryPath()
2019-08-07 00:27:32 +02:00
Leandro Gabriel
89c16baf18
Replace tabs with spaces and update year of copyright notices ( #927 )
...
* Update year of copyright notices
* Fix mistake in comment
* Fix typo ("algorythms")
* Replace tabs with spaces
* Remove trailing whitespace and fix mistake in comment
* Fix ExportImageAsCode missing comment rectangle corner
* Replace tab with spaces
* Replace tabs with spaces
2019-08-03 11:07:41 +02:00
Ray
251f90cd31
WARNING: Replaced Music pointer by struct
...
Now, multiple music parameters are exposed to the user!
2019-07-26 10:26:39 +02:00
Ray
eed53a5b44
Changed macro CLITERAL
2019-07-24 22:38:57 +02:00
Ray
9909c83012
REMOVED: LoadWaveEx()
...
Completely useless and actually buggy!
2019-07-24 22:38:40 +02:00
Ray
73a3d4a183
Review comments
2019-07-24 22:38:06 +02:00
Ray
b4d67499a7
BREAKING CHANGE: Read description
...
Changes:
- Font structure has been redesigned, CharInfo structure contained character rectangle within font texture, it has not much sense, considering that it was an information relative to the font atlas generated and not the character itself, so character rectangles have been moved out from CharInfo to Font.
- CharInfo included a data parameters to contain character pixel data (usually grayscale), generated on TTF font generation. It was inconsistent with other fonts types, so, now CharInfo includes directly an Image of the glyph.
- REDESIGNED: GenImageFontAtlas(), additional recs parameter added, loaded and filled inside the function to export atlas characters rectangles, instead of silently modify the input CharInfo data.
- REVIEWED: ImageTextEx(), funtion retrieved the font atlas image from the GPU, that was slow and problematic in several platforms. Now it uses directly the CharInfo image. Support for unicode codepoints has also been added.
- REDESIGNED: ImageDraw(), now it includes an additional parameter, the color tint, not only it could be useful for several situations but also function signature is more consistent with similar functions.
- ADDED: ImageFromImage() to generate a new image from a piece of another image.
- REVIEWED: GetNextCodepoint(), renamed parameters to be more clear.
Also all examples and games that were affected by those changes have been reviewed.
2019-07-24 15:05:14 +02:00
Ray
7b448f59e2
Update raylib.h
2019-07-23 23:37:14 +02:00
Ray
2cb3b91913
Try to avoid collision with CoreAudio on macOS
2019-07-23 23:08:29 +02:00
Ray
b44b7dd310
WARNING: Complete review of raudio -WIP-
...
This module has been completely reviewed, old structures still contained OpenAL useless data, a full module revision. Some of the changes:
- Redesigned internal MusicData structure
- Exposed MusicStream structure data
- Reviewed AudioStream structure
- Redesigned Sound structure
Still some work to do...
2019-07-23 22:21:01 +02:00
Ray
632d064b21
Review text functions return value
...
It needs to be freed
2019-07-22 21:29:50 +02:00
Ray
892813de76
Review multichannel PR addition
...
- Capital letters at beginning
- for loop spacing and brackets
- Functions naming for consistency
- Example following examples template
- Other tweaks
2019-06-29 11:26:08 +02:00
chriscamacho
83a4eb0852
add multi channel audio to raudio ( #895 )
...
* added multi channel sound replay to raudio
added -fPIC to Makefile for Linux
added simple lighting and audio multi channel to examples Makefile
* not properly reporting audio buffer pool size...
2019-06-29 10:49:42 +02:00
Ray
e0854696b4
ADDED: DrawTriangleStrip()
2019-06-17 10:29:58 +02:00
Ray
dccd61bef9
Support new flag: FLAG_WINDOW_ALWAYS_RUN
...
Do not stop update/draw on window minimized
WARNING: SetConfigFlag() was reviewed to support int flags
2019-06-14 17:18:33 +02:00
Ray
498c172d8e
Review function prototype
2019-06-06 11:38:45 +02:00
Ray
9824387773
Added resource file for raylib.dll
...
Some minor tweaks
2019-05-07 15:16:14 +02:00
raysan5
100c82e369
Review formatting to follow raylib style
2019-04-28 18:23:21 +02:00
Reece Mackie
86eba24970
This is dumb...
2019-04-28 16:08:07 +01:00
Reece Mackie
7ca856f9b7
Formatting changes
2019-04-28 15:59:39 +01:00
Reece Mackie
f8c6226826
Merge branch 'master' into gamepad-rework
2019-04-28 15:54:50 +01:00
raysan5
604a8c0b78
WARNING: Functions renamed
...
Two functions have been renamed for coherence; previous naming was confusing for several users:
- DrawPolyEx() ---> DrawTriangleFan()
- DrawPolyExLines() ---> DrawLineStrip()
2019-04-28 14:45:46 +02:00
Reece Mackie
c1f33eb817
Line cleaning
2019-04-27 21:43:32 +01:00
Reece Mackie
56ded3259d
More work, UWP now supports it and deleted old gamepads
2019-04-27 21:36:57 +01:00
Reece Mackie
b911cefab3
First gamepad stuff
2019-04-27 20:49:33 +01:00
Ray
e67ebabb02
Support custom memory management macros
...
Users can define their custom memory management macros.
NOTE: Most external libraries support custom macros in the same way, raylib should redefine those macros to raylib ones, to unify custom memory loading. That redefinition is only implemented as example for stb_image.h in [textures] module.
2019-04-23 14:55:35 +02:00
Ray
2d4c2ff351
Review rnet errors
2019-04-22 20:54:50 +02:00
Ray
f7d978e726
Reviewed rnet inclusion
...
Move to own header for a more deep review of the module
2019-04-22 20:27:54 +02:00
Jak
4b8d06f501
[rnet] module WIP ( #809 )
...
Added experimental network module
2019-04-22 20:03:00 +02:00
Demizdor
f3a5a6871d
Initial unicode implementation for UTF8 encoded text
2019-04-21 12:27:46 +03:00
Björn Wahlstrand
7cc8faf7da
Use typedef rather than #define in order to avoid issues in application code
2019-04-12 21:41:30 +02:00
Ray
4e58d4102c
Corrected typo
2019-04-12 13:29:37 +02:00
Ray
30d51ec26c
Reorganize struct
2019-04-12 11:29:01 +02:00
Ray
5bfa675350
Review VR simulator mechanism
...
- No default VR device parameteres inside raylib
- VR device parameter should be provided by user
- VR distortion shader should be provided by user
2019-04-11 13:53:01 +02:00
Ray
1934f2a2f4
Some tweaks
2019-04-11 00:11:11 +02:00
Ray
6168a4ca37
Comments review
2019-04-10 23:50:48 +02:00
ChillerDragon
f21761fbbb
Happy new year 2019
2019-04-07 17:49:12 +02:00
Ray
9282b8ba83
ADDED: SetShaderValueTexture()
...
Some tweaks
2019-04-05 17:08:46 +02:00
Ray
92733d6695
BIG UPDATE: New models functions for animations!
...
Multiple functions added and some reviewed to adapt to the new multi-mesh, multi-material and animated models.
2019-04-05 13:15:56 +02:00
Ray
a103086443
Removed trail spaces
2019-04-04 13:50:52 +02:00
Ray
6ecd8249bc
Merge pull request #787 from Demizdor/master
...
Added `DrawRoundedRect()` and `DrawRoundedRectLines()`
2019-04-04 13:42:20 +02:00
Ray
d89d24c5e8
BIG UPDATE: Support model animations!
2019-04-04 13:33:54 +02:00
Vlad Adrian
1415d514ba
Update raylib.h
2019-03-31 13:20:45 +03:00
Demizdor
a28023b58f
Added DrawRoundedRect()
2019-03-30 22:18:29 +02:00
Ray
afab8b36ab
Merge pull request #786 from Demizdor/draw_ring
...
Added DrawRing(), DrawRingLines() and DrawCircleSectorLines()
2019-03-29 17:28:37 +01:00
Ray
a643dc4ca0
WARNING: Redesigned model struct for multi-meshes
...
This is quite a big change, Model struct has been redesigned to support multiple meshes and multiple materials, most 3d fileformats contain multiple meshes and reference multiple materials.
Consequently, multiple functions have been reviewed.
LoadOBJ(), LoadIQM(), LoadGLFT() now return a Model.
Current LoadOBJ() is not valid anymore, actually, tinyobj_loader_c library is considered for replacement.
2019-03-29 16:48:23 +01:00
Demizdor
ab9c6da26f
Added DrawRing(), DrawRingLines() and DrawCircleSectorLines()
2019-03-29 16:22:09 +02:00
Ray
88dfd2ab23
REDESIGNED: DrawCircleSector()
2019-03-28 18:53:41 +01:00
raysan5
f02a0334d8
ADDED: GetScreenData()
2019-03-17 11:58:02 +01:00
Rafael Sachetto
9f54a69cec
Adding DrawCubeWiresV for convenience
2019-03-08 15:06:17 -03:00
Ray
2f97a3f835
Proposed Model struct review
2019-03-05 16:46:48 +01:00
Ray
2e99c6cefb
ADDED: IsWindowResized()
2019-03-04 22:58:20 +01:00
Ray
297dd641e8
ADDED: DrawCircleSector()
2019-02-13 00:06:06 +01:00
Ray
e996fe2ff5
ADDED: GetClipboardText(), SetClipboardText()
2019-02-11 18:03:06 +01:00
Ray
d356b1d1cc
Reviewed fbo creation and VR system
2019-02-06 14:21:44 +01:00
Ray
fce48e85f4
ADDED: LoadTextureCubemap()
...
Probably uncomplete, not tested yet...
2019-02-04 13:27:36 +01:00
Ray
5755c5e310
Review DrawTextRecEx() formatting
2019-02-04 09:57:02 +01:00
Demizdor
6f66425946
Added DrawTextRecEx()
2019-01-23 21:36:54 +02:00
Ray
4467292a2d
Review last PR formatting
2019-01-21 10:32:14 +01:00
Ray
9b97cf6972
Merge pull request #731 from MarcoLizza/reorganizing-logging
...
Reorganizing logging
2019-01-21 10:09:51 +01:00
Marco Lizza
343fef4aa4
Changing enums, now referenced as int.
2019-01-21 10:05:40 +01:00
Marco Lizza
f1d13aa469
Adding function to control the "exit-on-error" behaviour.
2019-01-20 22:24:41 +01:00
Marco Lizza
932e9dbd09
Fixing logging level configuration API.
2019-01-20 22:24:09 +01:00
Marco Lizza
c1c801e5c3
Reworking log level as incremental.
2019-01-20 22:22:21 +01:00
raysan5
d41e50f866
Allow ShowWindow usage ;)
2019-01-19 12:34:04 +01:00
Ray
3703430f57
Renamed ShowWindow() to UnhideWindow() -WIP-
...
Function provisional renaming... that's not the end of this issue...
2019-01-17 16:29:36 +01:00
Ray
a43f87e391
Crazy test
2019-01-16 17:25:48 +01:00
Ray
e811279a75
Review code formatting on ColorFromHSV()
...
Following raylib notation rules
2019-01-14 13:49:17 +01:00
Demizdor
da1714f411
Added ColorFromHSV()
2019-01-14 12:49:00 +02:00
Ray
25205b5113
Reverted flag value (but kept order)
...
This specific change could be very annoying for people already using FLAG_MSAA_4X_HINT, their programs will compile correctly but window won't be shown...
2019-01-11 12:21:02 +01:00
Ray
7132ba44db
Reviewed latest PR
2019-01-10 17:06:26 +01:00
Ray
56173d7cf4
Merge branch 'master' into window-visibility
2019-01-10 16:57:15 +01:00
Marco Lizza
6056a2a5cf
Reworking API upon suggestion.
2019-01-10 16:43:21 +01:00
Marco Lizza
a15251bcdb
Adding window visibility functions.
2019-01-10 14:55:19 +01:00
Marco Lizza
5adcc30a2e
Adding window visibility configuration flag.
2019-01-10 14:54:55 +01:00
Ray
64fd131ed5
Some improvements on SetShaderValue()
...
- Unsigned int not supported on OpenGL ES 2.0 -> Removed
- Reorganized enum -> Removed BOOL (not uniformType)
- Support sample2D uniform type
2019-01-10 12:28:23 +01:00
Ray
55f8dbc755
WARNING: Redesigned SetShaderValue()
2019-01-10 11:25:26 +01:00
Ray
35bcbd1b60
Merge pull request #718 from MarcoLizza/shaders-uniforms-array
...
Shaders uniforms array
2019-01-09 17:01:59 +01:00
Marco Lizza
73597332b6
Adding uniform array support for shaders.
2019-01-09 16:18:00 +01:00
raysan5
5c614f6975
Some code tweaks
2019-01-05 19:24:42 +01:00
raysan5
644eddda11
REMOVED: ShowLogo()
...
Same functionality could be achieved using FLAGS... but also considering removing raylib logo animation...
2019-01-03 13:55:59 +01:00
raysan5
d427f17210
REVIEWED some functions parameters
...
Decided to allow user to provide values directly instead of requiring a Vector2 struct, probably more confortable to use.
- SetMousePosition()
- SetMouseOffset()
- SetMouseScale()
2019-01-03 13:53:20 +01:00
ChrisDill
f9c43dc379
Mouse functions changed
...
- SetMouseScale changed to take in a Vector2.
- Added mouseOffset global which is used in mouse read functions.
2019-01-02 19:09:34 +00:00
ChrisDill
8933298864
Added SetMouseOffset
...
- Changed mouseScale to Vector2.
- Added SetMouseOffset to change XY of mouseScale.
2019-01-02 10:14:55 +00:00
raysan5
0619571149
ADDED: DrawTextRec() and example
2018-12-29 14:44:28 +01:00
raysan5
414c3ee1f9
ADDED: DrawTextureQuad()
...
Useful for tiling and offset parameters definition.
2018-12-26 23:44:16 +01:00
raysan5
91a7b0e5ef
Corrected typo
2018-12-26 13:57:10 +01:00
raysan5
01338b0a14
WARNING: BREAKING CHANGE
...
Added a bunch of useful text management functions.
Consequently, some already available functions like `FormatText()` and `SubText()` has been renamed for consistency. Created temporal fallbacks for old names.
raylib version bumped to 2.3.
2018-12-26 13:26:34 +01:00
raysan5
9a8320c52b
REVIEWED: DrawRectanglePro()
2018-12-26 10:51:13 +01:00
raysan5
96207a8a02
REVIEWED: LoadFontEx()
...
Changed parameters order for consistency with LoadFontData() and other functions when an array is passed by parameter and array size is the following parameter.
2018-12-25 15:17:42 +01:00
raysan5
92f68ac6be
Review DrawPolyEx()
...
Also reviewed rlCheckBufferLimit()
2018-12-24 14:09:51 +01:00
Ray
87ad244ee0
Exposed LoadFontFromImage()
2018-12-20 12:58:27 +01:00
Ray
4008a075a8
Added scissor functionality
...
To draw only in defined area of the screen
ADDED: BeginScissorMode(), EndScissorMode()
2018-12-15 23:30:55 +01:00
Ray
8b75a1a990
Improved textures wrap support
2018-12-03 12:00:05 +01:00
Ray
f552d43547
Reviewed some comments
2018-12-03 11:24:11 +01:00
Ray
5086c60e2f
Replaced #defines by enums
2018-12-03 11:04:32 +01:00
Ray
5167f78d5f
ADDED: OpenURL()
...
Corrected bug on ImageDrawRectangleLines()
2018-11-09 23:09:02 +01:00
Ray
b356ef5564
Modifies some Image functions
...
REVIEWED: ImageDrawRectangle()
ADDED: ImageDrawRectangleLines()
2018-11-07 17:58:26 +01:00
Ray
065994219e
Review parameter issue with MSVC
2018-11-06 16:11:11 +01:00
Ray
fc1c9505ba
Remove end-line spaces
2018-11-06 15:10:50 +01:00
Ray
e340517a73
Support custom texture on shapes drawing
...
By default, internal white texture was used to draw most of the shapes; some time ago, support for white font character from default internal font was added. That way, all basic drawing (shapes, text) could be performed without a texture change and in a single drawing pass.
Now, we move a step further and we allow configuring the texture (and rectangle) used to do the shapes drawing.
2018-11-06 15:06:01 +01:00
Ray
298203a41a
ADDED: Some functions...
...
text: IsEqualText() -WIP-
audio: SaveWAV()
audio: ExportWaveAsCode()
textures: ExportImageAsCode()
2018-10-29 16:18:06 +01:00
Ray
550dd40cb3
ADDED: SplitText() function
2018-10-23 15:43:19 +02:00
Berni8k
e07ec6a2e8
Overhaul mouse and touch for RaspberryPi \n\nNow all '/dev/input/event*' devices are now used for input. No longer uses '/dev/input/mouse*', keyboard and gamepad continue to use existing method\nMultitouch is now supported on RPi with 10 point multitouch\nFixed bugs with IsMouseButtonPressed(Used to constantly fire when holding button) and GetMouseWheelMove(Did not work)\n Fixed exesive CPU usage of GamepadThread
2018-10-21 00:09:17 +01:00
Ray
764766bfb2
Some formatting tweaks
2018-10-18 16:00:11 +02:00
Ray
b8b8936cd7
Review defines
2018-10-16 10:53:01 +02:00
Michael Vetter
d8331bde3a
Add FileExists() function
2018-10-14 14:21:02 +02:00
raysan5
68d2b0c071
Corrected description
2018-10-13 16:30:44 +02:00
raysan5
c7b601b624
Renamed new PR function
...
RENAME: GetLastWriteTime() to GetFileModTime()
2018-10-13 15:59:17 +02:00
ChrisDill
c2b36af60f
Added GetLastWriteTime to allow for file reloading
...
- Added a function to get the last write time of a file. I used this so I can reload files or resources if the time since they were last loaded changes.
2018-10-12 13:53:36 +01:00
noshbar
ccaf462cbf
GenImageFontAtlas prototype in raylib.h is incorrect.
...
The prototype of GenImageFontAtlas() in the main raylib.h header has a set of swapped parameter names.
Going through the usage of the function within raylib itself, it appears as if the correct order is:
1) charsCount
2) fontSize
However, it's exposed to the world as the other way around, which may cause some major confusion.
2018-10-10 22:28:17 +02:00
Ray
a511337ce8
ADDED: GetFileNameWithoutExt
2018-10-10 12:01:59 +02:00
Ray
2320c2febf
ADDED: ImageExtractPalette()
2018-10-08 18:57:33 +02:00
Ray
2feea87b61
Multiple changes, check description
...
REVIEW: Reorganized global variables for consistency
ADDED: GetWindowHandle() to get native window handle
ADDED: GetDirectoryFiles() to get files list for a DIR
2018-10-08 12:29:02 +02:00
Ahmad Fatoum
6572d5ff8c
raylib.h: include <stdbool.h> if available
...
Previously, if <raylib.h> was #included prior to another header that
defined bool, the compilation would fail.
This is e.g. the case for <perl.h> and <objc/objc.h> which both fall
back to the <stdbool.h> if C99 is available.
The following commit includes <objc/objc.h> in src/core.c, which causes
the same problem.
Avoid this by checking for C99 bool like we already do for C++'s.
2018-10-07 00:39:51 +02:00
ChrisDill
67dc50ef00
Changed monitor functions to use a index
...
- Using same idea as SetWindowMonitor to take in a index with 0 being the primary monitor.
2018-09-30 15:20:02 +01:00
ChrisDill
ed79d53e1a
Changed tabs to spaces
...
- Fixed tabs used instead of 4 spaces
2018-09-27 16:23:11 +01:00
ChrisDill
1836e02c1e
Added monitor functions
...
- Get number of monitors
- Get size, physical size and name of primary monitor. Could pass monitor id instead not sure.
2018-09-27 15:52:56 +01:00
Ray
27c3afd91c
enjoy!
2018-09-18 21:30:52 +02:00
Ray
ec5c9686b3
Improved data export capabilities!
...
REVIEWED: ExportImage()
REVIEWED: ExportMesh()
ADDED: ExportWave()
REMOVED: Internal funcs: SavePNG(), SaveBMP()
NOTE: These changes break the API (parameters order)
2018-09-17 16:56:02 +02:00
Ray
dfb8837c46
Support aliased font texture generation
...
Useful for bitmaps pixelated fonts where anti-aliasing is not desired!
Change also enables additional font generation mechanisms in a future (cleartype, hinting...).
2018-09-06 16:56:21 +02:00
Ray
1fcb3c0317
Started working on IQM/glTF loaders
2018-09-05 10:59:05 +02:00
Justin Clift
699cadcf98
Add the remaining numeric keypad keys, and a few other missing ones
2018-08-19 18:00:16 +01:00
Justin Clift
6a5dbeace8
Add the plus and minus keys on both the main keyboard and keypad
2018-08-19 14:40:30 +01:00
Jorge A. Gomes
5f89e35d1c
Update raylib.h
2018-08-08 16:39:10 -03:00
Jorge A. Gomes
6ef03ea4e8
Update raylib.h
...
Added support form vertical and horizontal 3-patches.
Corrected the distortion caused when destRec size is smaller than 4x4. Now even 1x10 or 0x0 sizes are drawn correctly.
2018-08-03 20:50:13 -03:00
Jorge A. Gomes
c9ca14e659
Update raylib.h
...
Added NinePatch struc definition and function prototype.
2018-08-03 04:48:46 -03:00
raysan5
0cf92c59d7
Corrected timing typo
2018-07-28 18:13:19 +02:00
raysan5
6f61e26a3c
Reviewed custom logging functionality
2018-07-28 17:57:05 +02:00
Pablo Marcos Oltra
c69f7953c7
Add SetTraceLogCallback to enable users setting custom logging ( #597 )
2018-07-26 21:57:45 +02:00
Ray
198a023527
First working version of IQM animations
...
Still a work in progress but it already works...
Current riqm API could be simplified...
2018-07-24 18:28:58 +02:00
Ray
0c631e6b5a
Corrected comment
2018-07-15 21:24:59 +02:00
raysan5
3c02a9fc66
Support multiple data type aliases
...
Vector4 -> Quaternion
Texture2D -> Texture
RenderTexture2D -> RenderTexture
Camera3D -> Camera
SpriteFont -> Font
2018-07-09 10:23:53 +02:00
raysan5
c6d188a09a
Reviewed latest commit for Android gamepad support
2018-07-07 10:15:19 +02:00
Seth Archambault
f981daf1df
Added SNES-style GAMEPAD SUPPORT
2018-07-06 13:33:46 -04:00
raysan5
103bc7dfc6
Corrected issue with GetFontDefault()
...
Note for me: Replace All is NOT your friend...
2018-07-05 19:17:06 +02:00
raysan5
d881c73257
Renamed GetDefaultFont() to GetFontDefault()
...
Library consistency rename... yes, I know, it breaks the API...
2018-07-05 19:08:24 +02:00
Ray
74fd0e7ca4
Added function: ImageColorReplace()
2018-07-03 00:57:58 +02:00
Ray
7b971e0623
Added Quaternion typedef
2018-07-02 18:53:46 +02:00
Ray
d0166c9d45
Spacing tweaks
2018-06-30 21:56:26 +02:00
Ray
afe81d94ce
Re-added: LoadFontEx()
2018-06-30 19:58:44 +02:00
Ray
dbfd8d713f
Reviewed comments section
2018-06-26 01:36:13 +02:00
maficccc@gmail.com
59ebe1b7c3
Added support OpenBSD, NetBSD, DragonFly
2018-06-23 17:02:07 +02:00
Ray
0e135118fd
Improved GenImageFontAtlas()
2018-06-21 00:18:13 +02:00
Ray
75ba5aca55
Improved font generation and SDF
...
Added: data to CharInfo struct
Added: LoadFontData()
Added: GenImageFontAtlas()
Removed: LoadFontEx()
Removed: LoadTTF() [internal]
Some code tweaks
2018-06-20 00:52:14 +02:00
Ray San
59fd261491
Added function: GetImageDataNormalized()
...
Reviewed: GetImageData()
Reviewed: ImageFormat()
2018-06-12 13:13:09 +02:00
Ray
0e6458cfee
Added ImageRotate*() functions
2018-06-03 21:05:01 +02:00
Ray
9688c677de
Review window creation hints
2018-06-02 18:26:57 +02:00
Ray
b1b4a11bdb
Corrected issue with function definition
2018-06-02 13:05:23 +02:00
Ray
2536bea379
Added: ImageResizeCanvas() -WIP-
...
Added note idea on ImageFormat() for future redesign (to support
16bit-32bit pixel-formats)
2018-06-01 00:53:40 +02:00
Ray San
ec33e7d705
BREAKING CHANGE: Renamed SpriteFont type to Font
...
- Preparing MP3 files support
- Jumped version to raylib 2.0-dev (too many breaking changes...)
2018-05-04 16:59:48 +02:00
Ray San
6045062a05
Renamed some functions
...
- Renamed Begin3dMode() --> BeginMode3D()
- Renamed Begin2dMode() --> BeginMode2D()
- Renamed End3dMode() --> EndMode3D()
- Renamed End2dMode() --> EndMode2D()
2018-05-04 16:54:05 +02:00
Ray San
6324697ffd
Rectangle parameters changed to float
...
- Some examples tweaks
- Reviewed ImageFormat()
- Use float for text fontSize
2018-05-04 16:25:31 +02:00
Ray San
9d103b7c2f
Removed line breaks from functions
...
Useful to parse raylib.h to generate raylib-lua and Notepad++
intellisense XML info
2018-05-03 19:19:35 +02:00
raysan5
198d739256
BREAKING CHANGE: Renamed Camera -> Camera3D
...
Just added a fallback in the meantime...
2018-05-01 12:31:03 +02:00
raysan5
dff1028466
Replaced ColorToFloat() by ColorNormalize()
2018-04-29 18:39:46 +02:00
lumaio teon
5ef6cc1fb9
Add more key definitions
2018-04-13 17:14:04 -04:00
Ray San
4cc12ef2b3
Review camera definition on examples
2018-04-11 10:13:00 +02:00
Ray
8e44f7b3c7
Reviewed config.h formatting
...
Added raylib version to config
2018-04-09 23:01:20 +02:00
lumaio teon
d2cc5b88df
Removed useless GetCollisionRayMesh and libraylib.a
2018-04-07 03:49:56 -04:00
lumaio teon
d003c23ecf
Added GetCollisionRayModel
2018-04-06 12:04:09 -04:00
Ray
931b672c92
Added: ImageDrawRectangle()
...
Renamed SaveImageAs() to ExportImage() for consistency on what actually happens with data.
2018-04-04 12:02:20 +02:00
raysan5
bbdf9f4880
Review InitWindow() to avoid void pointer
...
Reviewed for PLATFORM_ANDROID and PLATFORM_UWP
2018-04-02 14:49:01 +02:00
Max Danielsson
5ecee69088
Add 3d orthographic projection mode
2018-03-25 18:33:19 +02:00
Ray
61e0e4b4f3
Complete review of raymath for API consistency
2018-03-16 13:47:01 +01:00
Ray
487bc613fd
Updated raylib dev version
2018-03-15 12:37:52 +01:00
Ray
6c6d6776c0
Merge pull request #482 from a3f/master
...
raymath.h: Use C99 inline semantics
2018-03-15 12:27:40 +01:00
raysan5
a0127d8300
Corrected typo
2018-03-11 10:49:51 +01:00
Ray San
df50eada53
Added new functions
...
- SetWindowSize() to scale Windows in runtime
- SetMouseScale() to scale mouse input, useful when rendering game to a
RenderTexture2D that will be scaled to Window size (used on rFXGen tool)
2018-03-09 11:43:53 +01:00
Ray
fd2adbe62d
Renamed CalculateBoundingBox() to MeshBoundingBox()
...
Renamed function for consistency with a possible Mesh manipulation functions (maybe added in a future). Naming follows Image*() manipulation functions.
2018-02-26 12:10:45 +01:00
Ahmad Fatoum
f52d2de582
raymath.h: Use C99 inline semantics
...
RAYMATH_EXTERN_INLINE was renamed to RAYMATH_HEADER_ONLY, which user code
may define if they want to use it as header-only library. If multiple
files in the same project define RAYMATH_HEADER_ONLY, they might each
have duplicate out-of-line definitions of the same functions.
By default, raymath.h exposes inline definitions, which instructs the
compiler _not_ to generate out-of-line definitons, if out-of-line
definitions are required, those of the file defined with
RAYLIB_IMPLEMENTATION are used instead. There may be only one such file.
In C++ mode, the compiler will select only one out-of-line definition
automatically, so no need to define a RAYLIB_IMPLEMENTATION.
Unfortunately, we have to remove raymath function declaration from
raylib.h as those declarations would lead to duplicate out-of-line
definitions which would yield linker errors. This problem didn't
exist with GNU89 or C++, because there multiple defintions are ok,
but in C99 they aren't.
2018-02-24 23:39:23 +01:00
Ahmad Fatoum
ed6962edd3
Make MatrixToFloat and Vector3ToFloat reentrant
...
Besides making it thread-safe, it suppresses a GCC warning
when making them static inline in an upcoming patch.
2018-02-24 23:39:17 +01:00
Ahmad Fatoum
a5881fb9cc
Revert "raymath.h: Use C99 inline semantics"
...
This reverts commit 6ffc8cb799 .
and commit e4d7bbec1e .
which I pushed by mistake...
2018-02-24 15:40:08 +01:00
Ahmad Fatoum
6ffc8cb799
raymath.h: Use C99 inline semantics
...
RAYMATH_EXTERN_INLINE was renamed to RAYMATH_HEADER_ONLY, which user code
may define if they want to use it as header-only library. If multiple
files in the same project define RAYMATH_HEADER_ONLY, they might each
have duplicate out-of-line definitions of the same functions.
By default, raymath.h exposes inline definitions, which instructs the
compiler _not_ to generate out-of-line definitons, if out-of-line
definitions are required, those of the file defined with
RAYLIB_IMPLEMENTATION are used instead. There may be only one such file.
In C++ mode, the compiler will select only one out-of-line definition
automatically, so no need to define a RAYLIB_IMPLEMENTATION.
Unfortunately, we have to remove raymath function declaration from
raylib.h as those declarations would lead to duplicate out-of-line
definitions which would yield linker errors. This problem didn't
exist with GNU89 or C++, because there multiple defintions are ok,
but in C99 they aren't.
2018-02-24 15:37:37 +01:00
Ahmad Fatoum
e4d7bbec1e
Make MatrixToFloat and Vector3ToFloat reentrant
...
Besides making it thread-safe, it suppresses a GCC warning
when making them static inline in an upcoming patch.
2018-02-24 15:37:37 +01:00
Ray
077bef4286
Support 4 components mesh.tangent data
...
Added struct Vector4 for convenience
2018-02-24 12:31:32 +01:00
raysan5
4492a70a4b
Support UTF8 basic characters on ImageTextEx()
...
Supported UTF8 range equivalent to [128..255] (80h..FFh)
Exposed and renamed text function GetGlyphIndex()
Renamed spriteFont parameter name to simply font
Small security check on transmission mission ending screen
2018-02-18 18:07:57 +01:00
Ray
36750ffb9a
BREAKING CHANGE: Renamed function for consistency
...
Rename: GetHexValue() renamed to ColorToInt()
Added: ColorToHSV()
2018-02-12 11:55:22 +01:00
Ray
4d5d1e0434
Added function LoadShaderCode()
...
Allows loading of shader from text code string directly
2018-02-05 01:03:13 +01:00
raysan5
3a11cc5e31
Incremeted version to align with CMake
2018-02-04 13:44:41 +01:00
raysan5
6dc2f979cc
Updated raylib version
...
Note that this version is under development and could be buggy on some
platforms...
2018-02-04 12:33:46 +01:00
raysan5
70e0070a85
Reviewed window initialization
...
In case graphic device could not be created it returns false instead of
failing with an error tracelog (and consequently closing the program).
Window initialization success could be checked with new function
IsWindowReady()
2018-02-04 12:26:28 +01:00
Ahmad Fatoum
26c9176a14
Return false from InitWindow if glfwInit or glfwCreateWindow fails
...
You can't do much with raylib if glfwInit or glfwCreateWindow fails,
currently it just exits by means of TraceLog(LOG_ERROR.
User code, however, might want to fall back to a text-only UI
or display a warning if raylib can't be used.
2018-02-03 14:53:58 +01:00
Ray San
d1ef6869a9
Added function DrawRectangleLinesEx()
2018-02-02 11:01:38 +01:00
Ray
58346414f7
Corrected typo
2018-01-31 15:32:40 +01:00
Ray
44c95af463
Added missing keys definitions
2018-01-31 14:08:08 +01:00
Ray
ce9f191f1b
Added function: ImageMipmaps()
2018-01-18 00:23:45 +01:00
Ray
c8e97df233
Reviewed function GenImagePerlinNoise()
...
Added support for noise image offset
2018-01-17 00:43:30 +01:00
Ray
278d8575bd
Added new function: ImageAlphaCrop()
2018-01-11 10:22:32 +01:00
raysan5
e4be917d1b
Added new image functions
...
- Added: ImageAlphaClear()
- Added: ImageAlphaPremultiply()
- Reorganized some functions
2018-01-07 00:51:26 +01:00
raysan5
7caa3201d5
Improved pixel formats support
...
- Renamed enum TextureFormat to PixelFormat for consistency
- Added support for pixel format UNCOMPRESSED_R32
- Using GetPixelDataSize() where required
2018-01-06 13:43:48 +01:00
raysan5
1f0f8c33fa
Added function declaration
2018-01-06 02:51:28 +01:00
raysan5
7fa2861160
Added function: GetPixelDataSize()
...
Just found I need that function...
2018-01-06 02:50:20 +01:00
raysan5
1a82e1ab26
Added function GetFileName()
...
Review comments
2018-01-02 02:26:05 +01:00
raysan5
e1baae0249
Removed function DrawRectangleT()
...
Functionality integrated in DrawRectangle() and selectable with config
flag USE_DEFAULT_FONT_TEXTURE
2018-01-01 16:54:32 +01:00
raysan5
b19e155b34
Support UNCOMPRESSED_R32G32B32A32 texture format
2017-12-28 17:58:37 +01:00
raysan5
0bd06eec51
Renamed function to SetTraceLog()
...
I think is clearer this way...
2017-12-24 16:49:54 +01:00
raysan5
e517d8fd16
Added function SetTraceLogTypes()
...
Trace log messages could be configured with this function to select wich
ones are shown
2017-12-24 16:47:33 +01:00
Ray
b63ffcfa0f
Some code tweaks
...
Audio module requires a complete formatting review....
2017-12-20 00:34:31 +01:00
Ray San
5290390494
Expose GetTime() function to users
...
Monotonic time since InitWindow() could be retrieved with this function.
2017-12-19 14:06:54 +01:00
Ray San
53ad53d051
Manually review previous PR
2017-12-15 13:44:31 +01:00
user
2affac820e
make raylib not clash with windows-header
2017-12-14 11:52:45 +01:00
user
48d0c93ace
make GetTime available to user of library
2017-12-14 11:50:35 +01:00
user
b872de951b
fix for GetMatrixModelview (former cl)
2017-12-14 11:49:31 +01:00
Ray
a6f9cc5629
Remove rres support
...
Let the user choose if using rres external library
2017-12-11 11:55:02 +01:00
Ray San
acbfba9250
Updated library features and dependencies
2017-12-05 13:22:26 +01:00
Ray
9d0ee6c2f6
Merge pull request #413 from mackron/dr/mini_al
...
mini_al integration
2017-12-05 11:23:16 +01:00
Ray
54d0acc3b6
Change version number for develop
...
Updated raylib version to 1.9-dev for development pourposes.
Next raylib version is planned to implement a big amount of changes, so
the version bump.
2017-12-05 00:05:05 +01:00
David Reid
60d7215b2a
mini_al: Unify the buffer system for Sounds and AudioStreams.
2017-11-18 08:42:14 +10:00
David Reid
88d2810fa3
Bug fixes for Music with mini_al.
2017-11-14 21:15:50 +10:00
David Reid
ac4c911ad7
Work on porting Music to mini_al.
2017-11-12 21:55:24 +10:00
David Reid
68bf6c9701
Initial work on porting AudioStream to use mini_al.
2017-11-12 20:59:16 +10:00
raysan5
24b12e5e23
Remove PLATFORM_ checks from raylib header
...
Now header is truly multiplatform...
Actually still a small pending check on XBOX gamepad controls that
hopefully will be removed with next GLFW 3.3
2017-11-12 11:45:35 +01:00
raysan5
02dd4d32b5
Allow custom distortion shader - IN PROGRESS -
2017-11-12 11:00:28 +01:00
David Reid
b0852002b8
Rename SoundInternal to SoundData for consistency with MusicData.
2017-11-12 14:54:37 +10:00
David Reid
75433a670e
Initial work on adding support for mini_al.
2017-11-12 14:17:05 +10:00
Wilhem Barbier
879c2f484b
SetShaderValue take const pointer
2017-11-05 21:57:29 +01:00
Ray
9e0105a1a3
Corrected function name
2017-11-04 16:57:20 +01:00
Ray
539a9ca50e
Corrected ImageTextEx()
...
- Added new function: GenImageColor()
ImageDraw() should be reviewed... specially alpha blending...
2017-10-25 01:24:17 +02:00
Ray San
7057d08369
Review VR functionality
...
To be more generic and configurable
2017-10-17 13:32:15 +02:00
raysan5
8928248c71
Review comments about raylib
2017-10-12 14:07:31 +02:00
Ray San
399d4b5f46
Check to avoid bool redefinition
2017-10-11 13:29:01 +02:00
Ray San
b2789949ee
Working on Makefiles...
2017-10-02 14:12:03 +02:00
Ray
4f9de9527f
Review gradient rectangle drawing
...
Added: DrawRectangleGradientV()
Added: DrawRectangleGradientH()
2017-09-30 00:46:31 +02:00
raysan5
20968830c0
Added mesh generation functions
2017-09-18 00:59:22 +02:00
raysan5
f3f6d3fd8e
Added new functions
...
SetWindowTitle()
GetExtension()
2017-09-08 09:35:54 +02:00
raysan5
12cb3afd9e
Added function DrawRectangleGradientEx()
...
Moved function DrawRectangleT() from text module to shapes
Added some comments
2017-08-27 21:02:24 +02:00
raysan5
88839b093c
Added function DrawRectangleT()
...
Usefult to draw rectangles using default font texture
2017-08-06 10:44:50 +02:00
raysan5
a766e2c480
Updated Vector math to new naming
2017-07-22 22:15:50 +02:00
raysan5
c756227e11
Remove BOM from file encoding
2017-07-22 10:44:24 +02:00
raysan5
38d9fcb08e
Moved some functions to raymath
...
Exposed some raymath useful functions to raylib API
2017-07-21 15:25:35 +02:00
raysan5
2679c4ae9b
Review mesh loading and textures generation
2017-07-21 09:34:09 +02:00
raysan5
76c6f0b1e6
Working on PBR system
...
Moved PBR material loading to example, right decision?
2017-07-19 18:55:32 +02:00
raysan5
d368403a13
Working on PBR materials, renamed some data
2017-07-19 10:09:34 +02:00
Ray
6546474fa4
Manual integration of material-pbr into develop
2017-07-17 00:33:40 +02:00
raysan5
6589c808b5
Review some formatting for consistency
2017-07-02 19:29:01 +02:00
raysan5
9f09f6f550
Rename enum LogType names...
...
...to avoid possible conflicting symbols
2017-07-02 12:35:13 +02:00
Wilhem Barbier
786cd63057
Add a density parameter to GenImageRadialGradient
2017-06-28 17:27:47 +02:00
Ray
c3049a9b06
Merge pull request #311 from nounoursheureux/image_gen
...
Add more image generation functions: radial gradient and perlin noise
2017-06-28 16:20:25 +02:00
Wilhem Barbier
3fe268d004
Swap the two parameters
2017-06-28 15:38:34 +02:00