bool SDL_RenderLine(SDL_Renderer *renderer, float x1, float y1, float x2, float y2);
| SDL_Renderer * | renderer | レンダリングコンテキスト |
| float | x1 | 始点のX座標 |
| float | y1 | 始点のY座標 |
| float | x2 | 終点のX座標 |
| float | y2 | 終点のY座標 |
(bool) 成功のとき真, 失敗のとき偽を戻す. SDL_GetError()を呼んで詳細を知ることができる.
この関数を呼べるのはメインスレッドのみである.