Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FontCache ¶
type FontCache struct {
// contains filtered or unexported fields
}
FontCache はフォントデータを格納する構造体。
func (*FontCache) StoreFontDataFromFile ¶
フォントファイルからデータを読み、格納する。
type SquareMapImage ¶
type SquareMapImage struct {
// Map は描画対象のスクエアマップ。
Map *rpgmap.SquareMap
// FontCache はフォントの格納先。
FontCache *FontCache
// GridWidth は1マスの幅。
GridWidth int
// GridHeight は1マスの高さ。
GridHeight int
// BackgroundColor はマップの背景色。
BackgroundColor color.RGBA
// GridColor はグリッドの線の色。
GridColor color.RGBA
// contains filtered or unexported fields
}
SquareMapImage はスクエアマップの画像描画に必要な情報の構造体。
func NewSquareMapImage ¶
func NewSquareMapImage(m *rpgmap.SquareMap, fc *FontCache) *SquareMapImage
NewSquareMapImage は新しいスクエアマップ描画情報を返す。
Click to show internal directories.
Click to hide internal directories.