Ray
62406259d7
Corrected minor windows flags issues
2020-12-03 20:33:46 +01:00
Ray
d1119816d7
Review comment
2020-12-03 20:16:46 +01:00
Ray
0540f0ad32
Review window flags
2020-12-03 20:16:35 +01:00
Ray
63d33d7a7a
Update CMakeLists.txt
2020-12-02 08:27:43 +01:00
Ray
60928ec82c
ADDED: UnloadModelKeepMeshes() #1441
2020-12-01 23:44:10 +01:00
Ray
0481053dad
Review for issue #1446
2020-12-01 23:23:30 +01:00
Ray
59be7b9c29
Update CMakeLists.txt
2020-12-01 23:21:35 +01:00
Ray
83916bd3c2
Updated GLFW to latest 3.4 (github master - 16Nov2020)
...
WARNING: Some CMake files not changed
WARNING: glfw_native.h contains custom changes
2020-11-30 09:11:22 +01:00
Ray
23ed67cce0
Review some config options
2020-11-30 09:00:40 +01:00
Jeffery Myers
df249f5513
Fix typecast warnings in raylib code as reported by visual studio 2019 ( #1443 )
2020-11-30 08:14:11 +01:00
Random
0322fc28d4
optimized MatrixLookAt ( #1442 )
2020-11-29 10:08:22 +01:00
raysan5
d6f4f3ee88
REMOVED: GetImageDataNormalized()
...
Let the advance users manage it as they want...
2020-11-28 19:11:31 +01:00
raysan5
14c1ee2681
ADDED: UnloadFontData()
2020-11-28 19:07:41 +01:00
Ray
3d1ae3500c
REVIEWED: Window state flags -WIP-
...
WARNING: Several functions removed, replaced by SetWindowState() / ClearWindowState() equivalents, only for advance users.
ADDED: ClearWindowState() to reset window state
REMOVED: HideWindow() / UnhideWindow()
REMOVED: DecorateWindow() / UndecorateWindow()
2020-11-23 23:46:05 +01:00
Ray
468a0bedd8
REDESIGNED: Window state config #1367 -WIP-
...
Some flags not working properly yet...
2020-11-23 00:49:27 +01:00
Ray
a560fe9a1e
Added some comments
2020-11-22 10:56:17 +01:00
Ray
bb9d734f69
Exposing some file access results to user layer #1420
2020-11-22 00:10:16 +01:00
Ray
36dc302c25
Reverted to previous working version #1434
2020-11-21 14:14:25 +01:00
Ray
4eae76302f
REPLACED: rgif.h by msf_gif.h
...
The improvement in performance is considerable!
2020-11-20 00:34:18 +01:00
Ray
7f6cd93d62
WARNING: Multiple funcs reviewed!
...
There were some problems about frameCount vs sampleCount that could cause some breaks.
raylib audio structs stores sampleCount = frameCount*channels.
Most libraries return framesCount instead of sampleCount.
stb_vorbis seems to refer to framesCount as samples.
All required functions have been reviewed.
2020-11-19 20:11:11 +01:00
Ray
72e51cd6de
Review formating
2020-11-19 20:06:35 +01:00
Ray
700bff5fd8
Version tweak
2020-11-19 20:01:40 +01:00
Ray
9471794449
Update to latest tiniobjloader
...
WARNING: OBJ loading is broken at this point...
2020-11-17 00:30:12 +01:00
Ray
a54d9f734b
rlUpdateTexture(): Corrected issue
2020-11-16 15:18:05 +01:00
Ray
f448542dd2
Review issues with FLAC loading
2020-11-16 12:20:50 +01:00
raysan5
4d5ee7953c
Updated tinyobjloader
2020-11-15 14:31:43 +01:00
raysan5
cb517d0050
Update tinyobj_loader_c.h
2020-11-15 14:19:55 +01:00
raysan5
a3d33d9222
Update tinyobj_loader_c.h
2020-11-15 14:18:59 +01:00
raysan5
82d61a5875
Updated stb_image v2.26 and stb_image_write v1.15
2020-11-15 14:11:36 +01:00
raysan5
66f9fbaa88
Update cgltf.h
...
v1.8
2020-11-15 14:06:39 +01:00
raysan5
321f55bce1
Update audio libraries #1423
...
miniaudio -> v0.10.25
dr_wav -> v0.12.14
dr_mp3 -> v0.6.19
dr_flac -> v0.12.22
2020-11-15 14:04:28 +01:00
raysan5
8ff2b387f9
Review code formating
2020-11-15 13:17:11 +01:00
Ilya3point999K
bd287efa4c
Fixed zero-window upscaling ( #1428 )
...
There is no zero-check, so window upscales to nothing.
SetupFramebuffer() is kinda wrong, it uses not its params, but global variables. I won't touch it, maybe it has purpose
2020-11-15 13:13:21 +01:00
raysan5
9b2b660f91
Commented new feature
2020-11-15 13:10:12 +01:00
raysan5
55dc8171f8
[text] Consider characters padding -WIP- #1432
2020-11-15 12:39:59 +01:00
Ray
3e1cd487df
Remove trailing spaces
2020-11-03 23:47:33 +01:00
kernelkinetic
f46514b855
Fixed keyboard stuttering but for cmake only ( #1422 )
...
* fixed mouse movements are bound to the screen resolution (https://github.com/raysan5/raylib/issues/1392 )
* fixed keyboard stuttering on PLATFORM_RPI and PLATFORM_DRM (https://github.com/raysan5/raylib/issues/1392 )
* fixed keyboard stuttering on PLATFORM_RPI and PLATFORM_DRM (https://github.com/raysan5/raylib/issues/1392 )
2020-11-03 23:39:56 +01:00
Ray
05ab39ed9f
REVIEWED: SaveFileText() error checking
2020-11-01 19:42:50 +01:00
Ray
5ac9cb04c2
Reverted ChangeDirectory() redesign
...
It returns true on success again
2020-11-01 19:06:21 +01:00
Ray
01d9af12f7
REDESIGNED: ChangeDirectory()
...
Not returning error code (or success), just log if it fails
2020-11-01 18:14:55 +01:00
Ray
8e15dae5ed
Review contributed examples
2020-11-01 13:39:48 +01:00
Dominus Iniquitatis
fc1fc250e7
A couple of little comment fixes ( #1416 )
2020-10-31 14:40:35 +01:00
Ray
fbc51e822b
REDESIGNED: Multiple sampler2D usage on batch system
...
New implementation allow enabling additional textures per batch only.
2020-10-31 11:48:44 +01:00
Ray
8a16348131
Support multiple sample2D on batch drawing #1333
2020-10-29 20:22:52 +01:00
Ray
60d874caf8
REVIEWED: GetWindowScaleDPI() #1086
2020-10-29 19:29:59 +01:00
Ray
d99ac093d4
Support additional texture units for default batch system #1333
...
This path requires some testing...
2020-10-26 20:13:08 +01:00
Ray
d9e591f235
Review some comments
2020-10-26 20:11:58 +01:00
raysan5
482b8a5e7e
Some tweaks
2020-10-24 10:37:15 +02:00
Ray
f12db180cd
Reviewed PR #1407
2020-10-21 11:08:37 +02:00
Chance Snow
9833fe45eb
Added desktop cursor getter and setter functions ( #1407 )
...
* [core] Added desktop cursor getter and setter functions
* Example: Set mouse cursor in text input box
* Setup standard cursors _after_ GLFW window initialization
* Remove old `int GetMouseWheelMove` declaration
2020-10-21 10:55:52 +02:00
kernelkinetic
3c9f7263e5
fixed mouse movements are bound to the screen resolution ( https://github.com/raysan5/raylib/issues/1392 ) ( #1410 )
2020-10-13 22:26:40 +02:00
raysan5
c62c4df749
Updated miniaudio #1402
2020-10-10 19:25:23 +02:00
chriscamacho
6ebf6b4e72
allow for multiple materials in obj files ( #1408 )
...
* allow for multiple materials in obj files also fix obj_loader hash map issues
* minor fix for warning
Co-authored-by: codifies <nospam@antispam.com>
2020-10-08 20:31:59 +02:00
Ray
41192c6d4a
Replace 0.f by 0.0f
2020-10-05 20:19:18 +02:00
Doyle
b29311c7ca
mouse: Return float movement for precise scrolling where possible ( #1397 )
2020-10-05 20:16:23 +02:00
Ray
a4ea9f872f
Review "aggregate initializations" #1403
2020-10-05 20:04:33 +02:00
Daniel-Junior Dubé
a8685ee4fd
Add Vector2Reflect to raymath.h ( #1400 )
...
Vector3Reflect exists but not Vector2Reflect. The code is pretty much the same.
I'm not sure what RMDEF does, but I added it to match other function definitions (haven't done much C programming, maybe I'm missing something). Can someone explain to me what it does?
2020-10-04 12:12:52 +02:00
Tobias Jammer
0c29ca8166
Fix 1393 ( #1395 )
2020-09-29 17:57:28 +02:00
Ray
a850246030
Review Texture type
...
Texture type also maps to Texture2D and TextureCubemap
2020-09-28 00:40:32 +02:00
raysan5
446f9fff00
Added note
2020-09-27 11:14:49 +02:00
seanpringle
4bcddc3b15
[wip] rlDrawMeshInstanced ( #1318 )
...
* rlDrawMeshInstanced first attempt
* rlDrawMeshInstanced OpenGL 3.3 and VAO checks
* rlDrawMeshInstanced GetShaderAttribLocation; comments
* example instanced shader
* RLGL_STANDALONE RAYMATH_STANDALONE Vector4
* apply suggested naming changes; add instanced mesh example
* remove orphan variables
2020-09-27 10:29:05 +02:00
kernelkinetic
e90b4d8915
Platform DRM ( #1388 )
...
* updated README.md
* fixed CMakeLists.txt to allow building and debugging with Visual Studio Code and CMAKE Tools extension
* added PLATFORM_DRM
contains mouse pointer code from https://github.com/chriscamacho
* removed redundant cleanup in InitGraphicsDevice
* fixed DRM connector mode selection
* added choosen DRM connected mode to log output
* added respecting TargetFPS on DRM mode selection, default to 60
* added support for GetMonitorRefreshRate
* changed SUPPORT_MOUSE_CURSOR_RPI to SUPPORT_MOUSE_CURSOR_NATIVE
* changed avoidProgressive to allowInterlaced
* cleanup, function extraction and improved mode selection
* README reverted to original for PR
* line endings fixed for core.c
* removed old code
* mouse pointer reverted to small square
* replaced SetGraphicDeviceName() by DEFAULT_GRAPHIC_DEVICE_DRM
Co-authored-by: kernelkinetic <kernelkinetic@outlook.com>
2020-09-27 10:18:43 +02:00
raysan5
c2e56f2604
REVIEW: GenTextureCubemap(), avoid using models.c functions
...
- DrawCube() belongs to models.c -> rl*() alternative should be used
2020-09-26 11:51:42 +02:00
raysan5
b9053eebe7
Added new GIF recording library (not used yet)
2020-09-26 11:41:49 +02:00
raysan5
eef82b04ac
REVIEW: Replace rlglDraw() calls by DrawRenderBatch() internal calls
2020-09-25 18:19:19 +02:00
raysan5
fe8bf2fa55
REVIEWED: GenTextureCubemap(), use rlgl functionality only
...
Function has been reviewed to avoid any direct OpenGL call and use rlgl functionality, also, GenDrawCube() has been replaced by the internal batch system with DrawCube().
WARNING: rlEnableTexture() call must be issued after enabling the current framebuffer when using batch mechanism because it includes a set of security checks to avoid batch overflow and push/pop matrix operations.
2020-09-25 18:14:46 +02:00
Adam Griffiths
b9ece86ffd
Add join_paths and join prefix with include/lib dirs ( #1383 )
...
Fixes #1380 : incorrect usage of CMake paths which causes issues
on some more complicated environments (NixOS especially).
2020-09-25 16:20:49 +02:00
raysan5
032b2db398
REVIEWED: GenTextureCubemap()
...
Added some tracelog messages
2020-09-21 13:18:53 +02:00
coderoth
c05dbb4581
Updated joystick mappings with latest version of gamecontrollerdb (executed GenerateMappings.cmake), so that raylib can identify more joysticks ( #1381 )
2020-09-19 21:51:32 +02:00
raysan5
789c5fbdf9
Updated build script to generate .a on WebAssembly
...
This is the recommended way
2020-09-18 20:53:57 +02:00
raysan5
4a242c2889
Updated library build script for HTML5 (emscripten 2.0.4)
2020-09-18 20:48:25 +02:00
raysan5
b5d50ee51a
EXAMPLE: models_skybox works on OpenGL ES 2.0
2020-09-18 20:47:39 +02:00
raysan5
79d63e6ca1
Review comment
2020-09-18 16:44:28 +02:00
raysan5
152665ff48
REDESIGNED: GenTexture*() #721
...
Functions have been redesigned to use rlgl and allow to externalize them (aka removing them from rlgl because they use custom shaders...).
2020-09-18 13:50:51 +02:00
raysan5
ccda320be4
REVIEWED: rlFramebufferAttach() to support texture layers
...
Required to attach multiple color textures and multiple cubemap faces
2020-09-18 11:37:57 +02:00
kernelkinetic
6038c8fdd5
fixed wrong error message for input device on RPI ( #1379 )
...
* fixed wrong error message for input device
* error message without errnofor input device on RPI
to prevent from including additional header
Co-authored-by: kkl <klingenberger@bfmc.de>
2020-09-18 08:52:52 +02:00
raysan5
04406c0f1a
Corrected minor framebuffer issue on OpenGL ES 2.0
2020-09-18 02:14:05 +02:00
raysan5
cdc8850e68
WARNING: REDESIGN of rlgl framebuffers API #721
...
This redesign allows more flexibility when creating RenderTexture and a simplification (and hopefully removal) of `GenTexture*()` functions, that should not belong to this model but the user code, due to the use of custom shaders.
Also, this new API opens the door for a possible GBuffers type and advance rendering possibilities...
Some functions of the API have been also simplified or even removed.
rlgl module can be used as an standalone library, so, a version for the library has been added: v3.1.0, matching current raylib version.
2020-09-18 02:11:49 +02:00
raysan5
fa2c114636
WARNING: struct RenderTexture2D: Removed depthTexture
...
Not required anymore, attachment type is queried when required
2020-09-17 13:44:03 +02:00
raysan5
cbdb9bfe42
REVIEWED: UnloadShader() issue
...
Avoid unloading default shader, raylib will take care of it
2020-09-16 16:33:17 +02:00
raysan5
b870b9f828
Minor: remove tabs
2020-09-16 13:17:31 +02:00
raysan5
90befff4b8
Make sure to detach data before deleting
...
Before deleting certain objects, they must be detached from their parents. That's the case for shader objects after linkage to shader program and also for the texture/cubemaps/renderbuffers attached to framebuffers. If objects are deleted before detached, they are kept in memory to avoid accessing deleted data.
2020-09-16 13:17:16 +02:00
raysan5
11fbd49b73
Avoid GETCWD() warning #1371
2020-09-16 11:44:48 +02:00
raysan5
43d82c1f21
Add security checks when loading data from memory
2020-09-16 11:33:56 +02:00
raysan5
c5c156d65e
Review GenDrawCube() and GenDrawQuad()
...
Better organized and commented
2020-09-15 13:44:04 +02:00
raysan5
2d96196d25
REVIEWED: SaveWAV() to use memory write insted of file
2020-09-15 13:17:10 +02:00
raysan5
0983d7b45c
Solved issues when compiled for OpenGL 1.1
2020-09-15 11:30:20 +02:00
Ray
8cf0be4b6c
Review memory loading functions signesness
2020-09-14 19:20:38 +02:00
raysan5
5073619962
REVIEWED: GetTextureData(), allow retrieving 32bit float data
2020-09-14 16:03:45 +02:00
raysan5
43b9113c0c
Reverted some previous changes...
2020-09-14 15:55:31 +02:00
raysan5
d7853127db
Reviewed some structs to reduce size and padding
...
Also updated raylib Wiki about struct sizes in 32bit and 64bit
2020-09-14 15:36:50 +02:00
Ray
c196b09d33
Remove function declaration added by error
2020-09-13 16:43:19 +02:00
Ray
db652daf42
ADDED: LoadFontFromMemory() (TTF only) #1327
2020-09-13 16:42:31 +02:00
Ray
88c5deac87
WARNING: REDESIGNED: LoadFontData()
2020-09-13 16:41:52 +02:00
Ray
250a0e3592
Minor tweak
2020-09-13 16:40:34 +02:00
Ray
63b739bbfa
Corrected issue on log
2020-09-13 16:01:51 +02:00
Ray
dace2172d1
Update cgltf library to v1.7
2020-09-13 15:55:48 +02:00
Ray
5b60a743bd
ADDED: LoadWaveFromMemory() #1327
2020-09-13 15:38:57 +02:00
Ray
768b29dd74
ADDED: LoadImageFromMemory() #1327
2020-09-13 15:37:15 +02:00
Ray
cb8cbb038b
WARNING: RENAMED: GetExtension() to GetFileExtension()
2020-09-13 14:07:08 +02:00
raysan5
f1ed8be5d7
REDESIGNED: ColorFromHSV()
...
Replaced Vector3 by direct values, easier to use and understand
2020-09-07 19:33:06 +02:00
raysan5
85d5744679
REVIEW: glfwSetWindowMaximizeCallback() not available on web
2020-09-07 15:34:21 +02:00
raysan5
1134024985
Update rlgl.h
2020-09-01 21:27:47 +02:00
raysan5
05cdaf7d01
MOVED: rlUnproject() [rlgl] -> Vector3Unproject() [raymath]
2020-09-01 21:08:45 +02:00
raysan5
a1422ba1c1
Review custom blend modes mechanism
...
rlBlendMode() has been added to rlgl to be used on BLEND_CUSTOM. This functionality is exposed to advance users.
In any case, new blending modes could be added if required.
2020-09-01 21:02:19 +02:00
cedemax
bfafb80cde
Multiple blendmodes ( #1324 )
...
Co-authored-by: max <max.cedercreutz@cetopo.com>
2020-09-01 20:33:49 +02:00
Juan Medina
dcbe481a28
adding new windows functions ( #1357 )
2020-09-01 20:29:13 +02:00
raysan5
ffe2364334
Update miniaudio to version 0.10.18
2020-08-30 20:01:38 +02:00
raysan5
8b5485f822
Remove unused variable
2020-08-30 20:00:56 +02:00
raysan5
945a02798b
DrawTextEx(): Minor tweak
2020-08-29 13:57:59 +02:00
raysan5
d0ebeb1713
Reorder some functions
2020-08-23 21:18:39 +02:00
raysan5
ea832628c4
Review last PR formatting to follow raylib standards
2020-08-23 21:10:59 +02:00
chriscamacho
d140dc81c0
work on quat and matrix math - deleted multiple copies of raymath.h causing issues ( #1359 )
...
Co-authored-by: codifies <nospam@antispam.com>
2020-08-23 21:01:26 +02:00
raysan5
816856eb75
Corrected compiling issue
...
When using USE_PTHREADS=1 on libraylib.bc compilation, program requires --shared-memory passed to the linker and despite it compiles, it fails on execution (at least for me).
2020-08-23 21:01:10 +02:00
raysan5
e785ca73b5
Review compilation parameter for objective C code on GLFW
2020-08-20 19:37:03 +02:00
raysan5
06ff1ce2aa
Minor tweak for consistency
2020-08-20 19:31:54 +02:00
raysan5
b499b50154
Avoid architecture selection on gcc, use correct gcc version instead
...
Review raylib resource file for DLL compilation
2020-08-20 17:37:01 +02:00
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