5d4aada526
Don't create an ortho matrix when the viewport is 0 in any axis. ( #1504 )
...
* Don't create an ortho matrix when the viewport is 0 in any axis.
Not all compilers divide by 0 and return inf, some segfault.
The matrix is not used by anything when minimized, so it just needs to not be called.
* Better fix that always ensures the rlgl matrix is always valid
* Better fix that always ensures the rlgl matrix is always valid
2021-01-06 13:21:58 +01:00
d7b4b9e485
Update year to 2021
2021-01-02 18:15:13 +01:00
d9a9bacb48
Review formatting
2020-12-23 20:30:00 +01:00
342d4faf14
Add options to set line width and aliasing to rlGL layer. ( #1457 )
...
* Add options to set line width and aliasing to rlGL layer.
* Don't do line smoothing in OpenGLES
2020-12-13 10:58:24 +01:00
039503e7c2
Add functions to enable/disable depth writes to go with functions for depth tests. ( #1451 )
2020-12-05 21:53:19 +01:00
700bff5fd8
Version tweak
2020-11-19 20:01:40 +01:00
a54d9f734b
rlUpdateTexture(): Corrected issue
2020-11-16 15:18:05 +01:00
3e1cd487df
Remove trailing spaces
2020-11-03 23:47:33 +01:00
8e15dae5ed
Review contributed examples
2020-11-01 13:39:48 +01:00
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
8a16348131
Support multiple sample2D on batch drawing #1333
2020-10-29 20:22:52 +01:00
d99ac093d4
Support additional texture units for default batch system #1333
...
This path requires some testing...
2020-10-26 20:13:08 +01:00
d9e591f235
Review some comments
2020-10-26 20:11:58 +01:00
a850246030
Review Texture type
...
Texture type also maps to Texture2D and TextureCubemap
2020-09-28 00:40:32 +02:00
446f9fff00
Added note
2020-09-27 11:14:49 +02:00
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
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
eef82b04ac
REVIEW: Replace rlglDraw() calls by DrawRenderBatch() internal calls
2020-09-25 18:19:19 +02:00
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
032b2db398
REVIEWED: GenTextureCubemap()
...
Added some tracelog messages
2020-09-21 13:18:53 +02:00
b5d50ee51a
EXAMPLE: models_skybox works on OpenGL ES 2.0
2020-09-18 20:47:39 +02:00
79d63e6ca1
Review comment
2020-09-18 16:44:28 +02:00
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
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
04406c0f1a
Corrected minor framebuffer issue on OpenGL ES 2.0
2020-09-18 02:14:05 +02:00
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
fa2c114636
WARNING: struct RenderTexture2D: Removed depthTexture
...
Not required anymore, attachment type is queried when required
2020-09-17 13:44:03 +02:00
cbdb9bfe42
REVIEWED: UnloadShader() issue
...
Avoid unloading default shader, raylib will take care of it
2020-09-16 16:33:17 +02:00
b870b9f828
Minor: remove tabs
2020-09-16 13:17:31 +02:00
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
c5c156d65e
Review GenDrawCube() and GenDrawQuad()
...
Better organized and commented
2020-09-15 13:44:04 +02:00
0983d7b45c
Solved issues when compiled for OpenGL 1.1
2020-09-15 11:30:20 +02:00
5073619962
REVIEWED: GetTextureData(), allow retrieving 32bit float data
2020-09-14 16:03:45 +02:00
1134024985
Update rlgl.h
2020-09-01 21:27:47 +02:00
05cdaf7d01
MOVED: rlUnproject() [rlgl] -> Vector3Unproject() [raymath]
2020-09-01 21:08:45 +02:00
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
bfafb80cde
Multiple blendmodes ( #1324 )
...
Co-authored-by: max <max.cedercreutz@cetopo.com >
2020-09-01 20:33:49 +02:00
1d895616f7
rlCheckErrors ( #1321 )
...
* rlglCheckErrors
* rlglCheckErrors LOG_WARNING
* rename to rlCheckErrors; improve messages; revert core.c
2020-07-30 12:50:20 +02:00
20301d1e5d
Corrected issue with framebuffer size storage #1298
2020-07-28 11:44:45 +02:00
6ec847a93f
Find a better mechanism to avoid FBO on OpenGL 2.1 if required #1290
2020-07-17 19:41:38 +02:00
57dc8a91dd
Disable FBO support on OpenGL 2.1 #1290
2020-07-10 13:14:56 +02:00
0877019fb6
Review comment
2020-07-10 12:15:52 +02:00
871cd1a76a
Free leaked allocations from render objects ( #1302 )
2020-07-09 20:42:20 +02:00
5b294b7cff
Corrected issue with OpenGL 1.1 support
2020-06-27 14:10:53 +02:00
ba39a1b304
ADDED: UpdateTextureRec()
2020-06-25 16:26:59 +02:00
73cc33b493
Fix extra memory allocated when updating color buffer in mesh ( #1271 )
2020-06-08 10:31:39 +02:00
94789dd24a
Review usage of sizeof(), unify conventions
...
All functions requiring sizeof() now follow the same convention:
NUM_ELEMENTS*NUM_SUBELEMENTS*sizeof()
2020-05-23 19:23:40 +02:00
70cd2f1edf
Tweak
2020-05-22 02:18:50 +02:00
6acb7bcfe4
Avoid glGetStringi() on OpenGL 2.1
2020-05-18 13:24:21 +02:00
d9a96c4ca0
added BLEND_SET ( #1251 )
...
* added BLEND_SET
* renamed BLEND_SET to BLEND_ADD_COLORS
2020-05-16 13:39:38 +02:00