| 1306 | } |
| 1307 | |
| 1308 | int |
| 1309 | SDL_SetTextureColorMod(SDL_Texture * texture, Uint8 r, Uint8 g, Uint8 b) |
| 1310 | { |
| 1311 | CHECK_TEXTURE_MAGIC(texture, -1); |
| 1312 | |
| 1313 | if (r < 255 || g < 255 || b < 255) { |
| 1314 | texture->modMode |= SDL_TEXTUREMODULATE_COLOR; |
| 1315 | } else { |
| 1316 | texture->modMode &= ~SDL_TEXTUREMODULATE_COLOR; |
| 1317 | } |
| 1318 | texture->r = r; |
| 1319 | texture->g = g; |
| 1320 | texture->b = b; |
| 1321 | if (texture->native) { |
| 1322 | return SDL_SetTextureColorMod(texture->native, r, g, b); |
| 1323 | } |
| 1324 | return 0; |
| 1325 | } |
| 1326 | |
| 1327 | int |
| 1328 | SDL_GetTextureColorMod(SDL_Texture * texture, Uint8 * r, Uint8 * g, |
no outgoing calls