SDL_GetTextureAlphaMod

Use this function to get the additional alpha value multiplied into render copy operations.
使用该函数可以得到纹理附加的alpha值,在执行渲染拷贝操作时会乘以该alpha值。

Syntax 语法

  1. int SDL_GetTextureAlphaMod(SDL_Texture* texture,
  2. Uint8* alpha)

Function Parameters 函数参数

texturethe texture to query要查询的纹理
alphaa pointer filled in with the current alpha value用来储存当前alpha值的变量的指针

Return Value 返回值

Returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.
执行成功返回0,若失败则返回一个负的错误码。调用SDL_GetError()以查看更多错误信息。

Code Examples 代码示例

  1. 暂无

Remarks 注意

暂无

Related Functions 相关函数

SDL_GetTextureColorMod
SDL_SetTextureAlphaMod


Translated by SteDeshain
Reference to http://wiki.libsdl.org/SDL_GetTextureAlphaMod