raysan5
6dc2f979cc
Updated raylib version
Note that this version is under development and could be buggy on some
platforms...
hace 8 años
raysan5
c32ed921a2
Security check in case window initialization fails
hace 8 años
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()
hace 8 años
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.
hace 8 años
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.
hace 8 años
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 .
hace 8 años
Ahmad Fatoum
007ae1b7b3
CMake: Fix typo in MACOS_FATLIB
hace 8 años
Ray San
d1ef6869a9
Added function DrawRectangleLinesEx()
hace 8 años
Ray
58346414f7
Corrected typo
hace 8 años
Ray
44c95af463
Added missing keys definitions
hace 8 años
Ray
1ce8c80de9
Corrected several issues...
hace 8 años
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
hace 8 años
Ahmad Fatoum
7f7aac643a
CMake: Search dependencies and build pkg-config's Libs.private with it
hace 8 años
Ahmad Fatoum
1093766669
CMake: remove OpenAL dependency
hace 8 años
Ray
1d5fbef93d
Clear fbo for drawing
Just in case ClearBackground() is not used after BeginTextureMode(), it clears fbo to color defined by previous ClearBackground()
hace 8 años
Ahmad Fatoum
520f317a75
#include header for time() on Windows
hace 8 años
Ahmad Fatoum
03ee03e2a6
#include header for glInsertEventMarkerEXT on macOS
hace 8 años
Ahmad Fatoum
8be93762d9
Make function calls without prior declaration an error
which is the default behavior on C99 and up.
hace 8 años
Ray
c2ec88f930
Support DEBUG library building
hace 8 años
Ray
2dcaddc81c
Review mipmaps generation issue
When changing image format, mipmaps are lost and regenerated from
scratch
hace 8 años
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()
hace 8 años
Ray
8e0a277f7c
Reviewed UWP branch integration
hace 8 años
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.
hace 8 años
Ahmad Fatoum
a2edc9d641
MSVC: Fix void pointer arithmetic error
GNU C allows it as a compiler extension, but MSVC doesn't.
hace 8 años
Ray
ce9f191f1b
Added function: ImageMipmaps()
hace 8 años
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
hace 8 años
Ray
c8e97df233
Reviewed function GenImagePerlinNoise()
Added support for noise image offset
hace 8 años
Ray
dd3b3dbadb
Redesigned rlLoadTexture()
- Added support for mipmap levels loading
- Removed internal function LoadTextureCompressed(), not required any
more...
hace 8 años
-
230e78a23e
Code tweak while using OpenAL backend
hace 8 años
-
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
hace 8 años
Ray
278d8575bd
Added new function: ImageAlphaCrop()
hace 8 años
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
hace 8 años
Ray
fcb0cae605
Use busy wait loop
If not using busy wait loop, linkage with WINMM in Windows platform is
required
hace 8 años
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...
hace 8 años
raysan5
e4be917d1b
Added new image functions
- Added: ImageAlphaClear()
- Added: ImageAlphaPremultiply()
- Reorganized some functions
hace 8 años
raysan5
b97134c3e1
Review float pixel format textures support
hace 8 años
raysan5
7caa3201d5
Improved pixel formats support
- Renamed enum TextureFormat to PixelFormat for consistency
- Added support for pixel format UNCOMPRESSED_R32
- Using GetPixelDataSize() where required
hace 8 años
raysan5
1f0f8c33fa
Added function declaration
hace 8 años
raysan5
7fa2861160
Added function: GetPixelDataSize()
Just found I need that function...
hace 8 años
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!
hace 8 años
raysan5
b760f16f9b
Reviewed framebuffers cleaning
Issues when dealing with FBOs
hace 8 años
raysan5
1a82e1ab26
Added function GetFileName()
Review comments
hace 8 años
raysan5
e1baae0249
Removed function DrawRectangleT()
Functionality integrated in DrawRectangle() and selectable with config
flag USE_DEFAULT_FONT_TEXTURE
hace 8 años
raysan5
e69424c86f
Reviewed text input
hace 8 años
raysan5
e7cf03b1e4
Minor tweaks
hace 8 años
raysan5
7965f983ba
Support Wayland display on Linux desktop
hace 8 años
raysan5
b19e155b34
Support UNCOMPRESSED_R32G32B32A32 texture format
hace 8 años
raysan5
c93bca8c27
Review Makefile config flags
Support external GLFW usage
Renamed some flags for consistency
hace 8 años
raysan5
0bd06eec51
Renamed function to SetTraceLog()
I think is clearer this way...
hace 8 años
raysan5
e517d8fd16
Added function SetTraceLogTypes()
Trace log messages could be configured with this function to select wich
ones are shown
hace 8 años