sdlGetTextureColorMod function

int sdlGetTextureColorMod(
  1. Pointer<SdlTexture> texture,
  2. Pointer<Uint8> r,
  3. Pointer<Uint8> g,
  4. Pointer<Uint8> b,
)

Get the additional color value multiplied into render copy operations.

\param texture the texture to query \param r a pointer filled in with the current red color value \param g a pointer filled in with the current green color value \param b a pointer filled in with the current blue color value \returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.

\since This function is available since SDL 2.0.0.

\sa SDL_GetTextureAlphaMod \sa SDL_SetTextureColorMod

extern DECLSPEC int SDLCALL SDL_GetTextureColorMod(SDL_Texture * texture, Uint8 * r, Uint8 * g, Uint8 * b)

Implementation

int sdlGetTextureColorMod(Pointer<SdlTexture> texture, Pointer<Uint8> r,
    Pointer<Uint8> g, Pointer<Uint8> b) {
  final sdlGetTextureColorModLookupFunction = libSdl2.lookupFunction<
      Int32 Function(Pointer<SdlTexture> texture, Pointer<Uint8> r,
          Pointer<Uint8> g, Pointer<Uint8> b),
      int Function(Pointer<SdlTexture> texture, Pointer<Uint8> r,
          Pointer<Uint8> g, Pointer<Uint8> b)>('SDL_GetTextureColorMod');
  return sdlGetTextureColorModLookupFunction(texture, r, g, b);
}