Documentation ¶
Overview ¶
Package atlas provides a basic texture atlas
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrAtlasFull is returned when an image can't fit in an atlas ErrAtlasFull = errors.New("atlas full") )
Functions ¶
Types ¶
type Type ¶
type Type struct { Buffer []byte // contains filtered or unexported fields }
Type is a texture atlas for storing quake pictures (from the bsp package). The buffer is public to allow easy uploading to the gpu.
func New ¶
New creates an atlas of the specified size with zero padding around the textures. pixelSize controls the number of bytes per a pixel
func NewLight ¶
NewLight creates an atlas of the specified size. Textures are padded with the passed number of pixels around each size. This is useful for filtering textures without other textures bleeding through. pixelSize controls the number of bytes per a pixel. This will have no backing buffer.
Click to show internal directories.
Click to hide internal directories.