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
Ray
6d922b3e1f
Renamed iconography
2018-02-10 23:29:40 +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
Ray
2ace360230
Merge pull request #462 from a3f/develop
...
InitWindow: return false if no monitor found
2018-02-08 12:24:51 +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
Ray
b908a4078a
Merge pull request #460 from raysan5/develop
...
Integrate develop branch
2018-02-04 13:47:42 +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
Ray
327aec9da4
Merge pull request #459 from a3f/develop
...
Bump version to 1.9.4
2018-02-04 13:44:20 +01:00
Ahmad Fatoum
19f280f4b7
Bump version to 1.9.4
2018-02-04 13:36:08 +01:00
Ahmad Fatoum
184df917be
Travis CI: Don't use external GLFW
...
While nice to test, this would mean that the tagged release will depend
on GLFW as well… Therefore disable it for now.
2018-02-04 13:35:18 +01:00
Ray
d50e291e86
Merge pull request #458 from raysan5/develop
...
Integrate develop branch into master
2018-02-04 12:51:24 +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
8f287e72d2
Merge branch 'develop' of https://github.com/raysan5/raylib into develop
2018-02-04 12:26:33 +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
cb66c89dfa
CMake: Rename WITH_SYSTEM_GLFW to USE_EXTERNAL_GLFW
...
for consistency with Makefile. Requested by @raysan5 in #453 .
2018-02-04 12:10:23 +01:00
Ray
e2861fa71f
Merge pull request #456 from a3f/develop
...
Return false from InitWindow if glfwInit or glfwCreateWindow fails -TO REVIEW AS DISCUSSED-
2018-02-04 11:55:18 +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
2b2b1f91ee
CMake: Fix typo in GLFW detection
...
Let it be noted I utterly dislike their syntax.
2018-02-03 13:30:59 +01:00
Ray
5bb23c6c06
Update README.md
2018-02-03 11:33:05 +01:00
Ray
7918c0bf71
Removed external dependencies
2018-02-03 11:31:54 +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
227880977e
Do not ignore Makefiles!
2018-01-29 14:01:06 +01:00
Ray
eb508bf75f
Upload GGJ18 game: transmission mission
...
Game developed in the GGJ18, it has some bugs and ending screen is
incomplete... I'll try to keep working a bit more on it.
2018-01-29 13:46:04 +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
2090ad8119
CMake: Add missing 0 to minimum version
...
Removed by mistake.
2018-01-27 02:00:40 +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
Ahmad Fatoum
d5bbcbc15f
Travis CI: Don't set CFLAGS=-m64 for macOS build
2018-01-27 01:05:17 +01:00
Ahmad Fatoum
1ab3c058f5
Drop libglew-dev as prereq for Travis build
...
Noted by @eserte in athreef/Alien-raylib#2 . Thanks!
2018-01-26 22:14:05 +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
Ray
779719f5dc
Merge pull request #440 from a3f/develop
...
Make function calls without prior declaration an error
2018-01-26 01:17:19 +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