graphics: Add comment

This commit is contained in:
Hajime Hoshi 2016-02-16 04:11:59 +09:00
parent 35b6286a8d
commit 5fcf20678a

View File

@ -21,10 +21,9 @@ import (
// Filter represents the type of filter to be used when an image is maginified or minified. // Filter represents the type of filter to be used when an image is maginified or minified.
type Filter int type Filter int
// Filters
const ( const (
FilterNearest Filter = iota FilterNearest Filter = iota // nearest (crisp-edged) filter
FilterLinear FilterLinear // linear filter
) )
func glFilter(c *opengl.Context, filter Filter) opengl.Filter { func glFilter(c *opengl.Context, filter Filter) opengl.Filter {