graphicsynthesizer

package
v0.0.0-...-0ffb35d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Block4 = [32]int{0, 2, 8, 10, 1, 3, 9, 11, 4, 6, 12,
	14, 5, 7, 13, 15, 16, 18, 24, 26, 17, 19,
	25, 27, 20, 22, 28, 30, 21, 23, 29, 31}
View Source
var ColumnByte4 = [128]int{}/* 128 elements not displayed */
View Source
var ColumnWord4 = [2][128]int{
	{0, 1, 4, 5, 8, 9, 12, 13, 0, 1, 4, 5, 8, 9, 12, 13,
		0, 1, 4, 5, 8, 9, 12, 13, 0, 1, 4, 5, 8, 9, 12, 13,
		2, 3, 6, 7, 10, 11, 14, 15, 2, 3, 6, 7, 10, 11, 14, 15,
		2, 3, 6, 7, 10, 11, 14, 15, 2, 3, 6, 7, 10, 11, 14, 15,

		8, 9, 12, 13, 0, 1, 4, 5, 8, 9, 12, 13, 0, 1, 4, 5,
		8, 9, 12, 13, 0, 1, 4, 5, 8, 9, 12, 13, 0, 1, 4, 5,
		10, 11, 14, 15, 2, 3, 6, 7, 10, 11, 14, 15, 2, 3, 6, 7,
		10, 11, 14, 15, 2, 3, 6, 7, 10, 11, 14, 15, 2, 3, 6, 7},
	{8, 9, 12, 13, 0, 1, 4, 5, 8, 9, 12, 13, 0, 1, 4, 5,
		8, 9, 12, 13, 0, 1, 4, 5, 8, 9, 12, 13, 0, 1, 4, 5,
		10, 11, 14, 15, 2, 3, 6, 7, 10, 11, 14, 15, 2, 3, 6, 7,
		10, 11, 14, 15, 2, 3, 6, 7, 10, 11, 14, 15, 2, 3, 6, 7,

		0, 1, 4, 5, 8, 9, 12, 13, 0, 1, 4, 5, 8, 9, 12, 13,
		0, 1, 4, 5, 8, 9, 12, 13, 0, 1, 4, 5, 8, 9, 12, 13,
		2, 3, 6, 7, 10, 11, 14, 15, 2, 3, 6, 7, 10, 11, 14, 15,
		2, 3, 6, 7, 10, 11, 14, 15, 2, 3, 6, 7, 10, 11, 14, 15}}
View Source
var GsMem = make([]byte, 1024*1024*4)

Functions

func ReadTexPSMCT32

func ReadTexPSMCT32(dbp int, dbw int, dsax int, dsay int, rrw int, rrh int, data []byte)

func ReadTexPSMT4

func ReadTexPSMT4(dbp int, dbw int, dsax int, dsay int, rrw int, rrh int, data []byte)

func ReadTexPSMT8

func ReadTexPSMT8(dbp int, dbw int, dsax int, dsay int, rrw int, rrh int, data []byte)

func Swizzle4

func Swizzle4(data []byte, width, height int) []byte

func Swizzle8

func Swizzle8(data []byte, width, height int) []byte

func Unswizzle4

func Unswizzle4(data []byte, width int, height int) []byte

func Unswizzle8

func Unswizzle8(data []byte, width int, height int) []byte

func WriteTexPSMCT32

func WriteTexPSMCT32(dbp int, dbw int, dsax int, dsay int, rrw int, rrh int, data []byte)

func WriteTexPSMT4

func WriteTexPSMT4(dbp int, dbw int, dsax int, dsay int, rrw int, rrh int, data []byte)

func WriteTexPSMT8

func WriteTexPSMT8(dbp int, dbw int, dsax int, dsay int, rrw int, rrh int, data []byte)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL