| 1343 | } |
| 1344 | |
| 1345 | int |
| 1346 | SDL_SetTextureAlphaMod(SDL_Texture * texture, Uint8 alpha) |
| 1347 | { |
| 1348 | CHECK_TEXTURE_MAGIC(texture, -1); |
| 1349 | |
| 1350 | if (alpha < 255) { |
| 1351 | texture->modMode |= SDL_TEXTUREMODULATE_ALPHA; |
| 1352 | } else { |
| 1353 | texture->modMode &= ~SDL_TEXTUREMODULATE_ALPHA; |
| 1354 | } |
| 1355 | texture->a = alpha; |
| 1356 | if (texture->native) { |
| 1357 | return SDL_SetTextureAlphaMod(texture->native, alpha); |
| 1358 | } |
| 1359 | return 0; |
| 1360 | } |
| 1361 | |
| 1362 | int |
| 1363 | SDL_GetTextureAlphaMod(SDL_Texture * texture, Uint8 * alpha) |
no outgoing calls