diff options
| author | Ray <[email protected]> | 2022-09-01 11:18:22 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2022-09-01 11:18:22 +0200 |
| commit | 64cca24526d8d2f82e87039a1d492dcbe07b994d (patch) | |
| tree | ab99022515408db49f5e8e608a5d6f1c77c4a061 | |
| parent | a598754b5bf4fbc5b606ba161fe243666ae4f758 (diff) | |
| download | raylib-64cca24526d8d2f82e87039a1d492dcbe07b994d.tar.gz raylib-64cca24526d8d2f82e87039a1d492dcbe07b994d.zip | |
ADDED: `RL_TEXTURE_MIPMAP_BIAS_RATIO` support to `rlTextureParameters()` for OpenGL 3.3 #2674
| -rw-r--r-- | src/rlgl.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -243,6 +243,7 @@ #define RL_TEXTURE_FILTER_LINEAR_MIP_NEAREST 0x2701 // GL_LINEAR_MIPMAP_NEAREST #define RL_TEXTURE_FILTER_MIP_LINEAR 0x2703 // GL_LINEAR_MIPMAP_LINEAR #define RL_TEXTURE_FILTER_ANISOTROPIC 0x3000 // Anisotropic filter (custom identifier) +#define RL_TEXTURE_MIPMAP_BIAS_RATIO 0x4000 // Texture mipmap bias (percentage ratio) #define RL_TEXTURE_WRAP_REPEAT 0x2901 // GL_REPEAT #define RL_TEXTURE_WRAP_CLAMP 0x812F // GL_CLAMP_TO_EDGE @@ -1551,6 +1552,9 @@ void rlTextureParameters(unsigned int id, int param, int value) else TRACELOG(RL_LOG_WARNING, "GL: Anisotropic filtering not supported"); #endif } break; +#if defined(GRAPHICS_API_OPENGL_33) + case RL_TEXTURE_MIPMAP_BIAS_RATIO: glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_LOD_BIAS, value/100.0f); +#endif default: break; } |
