| Age | Commit message (Collapse) | Author |
|
|
|
* Add options to set line width and aliasing to rlGL layer.
* Don't do line smoothing in OpenGLES
|
|
tests. (#1451)
|
|
|
|
|
|
|
|
|
|
New implementation allow enabling additional textures per batch only.
|
|
|
|
This path requires some testing...
|
|
|
|
Texture type also maps to Texture2D and TextureCubemap
|
|
|
|
* 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
|
|
- DrawCube() belongs to models.c -> rl*() alternative should be used
|
|
|
|
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.
|
|
Added some tracelog messages
|
|
|
|
|
|
Functions have been redesigned to use rlgl and allow to externalize them (aka removing them from rlgl because they use custom shaders...).
|
|
Required to attach multiple color textures and multiple cubemap faces
|
|
|
|
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.
|
|
Not required anymore, attachment type is queried when required
|
|
Avoid unloading default shader, raylib will take care of it
|
|
|
|
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.
|
|
Better organized and commented
|
|
|
|
|
|
|
|
|
|
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.
|
|
Co-authored-by: max <[email protected]>
|
|
* rlglCheckErrors
* rlglCheckErrors LOG_WARNING
* rename to rlCheckErrors; improve messages; revert core.c
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
All functions requiring sizeof() now follow the same convention:
NUM_ELEMENTS*NUM_SUBELEMENTS*sizeof()
|
|
|
|
|
|
* added BLEND_SET
* renamed BLEND_SET to BLEND_ADD_COLORS
|
|
Most warning were related to types conversion (casting required) and unsigned/signed types comparisons.
Added preprocessor directives (_CRT_SECURE_NO_DEPRECATE; _CRT_NONSTDC_NO_DEPRECATE) to avoid warnings about unsafe functions, those functions are safe while used properly and recommended alternatives are MS only.
Some external libraries still generate warnings.
|
|
Created RenderBatch type and related functions to allow rlgl users creating custom and separate render batches and not only rely on one internal render batch.
This feature has not been exposed on raylib yet because it implies some breaking changes. Right now a custom RenderBatch is just used internally in rlgl.
|