Commit Graph

5199 Commits

Author SHA1 Message Date
Ray 00c8795385 Minor tweaks to follow code conventions 2021-06-26 13:45:39 +02:00
Ray 89708edf7f REVIEWED: Latest PR to follow raylib code conventions 2021-06-26 13:45:15 +02:00
Hristo Stamenov 71700254b4
Major revamp gltf (#1849)
* Added my own model and license to Raylib exclusively created by me and provided for use in the examples (and other projects if anyone decides to)

* Use animation vertices on initial load if possible.

* Added girl model to model example

* Revamped GLTF model loading as it was wrong by default. Also updated some comments.

GLTF models were loaded only by mesh but they should be loaded recursively by hierarchical nodes because tehre are some static node transformations that are to be applied to the vertices. It also resulted in more meshes being included in some models.

It is the correct way of loading GLTF and what is suggested in the official examples.

Currenlty limiting to only one scene but more can be included later.

* Refactored the new names and structure of extracted functions.

* Safer and easier read value.

* Made reading easier for accessor->bufferView->buffer in GLTF.

Now there is no need to check for supported types or anything.

* Correct inclusion of limits.h in the cases of MSVC based compilers vs the world

* Removed weird example file
2021-06-26 13:22:00 +02:00
Ray aa86e9d399 REVIEWED: Minor tweaks on log messages 2021-06-26 13:18:39 +02:00
Ray 4b6e6ce20e REVIEWED: Improved log info on image/textures laoding
ADDED: rlGetPixelFormatName()
2021-06-26 13:07:14 +02:00
Ray 7cbfca8bd1 REVIEWED: Simplified code to avoid extra functions calls 2021-06-26 13:06:22 +02:00
Ray e0720a0a55 WARNING: REVIEWED: Default shader uniform names
When a shader is loaded, by default, several locations are tried to be set automatically.
2021-06-25 13:35:43 +02:00
Ray d4c03b47ec REVIEWED: LoadShader() and default locations
Reviewed locations descriptions
2021-06-25 00:46:14 +02:00
Ray a226e11aac
Update CONVENTIONS.md 2021-06-24 19:03:05 +02:00
Ray d3d362090c
Update CONVENTIONS.md 2021-06-24 18:59:09 +02:00
Ruminant f3eff740ce
fix to LoadShaderFromMemory (#1851)
- the shader.locs now match the LoadShader function

Without this change, the lighting sample looks incorrect when
using LoadShaderFromMemory

Co-authored-by: Ruminant <psp5150+git@gmail.com>
2021-06-24 18:48:48 +02:00
Ray f4c171aa45
Create CONVENTIONS.md 2021-06-24 18:48:08 +02:00
Ray 953882e86f REVIEWED: `CORE.Storage.basePath`
Simplified some code
2021-06-24 18:13:25 +02:00
Ray 46ad7b87e8 Update text.c 2021-06-24 18:11:48 +02:00
Ray 4e9afac2a5 REVIEWED: WaitTime() #1841
Avoid global variables dependency, now the function is self-contained.
2021-06-24 11:01:44 +02:00
Ray 2cce5a24c9 Merge branch 'master' of https://github.com/raysan5/raylib 2021-06-24 10:39:56 +02:00
Ray 43efe92e21 Update core_basic_window.c 2021-06-24 10:39:43 +02:00
Nikhilesh S f7a6b94f46
Allow SetWindowSize() on web (#1847) 2021-06-23 10:02:18 +02:00
Ray 7203acdef9 Minor format tweaks 2021-06-23 09:59:11 +02:00
Ray 3db26f82ea WARNING: BREAKING: Functions renamed!
RENAMED: GetCodepoints() -> LoadCodepoints(), now codepoint array data is loaded dynamically instead of reusing a limited static buffer.
ADDED: UnloadCodepoints() to safely free loaded codepoints
RENAMED: GetNextCodepoint() -> GetCodepoint()
2021-06-23 09:58:49 +02:00
Ray 716e26aa37 Review BeginTextureMode() usage
Moved outside BeginDrawing()/EndDrawing() to illustrate drawing is happening to an external texture (not screen)
2021-06-23 01:25:09 +02:00
Ray f989048bda Reviewed example 2021-06-23 01:16:21 +02:00
Ray 49d2897b24 Update core_custom_frame_control.c 2021-06-22 21:24:15 +02:00
Ray 6f60622619 ADDED: Example: core_custom_frame_control 2021-06-22 21:20:14 +02:00
Ray 429c5a9a9a Review and un-expose InitTimer()
Actually it's not required for SUPPORT_CUSTOM_FRAME_CONTROL
2021-06-22 20:26:59 +02:00
Ray 7f2a071c51 Formatting review 2021-06-22 20:14:44 +02:00
Ray 2efb50cc63 Update .gitignore 2021-06-22 20:01:57 +02:00
Sky 9095dd9e82
Add support for resizing Emscripten canvas (#1840) 2021-06-22 18:25:52 +02:00
Diesirae 30a0f6f292
Fix DrawTextRec (#1843)
* fix text wrapping

* fix indent

* fix indent

* fix indent

* fix DrawTextRec
2021-06-22 18:16:04 +02:00
Guillaume DEVOILLE 52f1c7df6d
Fix missing fclose in tinyobj loader (#1842)
Missing fclose in tinyobj loader.
2021-06-22 18:12:42 +02:00
FSasquatch 906c7f591e
Added hxRaylib (#1846) 2021-06-22 18:07:47 +02:00
Ray 115cc7dede Review GetFPS() 2021-06-21 00:46:30 +02:00
Adrian Guerrero Vera 96d5dd24aa
core: added `GetMouseDelta()` (#1832)
* core: added `GetMouseDelta()`

Thanks to previousPosition added by raysan it is now possible to create the GetMouseDelta() function.

Returns a Vector2 with the difference between the current and previous position of the mouse in a frame.

Useful for creating camera scrolling, among others.

* Added changes noted by raysan
2021-06-21 00:11:27 +02:00
raysan5 28093c46a8 Disable `SUPPORT_EVENTS_AUTOMATION` by default 2021-06-19 19:54:36 +02:00
PtitLuca c37f776e87
fix: change relevant occurences of MeshBoundingBox to GetMeshBoundingBox (#1836) 2021-06-18 13:11:10 +02:00
Ray 1dd9fbae94 Merge branch 'master' of https://github.com/raysan5/raylib 2021-06-17 18:18:26 +02:00
Ray 8be5ec2288 Avoid SUPPORT_MOUSE_CURSOR_POINT 2021-06-17 18:18:16 +02:00
Sirvoid 1a420b77e3
Fixed: Binding vertex position twice (#1835) 2021-06-17 15:42:37 +02:00
Ray 0e65e5877f Update rlgl_standalone.c 2021-06-17 12:54:05 +02:00
Ray e07054d0d4 RENAMED: `SwapBuffers()` -> `SwapScreenBuffer()`
Avoid possible symbol collisions
2021-06-17 12:47:03 +02:00
Ray b733e76c86 Update physac.h 2021-06-17 12:26:33 +02:00
Ray 19b71f5f13 WARNING: Exposed `SUPPORT_CUSTOM_FRAME_CONTROL` #1729 2021-06-17 12:17:50 +02:00
Ray ab032919df RENAMED: Wait() -> WaitTime() 2021-06-17 11:47:05 +02:00
Ray 68e408474d Renamed SUPPORT_MOUSE_CURSOR_NATIVE -> SUPPORT_MOUSE_CURSOR_POINT 2021-06-17 11:17:39 +02:00
Ray 942657fc7c Remove Color struct requirement 2021-06-17 00:28:51 +02:00
Ray 4decbb2586 RENAMED: MeshTangents() -> GenMeshTangents()
RENAMED: MeshBinormals() -> GenMeshBinormals()
2021-06-17 00:04:24 +02:00
Ray f3d38018cd Comment tweak 2021-06-17 00:03:24 +02:00
Ray 3ae40c35e6 Update examples_template.c 2021-06-16 14:09:28 +02:00
Ray 4b93feb172 Remove trail spaces 2021-06-13 17:08:30 +02:00
Ray d875891a3c Improved raylib parser to export data as XML
- Improved command-line
 - Added XML support
 - Added sample outputs: DEFAULT, JSON, XML
 - Reviewed LoadFileText() bug
 - Removed trailing spaces
2021-06-13 16:34:51 +02:00