目次 - API(機能別) - 2Dレンダリング - SDL_RenderGeometry
SDL_RenderGeometry
三角形の一覧をレンダリングする. テクスチャとベクトル配列の番号も使用できる. 色とα変調はベクトルごとに行われる(SDL_SetTextureColorModとSDL_SetTextureAlphaModは無視される)
構文
int SDL_RenderGeometry(SDL_Renderer* renderer, SDL_Texture* texture, const SDL_Vertex* vertices, int num_vertices, const int* indices, int num_indices)
引数
renderer | レンダラ |
texture | (任意) 使用するSDL_Texture |
vertices | ベクトルの配列 |
num_vertices | ベクトルの個数 |
indices | インデックス番号の配列 |
num_indices | インデックス番号の個数 |
戻り値
成功のとき0, 対応していないとき-1を戻す.
バージョン
この関数はSDL git HEADから使用できる. (開発中で公式にはリリースされていない)
SDL Wikiへのリンク
SDL_RenderGeometry - SDL Wiki