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