q3parser

package
v0.0.0-...-be997e1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2021 License: GPL-2.0, GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAXFACES  = 6
	ENTMAXVAL = 8
	MAXTEXDUP = 10000
	CMAPDIR   = "maps/"
	CMAPEXT   = ".cmap"
)

Variables

This section is empty.

Functions

func GetIntersection

func GetIntersection(planes [9 * MAXFACES]float64, i uint8, j uint8, k uint8, intersection [3]float64)

get intersection

func GetND

func GetND(planes [9 * MAXFACES]float64, planeNum uint8, normals []float64, distances *float64)

===== MAP ===== get normals and distances

func ParseMap

func ParseMap(path string)

func SafeBytes

func SafeBytes(s interface{}) []byte

Types

type CBRUSH

type CBRUSH struct {
	ID            uint32
	FaceCount     uint8
	PlaneCount    uint8
	Faces         [MAXFACES]int
	Vertices      [12 * MAXFACES]float64
	Planes        [9 * MAXFACES]int32
	Texel         [MAXFACES]string
	ShiftX        [MAXFACES]int32
	ShiftY        [MAXFACES]int32
	ScaleX        [MAXFACES]float32
	ScaleY        [MAXFACES]float32
	Width         [MAXFACES]uint32
	Height        [MAXFACES]uint32
	StartX        [MAXFACES]float64
	StartY        [MAXFACES]float64
	StartZ        [MAXFACES]float64
	EndX          [MAXFACES]float64
	EndY          [MAXFACES]float64
	EndZ          [MAXFACES]float64
	DirectionCode [MAXFACES]uint8
}

type CENT

type CENT struct {
	ID        uint32
	ClassName string
	ValueCnt  uint8
	Values    [ENTMAXVAL]CENTPROP
}

type CENTPROP

type CENTPROP struct {
	Name  string
	Value string
}

type CHEAD

type CHEAD struct {
	BrushCount  uint32
	EntityCount uint32
	TexelCount  uint32
}

type CTEX

type CTEX struct {
	Path string
}

Jump to

Keyboard shortcuts

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