Ray
1e1061d5c7
REVIEWED: Formatting, follow raylib coding conventions
2024-06-30 11:37:58 +02:00
Ray
385e60dd41
Minor tweaks
2024-06-24 18:41:33 +02:00
Jeffery Myers
e96bab7ce6
[Build] Fix warnings when building in VS 2022 ( #4095 )
...
* Update raylib_api.* by CI
* Fix warnings when building examples in MSVC 2022
* fix auto-format that sneaked in there.
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-24 17:47:32 +02:00
TokyoSU
735c0160b5
Update rlgl.h ( #4059 )
...
- The function rlGetMatrixProjectionStereo and rlGetMatrixViewOffsetStereo have RLAPI for the function declaration and cause error when compiling using RLGL_IMPLEMENTATION.
2024-06-12 19:36:25 +02:00
jgabaut
f05316b11d
[rlgl] Rename near, far variables ( #4039 )
2024-06-06 15:29:15 +02:00
Ray
7a1cad3e61
Reviewed input params #3974
2024-05-12 13:31:38 +02:00
bohonghuang
23385231c6
[rlgl] Fix incorrect matrix multiplication order in rlMultMatrixf ( #3935 )
2024-05-05 20:19:25 +02:00
Ray
33b32ca53a
Default shader attrib locations need to be exposed
...
They need to be exposed on `rlgl.h` header section (not implementation section) because with some specific use cases (custom config.h, rmodels module enabled), building fails otherwise.
2024-05-01 18:41:28 +02:00
Ray
f15455552d
Review formatting
2024-04-23 19:38:45 +02:00
KotzaBoss
4b0e25d3af
Add rlCullDistance variables/getters and rlSetClipPlanes function ( #3912 )
...
The `RL_CULL_DISTANCE_` definition remains as the initial value
of the variables.
Basic usage can be:
```c
#include <raylib.h>
#include <rlgl.h>
rlSetClipPlanes(RL_CULL_DISTANCE_NEAR, MY_CULL_DISTANCE_FAR);
if (must_reset_clip_planes)
rlSetClipPlanes(RL_CULL_DISTANCE_NEAR, RL_CULL_DISTANCE_FAR);
```
2024-04-23 14:24:37 +02:00
bohonghuang
d80febde7d
[rlgl] Implement vertex normals for RLGL immediate drawing mode ( #3866 )
...
* Fix several non-functional `target_compile_definitions`
* Avoid hardcoding the default vertex attribute locations
* Implement functional `rlNormal3f`
* Add normal definitions for `DrawCube`
* Update the basic lighting example to use `DrawCube` and `DrawPlane`
2024-04-23 14:22:29 +02:00
Ray
f795941521
REVIEWED: rlSetVertexAttribute(), define last parameter as offset #3800
2024-04-20 23:37:31 +02:00
Mute
214b1997a8
Changed RLGL_VERSION from "4.5" to "5.0 ( #3914 )
...
Line 110 of file rlgl.h is the one in question.
2024-04-13 23:33:21 +02:00
Ray
646d70e93a
Remove trailing spaces
2024-04-02 09:38:06 +02:00
Ray
d7ff0175c1
Fix #3876 and also rlgl review on #3783
2024-03-18 09:09:26 +01:00
Ray
8b0dd44316
Fix #3876 and also rlgl review on #3783
2024-03-18 09:08:51 +01:00
Ray
e42e3188f5
Remove some unneeded line breaks
2024-02-18 11:59:40 +01:00
Ray
c31559101a
REVIEWED: rlLoadFramebuffer(), parameters not required
2024-02-04 11:52:49 +01:00
Ray
25306eae42
REVIEWED: Issue on parsing #3765
2024-02-01 00:05:30 +01:00
Ray
deaffb0698
Review PR #3746 formating
2024-01-29 21:16:17 +01:00
Jeffery Myers
bebf9547bd
[CORE,RLGL] Fix scale issues when ending a mode ( #3746 )
...
* Only restore GL scale back to screen scale if we are returning to a screen, not a render texture.
* blankspace
* reset back to default screen scale when ending a render texture since we are back on the default fbo
2024-01-29 21:10:23 +01:00
veins1
f4add5f10d
Fix rlSetUniformSampler ( #3759 )
...
Fix rlSetUniformSampler not setting sampler uniform if the same texture was already passed to a different sampler uniform
2024-01-28 13:45:19 +01:00
Brian E
27645e16ab
fixed small typo, replaced th with the ( #3752 )
2024-01-22 11:36:38 +01:00
Ray
3f1e59a7cf
Update copyright to 2024
2024-01-02 20:58:12 +01:00
Ray
68b6c79c3f
Update rlgl.h
2023-12-20 01:03:52 +01:00
Ray
2fe68a8a12
REVIEWED PR deferred render
2023-12-20 00:51:51 +01:00
Jett
e71153258b
fix for deferred rendering example. ( #3655 )
...
* fix for deferred rendering example.
* missed defines to build.
2023-12-20 00:27:59 +01:00
Peter0x44
55e7d1aad1
Expose OpenGL take 2 ( #3588 )
...
For some reason, there are actually two macros needed to control this.
Yes, I tried with only one, both are needed
2023-11-30 22:43:02 +01:00
Peter0x44
ef5069862d
Fix mistake in pr #3572 ( #3587 )
2023-11-30 20:07:50 +01:00
Ray
e9ddb15d9d
REVIEWED: rlgl function description and comments
2023-11-30 19:04:38 +01:00
Peter0x44
e7a486fa81
Hide unneeded internal symbols when building raylib as an so or dylib ( #3573 )
2023-11-28 20:43:45 +01:00
Peter0x44
94aba23ef4
Expose glad functions when building raylib as a shared lib ( #3572 )
2023-11-24 00:41:44 +01:00
Steven Schveighoffer
b122270aa3
Fix version info in rlgl.h ( #3558 )
2023-11-21 22:47:52 +01:00
Le Juez Victor
9099077075
[rlgl] Fixed return type of GetCompressedFormatName ( #3529 )
...
The return type of `GetCompressedFormatName` has been corrected from `char *` to `const char *`
2023-11-12 00:09:00 +01:00
Ray
30dcbaff20
Update rlgl.h
2023-11-10 13:33:42 +01:00
Ray
807516a991
Support OpenGL ES 3.0 building on Web
...
For some reason, the equivalent requested context (WebGL 2.0) is not provided, despite being properly requested.
2023-11-02 18:13:37 +01:00
Ray
35d27fb11b
REVIEWED: Pointers exposing not required for ES3
2023-11-02 09:04:05 +01:00
Ray
64d64cc181
REVIEWED: Potential code issues reported by CodeQL #3476
2023-11-01 15:28:18 +01:00
Ray
1407f6eb46
ADDED: rlBlitFramebuffer(), required for deferred render
2023-10-31 20:46:06 +01:00
Ray
de7beef05d
Remove trailing spaces
2023-10-31 15:54:52 +01:00
Jett
ff04d52f12
Added rlEnablePointMode ( #3490 )
...
for rendering meshes with points.
similar to wire mode.
(NOTE) they still backface cull, so disable that if you want to show the entire mesh.
2023-10-31 08:43:32 +01:00
2Bear
9a687e3153
Fix missing PLATFORM_DESKTOP_SDL checks. ( #3469 )
2023-10-26 10:15:25 +02:00
Ray
19ff0e5fb1
REVIEWED: rlLoadTexture() #3440
2023-10-19 13:05:50 +02:00
Ray
be8eea9eda
Format tweaks
2023-10-08 18:10:05 +02:00
Ray
f2389a1e55
Remove trail spaces
2023-09-26 12:54:24 +02:00
Ray
557aeff253
REVIEWED: glInternalFormat is unsigned and actually, rlGetGlTextureFormats() returns 0 if fails
2023-09-22 11:59:52 +02:00
Ray
36e99860ee
Added note about WebGL warning
2023-09-20 21:22:04 +02:00
Ray
b335927665
Reviewed PR #3321
2023-09-18 19:43:10 +02:00
Christopher Odom
eb461512a7
Added UBSAN complaint fix to rLoadTexture #1891 ( #3321 )
2023-09-18 19:39:12 +02:00
Ray
30a9a24db9
Review to avoid UBSAN complaining #1891
2023-09-07 18:00:10 +02:00
MichaelFiber
18e9784c6d
Remove PLATFORM_RPI ( #3232 )
...
* Remove PLATFORM_RPI
* remove build artifacts
---------
Co-authored-by: MichaelFiber <michael@cubeofb.org>
Co-authored-by: Ray <raysan5@gmail.com>
2023-09-07 17:42:28 +02:00
Branimir Ričko
b27e98a428
Fix bug where default shaders was not linking. ( #3261 )
2023-08-26 18:55:57 +02:00
Ray
5a33f19964
Revert "Fix #3246 "
...
This reverts commit e4dcbd5180 .
2023-08-19 20:09:43 +02:00
Ray
e4dcbd5180
Fix #3246
2023-08-17 15:05:52 +02:00
Nikolas
bef818e210
Fix build for OpenGL 2.1, where half floats are part of an extension ( #3233 )
2023-08-08 20:09:22 +02:00
Nikolas
dc621ca388
Support 16-Bit HDR textures ( #3220 )
...
* Support 16-Bit HDR textures
* Fix build on emscripten
* Move helper functions
2023-08-05 23:16:26 +02:00
Ray
974460b072
REVIEWED: rlLoadShaderBuffer() #3104
2023-06-24 13:26:43 +02:00
Ray
830e328df0
Remove trailing spaces
2023-06-17 16:48:18 +02:00
Chema Guerra
f385d0ce1c
Continuation of support for ES3/WebGL2 ( #3107 )
...
* Continuation of support for ES3/WebGL2
* GetTouchPointState()
* Amends to the WebGL2 PR
---------
Co-authored-by: root <root@DESKTOP-GLOV9QV>
Co-authored-by: chemguerra <online@chemaguerra.com>
2023-06-12 08:18:31 +02:00
Ray
ba802fdd5e
tweaks
2023-06-03 19:50:46 +02:00
Ray
e497603678
ADDED: Experimental support for OpenGL ES 3.0 -WIP-
...
Just added the required flags to request the OpenGL ES 3.0 context but it has not been tested...
2023-05-31 18:36:33 +02:00
Ray
7d68aa6869
REVIEWED: Modules description layout
2023-05-01 14:04:22 +02:00
Ray
838fc7e303
REVIEWED: Some old TODOs
2023-04-22 21:17:53 +02:00
Ray
771957458d
Avoid shader attribute not found log
2023-04-17 17:50:46 +02:00
Ray
9aa71f04f2
Avoid tracelog about not found uniforms #3003
2023-04-10 11:02:00 +02:00
Ray
975c70d2b7
Update rlgl.h
2023-03-14 13:06:17 +01:00
Antonis Geralis
394b31faff
Add GL_MIN GL_MAX blending equations ( #2945 )
2023-02-26 12:01:42 +01:00
Ray
cb2ba3675c
REVIEWED: rlUnloadFramebuffer() #2937
2023-02-24 16:19:25 +01:00
Julio C. Galindo
6ae21d6581
Fixed some grammar mistakes and typos. ( #2914 )
...
* Fixed some grammar mistakes.
* Fixed some typos.
2023-02-09 13:17:47 +01:00
Ray
1fea266472
Clean trailing spaces
2023-02-05 16:30:23 +01:00
Dor Shapira
7cdffcec52
fixed typo ( #2886 )
...
pilepine=>pipeline
chosing=>choosing
additioanlly=>additionally
attachmment=>attachment
initialize=>inititialize
Binded=>Bound
lattest=>latest
hi @raysan5, I ran rlgl.h into some "typo checking" program(basically a JetBrains IDE), and here are all the things that the program was able to spot and fix. as my English isn't really well I would like it if you could check that I didn't make any mistakes in the typo fixing...
2023-01-24 23:43:09 +01:00
Ray
f68bb8c707
REVIEWED: rlGenTextureMipmaps(), GPU generation only
2023-01-24 17:17:25 +01:00
Uneven Prankster
19715546b3
Stub out rlCubemapParameters if under GL 1.1. ( #2876 )
...
Co-authored-by: Uneven Prankster <unevenprankster@pm.me>
2023-01-21 18:51:33 +01:00
Uneven Prankster
76468bb8d8
Add rlCubemapParameters to rlgl.h ( #2862 )
...
Co-authored-by: Uneven Prankster <unevenprankster@pm.me>
2023-01-19 20:53:30 +01:00
Ray
3028bffd4c
Minor tweaks
2023-01-10 12:38:21 +01:00
Go Watanabe
f549f67be9
OpenGLES 2.0 support on PLATFORM_DESKTOP ( #2840 )
...
* OpenGLES 2.0 support on PLATFORM_DESKTOP
* exmples raylib_opengl_interop desktop GLES2 support
* rename gles2.h -> glad_gles2.h
2023-01-10 12:34:06 +01:00
Ray
89755e52bf
REVIEWED: rLoadTextureDepth() fixed issue
2023-01-04 17:35:51 +01:00
Ray
b59fab7ee6
Update year to 2023
2023-01-01 16:00:56 +01:00
Ray
619331f4a7
REVIEWED: Issue with depth textures on WebGL #2824
2022-12-14 12:57:39 +01:00
Ray
4de64f5750
Expose OpenGL blending mode factors and functions/equations
2022-12-04 13:22:37 +01:00
Ray
2edf5a9584
REVIEWED: Issue with shader linkage
2022-11-29 10:45:10 +01:00
Antonis Geralis
2fd6d7e8c0
Use const for pointer float array ( #2807 )
...
* Use const for pointer float array
* missed a definition
2022-11-24 00:58:56 +01:00
Antonis Geralis
2c77b31e30
Correct types for rlBindImageTexture ( #2808 )
2022-11-24 00:58:31 +01:00
Ray
f6558fe6e0
Minor tweaks
2022-11-22 01:02:54 +01:00
Ray
e6306e5e76
REVIEWED: rlCullFace() -> rlSetCullFace()
...
Reviewed formating to follow raylib coding conventions.
2022-11-15 12:34:01 +01:00
jtainer
2761aa40dd
Added function rlCullFace ( #2797 )
...
rlCullFace sets the face culling mode to RL_FRONT or RL_BACK which correspond to GL_FRONT and GL_BACK respectively.
2022-11-15 12:30:32 +01:00
Ray
7a15861d44
Update rlgl.h
2022-10-06 00:56:18 +02:00
Ray
25d846aa9a
Avoid early return calls
2022-10-05 13:34:19 +02:00
Ray
9017be3259
Reviewed latest PR formating and variables naming #2741
2022-10-05 13:29:34 +02:00
凌溢狐
2d88958d35
Add rlSetBlendFactorsSeparate and custom blend mode modification checks ( #2741 )
2022-10-05 13:05:44 +02:00
Ray
6e8f3b0f45
Update rlgl.h
2022-09-19 10:35:34 +02:00
Ray
12e8cef9cf
REMOVED: Mipmaps software generation for OpenGL 1.1
...
As generation is done in software, it's up to the user to do it. `ImageMipmaps()` is already provided for reference.
2022-09-19 10:31:55 +02:00
Nikolas
42ecd72547
[rlgl] Check for extensions before enabling them ( #2706 )
...
* [rlgl] Check for extensions before enabling them
* Shift to glad on macOS
* #undef CORE_OPENGL_33
* Remove version hack and fix ASTC compression assumption
* Remove loader from glad
* Use GLAD_MALLOC/FREE instead of malloc/free
* More explicit extension checking
2022-09-18 21:08:51 +02:00
Nikolas
a12ddacb7b
Enable DXT compression on __APPLE__ targets ( #2694 )
2022-09-12 12:21:41 +02:00
Ray
cf24c021a3
WARNING: BREAKING: Reviewed SSBO usage to avoid long long
...
raylib library tries to avoid `long long` usage. Several SSBO functions have been reviewed (including some renames for consistency) to minimize `long long` type usage.
2022-09-09 00:26:47 +02:00
Ray
9996e328cb
WARNING: BREAKING: Removed rlCheckRenderBatchLimit() requirement
...
Updated version to `rlgl 4.2`
2022-09-05 13:20:09 +02:00
Ray
ad5ffd78d6
REVIEWED: rlgl enums and comments
2022-09-05 11:15:28 +02:00
Ray
64cca24526
ADDED: RL_TEXTURE_MIPMAP_BIAS_RATIO support to rlTextureParameters() for OpenGL 3.3 #2674
2022-09-01 11:18:22 +02:00
Ray
904c505125
minor tweak
2022-08-18 15:10:40 +02:00
Ray
dd455c626e
Update rlgl.h
2022-08-02 18:33:00 +02:00