目次 - API(機能別) - 2Dレンダリング - SDL_CreateTexture
SDL_CreateTexture
レンダリングコンテキストのテクスチャを生成する
構文
SDL_Texture* SDL_CreateTexture(SDL_Renderer* renderer, Uint32 format, int access, int w, int h)
引数
戻り値
成功のとき生成されたテクスチャへのポインタを戻す.
レンダリングコンテキストが使えない, formatが対応していない, wまたはhが範囲外のとき0を戻す.
SDL_GetError()で詳細を知ることができる.
関連項目(関数)
SDL_CreateTextureFromSurface
SDL_DestroyTexture
SDL_QueryTexture
SDL_UpdateTexture
SDL Wikiへのリンク
SDL_CreateTexture - SDL Wiki