[][src]Struct bsp::Bsp

pub struct Bsp {
    pub header: Header,
    pub entities: Entities,
    pub textures: Vec<Texture>,
    pub planes: Vec<Plane>,
    pub nodes: Vec<Node>,
    pub leafs: Vec<Leaf>,
    pub leaf_faces: Vec<LeafFace>,
    pub leaf_brushes: Vec<LeafBrush>,
    pub models: Vec<Model>,
    pub brushes: Vec<Brush>,
    pub brush_sides: Vec<BrushSide>,
    pub vertexes: Vec<Vertex>,
    pub mesh_verts: Vec<MeshVert>,
    pub effects: Vec<Effect>,
    pub faces: Vec<Face>,
    pub lightmaps: Vec<Lightmap>,
    pub lightvols: Vec<Lightvol>,
    pub vis_data: VisData,
}

Fields

header: Headerentities: Entitiestextures: Vec<Texture>planes: Vec<Plane>nodes: Vec<Node>leafs: Vec<Leaf>leaf_faces: Vec<LeafFace>leaf_brushes: Vec<LeafBrush>models: Vec<Model>brushes: Vec<Brush>brush_sides: Vec<BrushSide>vertexes: Vec<Vertex>mesh_verts: Vec<MeshVert>effects: Vec<Effect>faces: Vec<Face>lightmaps: Vec<Lightmap>lightvols: Vec<Lightvol>vis_data: VisData

Methods

impl Bsp[src]

pub fn read<R: Read + Seek>(reader: R) -> Result<Self>[src]

pub fn leaf(&self, n: usize) -> Option<Handle<Leaf>>[src]

pub fn plane(&self, n: usize) -> Option<Handle<Plane>>[src]

pub fn face(&self, n: usize) -> Option<Handle<Face>>[src]

pub fn texture(&self, n: usize) -> Option<&Texture>[src]

pub fn node(&self, n: usize) -> Option<Handle<Node>>[src]

pub fn root_node(&self) -> Option<Handle<Node>>[src]

pub fn leaf_at(&self, point: [f32; 3]) -> Option<Handle<Leaf>>[src]

Trait Implementations

impl Debug for Bsp[src]

Auto Trait Implementations

impl Send for Bsp

impl Sync for Bsp

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.