graphicscommand: Update comments

This commit is contained in:
Hajime Hoshi 2020-05-24 16:54:28 +09:00
parent 6506c20f4e
commit c5aba02723

View File

@ -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")