mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
graphicscommand: Update comments
This commit is contained in:
parent
6506c20f4e
commit
c5aba02723
@ -149,8 +149,8 @@ func (i *Image) InternalSize() (int, int) {
|
||||
// The source image is 1) src argument if non-nil, or 2) an image value in the uniform variables if it exists.
|
||||
// If there are multiple images in the uniform variables, the smallest ID's value is adopted.
|
||||
//
|
||||
// If the source image is not specified, i.e., src is nil and there is no image in the uniform variables, these are
|
||||
// not used.
|
||||
// If the source image is not specified, i.e., src is nil and there is no image in the uniform variables, the
|
||||
// elements for the source image are not used.
|
||||
func (i *Image) DrawTriangles(src *Image, vertices []float32, indices []uint16, clr *affine.ColorM, mode driver.CompositeMode, filter driver.Filter, address driver.Address, shader *Shader, uniforms map[int]interface{}) {
|
||||
if src != nil && src.screen {
|
||||
panic("graphicscommand: the screen image cannot be the rendering source")
|
||||
|
Loading…
Reference in New Issue
Block a user