Documentation ¶
Index ¶
- Constants
- type Area
- type AreaPortal
- type Brush
- type BrushSide
- type ClipPortalVerts
- type Cubemap
- type DispInfo
- type DispLightmapSamplePosition
- type DispTris
- type DispVert
- type Edge
- type EntData
- type Face
- type FaceHDR
- type FaceId
- type FaceMacroTextureInfo
- type Game
- type Generic
- type ILump
- type Leaf
- type LeafAmbientIndex
- type LeafAmbientIndexHDR
- type LeafAmbientLighting
- type LeafAmbientLightingHDR
- type LeafBrush
- type LeafFace
- type LeafMinDistToWater
- type LeafWaterData
- type Lighting
- type MapFlags
- type Metadata
- type Model
- type Node
- type Occlusion
- type Overlay
- type OverlayFade
- type Pakfile
- type PhysCollide
- type PhysDisp
- type Planes
- type PrimIndice
- type PrimVert
- type Primitive
- type Surfedge
- type TexData
- type TexDataStringData
- type TexDataStringTable
- type TexInfo
- type Unimplemented
- type VertNormal
- type VertNormalIndice
- type Vertex
- type Visibility
- type WorldLight
- type WorldLightHDR
Constants ¶
const (
// MaxMapLeafs is the maximum number of leafs the engine can handle
MaxMapLeafs = 65536
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Area ¶
type Area struct { Generic // contains filtered or unexported fields }
Area is Lump 20: Areas
func (*Area) GetData ¶
func (lump *Area) GetData() []primitives.Area
GetData gets internal format structure data
func (*Area) Unmarshall ¶ added in v0.2.0
Unmarshall Imports this lump from raw byte data
type AreaPortal ¶
type AreaPortal struct { Generic // contains filtered or unexported fields }
AreaPortal is Lump 21: Areaportals
func (*AreaPortal) GetData ¶
func (lump *AreaPortal) GetData() []primitives.AreaPortal
GetData gets internal format structure data
func (*AreaPortal) Marshall ¶ added in v0.2.0
func (lump *AreaPortal) Marshall() ([]byte, error)
Marshall dumps this lump back to raw byte data
func (*AreaPortal) Unmarshall ¶ added in v0.2.0
func (lump *AreaPortal) Unmarshall(raw []byte) (err error)
Unmarshall Imports this lump from raw byte data
type Brush ¶
type Brush struct { Generic // contains filtered or unexported fields }
Brush is Lump 18: Brush
func (*Brush) GetData ¶
func (lump *Brush) GetData() []primitives.Brush
GetData gets internal format structure data
func (*Brush) Unmarshall ¶ added in v0.2.0
Unmarshall Imports this lump from raw byte data
type BrushSide ¶
type BrushSide struct { Generic // contains filtered or unexported fields }
BrushSide is Lump 19: BrushSide
func (*BrushSide) GetData ¶
func (lump *BrushSide) GetData() []primitives.BrushSide
GetData gets internal format structure data
func (*BrushSide) Unmarshall ¶ added in v0.2.0
Unmarshall Imports this lump from raw byte data
type ClipPortalVerts ¶
type ClipPortalVerts struct { Generic // contains filtered or unexported fields }
ClipPortalVerts is Lump 41: ClipPortalVerts
func (*ClipPortalVerts) GetData ¶
func (lump *ClipPortalVerts) GetData() []mgl32.Vec3
GetData gets internal format structure data
func (*ClipPortalVerts) Marshall ¶ added in v0.2.0
func (lump *ClipPortalVerts) Marshall() ([]byte, error)
Marshall dumps this lump back to raw byte data
func (*ClipPortalVerts) Unmarshall ¶ added in v0.2.0
func (lump *ClipPortalVerts) Unmarshall(raw []byte) (err error)
Unmarshall Imports this lump from raw byte data
type Cubemap ¶
type Cubemap struct { Generic // contains filtered or unexported fields }
Cubemap is Lump 42: Cubemaps
func (*Cubemap) GetData ¶
func (lump *Cubemap) GetData() []primitives.CubemapSample
GetData gets internal format structure data
func (*Cubemap) Unmarshall ¶ added in v0.2.0
Unmarshall Imports this lump from raw byte data
type DispInfo ¶
type DispInfo struct { Generic // contains filtered or unexported fields }
DispInfo is Lump 26: DispInfo
func (*DispInfo) GetData ¶
func (lump *DispInfo) GetData() []primitives.DispInfo
GetData gets internal format structure data
func (*DispInfo) Unmarshall ¶ added in v0.2.0
Unmarshall Imports this lump from raw byte data
type DispLightmapSamplePosition ¶
type DispLightmapSamplePosition struct { Generic // contains filtered or unexported fields }
DispLightmapSamplePosition is Lump 34: DispLightmapSamplePosition NOTE: This does NOT have a mapped format yet, and is readable as []byte only
func (*DispLightmapSamplePosition) GetData ¶
func (lump *DispLightmapSamplePosition) GetData() []byte
GetData gets internal format structure data
func (*DispLightmapSamplePosition) Marshall ¶ added in v0.2.0
func (lump *DispLightmapSamplePosition) Marshall() ([]byte, error)
Marshall dumps this lump back to raw byte data
func (*DispLightmapSamplePosition) Unmarshall ¶ added in v0.2.0
func (lump *DispLightmapSamplePosition) Unmarshall(raw []byte) (err error)
Unmarshall Imports this lump from raw byte data
type DispTris ¶
type DispTris struct { Generic // contains filtered or unexported fields }
DispTris is Lump 48: DispTris
func (*DispTris) GetData ¶
func (lump *DispTris) GetData() []primitives.DispTri
GetData gets internal format structure data
func (*DispTris) Unmarshall ¶ added in v0.2.0
Unmarshall Imports this lump from raw byte data
type DispVert ¶
type DispVert struct { Generic // contains filtered or unexported fields }
DispVert is Lump 33: DispVert
func (*DispVert) GetData ¶
func (lump *DispVert) GetData() []primitives.DispVert
GetData gets internal format structure data
func (*DispVert) Unmarshall ¶ added in v0.2.0
Unmarshall Imports this lump from raw byte data
type Edge ¶
type Edge struct { Generic // contains filtered or unexported fields }
Edge is Lump 12: Edge
func (*Edge) Unmarshall ¶ added in v0.2.0
Unmarshall Imports this lump from raw byte data
type EntData ¶
type EntData struct { Generic // contains filtered or unexported fields }
EntData is Lump 0: Entdata
func (*EntData) Unmarshall ¶ added in v0.2.0
Unmarshall Imports this lump from raw byte data
type Face ¶
type Face struct { Generic // contains filtered or unexported fields }
Face is Lump 7: Face
func (*Face) GetData ¶
func (lump *Face) GetData() []primitives.Face
GetData gets internal format structure data
func (*Face) Unmarshall ¶ added in v0.2.0
Unmarshall Imports this lump from raw byte data
type FaceHDR ¶
type FaceHDR struct { Generic // contains filtered or unexported fields }
FaceHDR is Lump 58: FaceHDR
func (*FaceHDR) GetData ¶
func (lump *FaceHDR) GetData() []primitives.Face
GetData gets internal format structure data
func (*FaceHDR) Unmarshall ¶ added in v0.2.0
Unmarshall Imports this lump from raw byte data
type FaceId ¶
type FaceId struct { Generic // contains filtered or unexported fields }
FaceId is Lump 11: FaceIds
func (*FaceId) GetData ¶
func (lump *FaceId) GetData() []primitives.FaceId
GetData gets internal format structure data
func (*FaceId) Unmarshall ¶ added in v0.2.0
Unmarshall Imports this lump from raw byte data
type FaceMacroTextureInfo ¶
type FaceMacroTextureInfo struct { Generic // contains filtered or unexported fields }
FaceMacroTextureInfo is Lump 47: FaceMacroTextureInfo
func (*FaceMacroTextureInfo) GetData ¶
func (lump *FaceMacroTextureInfo) GetData() []primitives.FaceMacroTextureInfo
GetData gets internal format structure data
func (*FaceMacroTextureInfo) Marshall ¶ added in v0.2.0
func (lump *FaceMacroTextureInfo) Marshall() ([]byte, error)
Marshall dumps this lump back to raw byte data
func (*FaceMacroTextureInfo) Unmarshall ¶ added in v0.2.0
func (lump *FaceMacroTextureInfo) Unmarshall(raw []byte) (err error)
Unmarshall Imports this lump from raw byte data
type Game ¶
type Game struct { Generic Header primitives.Header GameLumps []primitives.GenericGameLump LumpOffset int32 // contains filtered or unexported fields }
Game is Lump 35. @TODO NOTE: This really needs per-game implementations to be completely useful, otherwise we only get staticprop data from it
func (*Game) GetStaticPropLump ¶
func (lump *Game) GetStaticPropLump() *primitives.StaticPropLump
GetStaticPropLump returns the staticprop lump
func (*Game) Unmarshall ¶ added in v0.2.0
Unmarshall Imports this lump from raw byte data
func (*Game) UpdateInternalOffsets ¶
UpdateInternalOffsets updates the lumps offsets to be relative to the lump, rather than the bsp start
type Generic ¶ added in v0.2.0
type Generic struct { Metadata // contains filtered or unexported fields }
Generic is a raw byte lump It should be used in cases where the data has no or unknown structures.
func (*Generic) Unmarshall ¶ added in v0.2.0
Unmarshall Imports this lump from raw byte data
type ILump ¶
type ILump interface { // Unmarshall Imports a []byte to a defined lump structure(s). Unmarshall([]byte) error // Marshall Exports lump structure back to []byte. Marshall() ([]byte, error) SetVersion(version int32) }
ILump Lump interface. Organise Lump data in a cleaner and more accessible manner
type Leaf ¶
type Leaf struct { Generic // contains filtered or unexported fields }
Leaf is Lump 10: Leaf
func (*Leaf) GetData ¶
func (lump *Leaf) GetData() []primitives.Leaf
GetData gets internal format structure data
func (*Leaf) Unmarshall ¶ added in v0.2.0
Unmarshall Imports this lump from raw byte data
type LeafAmbientIndex ¶
type LeafAmbientIndex struct { Generic // contains filtered or unexported fields }
LeafAmbientIndex is Lump 52: Leaf Ambient Index
func (*LeafAmbientIndex) GetData ¶
func (lump *LeafAmbientIndex) GetData() []primitives.LeafAmbientIndex
GetData gets internal format structure data
func (*LeafAmbientIndex) Marshall ¶ added in v0.2.0
func (lump *LeafAmbientIndex) Marshall() ([]byte, error)
Marshall dumps this lump back to raw byte data
func (*LeafAmbientIndex) Unmarshall ¶ added in v0.2.0
func (lump *LeafAmbientIndex) Unmarshall(raw []byte) (err error)
Unmarshall Imports this lump from raw byte data
type LeafAmbientIndexHDR ¶
type LeafAmbientIndexHDR struct { Generic // contains filtered or unexported fields }
LeafAmbientIndexHDR is Lump 51: Leaf Ambient Index HDR
func (*LeafAmbientIndexHDR) GetData ¶
func (lump *LeafAmbientIndexHDR) GetData() []primitives.LeafAmbientIndex
GetData gets internal format structure data
func (*LeafAmbientIndexHDR) Marshall ¶ added in v0.2.0
func (lump *LeafAmbientIndexHDR) Marshall() ([]byte, error)
Marshall dumps this lump back to raw byte data
func (*LeafAmbientIndexHDR) Unmarshall ¶ added in v0.2.0
func (lump *LeafAmbientIndexHDR) Unmarshall(raw []byte) (err error)
Unmarshall Imports this lump from raw byte data
type LeafAmbientLighting ¶
type LeafAmbientLighting struct { Generic // contains filtered or unexported fields }
LeafAmbientLighting is Lump 56: LeafAmbientLighting
func (*LeafAmbientLighting) GetData ¶
func (lump *LeafAmbientLighting) GetData() []primitives.LeafAmbientLighting
GetData gets internal format structure data
func (*LeafAmbientLighting) Marshall ¶ added in v0.2.0
func (lump *LeafAmbientLighting) Marshall() ([]byte, error)
Marshall dumps this lump back to raw byte data
func (*LeafAmbientLighting) Unmarshall ¶ added in v0.2.0
func (lump *LeafAmbientLighting) Unmarshall(raw []byte) (err error)
Unmarshall Imports this lump from raw byte data
type LeafAmbientLightingHDR ¶
type LeafAmbientLightingHDR struct { Generic // contains filtered or unexported fields }
LeafAmbientLightingHDR is Lump 55: LeafAmbientLightingHDR
func (*LeafAmbientLightingHDR) GetData ¶
func (lump *LeafAmbientLightingHDR) GetData() []primitives.LeafAmbientLighting
GetData gets internal format structure data
func (*LeafAmbientLightingHDR) Marshall ¶ added in v0.2.0
func (lump *LeafAmbientLightingHDR) Marshall() ([]byte, error)
Marshall dumps this lump back to raw byte data
func (*LeafAmbientLightingHDR) Unmarshall ¶ added in v0.2.0
func (lump *LeafAmbientLightingHDR) Unmarshall(raw []byte) (err error)
Unmarshall Imports this lump from raw byte data
type LeafBrush ¶
type LeafBrush struct { Generic // contains filtered or unexported fields }
LeafBrush is Lump 17: LeafBrush
func (*LeafBrush) Unmarshall ¶ added in v0.2.0
Unmarshall Imports this lump from raw byte data
type LeafFace ¶
type LeafFace struct { Generic // contains filtered or unexported fields }
LeafFace is Lump 16: LeafFace
func (*LeafFace) Unmarshall ¶ added in v0.2.0
Unmarshall Imports this lump from raw byte data
type LeafMinDistToWater ¶
type LeafMinDistToWater struct { Generic // contains filtered or unexported fields }
LeafMinDistToWater is Lump 46: LeafMinDistToWater
func (*LeafMinDistToWater) GetData ¶
func (lump *LeafMinDistToWater) GetData() []uint16
GetData gets internal format structure data
func (*LeafMinDistToWater) Marshall ¶ added in v0.2.0
func (lump *LeafMinDistToWater) Marshall() ([]byte, error)
Marshall dumps this lump back to raw byte data
func (*LeafMinDistToWater) Unmarshall ¶ added in v0.2.0
func (lump *LeafMinDistToWater) Unmarshall(raw []byte) (err error)
Unmarshall Imports this lump from raw byte data
type LeafWaterData ¶
type LeafWaterData struct { Generic // contains filtered or unexported fields }
LeafWaterData is Lump 36: leafwaterdata
func (*LeafWaterData) GetData ¶
func (lump *LeafWaterData) GetData() []primitives.LeafWaterData
GetData gets internal format structure data
func (*LeafWaterData) Marshall ¶ added in v0.2.0
func (lump *LeafWaterData) Marshall() ([]byte, error)
Marshall dumps this lump back to raw byte data
func (*LeafWaterData) Unmarshall ¶ added in v0.2.0
func (lump *LeafWaterData) Unmarshall(raw []byte) (err error)
Unmarshall Imports this lump from raw byte data
type Lighting ¶
type Lighting struct { Generic // contains filtered or unexported fields }
Lighting is Lump 8: Lighting
func (*Lighting) GetData ¶
func (lump *Lighting) GetData() []primitives.ColorRGBExponent32
GetData gets internal format structure data
func (*Lighting) Unmarshall ¶ added in v0.2.0
Unmarshall Imports this lump from raw byte data
type MapFlags ¶
type MapFlags struct { Generic // contains filtered or unexported fields }
MapFlags is Lump 59: MapFlags
func (*MapFlags) GetData ¶
func (lump *MapFlags) GetData() *primitives.MapFlags
GetData gets internal format structure data
func (*MapFlags) Unmarshall ¶ added in v0.2.0
Unmarshall Imports this lump from raw byte data
type Metadata ¶ added in v0.2.0
type Metadata struct {
// contains filtered or unexported fields
}
Metadata is a Helper info for a lump
func (*Metadata) SetVersion ¶ added in v0.2.0
SetVersion sets bsp version of lump
type Model ¶
type Model struct { Generic // contains filtered or unexported fields }
Model is Lump 14: Model
func (*Model) GetData ¶
func (lump *Model) GetData() []primitives.Model
GetData gets internal format structure data
func (*Model) Unmarshall ¶ added in v0.2.0
Unmarshall Imports this lump from raw byte data
type Node ¶
type Node struct { Generic // contains filtered or unexported fields }
Node is Lump 5: Node
func (*Node) GetData ¶
func (lump *Node) GetData() []primitives.Node
GetData gets internal format structure data
func (*Node) Unmarshall ¶ added in v0.2.0
Unmarshall Imports this lump from raw byte data
type Occlusion ¶
type Occlusion struct { Generic Count int32 Data []primitives.OcclusionData // len(slice) = Count PolyDataCount int32 PolyData []primitives.OcclusionPolyData //len(slice) = PolyDataCount VertexIndexCount int32 VertexIndices []int32 //len(slice) = VertexIndexCount }
Occlusion is Lump 9: Occlusion
func (*Occlusion) Unmarshall ¶ added in v0.2.0
Unmarshall Imports this lump from raw byte data
type Overlay ¶
type Overlay struct { Generic // contains filtered or unexported fields }
Overlay is Lump 45: Overlay Consists of an array of Overlay structs
func (*Overlay) GetData ¶
func (lump *Overlay) GetData() []primitives.Overlay
GetData gets internal format structure data
func (*Overlay) Unmarshall ¶ added in v0.2.0
Unmarshall Imports this lump from raw byte data
type OverlayFade ¶
type OverlayFade struct { Generic // contains filtered or unexported fields }
OverlayFade is Lump 60: Overlayfades
func (*OverlayFade) GetData ¶
func (lump *OverlayFade) GetData() []primitives.OverlayFade
GetData gets internal format structure data
func (*OverlayFade) Marshall ¶ added in v0.2.0
func (lump *OverlayFade) Marshall() ([]byte, error)
Marshall dumps this lump back to raw byte data
func (*OverlayFade) Unmarshall ¶ added in v0.2.0
func (lump *OverlayFade) Unmarshall(raw []byte) (err error)
Unmarshall Imports this lump from raw byte data
type Pakfile ¶
type Pakfile struct { Generic // contains filtered or unexported fields }
Pakfile is Lump 40: Pakfile
func (*Pakfile) GetFile ¶
GetFile Get a specific file from the pak This function does have the expectation that filenames are case-insensitive, so in the (shouldn't happen) case of name collisions over case-insensitivity, there may be issues
func (*Pakfile) Unmarshall ¶ added in v0.2.0
Unmarshall Imports this lump from raw byte data
type PhysCollide ¶
type PhysCollide struct { Generic // contains filtered or unexported fields }
PhysCollide is Lump 20: PhysCollide
func (*PhysCollide) GetData ¶
func (lump *PhysCollide) GetData() []primitives.PhysCollideEntry
GetData gets internal format structure data
func (*PhysCollide) Marshall ¶ added in v0.2.0
func (lump *PhysCollide) Marshall() ([]byte, error)
Marshall dumps this lump back to raw byte data
func (*PhysCollide) Unmarshall ¶ added in v0.2.0
func (lump *PhysCollide) Unmarshall(raw []byte) (err error)
Unmarshall Imports this lump from raw byte data
type PhysDisp ¶
type PhysDisp struct { Generic // contains filtered or unexported fields }
PhysDisp is Lump 28: PhysDisp
func (*PhysDisp) Unmarshall ¶ added in v0.2.0
Unmarshall Imports this lump from raw byte data
type Planes ¶
type Planes struct { Generic // contains filtered or unexported fields }
Planes is Lump 1: Planes
func (*Planes) GetData ¶
func (lump *Planes) GetData() []primitives.Plane
GetData gets internal format structure data
func (*Planes) Unmarshall ¶ added in v0.2.0
Unmarshall Imports this lump from raw byte data
type PrimIndice ¶
type PrimIndice struct { Generic // contains filtered or unexported fields }
PrimIndice is Lump 39: PrimIndice
func (*PrimIndice) GetData ¶
func (lump *PrimIndice) GetData() []uint16
GetData gets internal format structure data
func (*PrimIndice) Marshall ¶ added in v0.2.0
func (lump *PrimIndice) Marshall() ([]byte, error)
Marshall dumps this lump back to raw byte data
func (*PrimIndice) Unmarshall ¶ added in v0.2.0
func (lump *PrimIndice) Unmarshall(raw []byte) (err error)
Unmarshall Imports this lump from raw byte data
type PrimVert ¶
type PrimVert struct { Generic // contains filtered or unexported fields }
PrimVert is Lump 37: PrimVert
func (*PrimVert) GetData ¶
func (lump *PrimVert) GetData() []primitives.PrimVert
GetData gets internal format structure data
func (*PrimVert) Unmarshall ¶ added in v0.2.0
Unmarshall Imports this lump from raw byte data
type Primitive ¶
type Primitive struct { Generic // contains filtered or unexported fields }
Primitive is Lump 36: Primitive
func (*Primitive) GetData ¶
func (lump *Primitive) GetData() []primitives.Primitive
GetData gets internal format structure data
func (*Primitive) Unmarshall ¶ added in v0.2.0
Unmarshall Imports this lump from raw byte data
type Surfedge ¶
type Surfedge struct { Generic // contains filtered or unexported fields }
Surfedge is Lump 13: Surfedge
func (*Surfedge) Unmarshall ¶ added in v0.2.0
Unmarshall Imports this lump from raw byte data
type TexData ¶
type TexData struct { Generic // contains filtered or unexported fields }
TexData is Lump 2: TexData
func (*TexData) GetData ¶
func (lump *TexData) GetData() []primitives.TexData
GetData gets internal format structure data
func (*TexData) Unmarshall ¶ added in v0.2.0
Unmarshall Imports this lump from raw byte data
type TexDataStringData ¶ added in v0.2.0
type TexDataStringData struct { Generic // contains filtered or unexported fields }
TexDataStringData is Lump 43: TexDataStringData
func (*TexDataStringData) GetData ¶ added in v0.2.0
func (lump *TexDataStringData) GetData() string
GetData gets internal format structure data
func (*TexDataStringData) Marshall ¶ added in v0.2.0
func (lump *TexDataStringData) Marshall() ([]byte, error)
Marshall dumps this lump back to raw byte data
func (*TexDataStringData) Unmarshall ¶ added in v0.2.0
func (lump *TexDataStringData) Unmarshall(raw []byte) (err error)
Unmarshall Imports this lump from raw byte data
type TexDataStringTable ¶
type TexDataStringTable struct { Generic // contains filtered or unexported fields }
TexDataStringTable is Lump 44: TexDataStringTable
func (*TexDataStringTable) GetData ¶
func (lump *TexDataStringTable) GetData() []int32
GetData gets internal format structure data
func (*TexDataStringTable) Marshall ¶ added in v0.2.0
func (lump *TexDataStringTable) Marshall() ([]byte, error)
Marshall dumps this lump back to raw byte data
func (*TexDataStringTable) Unmarshall ¶ added in v0.2.0
func (lump *TexDataStringTable) Unmarshall(raw []byte) (err error)
Unmarshall Imports this lump from raw byte data
type TexInfo ¶
type TexInfo struct { Generic // contains filtered or unexported fields }
TexInfo is Lump 6: TexInfo
func (*TexInfo) GetData ¶
func (lump *TexInfo) GetData() []primitives.TexInfo
GetData gets internal format structure data
func (*TexInfo) Unmarshall ¶ added in v0.2.0
Unmarshall Imports this lump from raw byte data
type Unimplemented ¶
type Unimplemented struct { Generic // contains filtered or unexported fields }
Unimplemented is Lump n: Unimplemented lump type
func (*Unimplemented) GetData ¶
func (lump *Unimplemented) GetData() []byte
GetData gets internal format structure data
func (*Unimplemented) Marshall ¶ added in v0.2.0
func (lump *Unimplemented) Marshall() ([]byte, error)
Marshall dumps this lump back to raw byte data
func (*Unimplemented) Unmarshall ¶ added in v0.2.0
func (lump *Unimplemented) Unmarshall(raw []byte) (err error)
Unmarshall Imports this lump from raw byte data
type VertNormal ¶
type VertNormal struct { Generic // contains filtered or unexported fields }
VertNormal is Lump 30: VertNormal
func (*VertNormal) GetData ¶
func (lump *VertNormal) GetData() []primitives.VertNormal
GetData gets internal format structure data
func (*VertNormal) Marshall ¶ added in v0.2.0
func (lump *VertNormal) Marshall() ([]byte, error)
Marshall dumps this lump back to raw byte data
func (*VertNormal) Unmarshall ¶ added in v0.2.0
func (lump *VertNormal) Unmarshall(raw []byte) (err error)
Unmarshall Imports this lump from raw byte data
type VertNormalIndice ¶
type VertNormalIndice struct { Generic // contains filtered or unexported fields }
VertNormalIndice is Lump 31: VertNormalIndice
func (*VertNormalIndice) GetData ¶
func (lump *VertNormalIndice) GetData() []uint16
GetData gets internal format structure data
func (*VertNormalIndice) Marshall ¶ added in v0.2.0
func (lump *VertNormalIndice) Marshall() ([]byte, error)
Marshall dumps this lump back to raw byte data
func (*VertNormalIndice) Unmarshall ¶ added in v0.2.0
func (lump *VertNormalIndice) Unmarshall(raw []byte) (err error)
Unmarshall Imports this lump from raw byte data
type Vertex ¶
type Vertex struct { Generic // contains filtered or unexported fields }
Vertex is Lump 3: Vertex
func (*Vertex) Unmarshall ¶ added in v0.2.0
Unmarshall Imports this lump from raw byte data
type Visibility ¶
type Visibility struct { Generic // contains filtered or unexported fields }
Visibility is Lump 4: Visibility
func (*Visibility) GetData ¶
func (lump *Visibility) GetData() *primitives.Vis
GetData gets internal format structure data
func (*Visibility) Marshall ¶ added in v0.2.0
func (lump *Visibility) Marshall() ([]byte, error)
Marshall dumps this lump back to raw byte data
func (*Visibility) Unmarshall ¶ added in v0.2.0
func (lump *Visibility) Unmarshall(raw []byte) (err error)
Unmarshall Imports this lump from raw byte data
type WorldLight ¶
type WorldLight struct { Generic // contains filtered or unexported fields }
WorldLight is Lump 15: Worldlight
func (*WorldLight) GetData ¶
func (lump *WorldLight) GetData() []primitives.WorldLight
GetData gets internal format structure data
func (*WorldLight) Marshall ¶ added in v0.2.0
func (lump *WorldLight) Marshall() ([]byte, error)
Marshall dumps this lump back to raw byte data
func (*WorldLight) Unmarshall ¶ added in v0.2.0
func (lump *WorldLight) Unmarshall(raw []byte) (err error)
Unmarshall Imports this lump from raw byte data
type WorldLightHDR ¶
type WorldLightHDR struct { Generic // contains filtered or unexported fields }
WorldLightHDR is Lump 15: Worldlight
func (*WorldLightHDR) GetData ¶
func (lump *WorldLightHDR) GetData() []primitives.WorldLight
GetData gets internal format structure data
func (*WorldLightHDR) Marshall ¶ added in v0.2.0
func (lump *WorldLightHDR) Marshall() ([]byte, error)
Marshall dumps this lump back to raw byte data
func (*WorldLightHDR) Unmarshall ¶ added in v0.2.0
func (lump *WorldLightHDR) Unmarshall(raw []byte) (err error)
Unmarshall Imports this lump from raw byte data
Source Files ¶
- area.go
- areaportal.go
- brush.go
- brushside.go
- clipportalverts.go
- cubemap.go
- dispinfo.go
- displightmapsampleposition.go
- disptris.go
- dispvert.go
- edge.go
- entdata.go
- face.go
- facehdr.go
- faceid.go
- facemacrotextureinfo.go
- game.go
- interface.go
- leaf.go
- leafambientindex.go
- leafambientindexhdr.go
- leafambientlighting.go
- leafambientlightinghdr.go
- leafbrush.go
- leafface.go
- leafmindisttowater.go
- leafwaterdata.go
- lighting.go
- lump.go
- mapflags.go
- model.go
- node.go
- occlusion.go
- overlay.go
- overlayfade.go
- pakfile.go
- physcollide.go
- physdisp.go
- planes.go
- primindice.go
- primitive.go
- primvert.go
- surfedge.go
- texdata.go
- texdatastringdata.go
- texdatastringtable.go
- texinfo.go
- unimplemented.go
- vertex.go
- vertnormal.go
- vertnormalindice.go
- visibility.go
- worldlight.go
- worldlighthdr.go