BLEND_ALPHA_PREMULTIPLY.

This commit is contained in:
jussi
2023-02-08 01:21:03 +02:00
parent db957a8181
commit cf7c480aca
6 changed files with 9 additions and 6 deletions

View File

@@ -323,6 +323,7 @@ void defineGlobals() {
assignGlobalInt( BLEND_MULTIPLIED, "BLEND_MULTIPLIED" );
assignGlobalInt( BLEND_ADD_COLORS, "BLEND_ADD_COLORS" );
assignGlobalInt( BLEND_SUBTRACT_COLORS, "BLEND_SUBTRACT_COLORS" );
assignGlobalInt( BLEND_ALPHA_PREMULTIPLY, "BLEND_ALPHA_PREMULTIPLY" );
assignGlobalInt( BLEND_CUSTOM, "BLEND_CUSTOM" );
/* Gesture */
assignGlobalInt( GESTURE_NONE, "GESTURE_NONE" );

View File

@@ -695,10 +695,10 @@ int ltexturesImageAlphaClear( lua_State *L ) {
lua_pushboolean( L, false );
return 1;
}
Color color = uluaGetColor( L );
lua_pop( L, 1 );
float threshold = lua_tonumber( L, -1 );
lua_pop( L, 1 );
Color color = uluaGetColor( L );
lua_pop( L, 1 );
size_t imageId = lua_tointeger( L, -1 );
if ( !validImage( imageId ) ) {
@@ -1766,7 +1766,6 @@ int ltexturesLoadRenderTexture( lua_State *L ) {
return 1;
}
/*
> success = RL_UnloadTexture( Texture2D texture )