4c9d2e719e
Merge branch 'master' of https://github.com/raysan5/raylib
2021-04-04 14:59:29 +02:00
66f3434571
REDESIGNED: Shapes texture/rec moved to shapes module
2021-04-04 14:59:17 +02:00
d58b7b509e
Make SaveFile* callbacks return a boolean ( #1697 )
2021-04-03 08:56:42 +02:00
c21baf0d92
ADDED: GenMeshDefault() #1556
2021-04-02 15:56:35 +02:00
aed0fee2ca
Remove trailing spaces
2021-04-01 20:24:33 +02:00
cdc3754449
ADDED: Support model normal matrix location #1691
2021-03-31 20:44:16 +02:00
23a764190e
ADDED: LoadShaderFromMemory() #1690
2021-03-28 20:12:48 +02:00
bc6b16beb2
REVIEWED: DrawTexturePoly()
2021-03-28 20:07:59 +02:00
f9bab14fdb
REVIEWED: DrawMeshInstanced()
2021-03-26 00:12:29 +01:00
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
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
bb73a8089a
Reviewed DrawFPS() comment
2021-03-24 17:06:32 +01:00
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
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
24dae29a03
Review latest PR and some formatting
2021-03-22 20:41:33 +01:00
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
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
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
5049137715
Added KEY_NULL #520
2021-03-20 13:08:13 +01:00
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
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
8527dbc6e2
WARNING: REMOVED: GamepadNumber enum
2021-03-19 18:16:05 +01:00
07d82a91c5
WARNING: BREAKING: RENAMED: camera.type to camera.projection
2021-03-19 13:56:46 +01:00
a1d9987e7c
WARNING: BREAKING: REVIEWED some enums naming
...
Now enum names are more consistent between them.
2021-03-19 13:19:54 +01:00
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
bc9194690c
Implement UnloadModelAnimations ( #1648 )
2021-03-14 19:30:18 +01:00
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
fe3256be9f
Renamed some functions to use latest raylib version
2021-03-12 18:00:36 +01:00
8a30a2408c
ADDED: Required callbacks
...
Removed memory allocation callbacks
2021-03-08 18:48:27 +01:00
0d096b43c2
Update some comments to warn users about callbacks
2021-03-04 20:44:22 +01:00
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
dfe797060a
WARNING: BREAKING: RENAMED: enums values
...
RENAMED: TextureFilterMode values
RENAMED: TextureWrapMode values
2021-03-03 19:47:37 +01:00
408f5aedb8
WARNING: BREAKING: RENAMED enum values
...
RENAMED: CubemapLayoutType and NPatchType
2021-03-03 19:36:28 +01:00
bcc4418ff0
REVIEWED: GetFileExtension() to include the dot #1523
2021-03-02 01:07:08 +01:00
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
0c63c7c907
Possible callbacks -WIP-
2021-02-14 16:47:08 +01:00
090c790e50
Review formating for latest PR
2021-02-07 20:47:40 +01:00
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
62ccec0ac5
REMOVED: SetTraceLogExit()
...
I feel nobody has ever used this function...
2021-02-05 14:36:28 +01:00
3431d58586
Designing some callbacks -WIP-
2021-02-05 10:17:21 +01:00
96db787657
REVIEWED: Gamepad system, specially for RPI
2021-01-31 03:07:26 +01:00
f4f208c4ae
ADDED: UploadMesh() #1529
...
Upload mesh data to GPU and get VAO/VBO identifiers
2021-01-22 12:16:19 +01:00
f2c0981c57
Review typo
2021-01-22 11:57:18 +01:00
18ab694f70
ADDED: SetGamepadMappings() #1506
2021-01-21 14:39:03 +01:00
eb7820b2b0
Review comment
2021-01-15 00:20:35 +01:00
d7b4b9e485
Update year to 2021
2021-01-02 18:15:13 +01:00
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
521ed1cef0
Review DrawLineBezierQuad(), formating and aprameters order
2020-12-26 13:09:34 +01:00
de13fca3b1
Add Quadratic Bezier drawing ( #1468 )
...
* Add quadratic bezier to shapes.c
* Add DrawLineBezierQuad to header
2020-12-26 13:04:38 +01:00
0a9e080998
Remove trailing spaces
2020-12-23 15:03:26 +01:00