diff options
| author | raysan5 <[email protected]> | 2020-09-01 21:02:19 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2020-09-01 21:02:19 +0200 |
| commit | a1422ba1c16c74a39793f95f73f1228eeca71f38 (patch) | |
| tree | edd87194119a7fadb039518e6d0fdeb38d956145 /src/raylib.h | |
| parent | bfafb80cdeed9703a2e13479a39a42ba7efb1328 (diff) | |
| download | raylib-a1422ba1c16c74a39793f95f73f1228eeca71f38.tar.gz raylib-a1422ba1c16c74a39793f95f73f1228eeca71f38.zip | |
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.
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/raylib.h b/src/raylib.h index 83b71d11..74c56592 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -808,8 +808,9 @@ typedef enum { BLEND_ALPHA = 0, // Blend textures considering alpha (default) BLEND_ADDITIVE, // Blend textures adding colors BLEND_MULTIPLIED, // Blend textures multiplying colors - BLEND_ADD_COLORS, // Blend textures adding colors (alternative) - BLEND_SUBTRACT_COLORS // Blend textures subtracting colors (alternative) + BLEND_ADD_COLORS, // Blend textures adding colors (alternative) + BLEND_SUBTRACT_COLORS, // Blend textures subtracting colors (alternative) + BLEND_CUSTOM // Belnd textures using custom src/dst factors (use SetBlendModeCustom()) } BlendMode; // Gestures type @@ -1391,10 +1392,8 @@ RLAPI Texture2D GenTextureBRDF(Shader shader, int size); // Gen RLAPI void BeginShaderMode(Shader shader); // Begin custom shader drawing RLAPI void EndShaderMode(void); // End custom shader drawing (use default shader) RLAPI void BeginBlendMode(int mode); // Begin blending mode (alpha, additive, multiplied) -RLAPI void BeginBlendModeEx(int sFactor, int dFactor, int equation); // Begin blending mode (full options) RLAPI void EndBlendMode(void); // End blending mode (reset to default: alpha blending) - // VR control functions RLAPI void InitVrSimulator(void); // Init VR simulator for selected device parameters RLAPI void CloseVrSimulator(void); // Close VR simulator for current device |
