qb

package module
v0.0.0-...-82c13e1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2017 License: MIT Imports: 5 Imported by: 0

README

go-qb

[WIP]

Specification

QUBICLE BINARY (QB) FILE SPECIFICATION

Documentation

Index

Constants

View Source
const CODEFLAG = 2
View Source
const NEXTSLICEFLAG = 6

Variables

This section is empty.

Functions

func Parse

func Parse(filename string)

Types

type Header struct {
	Version          Version
	ColorFormat      color.RGBA
	ZAxisOrientation ZAxisOrientation
}

Header represents Qubicle Binary file header.

type Parser

type Parser struct {
}

Parser presents Qubicle Binary file parser.

func New

func New() *Parser

New parser.

func (Parser) Next

func (p Parser) Next(f *os.File, n int) []byte

Next returns next n bytes in file.

func (Parser) Parse

func (p Parser) Parse()

type QB

type QB struct {
	Version               uint32
	ColorFormat           uint32
	ZAxisOrientation      uint32
	Compressed            uint32
	VisibilityMaskEncoded uint32
	NumMatrices           uint32
	F                     *os.File
	I                     uint32
	J                     uint32
	X                     uint32
	Y                     uint32
	Z                     uint32
	SizeX                 uint32
	SizeY                 uint32
	SizeZ                 uint32
	PosX                  int32
	PosY                  int32
	PosZ                  int32
	//Matrix array
	//MatrixList array
	Index uint32
	Data  uint32
	Count uint32
}

type Reader

type Reader struct {
}

type Version

type Version struct {
	Major   int8
	Minor   int8
	Release int8
	Build   int8
}

Version represents Qubicle Binary file version.

type ZAxisOrientation

type ZAxisOrientation int
const (
	LeftHanded ZAxisOrientation = iota
	RightHanded
)

Directories

Path Synopsis
cmd
qb

Jump to

Keyboard shortcuts

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