Ray
bc3983a3dd
Solved issue #912
2019-07-22 21:15:25 +02:00
Kevin Yonan
f501d42e47
Increasing threshold size for traversing memory blocks ( #914 )
...
L235 - Increased the memory threshold size so that we can further reduce fragmentation by allocating memory blocks that is close to the requested size by 16 bytes.
2019-07-22 10:17:27 +02:00
Ray
4b2f6b2b5f
Check buffer limit on DrawBillboardRec()
2019-07-22 00:12:51 +02:00
raysan5
e8829538c9
Review rmem functions naming and coding conventions
2019-07-15 19:25:55 +02:00
Kevin Yonan
c563b53afb
Submitting rmem memory and object pool module ( #898 )
...
* Submitting rmem memory and object pool module
* changed 'restrict' to '__restrict' so it can compile for MSVC
Added `const` to parameters for `MemPool_Realloc`
* Update and rename mempool README.txt to mempool_README.md
* Update mempool_README.md
* Update mempool_README.md
* Update and rename objpool README.txt to objpool_README.md
* implementing changes
* updating header for changes.
* forgot to change _RemoveNode to __RemoveNode
* removing l
* removing l
* Updating documentation on MemPool_CleanUp function
* Updating documentation on ObjPool_CleanUp function
* changed *_CleanUp function parameter
Replaced `void*` pointer to pointer param to `void**` so it's more explicit.
* Updating header to reflect changes to the *_CleanUp functions
* A single change for the mempool and a patch for the objpool.
Object Pool Patch: if you deplete the object pool to 0 free blocks and then free back one block, the last given block will be rejected because it was exactly at the memory holding the entire pool.
Mempool change: switched memory aligning the size from the constructor to when allocating.
2019-07-15 18:28:09 +02:00
raysan5
a386cedae6
Review extensions loading and freeing
2019-07-12 14:36:20 +02:00
raysan5
f9a2d89ed2
Use function GetSizeBase64()
2019-07-12 14:33:06 +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
Leandro Gabriel
a4e307ed96
Fix typo in comment (onlyl -> only)
2019-06-24 16:06:02 +02:00
Ray
65a21ab416
Renamed screenWidth & screenHeight
2019-06-19 16:01:47 +02:00
Ray
1b249ac1e1
Define some globals
2019-06-19 15:43:35 +02:00
Ray
e0854696b4
ADDED: DrawTriangleStrip()
2019-06-17 10:29:58 +02:00
Ray
f951f0c536
RENAMED: LoadDefaultFont() -> LoadFontDefault()
...
Renamed internal function for consistency with similar functions.
2019-06-16 23:42:51 +02:00
Ray
e36a80f730
Code tweaks
2019-06-16 23:37:16 +02:00
Ray
d21422687a
Some formatting tweaks
2019-06-16 23:36:04 +02:00
Shiqing
5baab54f93
Fix vertex padding not zeroed for quads, close #891
2019-06-15 13:51:56 +08:00
Ray
721d18589f
Corrected issue with input threads (RPI)
2019-06-14 18:24:55 +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
a43d49ed72
Added CMake flags
...
Reviewed comments
2019-06-12 12:21:23 +02:00
Ray
0c60af8981
Tweak: Change check order
2019-06-12 12:14:36 +02:00
Ray
9609ebf49a
Corrected IQM function declaration
2019-06-12 12:12:59 +02:00
Ray
55380f8489
Review DEBUG mode
2019-06-12 12:08:39 +02:00
Ray
266df463cc
Support externally provided compiler
2019-06-12 12:03:34 +02:00
DarkElvenAngel
034e9ba1b8
Add files via upload
2019-06-10 17:09:53 -04:00
Ray
dee602464b
Merge branch 'master' of https://github.com/raysan5/raylib
2019-06-06 23:52:53 +02:00
Ray
baf225dc01
Update emsdk version for testing
2019-06-06 23:52:49 +02:00
Mohamed Shazan
eb1b2535f6
Change ANGLE binaries location
2019-06-06 16:44:37 +05:30
Ray
37ce51b274
Merge pull request #872 from msmshazan/ANGLE-fix
...
Added VS2017.ANGLE Project
2019-06-06 11:51:43 +02:00
Ray
498c172d8e
Review function prototype
2019-06-06 11:38:45 +02:00
Mohamed Shazan
272d9d58e3
Add VS2017.ANGLE Project
2019-06-06 15:03:03 +05:30
Ray
e3ef738264
Replace TABS by spaces
2019-06-05 13:01:58 +02:00
Ray
c5f605e888
Merge pull request #862 from a3f/master
...
build: increment API_VERSION after release
2019-06-05 12:29:28 +02:00
Ahmad Fatoum
e103320ad8
build: increment API_VERSION after release
...
With v2.5.0 out, increment API_VERSION, so binaries dynamically linked
against the released raylib aren't accidentally paired with a development
or later released raylib that may be incompatible.
2019-06-05 08:58:24 +02:00
PompPenguin
7367140fb4
Update camera.h
...
Removed unused code for CAMERA_THIRD_PERSON.
2019-06-04 18:06:10 -04:00
PompPenguin
767ac9bc3e
Update camera.h
...
Updated CAMERA_THIRD_PERSON
2019-06-04 17:29:18 -04:00
Ray
6f9c176d93
Support SSH keyboard on RPI
2019-06-04 18:09:17 +02:00
Reece Mackie
2eb7e96f4b
Add MP3 config
2019-06-02 19:31:17 +01:00
Ray
093042b760
Comments review
2019-06-01 13:08:48 +02:00
Ray
1a32e76fbd
Review compilation resources
2019-05-30 18:09:33 +02:00
Wilhem Barbier
e660621389
Fix jar_xm_reset
2019-05-29 17:15:11 +02:00
Ray
efdc6f87d5
Define standard examples size
2019-05-29 13:47:57 +02:00
Ray
4e0a5909e7
Hide progress bar
2019-05-28 12:08:04 +02:00
Ray
bef809d841
Setup version for release
2019-05-27 13:03:14 +02:00
Ray
241c4c8d14
Review easings PR
2019-05-25 01:33:03 +02:00
flashback-fx
d4487bcfa7
Use tgmath.h and float constants in easings.h
2019-05-24 19:07:59 +00:00
Ray
bcb83a3127
Merge pull request #850 from wbrbr/xm_fix
...
Add rewind for the XM music format
2019-05-23 17:17:17 +02:00
Wilhem Barbier
dec604bd71
Move jar_xm_reset to jar_xm.h
2019-05-23 16:40:15 +02:00
Wilhem Barbier
78817305c5
Add rewind for the XM music format
2019-05-22 22:16:18 +02:00
Wilhem Barbier
13a1744ca9
Fix #848
2019-05-22 20:29:34 +02:00
Ray
31bcaffd7d
Added AudioContext Resume/Suspend button
2019-05-22 16:13:59 +02:00
Ray
f45691ca8d
Rename function to follow javascript notation
2019-05-22 16:12:47 +02:00
Ray
7421ac9e24
Add code to resume blocked AudioContexts
2019-05-22 12:33:28 +02:00
Ray
a33b0002ee
Review js formatting for better readability
2019-05-22 10:55:03 +02:00
Ray
be7e56f51e
Move emscripten web shell to src
2019-05-22 10:40:51 +02:00
Ray
b1806f6600
Add config SUPPORT_SSH_KEYBOARD_RPI
...
Allow to reconfigure stdin to read input keys, this process could lead to undesired effects. Use with care.
Disabled by default.
2019-05-21 20:59:13 +02:00
Ray
0027868d1f
Review Makefiles
2019-05-21 17:46:52 +02:00
Ray
8db2203bcc
Review paths
2019-05-21 10:16:52 +02:00
Ray
316b6aa181
Reverted change that breaks mouse on web
2019-05-20 17:21:46 +02:00
Ray
72ab65277b
Avoid some warnings
2019-05-20 16:37:44 +02:00
Ray
a43a7980a3
Update raylib version to 2.5
2019-05-20 11:21:55 +02:00
Ray
371abb0a26
Review glTF implementation formatting
...
Added comments for the future
2019-05-20 11:13:38 +02:00
Wilhem Barbier
e01a381aec
Load glTF
2019-05-18 11:36:47 +02:00
Ahmad Fatoum
5ef7beb0c5
Makefile: move -x objective-c option before filename
...
From the Clang documentation[1]:
> -x<language>, --language <arg>, --language=<arg>
> Treat subsequent input files as having type <language>
Follow the advice. Fixes #840 .
[1]: https://clang.llvm.org/docs/ClangCommandLineReference.html
2019-05-17 20:27:43 +02:00
Ahmad Fatoum
e1ecebfff9
Revert "fixed GLFW compiler flag for OSX"
...
This reverts #841 commit 97160fd970 .
2019-05-17 20:27:42 +02:00
Ilya Kolbin
97160fd970
fixed GLFW compiler flag for OSX
2019-05-17 17:56:05 +03:00
Ray
cf4fde9456
Corrected bug on NEON
2019-05-16 16:10:52 +02:00
Ray
9994f16479
Review build config on web
2019-05-16 15:40:28 +02:00
Ray
25ac9bfb28
Update dr_flac, dr_mp3, dr_wav to latest version
2019-05-16 15:31:33 +02:00
Ray
579d932551
Update miniaudio to v0.9.4
2019-05-16 15:30:41 +02:00
Ray
5a1a0a3492
Corrected issue with multi-mesh obj models
...
Note that all meshes are loaded as a single one at this moment, loading should be improved!
2019-05-15 15:12:56 +02:00
Ray
0eece03205
Corrected issue with texture flip X
2019-05-15 12:22:29 +02:00
Ahmad Fatoum
4d8b9e595a
external: glfw: Revert "Added WinMM library"
...
This reverts commit 4773de26a5 .
which adds -lwinmm at the wrong place. It should be in the raylib
linker flags, not GLFW's.
2019-05-15 08:14:24 +02:00
Ahmad Fatoum
e8a376c80c
CMake: add winmm.dll as Windows dependency
...
Fixes: e0e2346c22 ("NO SUPPORT_BUSY_WAIT_LOOP by default")
2019-05-15 08:11:41 +02:00
Ray
3f7b14aeed
Corrected web issue
2019-05-14 18:02:11 +02:00
raysan5
d50aa32ec8
Update CMakeLists.txt
2019-05-12 21:51:19 +02:00
raysan5
561c486ceb
Add WinMM library for linkage
...
Now it's required on Windows if not using a busy wait loop
2019-05-10 20:51:48 +02:00
Demizdor
509d9411a1
Fixed DrawTextRecEx() selection when wordwrap is ON
2019-05-10 13:57:24 +03:00
Ray
a2ed65aa14
Make code a bit clearer for beginners
2019-05-09 16:10:55 +02:00
Ray
46bac0ba2c
Add comment in CheckCollisionSpheres()
2019-05-09 16:09:49 +02:00
ProfJski
1655463ba5
Update models.c
2019-05-08 14:14:57 -04:00
ProfJski
d3dae38449
Update CheckCollisionSpheres() to avoid sqrt
...
Square root calls are computationally expensive. In this case, they can be avoided. Instead of checking distance<RadA+RadB, check distance squared against (RadA+RadB) squared. The dot product of Vector3Subtract(B,A) with itself gives distance squared, so I used this code instead of an element-by-element computation of distance squared. The only downside is that your geometric code is very readable, whereas this is less so.
2019-05-08 13:54:12 -04:00
Ray
97c8a28aaa
Remove trail spaces
2019-05-08 18:33:09 +02:00
Ray
4773de26a5
Added WinMM library
...
Required for high resolution timer
2019-05-07 22:56:38 +02:00
Ray
f6d1ffd4cd
Tweak ON flag
2019-05-07 15:23:56 +02:00
Ray
9824387773
Added resource file for raylib.dll
...
Some minor tweaks
2019-05-07 15:16:14 +02:00
Ray
f6d1448da9
Review CMake option flags
2019-05-07 15:15:23 +02:00
Ray
e0e2346c22
NO SUPPORT_BUSY_WAIT_LOOP by default
2019-05-07 10:05:21 +02:00
Ray
afd90a5a56
Add comment tweak
2019-05-07 09:50:40 +02:00
Ray
528e164ac5
Corrected issue with wrong text measuring
2019-05-06 10:17:34 +02:00
Ray
80c8599e81
Avoid warnings pre-evaluating values
...
Variable operations inside the functions should be evaluated before the function operations.
2019-05-06 10:07:06 +02:00
Ahmad Fatoum
ae2e48c77f
CMake: don't use system GLFW headers if using built-in GLFW
...
This fixes the current CI failure.
2019-05-04 23:04:52 +02:00
Ahmad Fatoum
36d8a648f0
external: glfw: reinstate export of GLFW_PKG_{DEPS,LIBS}
...
We were doing this before, but it was deleted during the
last GLFW update. Readd it to fix the associated macOS CI failure.
Fixes: cd934c9f6 ("Update GLFW to 3.3.1")
2019-05-04 22:28:21 +02:00
Ray
c6b7f9c5b0
Some minor comments
2019-05-03 15:55:24 +02:00
Ray
f44888e466
Force HighDPI on macOS
2019-05-03 09:45:16 +02:00
Shiqing
780cefc3b0
Add SUPPORT_HIGH_DPI to CMakeOptions.txt
2019-05-03 12:24:20 +08:00
Ray
fc56f8d9ef
Work on touch_as_mouse input -WIP-
2019-05-02 09:46:01 +02:00
Narice
a54af067c2
Added guards to PI define
...
Added guards to not redefine it if the user is using it with raylib.h
also added an 'f' at the end of the define to keep compliant with raylib's PI define
2019-05-01 22:03:32 +02:00
Narice
59c436c922
Defined PI ( #822 )
...
PI is not always defined in math.h, thus it must be defined in this header
2019-05-01 21:41:51 +02:00
Ray
c9025ed205
Corrected issue with texture rendering
...
Not sure if already corrected...
2019-05-01 16:15:33 +02:00
Ray
bb2841a26d
WARNING: Support high DPI displays
...
This change could break things. So, I created SUPPORT_HIGH_DPI flag to enable it (disabled by default).
Basically, it detects HighDPI display and scales all drawing (and mouse input) appropiately to match the equivalent "standardDPI" screen size on highDPI. It uses screenScaling matrix to do that.
This scaling comes with some undesired effects, like aliasing on default font text (keep in mind that font is pixel-perfect, not intended for any non-rounded scale factor).
The only solution for this aliasing would be some AA postpro filter or implementing the highDPI scaling in a different way: rendering to a texture and scaling it with FILTER_BILINEAR, check `core_window_scale_letterbox.c` example for reference.
Use at your own risk.
2019-05-01 14:30:36 +02:00
raysan5
100c82e369
Review formatting to follow raylib style
2019-04-28 18:23:21 +02:00
Reece Mackie
a51f3be38f
Fix web
2019-04-28 16:53:20 +01:00
Reece Mackie
86eba24970
This is dumb...
2019-04-28 16:08:07 +01:00
Reece Mackie
e69688437a
Why does visual studio keep using tabs!!!
2019-04-28 16:06:56 +01:00
Reece Mackie
d42965b0b0
Fix tabs
2019-04-28 16:05:45 +01:00
Reece Mackie
3244ec2a1d
Add another UWP comment for clarity
2019-04-28 16:03:23 +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
40940f4398
Some formatting review
2019-04-28 16:45:23 +02:00
raysan5
7c10f971c1
Expose enable/disable backface culling
...
Some tweaks on BeginVrDrawing()
2019-04-28 16:03:59 +02: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
e0580e6322
Fix merge
2019-04-27 21:59:01 +01:00
raysan5
e8c413b7cd
Review UWP implementation
...
Basically, formating review and some variables naming to follow raylib conventions.
2019-04-27 22:47:03 +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
9434dc588a
Merge branch 'master' into gamepad-rework
2019-04-27 20:51:04 +01:00
Reece Mackie
b911cefab3
First gamepad stuff
2019-04-27 20:49:33 +01:00
Reece Mackie
2de1f31821
UWP Support Overhaul ( #819 )
...
* Working build
* Fix build again, stop deleting files
* Hotfix crash, needs investigating
* Remove VS2015.UWP, I cannot update the project
* Lots of UWP work, added keyboard and mouse press support. Still need to finish scroll wheel, mouse position and cursor hiding, plus other stuff that I haven't seen yet.
* Implemented a ton more things, added BaseApp.h to provide common code to UWP apps.
* Remove constant window dimensions
* Enable and Disable cursor support.
* Actually use mouse delta
* Gamepad Support
* Cleaning and small tweaks
* Restore original example.
* Update comment
* Use 'Messages' to handle the cursor functions so code is more portable.
* Comment
* Comment unused message fields and use vector for mouse pos instead.
* Move messages to utils.h and use messages for everything. No more plat-specific code in raylib.h
* Working build
* Fix build again, stop deleting files
* Hotfix crash, needs investigating
* Remove VS2015.UWP, I cannot update the project
* Lots of UWP work, added keyboard and mouse press support. Still need to finish scroll wheel, mouse position and cursor hiding, plus other stuff that I haven't seen yet.
* Implemented a ton more things, added BaseApp.h to provide common code to UWP apps.
* Remove constant window dimensions
* Enable and Disable cursor support.
* Actually use mouse delta
* Gamepad Support
* Cleaning and small tweaks
* Restore original example.
* Update comment
* Use 'Messages' to handle the cursor functions so code is more portable.
* Comment
* Comment unused message fields and use vector for mouse pos instead.
* Move messages to utils.h and use messages for everything. No more plat-specific code in raylib.h
* Tested some desktop stuff and added projection matrix updates for window resizing.
* Fixed big bad mouse bug
* Fix alt buttons and add hack to combat flickery key presses (far from perfect)
* Remove debug code
* Final commit
* Well, so I thought
* Wow, i am bad
* Remove packages folder
* Remove useless include
* Apply requested changes and fix linux build
* Try to stop packages folder
* Have we fixed the formatting properly?
* Third time's the charm?
* Where did this come from?
* Re-fix
* Autoformat is gonna kill
* Fixed XBOX ONE Support
* Fix tabs
2019-04-27 20:33:51 +02:00
Ray
f37e55a77b
Reverted HiDPI changes, they break 2D mode on HiDPI :(
2019-04-25 13:45:37 +02:00
Ray
c76863b289
Working on HiDPI support -WIP-
...
Trying to define a global transformation matrix to scale all content for HiDPI.
2019-04-25 11:39:45 +02:00
Ray
04ed4dd40c
Renamed internal variable
...
Probably required for HiDPI support
2019-04-25 11:02:13 +02:00
Demizdor
86f9ea6e7a
Fixed selection in DrawTextRecEx()
2019-04-24 22:08:57 +03:00
Ray
cc1dd6b410
Review camera module
...
This module still requires further work but 3rd person camera is less broken now...
2019-04-23 23:27:08 +02:00
Demizdor
0e683005b4
Fix for DrawRectangleRounded
2019-04-23 20:48:00 +03:00
Ray
0c567cd259
WARNING: Issues on web building
...
Found some issues when building for web using latest emscripten 1.38.30, traced the error and found that eglGetProcAdress does not return function pointers for VAO functionality, supported by extension.
It requires more investigation but now it works (avoiding VAO usage)
2019-04-23 18:10:38 +02:00
Ray
3aafa9d5ba
Set a version for rGIF library
2019-04-23 16:01:38 +02:00
Ray
372d77957f
Update STB libraries to latest version
2019-04-23 16:01:18 +02:00
Ray
4ad81ba2d4
Alloc custom allocators on standalone mode
2019-04-23 15:14:15 +02:00
Ray
87b75a6c95
Review issues on OpenGL 1.1
2019-04-23 15:12:08 +02:00
Ray
10c2eea14b
Correct RL_FREE bug
2019-04-23 15:07:28 +02: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
8ed71b9d5a
Some tweaks to custom memory management system
2019-04-23 14:51:32 +02:00
Ray
9835be7b7a
Remove unnecesary GLFW deps (used by examples)
2019-04-23 14:50:58 +02:00
Ray
7e444d5a45
Renamed file to avoid breaking build
2019-04-22 22:47:50 +02:00
Ray
e26cc01ba8
More rnet review to avoid warnings/errors
2019-04-22 21:50:45 +02:00
Ray
2d4c2ff351
Review rnet errors
2019-04-22 20:54:50 +02:00
Ray
c7907a203b
Update miniaudio to v0.9.3
2019-04-22 20:32:11 +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
Ray
e41cb774c2
Merge pull request #789 from myd7349/fix-cmake-for-win32
...
Fix CMake support on Win32
2019-04-22 19:32:15 +02:00
Ray
cd934c9f66
Update GLFW to 3.3.1
2019-04-22 19:00:43 +02:00
Ray
a0449594e4
Merge branch 'master' of https://github.com/raysan5/raylib
2019-04-22 18:58:38 +02:00
Ray
152b7471e9
Comment HiDPI window request
...
At least until a proper solution is found!
2019-04-22 18:46:05 +02:00
Ray
9ace10ff73
Merge pull request #810 from Demizdor/unicode_implementation
...
Unicode implementation
2019-04-22 18:34:17 +02:00
Ray
2249f12304
Expose rlgl functions on shared libraries
2019-04-22 18:25:30 +02:00
Demizdor
f3a5a6871d
Initial unicode implementation for UTF8 encoded text
2019-04-21 12:27:46 +03:00
Ray
8c22f685d1
Check buffer overflow
2019-04-14 22:29:14 +02:00
Ray
d690e734f9
Merge pull request #799 from flashjaysan/master
...
Update raymath.h
2019-04-13 15:08:28 +02:00
flashjaysan
310d1d1589
Update raymath.h
...
Removed a useless semicolon.
2019-04-13 14:35:07 +02: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
fc5dd5d99f
FLAG not supported on web GLFW implementation
2019-04-12 13:44:16 +02:00
Ray
df90ba6e46
WARNING: Added GLFW hint to support hi-DPI
...
This needs to be tested on a hi-DPI monitor, probably requiring a FLAG to enable it would be a good idea...
2019-04-12 13:31:05 +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
01367fcb1e
Review cubemap generation
2019-04-11 16:11:54 +02:00
Ray
a28dfd4a7b
Corrected standalone usage
2019-04-11 15:54:10 +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
Ray
45c820eeb4
Set default white texture for diffuse mat
2019-04-10 22:39:42 +02:00
Ray
21092266b5
Check textures available before loading
2019-04-10 00:44:24 +02:00
Ray
802afe8fe5
Replaced size_t by unsigned int
2019-04-10 00:34:46 +02:00
myd7349
148eefb9bb
Resolve CI failure with MinGW
2019-04-09 20:41:40 +08:00
Ray
f939f6abc2
Update Makefile
2019-04-09 13:23:56 +02:00
Ray
32ccecb8ca
Start working on glTF loading...
2019-04-09 13:23:51 +02:00
myd7349
61181f2c49
Fix CMake support on Win32
2019-04-09 18:03:25 +08:00
Ray
b8ada4b877
Review creation years
2019-04-08 12:25:13 +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
c600dd0766
Review PBR shaders
...
Issue was related to vertex tangent attibutes not uploaded to GPU, a quick solution was implemented for new vertex attributes loading for already existing meshes... I don't like it specially but it will work for now.
2019-04-05 16:43:09 +02:00
Ray
0f9fe34c3a
Start setting things up for raylib 2.5
2019-04-05 13:44:04 +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
a728376cdf
Rename enum type
2019-04-05 13:13:10 +02:00
Ray
28b9de661d
Minor tweaks
2019-04-05 13:12:54 +02:00
Ray
a103086443
Removed trail spaces
2019-04-04 13:50:52 +02:00
Ray
3e1e7d740f
Review merged PR formatting
...
Removed trail spaces
2019-04-04 13:50:28 +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
Ray
22dece2935
Animated vertex renaming
2019-04-04 13:32:17 +02:00
Ray
f1cbdd6b3a
Corrected some issues
...
- Support compiling for OpenGL 1.1
- Free meshes/materials memory after usage...
2019-04-01 18:22:56 +02:00
Ray
86212e8462
Support material loading from OBJ/MTL
2019-04-01 12:41:32 +02:00
Ray
e5edbb7104
Reviewed OBJ loading implementation -WIP-
...
One mesh files can be loaded correctly
MISSING:
- Multimesh OBJ loading
- Materials loading
2019-04-01 12:17:29 +02:00
Ray
fe702cd6a2
Implementing LoadOBJ() -WIP-
...
It seems obj loading is working ok but there is some problem with drawing...
2019-04-01 00:16:56 +02:00
Ray
3e806ad9d4
Reviewed data assignation
2019-04-01 00:15:45 +02:00
Demizdor
eda982e261
Reimplemented DrawRoundedRectLines()
2019-03-31 16:15:40 +03:00
Vlad Adrian
ecbd17910d
Added DrawRoundedRectLines()
2019-03-31 13:22:50 +03: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
a197f40bb4
Default to white cube mesh if not loaded
2019-03-29 20:22:30 +01:00
Ray
6f371dab08
Some formatting review
2019-03-29 19:43:27 +01: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
19debd2b4e
Review some warnings
2019-03-29 17:28:10 +01:00
Ray
8a73c5d0b4
Replace custom OBJ/MTL implementations by tinyobj_loader -WIP-
2019-03-29 17:15:22 +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
876c64b1e5
WARNING: This could break something
...
If we have no data to update/draw, we avoid update/draw. On `DrawBuffersDefault()` if no vertes data is available nothing is drawn but some globals: vertexData, projection, modelview, draws... are reseted.
There shouldn't be any problem if we don't touch those globals in case no vertex have been processed but, just in case, I warn about it.
2019-03-29 12:27:50 +01:00
Ray
69656cb090
Added comment
2019-03-29 12:23:02 +01:00
Ray
8e98fa8754
Merge pull request #785 from Berni8k/master
...
RaspberryPi Keyboard input with evdev
2019-03-28 22:26:48 +01:00
Berni8k
ea96d0afea
Fixes compile error when SUPPORT_GESTURES_SYSTEM is undefined on RPi
2019-03-28 20:38:13 +01:00
Berni8k
b1e914bbf3
RaspberryPi Keyboard input with evdev
...
Based on pull request from user "DarkElvenAngel", better integrated with the current event system and enhanced with buffer to help with fast typing at low framerates.
2019-03-28 19:46:39 +01:00
Ray
88dfd2ab23
REDESIGNED: DrawCircleSector()
2019-03-28 18:53:41 +01:00
Ray
186d34827a
Align LINES and TRIANGLES drawing
...
When drawing LINES or TRIANGLES, vertex are accumulated in same buffer as QUADS and new draw calls are registered but QUADS drawing uses an index buffer for optimization, so, when adding LINES/TRIANGLES vertices we need to make sure next draw calls for QUADS keep aligned with indices buffer.
To get that we just add some alignment vertex at the end of the LINES/TRIANGLES draw calls, to make them multiple of 4 vertex.
2019-03-28 18:05:32 +01:00
Ray
165ced9428
Small tweak
2019-03-28 13:03:25 +01:00
Ray
7524fdc3e1
Review gestures disable flag
2019-03-25 12:30:20 +01:00
Ray
c001bdb2de
Checking issue with sound volume
...
It seems individual sound volume level is not set...
2019-03-20 10:57:41 +01:00
Ray
aa00d77110
Support additional modules building -WIP-
...
The idea is supporting additional raygui and physac modules building with raylib but those modules are distributed as header-only libraries and it makes a bit dificult to build them inside raylib...
2019-03-18 18:46:39 +01:00
raysan5
0bbf857b00
Review build release path, default to src directory
2019-03-17 12:21:51 +01:00
raysan5
f02a0334d8
ADDED: GetScreenData()
2019-03-17 11:58:02 +01:00
raysan5
2a92d6af3e
Support no-audio no-models modules compilation
...
Renamed flags for convenience.
2019-03-16 13:02:16 +01:00
raysan5
a61d3ad512
SetWindowIcon() redesigned
...
Now core does not depend on textures module directly, only through text module.
2019-03-16 13:00:46 +01:00
Ray
29d1323bd1
Work on ImageResizeCanvas()
2019-03-15 13:34:09 +01:00
Ray
cbfa35a39e
REVIEW: ImageResizeCanvas() -WIP-
2019-03-15 00:56:02 +01:00
Ray
ff1bcfb2fa
Remove comment
2019-03-13 10:26:33 +01:00
Ray
5e8427a8b5
REDESIGNED: GetFileNameWithoutExt()
...
Removed possible memory leak when using this function
2019-03-13 10:07:01 +01:00
Ray
b6dd31c653
Merge pull request #775 from rsachetto/master
...
Adding DrawCubeWiresV for convenience
2019-03-13 09:42:56 +01:00
Ray
32e6a419c1
Reorder one flag
2019-03-12 16:29:41 +01:00
Ray
477ea4d660
Support external config flags
2019-03-12 16:00:26 +01:00
Ray
76e968f6b7
Updated audio library: mini_al -> miniaudio
2019-03-12 11:54:45 +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
raysan5
d7fd6e0f1a
Corrected issue with possible 0 division
...
Reported on rfxgen tool, it crashes on some parameters
2019-03-02 14:29:04 +01:00
Ray
36fa0207f2
Some spacing review
2019-02-28 23:06:37 +01:00
Ray
50da9f623e
Return value in GetClipboardText()
2019-02-28 22:25:27 +01:00
Ray
d679a97e92
Removed some NULL pointer checks
2019-02-28 18:39:58 +01:00
Skabunkel
a90c9c5ade
Removed unnecessary
2019-02-28 17:50:47 +01:00
Ray
b570b32337
Added some comments on #594
2019-02-28 16:28:49 +01:00
Skabunkel
fc11b360af
... tabs again... _facepalm_
2019-02-24 01:57:31 +01:00
Skabunkel
03f7483537
Missed one
2019-02-24 01:56:17 +01:00
Skabunkel
f2d5cddfc8
Fixed segmentation fult created by quick fix
2019-02-24 01:48:29 +01:00
Skabunkel
374b4d3faf
Tabs to spaces
2019-02-24 00:17:54 +01:00
Skabunkel
795c5e949d
#764 - Quick fix that clears alot of memory, there seems to be more hiding somewhere else.
2019-02-24 00:13:50 +01:00
ftk
8ad608888e
fix audio pitch
2019-02-23 10:36:25 +00:00
Ray
374811c440
Change ternary operator formatting
2019-02-22 13:13:11 +01:00
Ray
8382ab9ada
Merge pull request #761 from Demizdor/master
...
Fixed height bug in DrawTextRecEx()
2019-02-22 12:15:19 +01:00
Ray
a886f5e743
Remove TABS
2019-02-22 12:12:21 +01:00
Demizdor
40a76cf021
Fixed height bug in DrawTextRecEx()
2019-02-22 12:27:20 +02:00
Ray
641895b5ba
Remove end-line spaces
2019-02-21 18:45:19 +01:00
Ray
75298b50fb
Corrected issue with OpenURL()
...
It was not working on Windows 10
2019-02-21 11:28:10 +01:00
Rob Loach
497fb4e49f
Remove compiled libraylib.a
2019-02-18 23:36:29 -05:00
Ray
d62652c5b2
Update cgltf library
...
Added some comments to loader function...
2019-02-18 18:46:17 +01:00
Ray
5d0ea7f110
Corrected issue #758
2019-02-18 16:43:01 +01:00
Jens Pitkanen
eed69d4127
Fix the image manipulation config flag
2019-02-15 17:56:36 +02:00
Jens Pitkanen
f9963d4ed4
Fix config.h flags
2019-02-14 13:52:18 +02:00
Ray
bc86b0f78b
Corrected path issue
2019-02-14 00:06:05 +01:00
Ray
981be58d03
Corrected issue #750
2019-02-13 17:49:02 +01:00
Ray
297dd641e8
ADDED: DrawCircleSector()
2019-02-13 00:06:06 +01:00
Ray
e46c23128e
Avoid AudioBuffer symbol collision on macOS
...
raudio AudioBuffer internal struct collides on macOS with CoreAudio same name struct. In this case struct has been renamed because is internal to raudio... but probably all system should be redesigned.
2019-02-12 15:53:34 +01:00
Ray
c379e04628
Update mini_al.h
2019-02-12 13:01:43 +01:00
Ray
43b199d534
Corrected issue
2019-02-12 12:31:26 +01:00
Ray
944a388b1b
Include mini_al directly, no separate module
2019-02-12 12:18:01 +01:00
Ray
e7466eb0c4
Corrected function usage
2019-02-12 00:40:10 +01:00
Ray
d00b8f9ffc
Updated external libraries
2019-02-12 00:25:21 +01:00
Ray
e996fe2ff5
ADDED: GetClipboardText(), SetClipboardText()
2019-02-11 18:03:06 +01:00
Ray
6dbec47488
Redesigned TextSplit() function
2019-02-11 18:02:32 +01:00
Jak Barnes
1e15616b69
Fixed as issue where strrchr in LoadBMFont would only look for forward slashes, instead of backslashes causing strlen to fail on a null string
2019-02-10 16:01:44 +00:00
Ray
366313bfd0
Update rlgl.h
2019-02-06 18:07:34 +01:00
Ray
68a2bf0e6b
Update rlgl.h
2019-02-06 17:35:26 +01:00
Ray
7370ae7b82
Update rlgl.h
2019-02-06 16:51:36 +01:00
Ray
d356b1d1cc
Reviewed fbo creation and VR system
2019-02-06 14:21:44 +01:00
Ray
7615512af1
ADDED: TextToInteger()
...
Custom implementation that returns -1 if it fails (no negative values supported)
2019-02-06 14:20:14 +01:00
Ray
d0d81ea545
Review ExportMesh() header
2019-02-06 10:51:06 +01:00
Ray
c200642887
Review issue with aspect ratio...
...
...while using a RenderTexture combined with 3d mode
2019-02-04 17:10:12 +01:00
Ray
fef7bbb495
Delete libraylib.a
2019-02-04 16:29:01 +01:00
Ray
db56d432e4
ADDED: rlLoadTextureDepth()
...
REDESIGNED: rlLoadRenderTexture()
ADDED: rlRenderTextureAttach()
ADDED: rlRenderTextureComplete()
2019-02-04 16:28:17 +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
Ray
01ace743d0
Merge pull request #734 from Demizdor/master
...
Added DrawTextRecEx()
2019-02-03 20:47:13 +01:00
Ray
9740e5d3ed
Update utils.c
2019-01-29 12:45:10 +01:00
Ray
3363cfa61a
Corrected log naming
2019-01-29 12:33:08 +01:00
Ray
30c025f913
Merge pull request #735 from RobLoach/patch-1
...
Fix clang++ compilation errors
2019-01-24 15:17:51 +01:00
Rob Loach
90d5bb79e5
Fix font cannot be narrowed to type 'int'
...
Getting the following strict error....
```
src/text.c:117:105: error: constant expression evaluates to 2398692640 which
cannot be narrowed to type 'int' [-Wc++11-narrowing]
...0x00000000, 0x00000000, 0x00200020, 0x0001b000, 0x00000000, 0x00000000, 0x8ef92520, 0x00020a00...
^~~~~~~~~~
```
Switching it to an unsigned int fixes it.
2019-01-23 22:28:10 -05:00
Rob Loach
d897e14161
Revert the screenWidth change
2019-01-23 20:08:51 -05:00
Rob Loach
feb6afcd61
Fix clang++ compilation errors
...
clang was complaining about the type conversions. For example...
```
node_modules/raylib-src/src/core.c:1888:15: error: cannot initialize a variable of type 'char *' with an
rvalue of type 'void *'
char *cmd = calloc(strlen(url) + 10, sizeof(char));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
2019-01-23 20:07:47 -05:00
Demizdor
6f66425946
Added DrawTextRecEx()
2019-01-23 21:36:54 +02:00
Rob Loach
30ea4bdcce
Remove libraylib.a
2019-01-23 00:46:29 -05:00
Ray
4467292a2d
Review last PR formatting
2019-01-21 10:32:14 +01:00
Ray
e91c84e33a
Remove comment
2019-01-21 10:25:59 +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
aaced97b12
Fixing badly (redefined) enums.
2019-01-21 10:02:53 +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
78904d2bcc
Fixing TraceLog function to work on levels.
2019-01-20 22:23:07 +01:00
Marco Lizza
c1c801e5c3
Reworking log level as incremental.
2019-01-20 22:22:21 +01:00
raysan5
0d2cfce18e
Review raudio comments
2019-01-19 16:51:41 +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
ced7321089
Readded alpha clear to rlReadScreenPixels()
...
When capturing framebuffer, if some element with transparency has been drawn, it retrieves that data... it could be a bit annoying in some situations because we could expect color compositing with background color... It depends on the situation and our needs... but most of the time we don't want that transparency on screenshots.
2019-01-16 10:04:59 +01:00
Ray
c93bf336fe
Update utils.c
2019-01-15 12:32:41 +01:00
Ray
f1bcc131dc
Let user choose to clear scissor area
2019-01-15 12:08:11 +01:00
Ray
60967d8cdc
Merge pull request #723 from MarcoLizza/trace-log-failing-on-OTHER
...
Trace log failing on other
2019-01-15 12:04:28 +01:00
Marco Lizza
efcb68ceca
Fixing LOG_OTHER missing.
2019-01-14 17:09:41 +01:00
Marco Lizza
ce98cc6285
Adding MACRO constant to specify the internal buffer size.
2019-01-14 17:09:17 +01:00
Ray
42bfa7e3ff
Make sure no parameters can be passed
2019-01-14 13:49:56 +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
49a69e3e27
Allow capturing transparent background
2019-01-11 18:55:04 +01:00
Ray
e13975beeb
Some security checks added
2019-01-11 18:54:48 +01: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
Ray
93471b0a7c
WARNING: Renamed module: audio -> raudio
...
Planning to promote raudio module as a simple and easy-to-use front-end for the amazing mini_al library, so the name change.
Name comes from raylib-audio but in spanish it also remembers to word "raudo", meaning "very fast", an analogy that fits perfectly to the usefulness and performance of the library!
Consequently, raylib version has been bumped to 2.4-dev.
2019-01-10 16:32:40 +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
Ray
010c655f79
Added required define on TCC compiler
2019-01-08 10:10:20 +01:00
Ahmad Fatoum
8bc4050377
Revert "core: workaround window not being rendered till moved on macOS Mojave"
...
This reverts commit 1fe6d9fc06 .
Because upstream GLFW now contains a fix.
2019-01-08 09:03:22 +01:00
Ahmad Fatoum
c3d2b1b184
glfw: Update GLFW to current master
...
glfw/glfw@5595fa3ae6 implements a proper fix for the macOS Mojave
problem of OpenGL windows not being rendered until moved or manually
updated.
Pull in the current master and rebase the three patches we have on top:
- two commits we have for reuse of the GLFW CMake build system for Wayland
It hasn't yet to be acknowledged upstream.
- one commit removing #include <windows.h> in glfw3native.h to avoid
duplicate declarations.
Fixes #655 and #665 .
2019-01-08 09:03:22 +01:00
Ahmad Fatoum
f719de4bf8
external: glfw: Ignore {docs/examples/tests}/ directories
2019-01-08 09:03:22 +01:00
raysan5
1036de389a
Some minor tweaks analyzing code
...
Specific textures generation code is quite redundant and not flexible for the user, I'm trying to figure out some easy way to allow raylib users to do the same without needing those functions (very specific and shader dependant). RenderTexture loading and Cubemap textures support must be improved.
2019-01-06 21:07:09 +01:00
raysan5
f4fe7f4d4c
Review BRDF texture generation
...
Actually, that function should be redesigned...
2019-01-06 15:49:29 +01:00
raysan5
5c614f6975
Some code tweaks
2019-01-05 19:24:42 +01:00
raysan5
a41cc08f9b
Support screenshots and GIF capturing on Android and Web
2019-01-05 18:03:09 +01:00
raysan5
1038e79b36
Corrected issue with text measure on Latin-1 chars
...
Considering chars inputs come in UTF8 form!
2019-01-05 15:04:18 +01:00
raysan5
0bacc978c3
Corrected issue on web
2019-01-04 15:48:25 +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
Ray
0333e5b6c2
Merge pull request #711 from ChrisDill/SetMouseOffset
...
Added SetMouseOffset
2019-01-03 13:35:28 +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
Ray
30e79b4727
Merge pull request #708 from BaZom/master
...
utils: declare funopen only on Android
2019-01-02 17:41:43 +01:00
raysan5
63f9f91ea8
Avoid crashing if music file not loaded
2019-01-02 14:05:20 +01:00
ChrisDill
a707574f33
Default mouseScale fixed
...
- Didn't set X and Y values correctly.
2019-01-02 10:46:19 +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
d5735720b0
Update Makefile for Emscripten
2019-01-01 20:53:30 +01:00
raysan5
9740b1eb70
Update mini_al to latest version (Web Audio / AAudio backends)
2019-01-01 20:52:57 +01:00
Basem Abughallya
9a40529ae7
utils: declare funopen only on Android
...
funopen is only needed on Android, so declare it
only there. This fixes following MinGW build failure:
utils.c:50:7: error: conflicting types for ‘funopen’
FILE *funopen(const void *cookie, int (*readfn)(void *, char *, int),
^~~~~~~
In file included from utils.c:45:0:
/usr/include/stdio.h:586:7: note: previous declaration of ‘funopen’ was here
FILE *funopen (const void *__cookie,
^~~~~~~
2018-12-29 17:44:47 +01:00
raysan5
d0d99d3503
Corrected issue with MOD/XM loop
2018-12-29 15:07:03 +01:00
raysan5
0619571149
ADDED: DrawTextRec() and example
2018-12-29 14:44:28 +01:00
raysan5
95d3f24c68
Use QUADS for DrawPolyEx()
2018-12-29 00:29:28 +01:00
raysan5
a072385c6d
Corrected issue on draws resetting
2018-12-29 00:00:52 +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
af4a177af4
Corrected issue with internal buffer
...
Problem aligning provided vertex data to multiples of four, because main buffer is intended to bu used with indexed quads... but also shared with triangles and lines.
2018-12-26 10:34:45 +01:00
raysan5
7b8965eb38
Support float texture data on OpenGL ES 2.0
2018-12-25 15:19:25 +01:00
raysan5
35a6e9a074
Corrected issue with MOD playing
...
Despite issue is corrected, now module loop doesn't work...
2018-12-25 15:18:35 +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
7fb2459916
Added some TODO note
...
OpenGL extensions loading could be improved...
2018-12-24 17:45:34 +01:00
raysan5
47358fe5ce
Tweaks to support OpenGL ES 2.0 desktop
2018-12-24 17:09:46 +01:00
raysan5
92f68ac6be
Review DrawPolyEx()
...
Also reviewed rlCheckBufferLimit()
2018-12-24 14:09:51 +01:00
Ray
4ec4dc691f
Use stb_vorbis.h as header only
2018-12-21 00:17:44 +01:00
Ray
e48f2f9d43
Delete libraylib.a
2018-12-20 12:59:00 +01:00
Ray
87ad244ee0
Exposed LoadFontFromImage()
2018-12-20 12:58:27 +01:00
Ray
788bb78989
Some tweaks
2018-12-20 10:40:28 +01:00
Ray
b6d2f96645
Corrected issue
2018-12-19 18:08:59 +01:00
Ray
af33e3848e
Improved BeginScissorMode()
...
Now rectangle coordinates refer to upper-left corner instead of bottom-left
2018-12-19 17:06:23 +01:00
Ray
49055a9b17
Keep reviewing RPI keyboard input...
2018-12-19 15:31:20 +01:00
Ray
66c360d385
Corrected issue on plane drawing
2018-12-19 11:55:58 +01:00
Ray
a22ee0c0e1
Review RPI keyboard inputs -WIP-
2018-12-18 19:11:12 +01:00
Ray
39c05e30d0
Reviewed rlReadTexturePixels() for OpenGL ES 2.0
...
Now it should work... but this behaviour could be driver dependant...
2018-12-18 18:20:20 +01:00
Ray
965a91cebb
Support PIC image format loading
2018-12-18 18:18:40 +01:00
Ray
db96cf4a8b
Corrected bug on OpenGL ES quads drawing
2018-12-18 16:52:18 +01:00
Ray
f822650a3b
Support externally provided compilation flags
...
Useful in case raylib compilation want to be automated and compilation config flags provided by command line.
2018-12-18 00:20:08 +01:00
Ray
fe346fa8d8
Added a possible dependency include path for glfw
2018-12-16 00:44:09 +01:00
Ray
7d81e673ed
ADDED: GenMeshPoly()
...
To generate 2D polygonal shape
2018-12-15 23:31:56 +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
cbbd67ab5a
Some code tweaks
...
- Reorganized some variables: Not used on OpenGL 1.1
- Now mipmaps can be generated on OpenGL 1.1 backend
- Renamed whiteTexture to defaultTextureId
2018-12-14 10:00:44 +01:00
Ray
97e40ced57
WARNING: BIG rewrite of rlgl module
...
This commit implements a big update of rlgl module, intended to optimize some parts. This change could break some code bases... hopefully not, but it could.
The BIG changes to the module are:
- Replaced LINES-TRIANGLES-QUADS buffers by a single one, now all vertex data is accumulated on a single buffer and managed with registered draw calls. LINES-TRIANGLES-QUADS could be used the same way as before, rlgl will manage them carefully. That's a big improvement of the system.
- Support multi-buffering if required. Just define MAX_BATCH_BUFFERING desired size (currently set to 1 batch). Should be enough for most of the situations.
- Removed temporal accumulative buffers for matrix transformations, now transformations are directly applied to vertex when on rlVertex3f()
- Reviewed rlPushMatrix()/rlPopMatrix() to be consistent with OpenGL 1.1, probably I should remove that ancient behaviour but... well, it was not consistent and now it is.
- Minor tweaks: LoadText(), I broke it in last update... also multiple comments reviewed.
- TODO: MAX_BATCH_ELEMENTS checking should probably be reviewed... done some tests and it works but...
2018-12-11 18:54:48 +01:00
Ray
7361ed24e2
Added support for .otf fonts
...
stb_truetype supports some .otf fonts, just exposed that functionality.
2018-12-10 00:29:52 +01:00
Ray
a8ac6e2ef9
Increase text management buffers size
2018-12-04 13:15:42 +01:00
Ray
5ef4661216
Comments removed
2018-12-03 16:48:01 +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
1774260dab
Some tweaks
2018-11-30 01:57:53 +01:00
Ray
874c0910e3
Replaced default release paths
2018-11-28 17:35:42 +01:00
Ray
ab0287bd4e
Some tweaks to LoadText()
2018-11-28 12:34:03 +01:00
Ray
0bf82ff6f4
free memory for extList
2018-11-27 12:23:41 +01:00
Ray
b5c6736592
Reimplement ImageAlphaCrop()
2018-11-27 10:20:41 +01:00
Ray
69ae794465
Updated stb libs to latest version
2018-11-27 09:23:30 +01:00
Ray
969e48e3dd
Enable SDL2 library for audio on Web
...
Solves audio cracking issues
2018-11-26 17:15:43 +01:00
Ray
c6b526de66
Support file drag & drop on Web
...
Using by default memory filesystem (MEMFS), provided by Emscripten
2018-11-26 17:15:00 +01:00
Ray
2deb35be27
Review emscripten path
2018-11-23 17:03:07 +01:00
Ray
bc8d3f30ec
Updated to latest mini_al
2018-11-23 17:02:54 +01:00
Ray
83d90c6e49
Review totalSampleCount for OGG and FLAC
2018-11-23 11:58:45 +01:00
Ray
31d0fd820d
Avoid program crash on audio device fail
2018-11-20 11:27:10 +01:00
Ray
ac23af9bf0
Review resources naming
...
raylib resource data file for Windows platform (containing raylib icon and metadata for executable file) has been renamed to a more consistent name: raylib.rc.data
Also required to work with tcc compiler.
2018-11-19 15:18:11 +01:00
Ray
ed269b8d9a
Review RenderTexture drawing usage
...
Now `BeginTextureMode()` does not clean buffers automatically, that behaviour has been changed because there could be some case (i.e. painting software) where texture buffer does not ned to be cleared; user is responsible of clearing buffers using `ClearBackground()`
2018-11-19 09:40:01 +01:00
Ray
829538249f
Merge pull request #683 from iwoplaza/patch-1
...
Update core.c
2018-11-19 09:27:45 +01:00
Ray
fcb2b74342
Corrected issue with MSAA
2018-11-19 09:23:38 +01:00
Ray
de02f14283
Updated mini_al
2018-11-17 10:04:12 +01:00
Ray
6351971c7f
Corrected typo
2018-11-17 10:03:40 +01:00
Ray
c8385aba83
Review SetWindowIcon()
2018-11-17 00:46:42 +01:00
Michael Vetter
8f70c3baed
Check for single apostrophe in OpenURL()
...
When doing a8dffc63fb I was not aware that
printing a warning and not executing the code would be an option. I only
learned that through 618f220851 .
So I propose that we allow all URLs except if the string contains a `'`.
Which could end the URL and call another command via `system()`.
Related to https://github.com/raysan5/raylib/issues/686
2018-11-13 10:59:52 +01:00
Ray
618f220851
OpenURL() - Added small security check
2018-11-12 14:59:31 +01:00
Michael Vetter
a8dffc63fb
Add warning to OpenURL()
...
See https://github.com/raysan5/raylib/issues/686
2018-11-12 12:32:41 +01:00
Ray
30a1edd40e
Review OpenURL()
2018-11-12 00:34:32 +01:00
Michael Vetter
80dbe636cd
core: OpenURL() fix xdg-open call
...
Calling just `xdg-open` is not right. One needs to pack the URL in `'`.
If we don't do this then some special characters (like ampersand) will
be executed.
Maybe this is true for Windows and Apple case too, but I don't own any
such system. So please merge this, and if it's true for more cases let's
use `sprintf()` in the other cases too.
2018-11-10 08:36:15 +01:00
Michael Vetter
4c83cee810
core: Use dynamic string in OpenURL()
...
OpenURL() is a function that most games probably will never need.
Wasting 512 bytes to store of a static char to store an the URL is not
wise.
I propose to have it dynamic building the string on the fly.
2018-11-10 08:29:53 +01:00
Ray
5167f78d5f
ADDED: OpenURL()
...
Corrected bug on ImageDrawRectangleLines()
2018-11-09 23:09:02 +01:00
Ray
6428317739
Corrected 1px thick issue
2018-11-07 22:50:27 +01:00
Ray
e17bd422fa
Corrected issue with line drawing
2018-11-07 22:31:35 +01:00
GoblinBob
8e219272e5
Update core.c
...
Some projects need the buffer to not be empited when drawing to the render texture. I would suggest making maybe a variation of the function if you'd like to keep backwards compatibility, maybe like: BeginTextureModeNoClear() ?
2018-11-07 21:06:00 +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
c79b342f0b
Corrected issue with sampleCount
2018-11-05 10:22:59 +01:00
Ray
0f6f326a86
Add flag: SUPPORT_EVENTS_WAITING
...
Wait for input events passively (sleep) instead of polling events actively every frame
2018-10-31 23:19:29 +01:00
Ray
f7667aad8d
Reviewed audio issues
...
- Updated dr_mp3 and implemented it
- Reviewed sampleCount vs frameCount
- Reviewed XM playing (some weird things...)
2018-10-31 17:04:24 +01:00
Ray
b051f7778f
Corrected typo
2018-10-29 16:39:54 +01:00
Ray
298203a41a
ADDED: Some functions...
...
text: IsEqualText() -WIP-
audio: SaveWAV()
audio: ExportWaveAsCode()
textures: ExportImageAsCode()
2018-10-29 16:18:06 +01:00
Michael Vetter
b13c9716e4
Fix GetDirectoryFiles description
...
The comment sais it allows max 256 files, but the MAX_DIRECTORY_FILES
define actually is set to 512.
2018-10-25 16:18:44 +02:00
Michael Vetter
65b5de962d
Use seperate blog for MAX_FILEPATH_LENGTH define
...
Let's have a seperate if linux block for this. Since we will need to
define MAX_FILEPATH_LENGTH for all other cases. And its more readable
like this.
2018-10-25 16:16:44 +02:00
Michael Vetter
9bad248b54
Use filepath define
...
On Linux systems the length of the path is defined in linux/limits.h as
PATH_MAX.
Lets use that for MAX_FILEPATH_LENGTH, which is a define that we can
find in some comments in the code that is actually never used. Instead
often we see 256 handwritten.
So lets have MAX_FILEPATH_LENGTH as a proper define, being set to
PATH_MAX on Linux and to 256 on Windows systems.
2018-10-25 16:09:38 +02:00
Ray
fc6f5a92f3
Reviewed functions definition
2018-10-24 22:24:59 +02:00
Ray
72431c6c36
Code tweaks
2018-10-24 13:45:17 +02:00
Ray
550dd40cb3
ADDED: SplitText() function
2018-10-23 15:43:19 +02:00
Ray
b5bcf2c934
Review code formatting for RPI inputs
2018-10-22 11:48:16 +02:00
Ray
0694caaa22
Merge pull request #674 from Berni8k/master
...
Added RaspberryPi option to ignore duplicate touchscreens (Default on)
2018-10-22 09:23:17 +02:00
Berni8k
3d825eb973
Added RaspberryPi option to ignore duplicate touchscreens (On by default)
2018-10-21 15:06:40 +01:00
Ray
30f2483bdb
Merge pull request #672 from Berni8k/master
...
RaspberryPi Mouse and touch overhaul
2018-10-21 09:56:26 +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
bd383fe219
Tweak for OpenGL 2.1
...
Why am I still supporting this???
2018-10-20 12:48:03 +02:00
Ray
161b18edea
Reviewed possible issue with external libs
2018-10-20 12:30:37 +02:00
Ray
1f4866276a
Corrected typo
2018-10-19 21:50:50 +02:00
Ray
16914dfaa2
Reviewed possible issue with...
...
...disposing RenderTexture.
2018-10-19 21:40:34 +02:00
Ray
2759218368
Added comment on issue
2018-10-19 16:17:44 +02:00
Ray
3b674cd281
Some security checks on font loading
2018-10-18 17:48:33 +02:00
Ray
764766bfb2
Some formatting tweaks
2018-10-18 16:00:11 +02:00
Dillon Jones
59bbad9360
Remove non-Windows includes from Makefile
2018-10-18 07:31:22 -04:00
Ray
c2aa1fed7b
Removed OpenAL backend
2018-10-18 11:38:42 +02:00
Ray
8bac72f4fa
Working on MP3 loading
...
Loading full mp3 file works but loading for music streaming does not work, it seems total number of samples is not obtained correctly from mp3 file...
2018-10-17 19:39:16 +02:00
Ray
8a88e65a94
Update src/external/dr_mp3.h
2018-10-17 19:37:53 +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
cd6c362485
Corrected func name typo
2018-10-13 16:00:54 +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
Ahmad Fatoum
5945805b15
CMake: remove erroneous status message
...
OPENGL_VERSION is the version requested by the user,
not the detected one...
2018-10-11 13:52:25 +02:00
Ahmad Fatoum
9b25da5f98
CMake: Fix build breakage trying to set OpenGL version
...
Fixes #660 .
2018-10-11 13:41:47 +02:00
Ray
a12cafe84d
Merge pull request #659 from noshbar/text-memory-leak
...
Fixes memory leak in text.c
2018-10-11 00:21:25 +02:00
Ray
126ab49221
Minor tweaks
2018-10-10 23:55:36 +02:00
Ray
b8b8e6ab7d
Merge pull request #656 from noshbar/vs2017-fix
...
Physac.h fix for variable array size declaration.
2018-10-10 23:44:20 +02:00
noshbar
ec6b21bd91
Fixes memory leak in text.c
...
GenImageFontAtlas() allocates an array of stbrp_rect for the packing functions, but it never frees them.
2018-10-10 22:41:20 +02: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
noshbar
7f7f3b7cd5
Physac.h fix for variable array size declaration.
...
Generating the projects using CMake, targeting VS2017, results in an error when compiling.
This is due to physac.h trying to make a 'vertices' array of size 'int count', making it const does not work, either.
This changes the static declaration to a malloc/free combo.
Tested using the physics-demo.
2018-10-10 21:52:50 +02:00
Ray
f238b9ea3c
Small tweak to avoid warning
2018-10-10 12:31:55 +02:00
Ray
a511337ce8
ADDED: GetFileNameWithoutExt
2018-10-10 12:01:59 +02:00
Ray
555fdec958
Corrected issues with VS2017 compilation
2018-10-09 00:20:39 +02:00
Ray
2320c2febf
ADDED: ImageExtractPalette()
2018-10-08 18:57:33 +02:00
Ray
4f5937e89b
OSX native window keeps breaking...
2018-10-08 18:51:41 +02:00
Ray
717cf77129
Corrected issue with dirent.h inclusion...
...
...and MacOSX OBJC types definition...
2018-10-08 18:38:39 +02:00
Ray
2652e7d1c1
Avoid multiple gl.h inclusions
...
Expose native Cocoa Window again...
2018-10-08 18:08:39 +02:00
Ray
81d28c5784
dirent.h implementation for MSVC
...
This implementation is a bit limited, does not support wide characters directories but it's a temporal solution...
This solution uses "io.h" (like MinGW provided one) while other modern solutions use the "windows.h", that result in duplicate symbols issues... need to review it carefully.
2018-10-08 16:55:01 +02:00
Ray
6e4bd60978
Trying to include dirent.h for MSVC
2018-10-08 16:25:47 +02:00
Ray
2d324f22a7
Corrected issue with native window handler on OSX
...
Could not be retrieved for now...
2018-10-08 16:12:09 +02:00
Ray
97f6454982
Corrected issue with native handler on OSX
2018-10-08 13:29:42 +02:00
Ray
ca1e309d9d
Corrected issue with GetWindowHandle()
...
Not supported for the moment, issues with Linux (symbol `Font` redefined) and OSX (NSGL type redefined)
2018-10-08 13:14:15 +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
c4b7d17516
CMake: report what kind of libraries will be built
2018-10-07 21:34:19 +02:00
Ahmad Fatoum
2981713e4f
CMake: accept standard -DBUILD_SHARED_LIBS as well
...
-DBUILD_SHARED_LIBS=OFF == -DSHARED=OFF -DSTATIC=ON
-DBUILD_SHARED_LIBS=ON == -DSHARED=ON -DSTATIC=OFF
Fixes #626 .
2018-10-07 21:34:18 +02:00
Ahmad Fatoum
1fe6d9fc06
core: workaround window not being rendered till moved on macOS Mojave
...
Apple ought to fix their OpenGL implementation, but with OpenGL now
deprecated this might not happen.
This has been reported upstream in GLFW in glfw/glfw#1334.
The workaround comes from kovidgoyal/kitty@b82e74f99
This also fixes the HiDPI (Retina) scaling issues reported in #497 ,
so the workaround is enabled anywhere __APPLE__ is defined.
2018-10-07 02:14:30 +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
Ahmad Fatoum
a56b3c2194
CMake: suppress OpenGL deprecation warnings on macOS Mojave
...
A single warning at configuration time is enough.
2018-10-07 00:33:05 +02:00
Pablo Marcos Oltra
35634f37c8
Fix physac's fixed time step
2018-10-04 18:29:50 +02:00
Ray
589152b658
Review void pointer incrementation
2018-10-01 15:45:01 +02:00
Ray
d67edb591a
Support KXT image file export
...
[textures] Added SaveKTX()
[rlgl] Exposed rlGetGlTextureFormats()
2018-10-01 15:30:48 +02:00
Ray
ecb787d76f
Update version number (internally)
2018-10-01 15:29:34 +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
6b84b76b70
Forgot #else in platform check
...
- Added else so return not compiled twice.
2018-09-29 14:28:07 +01:00
ChrisDill
ed95337eb8
Added platform check
...
- Added PLATFORM_DESKTOP check for Monitor functions to try to fix issue on android.
- Not sure what return types should be when not on desktop. Added rough guess for now.
2018-09-29 14:10:29 +01:00
ChrisDill
ed79d53e1a
Changed tabs to spaces
...
- Fixed tabs used instead of 4 spaces
2018-09-27 16:23:11 +01:00
ChrisDill
73701c12b2
Merge remote-tracking branch 'upstream/master'
2018-09-27 15:54:02 +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
29eddb9ff3
Updated icon data
2018-09-26 16:02:42 +02:00
Ray
abfbc42df7
PNG image size optimization
2018-09-25 12:53:31 +02:00
Ray
9efe5c6802
Support MP3 wave loading -NOT TESTED-
2018-09-19 15:57:46 +02:00
Ray
be599a9ece
enjoy!
2018-09-18 21:34:02 +02:00
Ray
27c3afd91c
enjoy!
2018-09-18 21:30:52 +02:00
Ray
2bd18ab91e
Support ExportImage() as raw pixel data
...
Added note on KTX 2.2
2018-09-17 19:00:51 +02:00
Ray
f503fded67
Support image export
2018-09-17 17:06:58 +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
3a1a489545
Removed TABS
2018-09-14 13:00:48 +02:00
Ray
5b09630d45
Update mini_al to v0.8.8
...
Some minor tweaks around
2018-09-14 12:47:31 +02:00
Ray
f32e23c11b
Merge pull request #641 from ChrisDill/master
...
Added a few missing functions to raymath
2018-09-13 12:51:45 +02:00
ChrisDill
1e1bbaa40b
Added a few missing functions to raymath
...
- Added Vector2MultiplyV
- Added Vector2DivideV
- Added Vector3Divide
- Added Vector3DivideV
2018-09-13 11:43:10 +01:00
F.H
9f1489dc1d
Update models.c
...
fix bug with GenMeshPlane() creating too many vertices/texcoords/normals for the plane mesh
2018-09-06 21:11:00 +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
Ray
ac31f51c5e
Corrected issue with font tint
2018-09-05 10:47:57 +02:00
Ray
d0608b031a
Corrected issue with types
2018-09-05 10:47:40 +02:00
raysan5
207b5a26b1
Create release directory if not exist
2018-08-25 18:25:51 +02:00
raysan5
af919e5c9f
Review naming to follow raylib conventions
...
strprbrk() does not follow raylib function name convention but as it is
very similar to the standard strpbrk(), we'll keep the naming... also,
don't like to mix static functions with API functions but as strprbrk()
is just used in the two functions below, it's ok to be there... maybe it
could be refactored in a future or even move the logic inside the
required functions...
2018-08-25 17:55:25 +02:00
Ahmad Fatoum
85213795d1
GetDirectoryPath: return NULL, don't crash when no slash
...
Noted in #634 .
2018-08-25 09:27:41 +02:00
Ahmad Fatoum
5dda105a79
core: Support slashes as well in GetFileName & GetDirectoryPath
...
Fixes #634 .
2018-08-25 09:23:40 +02:00
Oğuzhan Çankaya
2bef76735d
lerp for vector2 and float
2018-08-21 04:14:43 +03: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
Ray
506b7b8d7c
Corrected issue with batch overflows
...
When a batch reach its vertex limit, a draw call is issued and batch restarted for refilling but if the draw call was issued for vertex data accumulated inside rlPushMatrix/rlPopMatrix, draw call was issued before the rlPopMatrix, consequently modelview matrix was not properly recovered before the draw call... obviously, it only happened the following draw calls, not the first one...
Now it works ok but this system needs to reviewed, noticed and important frames drop when processing around 20 dynamic batch draw calls, it means filling MAX_QUADS_BATCH (8192) quads of data 20 times per frame, including data updating and sending for draw processing.
Doing some maths, it means:
Vertex data (float) -----> 8192 quads * 4 vertex * 3 comp * 4 byte = 393216 bytes
Texcoords data (float) -> 8192 quads * 4 vertex * 2 comp * 4 byte = 262144 bytes
Color data (uchar) -----> 8192 quads * 4 vertex * 4 comp * 1 byte = 131072 bytes
Thats a total of 786432 bytes (0.75MB) sent to GPU 20 times per frame for processing... I'm testing in an Intel HD Graphics integrated, I imagine is too much data to be sent and and it causes stalls, so the frames drop...
2018-08-17 13:55:46 +02:00
Ray
732b775a1d
Proper variables initialization
2018-08-17 11:41:49 +02:00
Ray
4c84208644
Working on batch reset issue
...
Corrected memory leak!
2018-08-17 01:34:45 +02:00
Ray
eef44fd930
Merge pull request #625 from ChrisDill/master
...
Raymath dllexport fix
2018-08-16 23:04:17 +02:00
ChrisDill
c669c6762f
Improved raymath defines
...
- Using raylib.h as reference, added define checks for BUILD_LIBTYPE_SHARED and USE_LIBTYPE_SHARED.
2018-08-16 18:20:49 +01:00
ChrisDill
a187361c6f
Raymath dllexport fix if _WIN32 defined
...
- Added check for dllexport to compile if _WIN32 defined.
- If not defined then use the original RMDEF.
2018-08-16 12:54:45 +01:00
ChrisDill
42b52ecdb1
Raymath dllexport fix
...
- Added __declspec(dllexport) to RMDEF in raymath.h. This allows them to be accessed when importing from raylib.dll.
2018-08-16 11:29:30 +01:00
Ray
b88bfa7267
Review PR formatting
2018-08-14 09:57:31 +02:00
Joseph-Eugene Winzer
1cef8ea1bf
Shapes: Simplifies CheckCollisionRecs
...
By comparing the edges of the rectangles relative to each other we can
determine if they intersect or not.
2018-08-14 00:14:06 +02:00
David Reid
3200b23469
Update mini_al.
...
This should improve the Raspberry Pi experience.
2018-08-12 13:45:12 +10:00
Ray
00f5f2ead2
Merge pull request #616 from overdev/master
...
[Feature Request] 9-patch drawing function
2018-08-09 22:42:05 +02:00
Jorge A. Gomes
dab78d59f3
Update textures.c
...
See raylib/examples/textures/textures_image_9patch.c for how to use `DrawTextureNPatch` function.
2018-08-08 16:42:39 -03:00
Jorge A. Gomes
5f89e35d1c
Update raylib.h
2018-08-08 16:39:10 -03:00
Ray
7634cbeb22
Updated mini_al
...
Corrected issue with sound playing (pop sound at the end)
2018-08-08 18:26:05 +02:00
Ray
b042fe12e6
Reviewed spacings on latest PR
2018-08-06 20:49:47 +02:00
Ray
61b32e45ed
Merge pull request #618 from kimkulling/fix_compiler_warnings
...
Fix compiler warnings
2018-08-06 20:43:28 +02:00
Kim Kulling
f5f7ed79b8
Fix compiler warnings of lib
2018-08-05 23:53:34 +02:00
Kim Kulling
b2cac82fa0
Fix compiler warings in texture.c and more.
2018-08-05 00:34:35 +02:00
Kim Kulling
ecf8bff4aa
Fix compiler warnings, first part
2018-08-04 10:32:16 +02:00
Jorge A. Gomes
28424141f0
Update textures.c
...
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:53:15 -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
Ray
d4bb444fe5
Merge pull request #609 from pamarcos/fix_physac_examples
...
[physac] Fix Physac examples to be run without creating new thread
2018-08-03 12:47:53 +02:00
Jorge A. Gomes
7cc2a5585b
Update textures.c
...
Added DrawNinePatch() function implementation.
2018-08-03 04:51:26 -03:00
Jorge A. Gomes
c9ca14e659
Update raylib.h
...
Added NinePatch struc definition and function prototype.
2018-08-03 04:48:46 -03:00
Ahmad Fatoum
286c41af52
Sync with upstream GLFW pull request
...
The GLFW tree distributed with raylib has two modifications:
- GLFW_PKG_{DEPS,LIBS} are exported to PARENT_SCOPE, so we can use them
in our pkg-config file
- An intermediary glfw_objlib target is added, so we can reexport GLFW
symbols from libraylib.a
rglfw can fix the second point, but for Wayland usage, we would have to
replicate protocol generation, so we just leverage GLFW's existing
support instead.
To make maintenance easier, I have submitted a pull request for
including these modifications to upstream GLFW.
And to make that one easier, this patch dog-foods the modifications,
so raylib users can help find regressions. :-)
glfw/glfw#1307
2018-07-29 23:56:16 +02:00
Ray
7154a83313
Merge pull request #610 from pamarcos/fix_chdir_macos
...
[games] Prevent GLFW changing working dir to 'Resources'
2018-07-29 23:40:13 +02:00
Pablo Marcos Oltra
907e27ef4e
Fix Physac examples to be run without creating new thread
2018-07-29 21:32:39 +02:00
Ahmad Fatoum
78487f7521
CMake: Make the raylib project as a whole embeddable
...
So user code can use add_subdirectory to build it (similar to what we do
with GLFW or what the projects/CMake/CMakeLists.txt can do).
2018-07-29 21:28:23 +02:00
Pablo Marcos Oltra
89cec68565
Prevent GLFW changing working dir to 'Resources'
2018-07-29 18:38:31 +02:00
Ahmad Fatoum
e82505b873
Add projects/CMake example
...
The CMakeLists.txt checks for an installed raylib and downloads and
installs one if none is found. Afterwards, it builds core_basic_window.c
2018-07-29 18:27:59 +02:00
Ahmad Fatoum
548dbeb1ca
Fix typo (s/proedural/procedural)
2018-07-29 13:04:16 +02:00
Ahmad Fatoum
2ae6df47fc
CMake: Set -DMACOS_FATLIB=OFF by default
...
Homebrew doesn't ship 32-bit libraries anymore, so using both
-DUSE_EXTERNAL_GLFW and -DMACOS_FATLIB with a Homebrew GLFW would fail.
With -DUSE_EXTERNAL_GLFW=OFF, this is not a problem, but I think keeping
it off by default makes more sense. If someone wants universal
libraries, they can just toggle it.
2018-07-29 12:35:36 +02:00
Ahmad Fatoum
4d209d45aa
core: Don't use GLFW_TRANSPARENT_FRAMEBUFFER with older GLFWs
...
PLATFORM_WEB is not the only platform that doesn't define
GLFW_TRANSPARENT_FRAMEBUFFER, it's also recent enough that it's not
included in the most recent GLFW 3.2.1 release, so this error can creep
up when using USE_EXTERNAL_GLFW.
2018-07-29 12:35:36 +02:00
Ahmad Fatoum
3f09726331
CMake: Major cleanup to support find_package(raylib)
...
Remove that link_libraries_to_executable() hack and defines a proper
raylib target that can be used with target_link_libraries.
The same target is also available for external (user) code by using
find_package(raylib).
This results in:
- Remove hardcoded build directories from examples and games CMakeLists.txt
- Allow rlgl_standalone and other special examples to be built easily
- Allow CMake projects to find_package(raylib instead of fiddling with pkg-config
- Makes code a little more maintainable
- Fixes #471 , #606 .
- Makes code less confusing by removing the double use of PLATFORM (#584 ).
Note that this is still not _The Right Way_(TM), because normally
raylib-config.cmake (or its includes) would be automatically generated.
I didn't manage to get that to work though, so I went the easier route
of just wrapping pkg_check_modules for consumption by find_package.
2018-07-29 12:35:35 +02:00
Ahmad Fatoum
3e5093eab0
CI: Build with all optional formats enabled
...
also makes one configuration shared-only
dr_flac is not built on i386, because GCC 4.8 complains about asm("cpuid"
clobbering ebx, as it's using ebx for PIC.
Instead of downloading a newer GCC (and multilib),
disable FLAC for that one configuration...
2018-07-29 12:13:01 +02:00
Ahmad Fatoum
69e147417b
Travis CI: Add OpenAL-Configuration
2018-07-29 12:13:00 +02:00
Michael Vetter
186c1b157e
Fix bug in LoadMusicStream
...
free() and NULL at the end.
2018-07-29 09:52:18 +02:00
raysan5
7964b28fac
Corrected bug LoadMusicStream()
2018-07-28 18:19:53 +02:00
raysan5
0cf92c59d7
Corrected timing typo
2018-07-28 18:13:19 +02:00
raysan5
dc3327fba8
Reviewed music loading
2018-07-28 18:07:06 +02:00
raysan5
6f61e26a3c
Reviewed custom logging functionality
2018-07-28 17:57:05 +02:00
Michael Vetter
7a5b1b13e2
Deal with failed LoadMusicStream
...
It would be good to have a way to continue execution even when loading a stream didn't work.
Free music and set it to NULL in case something went wrong, so that users can check for it.
2018-07-27 15:58:27 +02:00
Pablo Marcos Oltra
c69f7953c7
Add SetTraceLogCallback to enable users setting custom logging ( #597 )
2018-07-26 21:57:45 +02:00
Pablo Marcos Oltra
8d134edaf7
Fix rlgl.h to be used as a standalone
2018-07-25 10:36:18 +02:00
Ray
361d878b4c
Updated animations support
2018-07-24 18:52:56 +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
Ahmad Fatoum
2b8c9f9a17
CMake: Fail when -D{PLATFORM,OPENGL_VERSION}=INVALID_VALUE
...
as well as -DUSE_EXTERNAL_GLFW.
Nips issues like #584 in the bud.
2018-07-23 21:00:48 +02:00
raysan5
4c15515ba6
Support examples with Emterpreter
...
Examples can be compiled for web with no code change at all! Usually
examples need to be refactored for web... using emscripten code
interpreter (emterpreter), it can manage synchronous while() loops
internally... as a downside, execution is very slow...
2018-07-21 17:13:59 +02:00
raysan5
7dc66d2d3f
Looking for a place for raylib resource file
2018-07-21 16:18:33 +02:00
Ray
6e812cf147
Working on MP3 support
2018-07-19 23:15:46 +02:00
Ray
103044926b
Avoid config.h in standalone mode
2018-07-16 19:24:40 +02:00
Ray
6efb89c51e
Updated to latest mini_al dev
2018-07-16 19:21:54 +02:00
Ray
98273f0152
Reviewed compilation options
2018-07-16 18:43:24 +02:00
Ray
5b37178af9
Reviewed rlgl_standalone example
2018-07-16 18:22:03 +02:00
Ray
096fd6f2c3
Converted rlgl module in header-only
...
This change allows rlgl.h usage as independent single-file header-only module... still some tweaks required, like removing GLAD dependency... required extensions could be manually loaded!
Also removed shader_distortion.h, embedded in rlgl.h
2018-07-16 17:53:47 +02:00
Ray
0c631e6b5a
Corrected comment
2018-07-15 21:24:59 +02:00
Ray
292499bdeb
Reviewed LoadFontData() and GenImageFontAtlas()
2018-07-15 20:03:05 +02:00
Ray
9e2c418a92
Removed dev from version
2018-07-11 16:40:08 +02:00
Ray
eb296a5605
Reviewed shared library generation
2018-07-11 16:39:41 +02:00
Ray
43178f3488
Updated mini_al to latest dev version
...
Corrects issue with audio on RPI
2018-07-11 16:39:26 +02:00
Ahmad Fatoum
414bb6018b
CMake: Add Libs.private to Libs if installing static only
...
pkg-config --libs --static raylib and pkg-config --libs raylib
should give the same result if there is no shared raylib installed.
2018-07-10 21:20:01 +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
f939378764
Support ARM and ARM64 Android building
2018-07-09 03:00:52 +02:00
raysan5
c6d188a09a
Reviewed latest commit for Android gamepad support
2018-07-07 10:15:19 +02:00
Ray
50088bf49b
Merge pull request #570 from SethArchambault/master
...
SNES-like GAMEPAD Support added for Android, Makefile has optional support for 32bit
2018-07-07 09:38:19 +02:00
David Reid
8651e14955
Update mini_al with a fix for macOS.
2018-07-07 10:36:19 +10:00
Seth Archambault
fa36c5294a
Merge branch 'master' of https://github.com/raysan5/raylib
2018-07-06 13:37:17 -04:00
Seth Archambault
f981daf1df
Added SNES-style GAMEPAD SUPPORT
2018-07-06 13:33:46 -04:00
Ahmad Fatoum
7f040009ee
Add null statement after goto label to pacify CI
...
Fixes : #568
2018-07-06 02:30:38 +02:00
Ray
0ab3d85aa0
Merge pull request #568 from mackron/dr/mini_al
...
Update Audio Libraries
2018-07-06 00:31:21 +02: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
raysan5
1f1d8eeeeb
Checking Android input functionality
...
Joystick support is not implemented just yet, not difficult but it
requires some work...
2018-07-05 19:00:49 +02:00
David Reid
b7d7704098
Update mini_al to version 0.8.
2018-07-05 23:12:20 +10:00
David Reid
6c96fa6301
Update external audio libraries.
2018-07-05 22:57:45 +10:00
David Reid
c598701873
Fix bug with FLAC music streams.
2018-07-05 22:57:17 +10:00
David Reid
1d354bc704
Merge branch 'master' of https://github.com/raysan5/raylib into dr/mini_al
2018-07-05 22:33:16 +10:00
Ahmad Fatoum
c3aeaf4a49
Travis CI: Add test case for pkg-config
2018-07-03 21:35:28 +02:00
Ahmad Fatoum
61747508b0
CMake: Reuse libraries found by glfw CMake config
...
if (${PLATFORM} MATCHES "Desktop")
target_link_libraries(${RAYLIB}_shared glfw ${GLFW_LIBRARIES})
was never true because PLATFORM STREQUAL "PLATFORM_DESKTOP"...
This fixes #551 and makes the changes suggested in #552 (commited as 965cc8ab )
unnecessary.
2018-07-03 21:35:27 +02:00
Ahmad Fatoum
33c830353b
CMake: Fix regression in USE_EXTERNAL_GLFW=IF_POSSIBLE
...
Fixes: e1e036a6 ("Disable glfw only when it is not found and not external", #558 )
2018-07-03 09:24:31 +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
276974de05
Removed function prototype
...
This function was added in text module as GenImageFontAtlas()
2018-07-02 16:39:04 +02:00
Ray
7dedb84fd0
Added function: Vector3RotateByQuaternion()
...
Rotate a Vector3 by a Quaternion
2018-06-30 22:00:16 +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
Michael Campagnaro
859b1cf574
Fix incorrect log agent names
2018-06-28 18:41:32 -04:00
Ray
dbfd8d713f
Reviewed comments section
2018-06-26 01:36:13 +02:00
Ray
bd957c7442
Merge pull request #557 from Martinfx/max-support-bsd-os
...
Added support OpenBSD, NetBSD, DragonFly OS
2018-06-24 12:44:58 +02:00
maficccc@gmail.com
59ebe1b7c3
Added support OpenBSD, NetBSD, DragonFly
2018-06-23 17:02:07 +02:00
maficccc@gmail.com
965cc8ab6f
Added support DragonFly os from BSD family
2018-06-23 17:02:04 +02:00
Yuri
e1e036a602
Fisable glfw only when it is not found and not external.
2018-06-23 07:30:35 -07: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
372e4a1139
Reviewed some functions
...
- GetImageData()
- GetImageDataNormalized()
2018-06-12 16:30:03 +02:00
Ray San
64804f30e6
Comment review
2018-06-12 13:27:41 +02:00
Ray San
0c01c08718
Corrected issue, flag not supported...
...
...by emscripten glfw javascript implementation
2018-06-12 13:21:36 +02:00
Ray San
59fd261491
Added function: GetImageDataNormalized()
...
Reviewed: GetImageData()
Reviewed: ImageFormat()
2018-06-12 13:13:09 +02:00
Ray San
7d0e09ff4c
Corrected bug
2018-06-12 12:05:28 +02:00
Ray San
b588af5ce2
Corrected breaking build
2018-06-12 10:45:00 +02:00
raysan5
b48d225a43
Propose new function: GenImageFont()
2018-06-10 19:29:01 +02:00
Ray
817ae07505
Some comments cleaning
...
ImageDraw() code tweak
2018-06-06 00:43:52 +02:00
Ray
0e6458cfee
Added ImageRotate*() functions
2018-06-03 21:05:01 +02:00
Ray
61a1c59472
Corrected possible issue with CMake for GLFW
2018-06-02 18:47:19 +02:00
Ray
9688c677de
Review window creation hints
2018-06-02 18:26:57 +02:00
Ray
c7d6a44e33
Update GLFW to latest dev version (master branch)
2018-06-02 18:26:29 +02:00
Ray
b1b4a11bdb
Corrected issue with function definition
2018-06-02 13:05:23 +02:00
Ray
afc4181752
Work on ImageResizeCanvas()
2018-06-02 12:47:05 +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
129c890a28
Removed assert()
...
Not used in raylib this mechanism
2018-05-30 00:06:23 +02:00
Ray
8f4b53384c
Replaced tabs by spaces
2018-05-29 09:09:40 +02:00
Ray
d873314c27
Reviewed Windows resource file name
2018-05-29 00:52:08 +02:00
Ray
0148432588
fabsf() not working with TCC
...
Replaced by fabs() that seem to work ok
2018-05-28 00:48:45 +02:00
Ray
dbff40944a
Corrected issue with floats on TCC
...
It seems TCC was not casting correctly int values to float in some
specific situations
2018-05-28 00:48:07 +02:00
Ray
1f0cc57ec7
Corrected issue with compiler param
...
Added android_native_app_glue module to raylib compilation instead of
compiling it as static lib at apk generation.
2018-05-27 19:06:14 +02:00
Ray San
8f4fa5006b
Added a note
2018-05-22 12:09:12 +02:00
Ray San
f454af08bb
Review include (already included)
2018-05-22 12:08:58 +02:00
raysan5
559b9b8cc3
Corrected possible memory leak
2018-05-21 18:57:54 +02:00
raysan5
44181baf04
Working on Android APK building
2018-05-21 18:13:52 +02:00
David Reid
63cf43b729
Fix some warnings.
2018-05-21 20:46:22 +10:00
David Reid
647c08ef4c
Fix a copy paste typo.
2018-05-21 20:39:42 +10:00
David Reid
f1b624d38b
Update mini_al.
2018-05-21 20:39:19 +10:00
David Reid
6d8cc250bd
Merge branch 'master' of https://github.com/raysan5/raylib into dr/mini_al
2018-05-21 20:26:28 +10:00
Ahmad Fatoum
e025e62445
cmake: Fix PLATFORM_WEB build
...
Did this ever work? Surely, doesn't look like it...
2018-05-21 12:15:39 +02:00
Ahmad Fatoum
ad8509732c
CMake: Fix (Add?) Android support
...
Not sure if this ever worked, but now it at least compiles.
2018-05-21 01:08:29 +02:00
Ahmad Fatoum
ff55af14f9
CMake: Move reusable code to new cmake/ directory
2018-05-21 01:08:29 +02:00
Ahmad Fatoum
ae26e083b4
CMake: Add default build type if none specified
...
Release, unless we are in a Git repo, then it's Debug.
2018-05-21 01:08:28 +02:00
Ahmad Fatoum
20ddc6a2bb
Move utils.cmake to separate cmake/ directory
2018-05-21 01:08:28 +02:00
raysan5
a752092055
Removed 32bit arm Android library
...
From 2019 64bit support will be mandatory to publish an Android app.
Google plans to require that new apps target Oreo (API level 26) in
August of 2018.
2018-05-20 19:13:10 +02:00
raysan5
8e0cd51afb
Support shared library building on Android
2018-05-20 18:49:58 +02:00
raysan5
ca69068814
Added function: rlCheckBufferLimit()
2018-05-20 01:55:46 +02:00
raysan5
3b70b66a08
Love OpenGL gotchas... make my life more enjoyable!
2018-05-20 00:41:12 +02:00
raysan5
24adca4ad0
Manual mipmap generation review
...
On OpenGL 1.1 only is supported for 32bit RGBA textures
2018-05-20 00:39:56 +02:00
raysan5
25d5e907ec
Some code review (mainly comments)
2018-05-20 00:37:16 +02:00
Michael Vetter
5cfbb53f6c
Increase API version
...
Please do this whenever necessary. And adapt it before releasing a new
RC. The RC should already have the correct one.
2018-05-18 16:04:18 +02:00
Ray
fb4265f646
Reviewed Android pipeline
...
Now defaults to Clang, ARM64 and API 21
2018-05-17 00:59:53 +02:00
Ray
0b05169aa7
Some warnings review
2018-05-17 00:58:58 +02:00
Ray
88c2337225
Preliminary support for MP3 fileformat -WIP-
2018-05-17 00:04:58 +02:00
Ray
2aae62cea2
Header tweak and comments
2018-05-17 00:04:36 +02:00
Ray
1d3e4ef437
Corrected issue on file extension check
2018-05-17 00:04:12 +02:00
Ray
bb43755a9d
Corrected issue on LoadASTC()
2018-05-12 23:33:03 +02:00
Ahmad Fatoum
eed170f852
CMake: Fix typo... s/USE_PIC/WITH_PIC/
2018-05-12 19:05:30 +02:00
Ahmad Fatoum
0f1aaa474a
CMake: (Properly) build glfw separately with CMake
...
This reverts commit 2d6fb5c628 ,
and adds a fix for Alien::raylib's test failures.
The tests failed because the resulting static library didn't reexport
GLFW symbols. As a fix, we now have GLFW create a CMake "object library"
target that we can link with both the static and shared raylib.
This is arguably ugly... Proper fix would probably be a GLFW upstream
object library target.
Closes #536 .
2018-05-12 18:38:20 +02:00
Ahmad Fatoum
2d6fb5c628
Revert "CMake: Build glfw separately with CMake"
...
This reverts commit 0adb4b67de ,
because it failed tests for Alien::raylib:
http://www.cpantesters.org/distro/A/Alien-raylib.html
2018-05-11 23:43:35 +02:00
Ray
aa76985c0d
Review raylib version to 2.0
...
Review raylib_icon resource
2018-05-11 18:14:19 +02:00
Ahmad Fatoum
0adb4b67de
CMake: Build glfw separately with CMake
...
Makes it easier to support Wayland later on.
2018-05-11 01:24:27 +02:00
Ahmad Fatoum
0df501be91
Add GLFW source tree to src/external
...
We need the CMake stuff for wayland configuration.
Otherwise, we would have to replicate that ourselves.
This is the full 7ef34eb06de54dd9186d3d21a401b2ef819b59e7 tree except
for tests/ examples/ and docs/
2018-05-10 23:07:26 +02:00
Ahmad Fatoum
b8ca51fd01
CMake: Don't create symlinks on unsupporting file systems ( #539 )
...
Panders to the idiosyncrasies of my work flow:
I have my raylib build directory mounted as a VirtualBox vboxfs for use
with my Linux VM, but vboxfs doesn't support symlinks, while raylib shared
library versioning on Unix expects symlinks to work.
If this happens, library versioning is now disabled on Unix with
an error message instead of just failing the build.
2018-05-10 21:03:43 +02:00
Ray
f26a38a9e1
Merge branch 'master' of https://github.com/raysan5/raylib
2018-05-09 00:24:08 +02:00
Ray
9ea2a69bfd
Corrected issue on rectangle drawing
2018-05-09 00:23:56 +02:00
Ray
3a803ac95e
Removed unnecesary define
2018-05-08 23:04:13 +02:00
Sherjil Ozair
8e9ff75f1c
Use fabsf for floats, and avoid implicit type casting
2018-05-06 12:47:46 -04:00
Ray
f14492432d
Avoid exposing native GLFW3 functionality
...
Try to avoid types conflict with Font
2018-05-04 23:03:56 +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
400c345f96
Added tangent computation alternative method
...
As stated in the note, I'm not sure if math is right, just followed a
reference implementation...
2018-04-30 11:21:44 +02:00
raysan5
23e335d933
Implemented MeshTangents()
...
- Added Vector3OrthoNormalize() to raymath.h - not sure if it is correct
- Implemented MeshBinormals() - Mesh struct has not a place for them...
- Updated model_material_pbr example - tested but not working on my GPU
(old Intel HD), actually, it never worked on it...
2018-04-30 02:47:48 +02:00
raysan5
c51203ae7e
Corrected alpha blending on ImageDraw()
2018-04-29 18:39:57 +02:00
raysan5
dff1028466
Replaced ColorToFloat() by ColorNormalize()
2018-04-29 18:39:46 +02:00
raysan5
8d81b6e4e4
Support shapes drawing using only QUADS
...
Also added new compilation FLAGS for that pourpose
2018-04-29 12:53:32 +02:00
raysan5
ada6668b24
Expose file-dropping functions symbols
2018-04-29 11:49:10 +02:00
raysan5
ca5f7ebd10
Added compile flag: SUPPORT_SCREEN_CAPTURE
...
Allow compiling the library with support for automatic screen capture
(KEY_F12)
2018-04-29 11:37:39 +02:00
David Reid
3ca5047c82
Update mini_al.
2018-04-22 07:24:18 +10:00
David Reid
af4d23aa82
Update mini_al.
2018-04-21 22:13:02 +10:00
David Reid
24cab8f920
Update mini_al.
2018-04-21 20:39:31 +10:00
David Reid
0febaa2446
Update external audio libraries.
2018-04-21 18:57:00 +10:00
Ray
847bdaf682
Implemented default mesh
...
In case mesh loading fails, a cube is generated instead!
2018-04-19 20:20:34 +02:00
Ray
76a6bf6c52
Review spacing for cosistency
2018-04-19 20:19:53 +02:00
lumaio teon
5ef6cc1fb9
Add more key definitions
2018-04-13 17:14:04 -04:00
Ahmad Fatoum
3f59bdfc76
mini_al: Use WinAPI interlocked ops with tcc
...
Seems tcc doesn't provide __sync_*. See #435 .
2018-04-11 11:29:49 +02:00
Ahmad Fatoum
8b0fef6c34
raymath: Workaround tcc inline function limitation
...
Reported in #435 , tcc generates out-of-line definitions for inline
symbols, something it shouldn't. This fix punishes tcc for that
by making applications it compiles (slightly) larger...
2018-04-11 10:43:27 +02:00
Ray San
4cc12ef2b3
Review camera definition on examples
2018-04-11 10:13:00 +02:00
Ray San
cc3b8645df
Updated release version
2018-04-10 10:37:48 +02:00
Ray
8e44f7b3c7
Reviewed config.h formatting
...
Added raylib version to config
2018-04-09 23:01:20 +02:00
Ray
54e24d905a
Init frame timming measure variables
2018-04-09 22:28:41 +02:00
Ray
cd616258c6
Merge pull request #522 from a3f/master
...
Refactor all #define SUPPORT_* into a config.h
2018-04-08 22:46:44 +02:00
Ray
9e7dedf5af
Merge pull request #521 from TheLumaio/master
...
Added GetCollisionRayModel
2018-04-08 22:28:19 +02:00
Ahmad Fatoum
1dbce35247
CMake: Generate config.h from CMakeOptions.txt
...
I would have liked config.h to be selected by include dir configuration,
but this way is less intrusive.
2018-04-07 23:39:53 +02:00
Ahmad Fatoum
1841afad11
Refactor all #define SUPPORT_* into a config.h
...
That way, a user needs only to touch a single file to configure what
features raylib is built with.
Include guards are left out intentionally, because config.h should only
be included in source files, not headers.
Later on, config.h can also define the raylib version (#461 ).
2018-04-07 23:37:48 +02:00
Ahmad Fatoum
d88523f03a
Split CMake options into separate CMakeOptions.txt
2018-04-07 22:41:43 +02:00
Milan Nikolic
3caa044bf2
Add GNUInstallDirs and USE_AUDIO/USE_WAYLAND options to CMake ( #518 )
2018-04-07 16:32:14 +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
b8bd1d2ea6
Remove unnecesary NPOT check
...
Now PLATFORM checks only used on core and utils modules
2018-04-05 19:22:45 +02:00
Ray
005f2ffb75
Simplified some code
2018-04-05 19:18:44 +02: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
Ray
6edf15b9f9
Added funtion: ExportMesh()
2018-04-04 12:00:54 +02:00
Ray
9393d1d76f
Merge branch 'master' of https://github.com/raysan5/raylib
2018-04-03 12:43:42 +02:00
Ray San
fe1c04d1b8
Removed old code
2018-04-03 12:42:28 +02:00
Ray
533780aadf
Review ImageDraw() alpha blending
...
Not sure if math is ok... just left a commented piece of code that uses pre-multiplied alpha.
2018-04-03 12:42:22 +02:00
Ray
3e0de31424
Merge pull request #504 from Martinfx/master
...
Fix potential bugs from static analysis
2018-04-02 18:10:38 +02:00
raysan5
375adf86a6
Review math usage to reduce temp variables
2018-04-02 15:16:45 +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
maficccc@gmail.com
201007e426
Fix sscanf() without field limits can crash with huge input data
2018-04-02 13:30:20 +02:00
maficccc@gmail.com
db98dba10f
Fix Allocator sizeof operand mismatch
2018-04-02 13:30:20 +02:00
maficccc@gmail.com
03ca9508bf
Fix Dead initialization
2018-04-02 13:30:20 +02:00
maficccc@gmail.com
44eedf235d
Redundant assignment of 'angle' to itself
2018-04-02 13:30:20 +02:00
maficccc@gmail.com
ca9e652f8b
Remove dead assignment
2018-04-02 13:30:19 +02:00
Martinfx
28a9a181cb
Fix use after free
2018-04-02 13:30:19 +02:00
maficccc@gmail.com
e659336c11
Fix value stored to 'num_channels' is never read
2018-04-02 13:30:19 +02:00
Ray
e72b96ada1
Merge pull request #508 from a3f/master
...
Allow use of main instead of android_main
2018-04-02 10:48:02 +02:00
Ray
564baa22d6
Merge pull request #513 from autious/master
...
Add orthographic 3d rendering mode
2018-04-01 00:27:20 +02:00
Jacques Heunis
b4e2f5b45c
Initialize the timer after the graphics device on desktop and web platforms. ( #516 )
...
This is already the order that is used for Android. It doesn't appear to
make a difference on desktop but on web using the timer before it's been
initialized (by glfwInit, inside InitGraphicsDevice) causes the a long
(and variable but often several seconds) sleep between the first and
second frame.
Fixes: 468309d ("Early-exit InitWindow if InitGraphicsDevice fails")
2018-03-31 12:22:44 +02:00
Max Danielsson
6c049fdd76
Move deduplicate aspect variable in begin render.
...
Changes motivated by commentary in pull request 513
2018-03-27 19:59:54 +02:00
Max Danielsson
5ecee69088
Add 3d orthographic projection mode
2018-03-25 18:33:19 +02:00
David Reid
a8e2c7de9c
Fix an infinite loop in ALSA backend of mini_al.
2018-03-20 18:39:21 +10:00
Ray
deffad1701
Review tabs issue when compiling...
...
...PLATFORM_ANDROID on Windows, using MinGW-w64 (x86) provided Make (GCC
7.2)
2018-03-19 23:49:14 +01:00
David Reid
4a69c2d75e
Fix a buffer overflow in the OSS/BSD backend.
2018-03-18 14:37:41 +10:00
Ahmad Fatoum
2c219fb814
Allow use of main instead of android_main
...
Inspired by #504 .
Instead of requiring the user to do PLATFORM_ANDROID #ifdefery,
have the android_main entry point exported by raylib and call
the user-defined main. This way many games could (in theory)
run unmodified on Android and elsewhere.
This is untested!
2018-03-16 21:37:22 +01:00
Ray
61e0e4b4f3
Complete review of raymath for API consistency
2018-03-16 13:47:01 +01:00
Ray San
9318dc98ce
Support case-insensitive extension check
2018-03-16 13:09:49 +01:00
Ray
487bc613fd
Updated raylib dev version
2018-03-15 12:37:52 +01:00
Ray
9d8f15c19d
Reviewed raymath changes
2018-03-15 12:37:23 +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
Ray
8bc2813b0c
Merge pull request #500 from victorfisac/fork/master
...
[fork/master] Fixed some memory leaks and add null checks for consistency
2018-03-11 10:51:15 +01:00
raysan5
a0127d8300
Corrected typo
2018-03-11 10:49:51 +01:00
raysan5
fd5e457bb4
Correct issue with triangleCount
2018-03-11 10:41:49 +01:00
victorfisac
d6fee9da29
Fixed compilation code comment in header
2018-03-10 19:30:25 +01:00
victorfisac
3201bad65a
Fixed memory leaks in physics step operations
2018-03-10 19:25:17 +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
raysan5
85850a955a
Removed additional code
...
GLFW has been updated to latest version, probably this code is not
required any more due to already been integrated into library... but it
needs to be tested...
2018-03-03 16:01:24 +01:00
raysan5
3b4a64f2d6
Updated GLFW library to latest version
2018-03-03 15:58:44 +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
Ray
a7207dc6d4
Removed tangents generation
...
It has no sense to be inside LoadOBJ(), mesh processing moved to own functions: MeshTangents() and MeshBinormals(). Not exposed to user yet.
2018-02-26 12:02:05 +01:00
Ahmad Fatoum
3f48ffb1b6
Fix two memory leaks in jar_xm.h
...
Found by LeakSanitizer in #494 .
2018-02-26 00:14:19 +01:00
RDR8
18f61948ce
Update Makefile
...
$ make clean
Makefile:296: *** missing separator. Stop.
2018-02-25 22:27:32 +01:00
Ahmad Fatoum
80bf636f81
Don't exceed signed int range when shifting left
...
Fixes UB in #489 , found by UBSan.
2018-02-25 03:17:57 +01:00
Ahmad Fatoum
76aca9b0d1
Fix possible buffer overflow in LoadBMFont
...
Width specifier doesn't include NUL terminator.
Fixes #487 found by AddressSanitizer.
2018-02-25 03:03:37 +01:00
Ahmad Fatoum
1430d01906
jar_xm: Workaround for unaligned pointer accesses
...
jar_xm.h does some shady pointer casts leading to unaligned accesses
and breaking strict aliasing. x86 has special circuitry for doing
unaligned accesses, but on other architectures, it may trap and require
kernel fix-up or crash outright. With this patch, one obstacle in
porting raylib to the GameBoy Advance has been removed. Go for it ;-)
To avoid having to rewrite that `mempool' code, insert padding before
structs and instruct the compiler (GCC, most importantly), to be gentle
when optimizing.
This fixes #490 (Unless we got ourselves 256-bit pointers, if so,
hello future!)
2018-02-24 23:59:56 +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
RDR8
2b5fc12036
Update Makefiles. Enable example usage of staged libraylib.so.
2018-02-24 14:24:55 -06: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
c9043b5a87
CMake: Add options to use -fsanitize={address,undefined}
...
To make bugs like #485 , #486 , #487 and #488 easier to find in future.
2018-02-24 15:37:38 +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
Ray
6d64327a87
Reviewed unloading model data
...
When UnloadModel() --> UnloadMaterial(), avoid unloading default shader (if used) and avoid unlaoding default texture (if used), that data is managed by raylib internally. The question is... should UnloadModel() also UnloadMaterial()?
2018-02-22 12:39:17 +01:00
Ray
cd5e2e0f17
Corrected cursor issue for Wayland
2018-02-22 00:01:13 +01:00
Ray
326fe09777
Reviewed compilation for OpenGL 1.1
2018-02-21 23:47:48 +01:00
Ray
97bf2706c4
Removed flag -fgnu89-inline
2018-02-21 23:28:34 +01:00
Ray
11612fce27
Reviewed timming system for macOS
...
Apparently, before macOS Sierra version, clock_gettime was not available, using MATCH timming system instead
2018-02-20 10:30:51 +01:00
raysan5
0958904eac
Added comments to review function ImageTextEx()
2018-02-18 19:29:13 +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
Ahmad Fatoum
051040af2d
CMake: Remove _RAYLIB suffix from -D{SHARED,STATIC}_RAYLIB
...
They were named so for compatibility with make, but make doesn't use
the anymore. I always forget whether it's SHARED_RAYLIB or
RAYLIB_SHARED...
For now, RAYLIB_SHARED and STATIC_RAYLIB may still be used,
but print a deprecation warning.
2018-02-16 05:58:18 +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
8af5f9dfe0
Avoid rendering SPACE character!
2018-02-12 11:25:00 +01:00
RDR8
f742f1289d
Update Makefile
2018-02-12 05:17:02 +00:00
RDR8
5616314069
Update Makefile
2018-02-12 00:15:58 +00:00
RDR8
4c4b564392
Update Makefiles for Linux installation. See prior commit.
...
These changes are intended to provide context and control over the Linux make install process. make install RAYLIB_LIBTYPE=SHARED now works as expected. libraylib.so is properly installed with attendant runtime links. The examples will be running against the newly installed libraylib.so unless otherwise specified with RAYLIB_RUNTIME_PATH. See raylib/src/Makefile and raylib/examples/Makefile for usage of RAYLIB_INSTALL_PATH, RAYLIB_H_INSTALL_PATH, and RAYLIB_RUNTIME_PATH variables. RAYLIB_RUNTIME_PATH in particular is interesting for portability since sudo isn't needed.
The default configuration and workflow is essentially unchanged and unaffected.
2018-02-11 23:42:22 +00:00
RDR8
e86b4d4e03
Update Makefiles for Linux installation.
2018-02-11 22:58:15 +00:00
Ahmad Fatoum
1be72a2e72
pkg-config: Empty Requires.private on shared-only build
...
If user doesn't build the static library,
`pkg-config --static --libs raylib` should be equivalent to
`pkg-config --libs raylib`.
2018-02-11 20:10:50 +01:00
Ahmad Fatoum
09b022305f
mini_al: Support {Net,Open}BSD OSS
...
Fixes this build failure:
http://www.cpantesters.org/cpan/report/a069fade-0e1f-11e8-a1cf-bb670eaac09d
2018-02-11 12:20:17 +01:00
Ray
d90a33b850
Some reviews for Android compilation
2018-02-11 01:48:53 +01:00
Ray
231a69417a
Corrected masteVolume setting
2018-02-11 01:28:30 +01:00
Ray
7bf6becc94
Reviewed mini_al implementation
...
- Some functions renamed
- Comments reviewed
- Functions reorganized
2018-02-11 01:12:16 +01:00
Ahmad Fatoum
468309d06c
Early-exit InitWindow if InitGraphicsDevice fails
...
Otherwise we may run into LoadDefaultFont and crash in rlLoadTexture
Also moves InitTimer() before InitGraphicsDevice(), to allow it to be
tested even if InitWindow ultimately fails.
2018-02-09 22:54:35 +01:00
Ray
f72b315cb6
Updated external libraries
2018-02-09 00:01:00 +01:00
Ahmad Fatoum
a976e76ae6
InitWindow: return false if no monitor found
...
Otherwise we run into an assertion failure inside GLFW's glfwGetVideoMode.
Example:
http://www.cpantesters.org/cpan/report/b4ba5894-0bdb-11e8-841e-2c60b04e1d2d
This is related to #456 .
2018-02-08 12:06:21 +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
5437458469
Merge branch 'develop' of https://github.com/raysan5/raylib into develop
2018-02-04 13:46:45 +01:00
raysan5
3a11cc5e31
Incremeted version to align with CMake
2018-02-04 13:44:41 +01:00
Ahmad Fatoum
19f280f4b7
Bump version to 1.9.4
2018-02-04 13:36:08 +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
c32ed921a2
Security check in case window initialization fails
2018-02-04 12:31:16 +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
Ahmad Fatoum
44cd4faf83
exit(3), don't crash, when glfwCreateWindow fails
...
glfwSetWindowPos was called on a NULL window, triggering an assert
inside GLFW. Check for failure and exit cleanly by means of
TraceLog(LOG_ERROR instead.
2018-02-03 14:46:26 +01:00
Ahmad Fatoum
7f5fa4d49c
CMake: Add tristate option for using system GLFW ( #455 )
...
-DWITH_SYSTEM_GLFW=ON: Link against system glfw and fail otherwise
-DWITH_SYSTEM_GLFW=OFF: Use embedded rglfw.c
-DWITH_SYSTEM_GLFW=IF_POSSIBLE: Probe for system glfw but fallback to
rglfw if unavailable
Also change Linux 64-bit CI build to install system glfw and use it,
so this doesn't bitrot.
Addresses #453 .
2018-02-03 10:17:51 +01:00
Ahmad Fatoum
007ae1b7b3
CMake: Fix typo in MACOS_FATLIB
2018-02-03 09:38:57 +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
1ce8c80de9
Corrected several issues...
2018-01-28 16:52:18 +01:00
Ahmad Fatoum
f955b2255d
GLFW: Fix build error on Linux < v2.6.39
...
Cherry-pick from upstream glfw/glfw#1196
Found in CPANtesters test of Alien::raylib:
http://www.cpantesters.org/cpan/report/d956d128-0339-11e8-b0d1-b6c4abd39192
2018-01-27 14:53:04 +01:00
Ahmad Fatoum
7f7aac643a
CMake: Search dependencies and build pkg-config's Libs.private with it
2018-01-27 01:57:21 +01:00
Ahmad Fatoum
1093766669
CMake: remove OpenAL dependency
2018-01-27 01:05:17 +01:00
Ray
1d5fbef93d
Clear fbo for drawing
...
Just in case ClearBackground() is not used after BeginTextureMode(), it clears fbo to color defined by previous ClearBackground()
2018-01-26 11:49:00 +01:00
Ahmad Fatoum
520f317a75
#include header for time() on Windows
2018-01-25 23:12:03 +01:00
Ahmad Fatoum
03ee03e2a6
#include header for glInsertEventMarkerEXT on macOS
2018-01-25 23:00:07 +01:00
Ahmad Fatoum
8be93762d9
Make function calls without prior declaration an error
...
which is the default behavior on C99 and up.
2018-01-25 22:34:29 +01:00
Ray
c2ec88f930
Support DEBUG library building
2018-01-25 10:07:51 +01:00
Ray
2dcaddc81c
Review mipmaps generation issue
...
When changing image format, mipmaps are lost and regenerated from
scratch
2018-01-23 13:23:34 +01:00
Ray
04af83ff99
Improved pixel formats support
...
Review rlLoadTexture() function to make it simpler, now OpenGL texture
glInternalFormat, glFormat and glType are retrieved with new function
GetGlFormats()
2018-01-22 00:20:42 +01:00
Ray
8e0a277f7c
Reviewed UWP branch integration
2018-01-19 12:02:15 +01:00
Ray
750323da53
Merge branch 'develop' into testing_uwp
2018-01-19 11:41:51 +01:00
Ahmad Fatoum
30ef3f3122
GCC/Clang: Treat void pointer arithmetic as error
...
As an extension, GNU C treats sizeof(void) as 1. MSVC doesn't.
Make it an error on GCC/Clang to avoid accidental MSVC breakage.
2018-01-18 13:22:41 +01:00
Ahmad Fatoum
a2edc9d641
MSVC: Fix void pointer arithmetic error
...
GNU C allows it as a compiler extension, but MSVC doesn't.
2018-01-18 13:20:13 +01:00
Ray
ce9f191f1b
Added function: ImageMipmaps()
2018-01-18 00:23:45 +01:00
Ray
727cb1819b
Reviewed VS2015 projects
...
- Support OpenGL 1.1 if selected macro
- Corrected MSVC compiler issues with (void *) data
- Removed raylib.dll project
- Created DEBUG_DLL and RELEASE_DLL configurations
2018-01-17 14:21:23 +01:00
Ray
c8e97df233
Reviewed function GenImagePerlinNoise()
...
Added support for noise image offset
2018-01-17 00:43:30 +01:00
Ray
dd3b3dbadb
Redesigned rlLoadTexture()
...
- Added support for mipmap levels loading
- Removed internal function LoadTextureCompressed(), not required any
more...
2018-01-16 00:00:05 +01:00
-
230e78a23e
Code tweak while using OpenAL backend
2018-01-15 13:54:25 +01:00
-
f2a675ae53
Reviewed Makefiles...
...
- Renamed VERSION to RAYLIB_VERSION
- Renamed API_VERSION to RAYLIB_API_VERSION
- Renamed RAYLIB_RELEASE to RAYLIB_RELEASE_PATH
- Support Web Assembly compilation on PLATFORM_WEB
2018-01-15 13:54:06 +01:00
Ray
278d8575bd
Added new function: ImageAlphaCrop()
2018-01-11 10:22:32 +01:00
Ray
c37d2d448d
Corrected issue with matrices
...
Matrix stack system should be reviewed but, in the meantime,
currentMatrix should be reseted in order of 3d to work
2018-01-08 01:03:04 +01:00
Ray
fcb0cae605
Use busy wait loop
...
If not using busy wait loop, linkage with WINMM in Windows platform is
required
2018-01-07 23:55:23 +01:00
Ray
4dcc02ff1e
Launch draw call if buffer limits reached
...
Note that this solution is a temporal patch, not properly tested and
prone to fail, specially if matrix are pushed into the stack...
2018-01-07 23:54:11 +01:00
raysan5
e4be917d1b
Added new image functions
...
- Added: ImageAlphaClear()
- Added: ImageAlphaPremultiply()
- Reorganized some functions
2018-01-07 00:51:26 +01:00
raysan5
b97134c3e1
Review float pixel format textures support
2018-01-06 18:17:38 +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
0e48396369
Corrected issue with new functionality
...
Using default font texture as base white texture for rectangles reduces
draw calls considerably, actually, raygui can be drawn with a single
pass!
2018-01-06 02:44:47 +01:00
raysan5
b760f16f9b
Reviewed framebuffers cleaning
...
Issues when dealing with FBOs
2018-01-06 02:43:38 +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
e69424c86f
Reviewed text input
2017-12-31 23:50:22 +01:00
raysan5
e7cf03b1e4
Minor tweaks
2017-12-28 19:27:02 +01:00
raysan5
7965f983ba
Support Wayland display on Linux desktop
2017-12-28 18:14:39 +01:00
raysan5
b19e155b34
Support UNCOMPRESSED_R32G32B32A32 texture format
2017-12-28 17:58:37 +01:00
raysan5
c93bca8c27
Review Makefile config flags
...
Support external GLFW usage
Renamed some flags for consistency
2017-12-28 17:58:09 +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
raysan5
e574428343
Some formatting tweaks
2017-12-24 16:12:52 +01:00
raysan5
f44dbf21cf
Review physac timming system
2017-12-24 15:59:03 +01:00
Martinfx
9b7a24331d
Added next bsd os
2017-12-23 18:12:19 +01:00
Ray San
00c34a035c
Updated copyright year
2017-12-20 12:37:08 +01:00
Ray San
27c274bc3c
Corrected issue with SaveImageAs()
...
That function depends on SavePNG() and forces platform check on textures
module, that behaviour should be changed, platform definition should be
only required on core module...
2017-12-20 12:36:47 +01:00
Ray San
e8bb53ed35
Corrected issue on OpenGL ES compilation
2017-12-20 12:35:12 +01:00
Ray San
61afd07bd7
Force OpenAL backend on some platforms
...
OpenAL audio backend is being forced on HTML5 and OSX
2017-12-20 12:34:18 +01:00
Ray San
1320044e94
Review code formatting
2017-12-20 11:37:43 +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
bc6ae93a48
Added some comments on GetTime()
...
Reviewing GetTime() functionality
2017-12-18 00:06:57 +01:00
Ray San
b155333178
Support audio module skip on compiling
...
Some programs like tools could not require audio support
2017-12-15 17:02:29 +01:00
Ray San
e17a9a8216
Updated mini_al to latest version
2017-12-15 17:01:50 +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
217917530b
fix for eventmarker missed in first cl
2017-12-14 11:51:17 +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
user
d51f382ef8
optimized matrixrotate function by removing identity matrix
2017-12-14 11:48:33 +01:00
user
b5395b22cc
make raymath compiling with msvc in c++ mode
2017-12-14 11:47:52 +01:00
user
07b522c113
make matrix stack work closer to old opengl implementation
2017-12-14 11:46:38 +01:00
user
a7f2fedbfb
compilefix for function declaration (win only)
2017-12-14 11:45:47 +01:00
user
0e18b14605
added debug-event-markers for opengl so that you're able to set markers for renderdoc or other gpu debuggers what your program is currently doing
2017-12-14 11:44:48 +01:00
user
963551ee6e
added possibility to get modelview matrix from rlgl to be able to send it to shaders
2017-12-14 11:43:06 +01:00
user
69c8fa409a
fixed function declaration differ from implementation
2017-12-14 11:42:06 +01:00
user
54587d7fdb
proper if-clauses for disabling functionality in text.c
2017-12-14 11:41:31 +01:00
user
08fc886afd
added proper define checks for png-save if it's disabled
2017-12-14 11:40:08 +01:00
Ray
2388cbc3cd
Corrected crash on shader loading
...
If shader file could not be found on loading it crashed, instead added
fallback to default shader!
2017-12-13 20:10:13 +01:00
Ray
a6f9cc5629
Remove rres support
...
Let the user choose if using rres external library
2017-12-11 11:55:02 +01:00
Ahmad Fatoum
4a7840b752
Remove Meson build system
...
Less maintenance overhead that way,
given that make/CMake now also do library versioning.
2017-12-11 11:15:14 +01:00
Ahmad Fatoum
d24b89bb0e
Add library versioning to Make/CMake build systems
...
See #401 for the discussion.
Also bumps version number to 1.9.2 without the -dev,
because neither ELF nor MachO like such a suffix.
The -dev suffix will have to be restricted to the git tags.
2017-12-11 10:25:06 +01:00
Ahmad Fatoum
de78fa69bc
Fix CI builds after mini_al changes
2017-12-10 21:35:38 +01:00
Ahmad Fatoum
203b2f65d1
Fix typo in preprocessor macro
2017-12-10 21:11:04 +01:00
raysan5
5ae2c0d15b
Added Wayland support
...
Updated to latest GLFW library and working on Wayland support, still
looking how to implement it on raylib because it just exposes
PLATFORM_DESKTOP and defaults to X11 windowing system on Linux...
2017-12-09 19:05:42 +01:00
Ray San
3b5a26099e
Removed OpenAL Soft dependency on building
...
OpenAL Soft backend is still available in audio module, I'm thinking if
exposing it for building in some way or just left it there for advance
users to switch to it manually in case of necessity...
2017-12-05 14:01:35 +01:00
Ray San
33eec31575
Updated external libraries dependencies
...
Added dr_wav for a future use
2017-12-05 13:23:04 +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
David Reid
104391f82b
Update mini_al.
2017-12-05 18:49:00 +10: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
Ray San
0cd327ccb2
Moved QuaternionNlerp() function
2017-12-04 11:03:45 +01:00
David Reid
82f88e5df9
Potential fixes for Raspberry Pi.
2017-12-03 11:20:02 +10:00
Ray San
25a232a6f3
Merge branch 'develop' of https://github.com/raysan5/raylib into develop
2017-11-30 16:59:13 +01:00
Ray San
9a7524661f
Removed GLFW3 linking and added rglfw
2017-11-30 16:59:09 +01:00
Martinfx
825d15b069
Fixed broken include for AppVeyor
2017-11-29 17:06:40 +01:00
Martinfx
69a1c19735
Fixed use ${LIBS_PRIVATE} for FreeBSD
2017-11-29 13:17:02 +01:00
Martinfx
2f471414c2
Added compile with cmake for FreeBSD
2017-11-29 00:05:39 +01:00
Martinfx
2cf37708c0
Added glfw support for FreeBSD
2017-11-29 00:04:29 +01:00
Ray San
c9722161d1
Support GetCurrentTime() on macOS
2017-11-27 12:46:40 +01:00
Ahmad Fatoum
f991a075e1
Build examples and games on Travis CI
...
They were disabled because they failed to build,
but this patch set fixes the build on Linux and macOS.
This doesn't apply to the AppVeyor build on Windows yet;
it currently fails at linking with OpenAL.
2017-11-25 21:45:31 +01:00
raysan5
853cc6f4c9
Added authorization token
2017-11-25 19:40:05 +01:00
Ahmad Fatoum
49c5a433df
Setup CMake package target and CI auto-deploy tags
...
cmake --build . --target package # or make package if make is used
can now be used to create binary packages for raylib.
AppVeyor and Travis CI are configured to push the artifacts
that result from building git tags to the related Github releases page.
2017-11-24 21:24:35 +01:00
Ahmad Fatoum
44376c04fa
Generate and install pkg-config pc file
...
After installation, compiling new programs is possible with
$ cc game.c `pkg-config --static --libs --cflags raylib`
or
$ cc game.c `pkg-config --libs --cflags raylib`
depending on configuration
Also adds following configuration options:
- WITH_PIC "Compile static library as position-independent code"
- STATIC_RAYLIB "Build raylib as a static library"
- MACOS_FATLIB "Build fat library for both i386 and x86_64 on macOS"
2017-11-24 17:15:33 +01:00
David Reid
a0d9913c7c
Potential fixes for audio on RPI and Emscripten builds.
2017-11-24 22:13:33 +10:00
David Reid
5463e14886
Audio: Fix a bug with AudioStreams.
...
This bug is a result of the buffer of an AudioStream being smaller than
that of a period of the backend playback device. In this situation,
AudioStream's would have pauses between buffer updates because the
backend is not able to re-fill the AudioStream buffer's quick enough
due to it's periods being longer than the AudioStream buffer.
2017-11-24 21:54:00 +10:00
Ahmad Fatoum
17c91bad6f
Disable CRT "secure" warnings
...
Suppresses 88 of the 213 warnings reported when compiling with
MSVC 2015 on AppVeyor.
2017-11-23 07:56:02 +01:00
Ahmad Fatoum
1e1b20c889
Add AppVeyor CI for automatic Windows Builds
...
We already have automatic Linux and macOS build via Travis CI.
This adds the same for Windows x86 and x86_64 with both
Microsoft Visual Studio 2015 as well as MinGW-w64.
2017-11-23 00:47:58 +01:00
Ahmad Fatoum
b2acff66de
Fix macOS build of new rglfw.c approach
...
There have been two problems:
* GLFW itself was compiled with the definitions for compiling
_against_ GLFW (fixed by removing requirement for external glfw)
* rglfw.c was being compiled as C code, although it includes
Objective C files.
This _might_ break the Windows build, needs to be checked.
Fixes #391 , but as noted I'd prefer though a separate source directory
and build script for GLFW.
2017-11-22 23:11:41 +01:00
Ahmad Fatoum
899e1fbd94
Avoid duplicate definition of feature macro
...
Feature macros need to be defined before #including any headers,
preferably through the build system, but this is good enough.
Fixes a compile error on my fork's Travis CI.
2017-11-22 22:58:18 +01:00
Ray San
1be826fb16
Removed useless file
2017-11-22 17:30:09 +01:00
Ray
25ceec9b8f
Corrected default textures locations
...
By default, we look for texture1 for LOC_MAP_SPECULAR and texture2 for
LOC_MAP_NORMAL
2017-11-22 14:56:45 +01:00
David Reid
8b3694a34d
Fix a crash in audio mixing code.
2017-11-22 18:36:48 +10:00
David Reid
c71b01c8ac
Update mini_al with fixes for OpenSL and SDL backends.
2017-11-21 06:35:38 +10:00
David Reid
14b889be41
Update mini_al with a potential fix for HTML5.
2017-11-20 21:47:07 +10:00
David Reid
3238cba47c
Log the name of the playback device.
2017-11-19 19:38:23 +10:00
David Reid
49e945f958
Update mini_al with fixes and improvements for Emscripten.
2017-11-19 12:15:01 +10:00
David Reid
84ef860443
Update mini_al with experimental support for SDL/Emscripten.
2017-11-18 22:30:20 +10:00
David Reid
f9144ac5b0
Rename a variable for consistency.
2017-11-18 12:15:48 +10:00
David Reid
3be83dac7e
Update mini_al.
2017-11-18 11:51:51 +10:00
David Reid
b9bb80d004
Add some logging and update mini_al.
2017-11-18 10:27:44 +10:00
David Reid
60d7215b2a
mini_al: Unify the buffer system for Sounds and AudioStreams.
2017-11-18 08:42:14 +10:00
Ray San
6d317c7afe
Remove glfw3 dependency
...
Full sources already included and compiled with raylib (rglfw)
2017-11-17 18:43:39 +01:00
Ray San
e2e4b8df28
Remove unneeded glfw dependencies
...
Only required by examples
2017-11-17 18:42:39 +01:00
Ray San
a6877c82c6
Added alternative license to rgif.h library
...
Just in case of legal conflict with public domain software, added MIT
alternative license.
2017-11-17 18:30:19 +01:00
David Reid
261b00e9e8
Update mini_al.
2017-11-17 21:12:05 +10:00
Ray San
a6416f82a7
Reviewed file comments
2017-11-16 17:59:35 +01:00
David Reid
96be62e88b
Update mini_al.h
2017-11-16 21:49:45 +10:00
David Reid
e03afbf2fa
Add support for pitch shifting.
...
This commit should bring the mini_al backend up to feature parity with
the OpenAL backend.
2017-11-15 22:04:23 +10:00
David Reid
322d868841
Fix minor errors with the OpenAL backend.
2017-11-14 21:44:57 +10:00
David Reid
88d2810fa3
Bug fixes for Music with mini_al.
2017-11-14 21:15:50 +10:00
Ray
68024f1b0b
Added desktop platform check...
...
...to define proper values
2017-11-13 21:37:00 +01:00
David Reid
3a96a66fdf
Bring up to date with changes to mini_al.
2017-11-13 21:46:29 +10:00
Ray San
9c65caea8c
Added GLFW sources to raylib
...
Compiling GLFW library with raylib avoids external dependencies, this
way we solve version problems in some platforms
2017-11-13 12:09:41 +01:00
David Reid
e52f4282d6
Update comments.
2017-11-12 22:57:31 +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
raysan5
09228752ce
Review default shaders usage on loading
2017-11-12 10:33:44 +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
Ray San
b6b58991e6
Working on UWP support
...
Support Universal Windows Platform (UWP):
- Windows 10 App
- Windows Phone
- Xbox One
2017-11-10 12:37:53 +01:00
Wilhem Barbier
7ef604fbf5
Store the default shaders
2017-11-09 20:47:22 +01:00
Ray San
37986b26cb
Corrected issue with text drawing on image
2017-11-06 14:13:50 +01:00
Ray San
2f024dbfef
Corrected possible issue on FBO creation
...
USE_DEPTH_RENDERBUFFER on OpenGL 2.1
2017-11-06 13:58:11 +01:00
Ray San
81518ccd13
Corrected issue with shader locations init
...
On RPI, after latest drivers update, models were not rendered properly
cause of that...
2017-11-06 13:41:13 +01:00
Wilhem Barbier
879c2f484b
SetShaderValue take const pointer
2017-11-05 21:57:29 +01:00
Ray
aa6a1b4283
Corrected issue with missing defines
2017-11-05 09:58:25 +01:00
Ray
d43af4918b
Improve textures support for OpenGL 2.1
2017-11-04 16:57:46 +01:00
Ray
9e0105a1a3
Corrected function name
2017-11-04 16:57:20 +01:00
Ray San
244007a99b
Review Fade() functionality
2017-11-03 12:41:03 +01:00
Ray San
3c3d56bb4a
Renamed data types to standard names
2017-11-03 12:40:46 +01:00
Ray San
3d755d617a
Some code tweaks...
2017-11-02 20:08:52 +01:00
Ray San
415e7e972c
Review some issues, view description
...
- Review RPI compilation (core_drop_files not supported)
- Review ImageFormat(), some issues
- GetTextureData() reviewed for RPI
2017-10-30 13:51:46 +01:00
Ray
743cc6add6
Review new build platform: FreeBSD
...
Corrected issue with RPI_CROSS_COMPILE
2017-10-30 00:14:13 +01:00
Ray
52cd0395b4
Merge pull request #373 from Martinfx/master
...
Added support FreeBSD
2017-10-28 22:22:04 +02:00
Martinfx
47c7f3624f
Added support FreeBSD for example
2017-10-28 18:41:29 +02:00
Martinfx
b3110c14fe
Added support FreeBSD
2017-10-28 17:30:02 +02:00
Ray San
ab01cd45bc
Review rlReadTexturePixels()
...
Improve second option to retrieve texture data from fbo...
Still requires some testing...
2017-10-25 12:46:26 +02:00
Ray San
31c8c86d8e
Comment tweak...
...
...while reviewing GetTextureData() functionality on OpenGL ES 2.0
2017-10-25 12:33:44 +02: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
cbe0dcedfe
Corrected issue with ttf font y-offset
2017-10-25 00:30:58 +02:00
Ray
ad31730b6a
Added cross-compiler RPI libs
2017-10-22 20:00:38 +02:00
Ray
368b0320c6
Added resource config file
2017-10-22 11:07:17 +02:00
Ray San
df67e799dd
Updated release versions for raylib 1.8
2017-10-20 17:14:58 +02:00
Ray San
86df9168e7
Updated raylib VS2015 project
2017-10-19 14:14:18 +02:00
Ray San
1474172b4a
Updated for raylib 1.8
2017-10-19 13:25:51 +02:00
Ray San
7057d08369
Review VR functionality
...
To be more generic and configurable
2017-10-17 13:32:15 +02:00
Ray San
a6ccc14d39
Corrected issue with OpenAL Soft static
2017-10-16 13:37:10 +02:00
raysan5
4909f9711c
Small tweak, remove tabs
2017-10-14 12:25:36 +02:00
raysan5
5430d5d52e
Review Makefiles
2017-10-14 00:13:23 +02:00
Ahmad Fatoum
107294f3e6
Fix bug, add some whitespace
2017-10-13 13:55:01 +02:00
Ahmad Fatoum
cd6d752217
Fix warning about unsequenced modification of variable
...
Variable t was read and modified without interleaving sequence points,
technically undefined behavior. Report by Clang's -Wunsequenced
2017-10-12 19:51:21 +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
7114c1b1f3
Updated compilation output paths
2017-10-11 13:28:38 +02:00
Ray San
d302316e51
Reorganize release and dependencies
2017-10-11 11:22:49 +02:00
Ray San
9000fc28a3
Keep working on Android shared libs...
2017-10-04 12:51:53 +02:00
Ray San
412c52499a
Reverted change that breaks 3D drawing
...
It should be reviewed more carefully...
2017-10-04 12:13:32 +02:00
Ray San
ddea9d68bf
Review VR simulator
...
Requires some work, distortion shader could be move out of raylib to
example code...
2017-10-04 12:11:40 +02:00
Ray San
ca0ff82046
Keep working on Makefiles...
2017-10-03 15:02:32 +02:00
Ray San
b2789949ee
Working on Makefiles...
2017-10-02 14:12:03 +02:00
Ray San
1288d6a5df
Updated android_native_app_glue
2017-10-02 13:06:34 +02:00
Ray San
ea0decece8
Updated OpenAL Soft headers
2017-10-02 13:06:19 +02:00
Ray San
144b0ed695
Renamed gif writting library
2017-10-02 13:06:04 +02:00
Ray
4f9de9527f
Review gradient rectangle drawing
...
Added: DrawRectangleGradientV()
Added: DrawRectangleGradientH()
2017-09-30 00:46:31 +02:00
Ray
1c7416910e
Default to OpenAL static lib
2017-09-29 23:44:31 +02:00
Ray San
ccd6271a7f
Added some compiler flags for Android
2017-09-29 13:57:00 +02:00
Ray San
c45eeb8024
Code tweaks and comments for Android
2017-09-29 13:56:37 +02:00
Ray
2068037417
Code tweak
2017-09-26 00:51:31 +02:00
Michael Vetter
4a406fa94b
Increment version in meson build file
...
Increment raylib version and so lib version number.
2017-09-25 12:15:48 +02:00
raysan5
b0f033b43a
Some work on rres...
2017-09-23 19:30:42 +02:00
Ray
4a8644e999
Update Android libs and building
2017-09-23 18:40:30 +02:00
Ray
ff9b486ebe
Removed matrix resetting...
...
to emulate OpenGL funcionality
2017-09-22 13:53:29 +02:00
raysan5
20968830c0
Added mesh generation functions
2017-09-18 00:59:22 +02:00
Ray
1d91a46008
Corrected out-of-bounds array issue
2017-09-13 22:23:24 +02:00
raysan5
f3f6d3fd8e
Added new functions
...
SetWindowTitle()
GetExtension()
2017-09-08 09:35:54 +02:00
Ray
fb334e2fd1
Testing shapes generation using additional library
2017-09-02 17:42:22 +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
ASDF
e173db19f7
CMake based build system.
...
Some people might find this handly
2017-08-27 13:28:02 -04:00
raysan5
0fc1323c80
Renamed modelviewprojection matrix
2017-08-25 01:43:55 +02:00
raysan5
b0adac96b7
Review issue with mipmaps setup
...
On DDS files mipmapCount header parameter could be unused and set to 0,
resulting in a wrong mipmap count and wrong compressed texture loading.
2017-08-24 20:33:30 +02:00
Michael Campagnaro
18bf0ac044
Fix typo in raymath.h
2017-08-23 22:55:43 -04:00
raysan5
88839b093c
Added function DrawRectangleT()
...
Usefult to draw rectangles using default font texture
2017-08-06 10:44:50 +02:00
raysan5
0169b72bdc
Minor tweaks
2017-08-06 10:43:43 +02:00
raysan5
6369b47f11
Force OpenGL 3.3 on OSX if selected OpenGL 2.1
2017-08-04 19:18:55 +02:00
raysan5
eeca607506
Review transforms to match OpenGL 1.1
2017-08-04 18:34:51 +02:00
raysan5
2ec8880197
Updated stb libs to latest version
2017-08-04 12:58:39 +02:00
Benjamin Summerton
71d9426565
Make physac work on OS X
...
Physac wasn't working on OS X. It looks like the necessary timing code wasn't being compiled in by the preprocessor.
fixes #340
2017-07-30 23:56:58 -04:00
Ray
d071418cba
Added Vector3MultiplyV()
...
To multiply Vector3 by Vector3
2017-07-28 20:58:38 +02:00
Ray
2a263f7b5f
Corrected compilation on OpenGL ES 2.0
2017-07-28 19:59:04 +02:00
raysan5
c764b3d03e
Some tweaks
2017-07-25 18:10:07 +02:00
raysan5
b2712b6db7
Corrected issue on QuaternionFromVector3ToVector3()
2017-07-23 17:29:51 +02:00
raysan5
f57367e786
Implemented some changes
2017-07-23 13:20:35 +02:00
raysan5
a766e2c480
Updated Vector math to new naming
2017-07-22 22:15:50 +02:00
raysan5
3655c6e466
Renamed Vector*() functions to Vector3*()
...
For consistency!
2017-07-22 22:13:26 +02:00
raysan5
2227742e96
Corrected bug on texture rotation
2017-07-22 18:10:34 +02:00
raysan5
cbb134946c
Corrected GetMouseRay() and rlUnproject()
...
Now it works great with reviewed maths
2017-07-22 11:02:40 +02:00
raysan5
c756227e11
Remove BOM from file encoding
2017-07-22 10:44:24 +02:00
raysan5
00d2768bc9
Corrected bug on MatrixPerspective()
...
Some other tweaks...
2017-07-22 10:35:49 +02:00
raysan5
c6cd07c373
Some tweaks raymath related
2017-07-21 17:46:44 +02:00
raysan5
e52032f646
Complete review of raymath
...
Now it should be coherent with OpenGL math standards
2017-07-21 17:19:28 +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
980d9d4cd4
rlgl usable as standalone library
2017-07-21 10:42:57 +02:00
raysan5
84aff31973
MatrixPerspective() angle required in radians
...
Consistent with similar functions in raymath
2017-07-21 10:42:41 +02:00
raysan5
2679c4ae9b
Review mesh loading and textures generation
2017-07-21 09:34:09 +02:00
raysan5
63fd96354e
Simplify a bit GenTexture*() functions
...
Still shader dependant, locations set should be moved out
2017-07-20 14:27:59 +02:00
raysan5
4c06725461
Removed useless functions
...
SetMaterialTexture() and UnsetMaterialTexture()... too shader
dependant...
2017-07-20 14:27:17 +02:00
raysan5
52cd5c6324
Corrected some issues
...
Corrected compilation for OpenGL 1.1
Review mesh data uploading to GPU
2017-07-20 12:26:25 +02:00
raysan5
0dabb2708b
Reorganized a couple of functions
2017-07-19 19:53:53 +02:00
raysan5
76c6f0b1e6
Working on PBR system
...
Moved PBR material loading to example, right decision?
2017-07-19 18:55:32 +02:00
Ray
e8b65422c4
Merge pull request #329 from define-private-public/328.shared-library-on-os-x
...
Able to make a .dylib for OS X
2017-07-19 10:14:36 +02:00
raysan5
d368403a13
Working on PBR materials, renamed some data
2017-07-19 10:09:34 +02:00
Benjamin N. Summerton
ba32d6a753
Able to make a .dylib for OS X
2017-07-18 22:37:09 -04:00
Ray
8f569e59b1
Review shared library generation
2017-07-17 14:16:23 +02:00