raysan5
249708dbb8
Support externally provided library name
...
It can be useful in some cases qhen compiling for multiple architectures
2020-08-19 19:11:18 +02:00
raysan5
1e9de0f9ff
Review Android arch names to lowercase
2020-08-19 16:51:43 +02:00
raysan5
44dd1fc7f5
Trying to configure android_native_app_glue target compilation
2020-08-19 16:30:33 +02:00
raysan5
48f0dfa18e
Update Makefile
2020-08-19 16:25:51 +02:00
raysan5
ac0362d30e
Update Makefile
2020-08-19 16:17:27 +02:00
raysan5
34c8f4c39c
Update Makefile
2020-08-19 16:13:16 +02:00
raysan5
cc8626f6bb
Update Makefile
2020-08-19 15:47:36 +02:00
raysan5
1316183b3a
Trying to automate Android building...
2020-08-19 15:21:20 +02:00
raysan5
3416858d1c
Update Makefile
2020-08-19 14:04:53 +02:00
raysan5
0d05004468
Added resource file for DLL compilation info
2020-08-19 11:59:50 +02:00
raysan5
d98c471883
Add LDFLAGS when required
2020-08-19 11:25:13 +02:00
raysan5
05b3ca0a83
Update Makefile
2020-08-19 10:38:53 +02:00
raysan5
ab8ec9adad
Support multiple build architectures (x86, x64)
2020-08-17 23:23:42 +02:00
raysan5
090490389e
Improved Makefile clean on Windows
2020-08-17 22:41:26 +02:00
raysan5
921f0c02e2
Update Makefile
2020-08-17 22:27:22 +02:00
raysan5
2d0811d94c
Update Makefile
2020-08-17 20:38:06 +02:00
raysan5
c32ae480af
RENAMED: FormatText() -> TextFormat()
...
This function was renamed for consistency in raylib 3.0, just unified all examples to use TextFormat() instead of FormatText()
2020-08-16 11:28:15 +02:00
Ray
7b346dbbe1
Review issue with .fnt -> .png path #1351
...
When .fnt file is in the .exe path, image path was wrongly calculated
2020-08-15 11:32:23 +02:00
raysan5
ad1b3330b7
Support mulstiple WAV sampleSize for MusicStream #1340
...
24bit per sample is not supported internally and automatically converted 16bit
2020-08-11 19:08:07 +02:00
Ahmad Fatoum
6108ba89df
CMake: don't use raylib_static name for MinGW on Windows
...
There are no *.lib files that could overwrite each other when building
both static and shared versions of raylib at once. So just use the
normal library name without _static suffix.
2020-08-08 01:11:45 +02:00
raysan5
2c7dc70878
Reset close status for next frame #1339
2020-08-06 11:47:46 +02:00
Rfaile313
9e75f870bb
Update Makefile for web ( #1332 )
...
When you install emsdk out of the box, the directory is no longer `$(EMSDK_PATH)/python/33.7.4_64bit` but rather `$(EMSDK_PATH)/python/3.7.4-pywin32_64bit` noting the `3.7.4-pywin32_64bit` change on the last file.
Thus, without adjusting this in the raylib Makefile it will throw an error:
```
PS C:\raylib\raylib\src> make PLATFORM=PLATFORM_WEB -B emcc -c core.c -Wall -D_DEFAULT_SOURCE -Wno-missing-braces -Werror=pointer-arith -fno-strict-aliasing -std=gnu99 -Os -s USE_GLFW=3 -I. -Iexternal/glfw/include -Iexternal/glfw/deps/mingw -DPLATFORM_WEB -DGRAPHICS_API_OPENGL_ES2 '"python"' is not recognized as an internal or external command, operable program or batch file.
```
However, changing this line in the Makefile compiles raylib for web as expected
`"raylib library generated (libraylib.bc)!"`
2020-08-02 20:21:59 +02:00
raysan5
6e9e7bd6bc
LoadSound(): Use memory loading (WAV, OGG, MP3, FLAC) #1312
2020-07-31 12:13:04 +02:00
seanpringle
1d895616f7
rlCheckErrors ( #1321 )
...
* rlglCheckErrors
* rlglCheckErrors LOG_WARNING
* rename to rlCheckErrors; improve messages; revert core.c
2020-07-30 12:50:20 +02:00
raysan5
9c2ff464b0
Support pthreads on PLATFORM_WEB compilation
2020-07-28 20:36:10 +02:00
raysan5
20301d1e5d
Corrected issue with framebuffer size storage #1298
2020-07-28 11:44:45 +02:00
Ray
b5eb104b08
Consider empty title for window #1323
2020-07-24 18:20:37 +02:00
Ray
14d37464ad
DrawTriangleFan(): Add a comment about vertex order #1316
2020-07-22 11:12:04 +02:00
seanpringle
cebcdea80f
[wip] MeshNormalsSmooth() ( #1317 )
...
* MeshSmoothNormals() by average
* wrong comment
* spelling
* use correct function naming convention
2020-07-20 11:05:18 +02:00
raysan5
6ec847a93f
Find a better mechanism to avoid FBO on OpenGL 2.1 if required #1290
2020-07-17 19:41:38 +02:00
raysan5
feedf332a8
Issue with render size assignment on RPI/Android #1314
2020-07-17 18:39:31 +02:00
raysan5
642f42bb4f
Reviewed comment in LoadIQM() #1315
2020-07-17 18:22:09 +02:00
seanpringle
bdd253a66a
clamp ray hit y position to ground plane height ( #1311 )
2020-07-15 11:13:03 +02:00
Random
7760575d3f
fix emcc warning (-Wparentheses-equality) ( #1310 )
2020-07-14 21:25:21 +02:00
raysan5
dd5f448f25
Update Makefile Android
2020-07-14 19:09:58 +02:00
raysan5
0b52c57a24
Update Makefile emsdk paths
2020-07-14 19:07:51 +02:00
raysan5
d2d50bc60f
Update miniaudio to v0.10.14
2020-07-14 18:59:00 +02:00
seanpringle
a9d676a5fd
scale perspective top calc for near culing plane ( #1309 )
2020-07-14 10:36:22 +02:00
raysan5
bf429a0058
Remove conditional __EMSCRIPTEN__
...
Not required anymore
2020-07-13 18:57:46 +02:00
Random
4de362b405
Updated miniaudio to v0.10.13, fixes emscripten compilation error ( #1306 )
2020-07-13 18:56:17 +02:00
raysan5
0db0e6acd8
WARNING: REMOVED: LoadImageEx()
...
Reason for removal: This function forces a specific Image data format, it copies data internally (it could be confusing and lead to memory leaks), it's redundant, there is a simpler alternative and raylib promotes using structures directly
2020-07-10 19:18:29 +02:00
raysan5
7199dd570f
REVIEW: Pointer lock emscripten API does not work #1241
...
It seems some internals change recently due to web security reasons and some emscripten HTML5 funtionalities like pointerLock or fullscreen modes behave very weird or just don't work as expected
2020-07-10 18:23:17 +02:00
raysan5
3f4c6fee11
Correct issue when not supporting GIF format
2020-07-10 17:24:37 +02:00
raysan5
c57323f29c
ADDED: LoadImageAnim() to load animated sequence of images
2020-07-10 13:59:01 +02:00
raysan5
fa7799143e
Update miniaudio to v0.10.12, solves #1288
2020-07-10 13:29:42 +02:00
raysan5
57dc8a91dd
Disable FBO support on OpenGL 2.1 #1290
2020-07-10 13:14:56 +02:00
Random
86a8f1d5d5
Chromium needs a larger audio buffer ( #1300 )
...
* Chromium needs a larger audio buffer: https://github.com/dr-soft/miniaudio/issues/150
* changed PLATFORM_WEB to __EMSCRIPTEN__
2020-07-10 12:34:35 +02:00
raysan5
0877019fb6
Review comment
2020-07-10 12:15:52 +02:00
Terry Nguyen
871cd1a76a
Free leaked allocations from render objects ( #1302 )
2020-07-09 20:42:20 +02:00
Doyle
00fda3be65
Fix incorrect color transform to 255 space ( #1297 )
2020-07-05 20:02:32 +02:00
Ray
5986eee6ab
Expose additional configuration options
...
Some internal defines have been exposed in config.h
2020-06-30 11:05:09 +02:00
Vlad Adrian
4d71e9b44f
Added new function DrawTextureTiled() ( #1291 )
...
* Implemented DrawTextureTiled()
* Example added
2020-06-27 23:59:14 +02:00
Ray
eae6e6a828
Minor format tweak
2020-06-27 14:11:21 +02:00
Ray
5b294b7cff
Corrected issue with OpenGL 1.1 support
2020-06-27 14:10:53 +02:00
Ray
ba39a1b304
ADDED: UpdateTextureRec()
2020-06-25 16:26:59 +02:00
Shylie
25fb24ba7d
[add] GetMonitorRefreshRate(int monitor); ( #1289 )
2020-06-24 18:28:57 +02:00
Ray
38530ebf12
REVIEWED: ToggleFullscreen(), issue #1287
2020-06-23 00:39:06 +02:00
Ray
bd13d4a471
Add missing include
2020-06-23 00:33:51 +02:00
raysan5
e18c4c1158
REVIEWED: ColorAlphaBlend(), support tint color
2020-06-20 23:32:32 +02:00
raysan5
7ed7116e27
REVIEWED: ColorAlphaBlend(), integers-version, optimized #1218
2020-06-20 19:57:09 +02:00
raysan5
5a862bce29
REVIEWED: ImageDraw(), consider negative source offset properly #1283
2020-06-20 18:49:15 +02:00
raysan5
da582e2eec
REVIEWED: ImageDraw() #1283
2020-06-20 18:10:21 +02:00
raysan5
c078640fa5
Commented Fade() macro
2020-06-16 10:37:31 +02:00
raysan5
afcc584fb6
RE-ADDED: Fade() function to avoid multiple breaking changes
...
Probably there is a better way to do this but this is a temporary solution for backward compatibility
2020-06-16 10:36:05 +02:00
raysan5
589d606000
REDESIGNED: ImageDraw(), optimized #1218
...
After multiple tests and lot of redesign, current implementation is the fastest one. It also considers several fast-paths for maximum speed!
2020-06-15 12:06:41 +02:00
raysan5
32c0a7a135
Small code optimization
2020-06-15 12:05:03 +02:00
raysan5
bfa6544030
REDESIGNED: ImageResize(), optimized #1218
2020-06-15 12:04:18 +02:00
raysan5
691c1f9391
REDESIGNED: ImageFromImage(), optimized #1218
2020-06-15 12:03:33 +02:00
raysan5
ad954dc7ab
WARNING: BIG CHANGE: Move Color functions to texture module
...
WARNING: Some functions ADDED and some RENAMED:
- RENAMED: Fade() -> ColorAlpha() [Added #define for compatibility]
- ADDED: ColorAlphaBlend()
- ADDED: GetPixelColor()
- ADDED: SetPixelColor()
2020-06-15 12:02:50 +02:00
raysan5
ec09fea29a
REDESIGNED: ImageDraw(), optimization #1218
...
Trying a new optimization approach, some additional functions added, they will be probably exposed soon.
2020-06-11 22:47:25 +02:00
raysan5
15bfe44e73
REVIEWED: ImageDraw(), optimizations test #1218
...
Despite all the effort put on function optimization, dealing with alpha blending is complex, considering src and dst could have different pixel format...
2020-06-11 12:47:47 +02:00
raysan5
a6e6a99cb6
REDESIGNED: ImageAlphaClear(), optimized #1218
2020-06-10 23:10:16 +02:00
raysan5
4745ebeed5
REVIEWED: ImageResizeCanvas(), optimization #1218
...
Optimized to avoid ImageCrop() calls, now we define the source image rectangle and we just copy that data over the new canvas.
2020-06-10 21:21:37 +02:00
raysan5
dea0279a74
REVIEWED: ExportImage(), optimized
2020-06-09 19:52:10 +02:00
raysan5
7ef0fb4192
REVERTED: ExportImage() changes
...
Always using RGBA for now.
2020-06-08 21:18:42 +02:00
raysan5
82f7dd017e
REVIEWED: ImageAlphaPremultiply(), optimization
2020-06-08 18:24:53 +02:00
raysan5
40bc6afdbd
REVIEWED: ImageAlphaClear(), minor optimization
2020-06-08 18:23:59 +02:00
Chang Si Yuan
6264c4901b
Fix wrong height used when using scissor mode with render texture of different height from window ( #1272 )
2020-06-08 10:32:23 +02:00
Chang Si Yuan
73cc33b493
Fix extra memory allocated when updating color buffer in mesh ( #1271 )
2020-06-08 10:31:39 +02:00
raysan5
87592e2625
Update textures.c
2020-06-07 20:32:43 +02:00
raysan5
d0e9228660
REDESIGNED: ImageResizeCanvas(), optimized #1218
2020-06-07 18:33:30 +02:00
raysan5
a9fb0aa207
ImageToPOT() renamed parameter
2020-06-07 18:32:20 +02:00
raysan5
b5174a9990
REVIEWED: ImageCrop() #1218
...
Further optimization, moving data line-by-line
Old optimization left for reference
2020-06-07 12:57:57 +02:00
raysan5
b7d53ce314
REVIEWED: ImageToPOT() #1218
...
Using ImageResizeCanvas()
2020-06-07 12:56:47 +02:00
raysan5
78c3d619f9
REVIEWED: ImageAlphaCrop() #1218
...
Now uses GetImageAlphaBorder()
2020-06-07 12:33:42 +02:00
raysan5
02ff68e1a3
REDESIGNED: ImageCrop(), optimized #1218
2020-06-07 12:16:27 +02:00
raysan5
7cf1e76d53
REVIEWED: ExportImage(), optimized #1218
...
Avoid GetImageData() retrieval and free
2020-06-07 11:57:22 +02:00
raysan5
776e4a37ef
REDESIGNED: ImageRotateCCW(), optimized #1218
2020-06-07 11:53:13 +02:00
raysan5
79e2fbe0c6
REDESIGNED: ImageRotateCW(), optimized #1218
2020-06-07 11:52:55 +02:00
raysan5
d278eae4a3
REDESIGNED: ImageFlipHorizontal(), optimized #1218
...
Added several optimized options for future reference (if required)
2020-06-07 11:52:21 +02:00
raysan5
93d6dd3023
REDESIGNED: ImageFlipVertical(), optimized #1218
2020-06-07 11:51:26 +02:00
raysan5
5d0b2c796e
Remove warning from GetDirectoryPath()
2020-06-07 11:50:03 +02:00
frithrah
e07512e213
Fixed buffer overflow in GenMeshPoly ( #1269 )
...
Co-authored-by: frithrah <simon@frithrah.com>
2020-06-05 19:13:31 +02:00
raysan5
3792951023
REVIEWED: GetPixelDataSize() to consider compressed data properly
2020-06-02 23:08:34 +02:00
raysan5
a4333035c7
Use TRACELOG() macro instead of TraceLog() function
2020-06-02 23:07:42 +02:00
raysan5
b00ab118c6
[examples] text_font_sdf - Corrected bug
2020-06-02 23:07:11 +02:00
branlix3000
0e1d7d6430
Fixing Android build from Linux. Letting ANDROID_NDK to be modified at compile time. Default path to the ANDROID_TOOLCHAIN have changed in the latest Android command-line tools release. ( #1264 )
...
Co-authored-by: Branlix 3000 <branlix@3000.3k>
2020-05-31 21:18:33 +02:00
jvocaturo
6e84120b89
fix bug in QuaternionFromVector3ToVector3 ( #1263 )
2020-05-27 17:52:23 +02:00
raysan5
c43e889e39
Corrected bug on TextJoin()
2020-05-27 13:45:11 +02:00
ChrisDill
aff47d1564
Added bool IsCursorOnScreen(void). ( #1262 )
...
- The Mouse struct already stores cursorOnScreen. This function simply exposes it to the usage code.
2020-05-26 11:59:25 +02:00