Commit Graph

526 Commits

Author SHA1 Message Date
Ray 944a388b1b Include mini_al directly, no separate module 2019-02-12 12:18:01 +01:00
Ray df40735067 Added CMD compilation scripts for examples
They could be useful for some people...
2019-01-21 23:59:35 +01:00
Piotr Balcer 3065cbbce9 cmake: preload resources into web examples
No examples built for the Web platform functioned properly due to lack
of resources in the virtual file system provided by emscripten.

This patch addresses this problem by adding
'--preload-file local_path/resources@resources' emcc option to link
flags whenever necessary.
2019-01-20 15:24:30 +01:00
Piotr Balcer 1bfa1b8696 cmake: use ALLOW_MEMORY_GROWTH=1 for web examples
The default memory limit for emscripten applications is 16 mergabytes,
which might be to little for some examples, especially given that the
resources are also included in that limit.

Normally, using this option disables some asm.js optimizations, but
there's no such cost for WebAssembly.
2019-01-20 14:49:22 +01:00
raysan5 557456cace Review window title 2019-01-19 14:15:55 +01:00
Ray 93471b0a7c WARNING: Renamed module: audio -> raudio
Planning to promote raudio module as a simple and easy-to-use front-end for the amazing mini_al library, so the name change.

Name comes from raylib-audio but in spanish it also remembers to word "raudo", meaning  "very fast", an analogy that fits perfectly to the usefulness and performance of the library!

Consequently, raylib version has been bumped to 2.4-dev.
2019-01-10 16:32:40 +01:00
Ray 55f8dbc755 WARNING: Redesigned SetShaderValue() 2019-01-10 11:25:26 +01:00
Ray 35bcbd1b60 Merge pull request #718 from MarcoLizza/shaders-uniforms-array
Shaders uniforms array
2019-01-09 17:01:59 +01:00
Marco Lizza 0c5bee4c9a Limiting FPS to 60 for uniformity with other examples. 2019-01-09 16:33:09 +01:00
Marco Lizza 0fe56b1674 Adding basic palette-switching example using uniform arrays. 2019-01-09 16:20:56 +01:00
Marco Lizza adf0c64864 Fixing typo in examples makefile, preventing build. 2019-01-09 16:08:10 +01:00
raysan5 f4fe7f4d4c Review BRDF texture generation
Actually, that function should be redesigned...
2019-01-06 15:49:29 +01:00
raysan5 5c614f6975 Some code tweaks 2019-01-05 19:24:42 +01:00
raysan5 490e930665 Reviewed example 2019-01-05 17:25:35 +01:00
raysan5 d5735720b0 Update Makefile for Emscripten 2019-01-01 20:53:30 +01:00
raysan5 0619571149 ADDED: DrawTextRec() and example 2018-12-29 14:44:28 +01:00
raysan5 01338b0a14 WARNING: BREAKING CHANGE
Added a bunch of useful text management functions.
Consequently, some already available functions like `FormatText()` and `SubText()` has been renamed for consistency. Created temporal fallbacks for old names.
raylib version bumped to 2.3.
2018-12-26 13:26:34 +01:00
raysan5 7b8965eb38 Support float texture data on OpenGL ES 2.0 2018-12-25 15:19:25 +01:00
raysan5 35a6e9a074 Corrected issue with MOD playing
Despite issue is corrected, now module loop doesn't work...
2018-12-25 15:18:35 +01:00
raysan5 96207a8a02 REVIEWED: LoadFontEx()
Changed parameters order for consistency with LoadFontData() and other functions when an array is passed by parameter and array size is the following parameter.
2018-12-25 15:17:42 +01:00
Ray 4ec4dc691f Use stb_vorbis.h as header only 2018-12-21 00:17:44 +01:00
Ray 5aea693f69 Update models_obj_viewer.c 2018-12-20 11:50:21 +01:00
Ray 788bb78989 Some tweaks 2018-12-20 10:40:28 +01:00
Ray 6ef1e1d938 new example: shaders_raymarching 2018-12-20 09:55:33 +01:00
Ray c053de3c7d new example: models_obj_viewer 2018-12-20 09:52:52 +01:00
Ray 2f56119568 Corrected issue when scaling 2018-12-18 18:19:11 +01:00
Ray 8f95518858 Reviewed some examples to work on RPI 2018-12-18 17:22:13 +01:00
Ray 5a9e03fddf Avoid example on Android compilation 2018-12-18 01:00:39 +01:00
Ray f9e4faff09 Review standard lighting sample -WIP-
It's broken.
2018-12-16 00:35:30 +01:00
Ray 7d81e673ed ADDED: GenMeshPoly()
To generate 2D polygonal shape
2018-12-15 23:31:56 +01:00
Ray c0c329b231 Update models_rlgl_solar_system.c 2018-12-12 11:32:11 +01:00
Ray 97e40ced57 WARNING: BIG rewrite of rlgl module
This commit implements a big update of rlgl module, intended to optimize some parts. This change could break some code bases... hopefully not, but it could.
The BIG changes to the module are:
 - Replaced LINES-TRIANGLES-QUADS buffers by a single one, now all vertex data is accumulated on a single buffer and managed with registered draw calls. LINES-TRIANGLES-QUADS could be used the same way as before, rlgl will manage them carefully. That's a big improvement of the system.
 - Support multi-buffering if required. Just define MAX_BATCH_BUFFERING desired size (currently set to 1 batch). Should be enough for most of the situations.
 - Removed temporal accumulative buffers for matrix transformations, now transformations are directly applied to vertex when on rlVertex3f()
 - Reviewed rlPushMatrix()/rlPopMatrix() to be consistent with OpenGL 1.1, probably I should remove that ancient behaviour but... well, it was not consistent and now it is.
 - Minor tweaks: LoadText(), I broke it in last update... also multiple comments reviewed.
 - TODO: MAX_BATCH_ELEMENTS checking should probably be reviewed... done some tests and it works but...
2018-12-11 18:54:48 +01:00
Ray 969e48e3dd Enable SDL2 library for audio on Web
Solves audio cracking issues
2018-11-26 17:15:43 +01:00
Ray ac23af9bf0 Review resources naming
raylib resource data file for Windows platform (containing raylib icon and metadata for executable file) has been renamed to a more consistent name: raylib.rc.data

Also required to work with tcc compiler.
2018-11-19 15:18:11 +01:00
Ray ed269b8d9a Review RenderTexture drawing usage
Now `BeginTextureMode()` does not clean buffers automatically, that behaviour has been changed because there could be some case (i.e. painting software) where texture buffer does not ned to be cleared; user is responsible of clearing buffers using `ClearBackground()`
2018-11-19 09:40:01 +01:00
Ray ff64e860a1 Minor review 2018-11-06 15:12:01 +01:00
Ray f7667aad8d Reviewed audio issues
- Updated dr_mp3 and implemented it
- Reviewed sampleCount vs frameCount
- Reviewed XM playing (some weird things...)
2018-10-31 17:04:24 +01:00
Berni8k 7a712d00e6 Added multitouch example 2018-10-21 10:10:50 +01:00
Ray fa5cebdfd2 Comment tweak 2018-10-19 16:17:29 +02:00
Pablo Marcos Oltra 35634f37c8 Fix physac's fixed time step 2018-10-04 18:29:50 +02:00
Ray abfbc42df7 PNG image size optimization 2018-09-25 12:53:31 +02:00
Ray dfb8837c46 Support aliased font texture generation
Useful for bitmaps pixelated fonts where anti-aliasing is not desired!
Change also enables additional font generation mechanisms in a future (cleartype, hinting...).
2018-09-06 16:56:21 +02:00
Ray 10c22c8d61 Review example to show text tinting 2018-09-05 10:48:33 +02:00
Ray 46411e1c55 Renamed n-patch sample 2018-08-14 19:26:50 +02:00
Ray 00f5f2ead2 Merge pull request #616 from overdev/master
[Feature Request] 9-patch drawing function
2018-08-09 22:42:05 +02:00
Jorge A. Gomes 921cacacfb Added example screenshot. 2018-08-08 16:26:51 -03:00
Jorge A. Gomes 051cf1346b Added texture_image_9patch.c example 2018-08-08 16:22:51 -03:00
Jorge A. Gomes 34c3ae5ab3 Added 9-patch texture used in the example code. 2018-08-08 16:21:33 -03:00
Ray 06be400ca3 Reviewed AnimatedModel struct
Just reviewing for a possible adaptation of AnimatedModel to default raylib Model...
2018-08-07 11:31:32 +02:00
Ray b042fe12e6 Reviewed spacings on latest PR 2018-08-06 20:49:47 +02:00