support offscreen drawing
オープン
- 主要言語
- C
- スター
- 739
- フォーク
- 65
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Redirecting drawing operations to another SDL surface is useful for postprocessing effects, procedurally generated sprites, etc.
Proposed API:
canvas = createCanvas(width, height)
canvas = loadImage(filename)
previous = selectCanvas(canvas)
drawCanvas(canvas, x, y)
canvas = rotozoomCanvas(srcCanvas, angle, zoom, smooth)
The implementation would mostly be a renaming of the existing sprite code and adding more bindings. The sprite() function could be reimplemented in Lua in terms of the canvas functions.
Let me know what you think of this API. I'll implement it in the next couple of days.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。