C# Class SharpQuake.Mod

Mod_functions
Show file Open project: Memorix101/SharpQuake

Public Methods

Method Description
ClearAll ( ) : void

Mod_ClearAll

FindName ( string name ) : model_t

Mod_FindName

ForName ( string name, bool crash ) : model_t

Mod_ForName Loads in a model for the given name

GetExtraData ( model_t mod ) : aliashdr_t

Mod_Extradata handles caching

Init ( ) : void

Mod_Init

LeafPVS ( mleaf_t leaf, model_t model ) : byte[]

Mod_LeafPVS

LoadAliasModel ( model_t mod, byte buffer ) : void

Mod_LoadAliasModel

LoadBrushModel ( model_t mod, byte buffer ) : void

Mod_LoadBrushModel

LoadModel ( model_t mod, bool crash ) : model_t

Mod_LoadModel Loads a model into the cache

LoadSpriteModel ( model_t mod, byte buffer ) : void

Mod_LoadSpriteModel

PointInLeaf ( Vector3 &p, model_t model ) : mleaf_t

Mod_PointInLeaf

Print ( ) : void
TouchModel ( string name ) : void

Mod_TouchModel

Private Methods

Method Description
CalcSurfaceExtents ( msurface_t s ) : void

CalcSurfaceExtents Fills in s->texturemins[] and s->extents[]

DecompressVis ( byte p, int startIndex, model_t model ) : byte[]

Mod_DecompressVis

FloodFillSkin ( ByteArraySegment skin, int skinwidth, int skinheight ) : void

Mod_FloodFillSkin Fill background pixels so mipmapping doesn't have haloes - Ed

LoadAliasFrame ( ByteArraySegment pin, maliasframedesc_t &frame ) : int

Mod_LoadAliasFrame

LoadAliasGroup ( ByteArraySegment pin, maliasframedesc_t &frame ) : int

Mod_LoadAliasGroup

LoadAllSkins ( int numskins, ByteArraySegment data ) : int

Mod_LoadAllSkins

LoadClipNodes ( lump_t &l ) : void

Mod_LoadClipnodes

LoadEdges ( lump_t &l ) : void

Mod_LoadEdges

LoadEntities ( lump_t &l ) : void

Mod_LoadEntities

LoadFaces ( lump_t &l ) : void

Mod_LoadFaces

LoadLeafs ( lump_t &l ) : void

Mod_LoadLeafs

LoadLighting ( lump_t &l ) : void

Mod_LoadLighting

LoadMarkSurfaces ( lump_t &l ) : void

Mod_LoadMarksurfaces

LoadNodes ( lump_t &l ) : void

Mod_LoadNodes

LoadPlanes ( lump_t &l ) : void

Mod_LoadPlanes

LoadSpriteFrame ( ByteArraySegment pin, object &ppframe, int framenum ) : int

LoadSpriteGroup ( ByteArraySegment pin, object &ppframe, int framenum ) : int

Mod_LoadSpriteGroup

LoadSubModels ( lump_t &l ) : void

Mod_LoadSubmodels

LoadSurfEdges ( lump_t &l ) : void

Mod_LoadSurfedges

LoadTexInfo ( lump_t &l ) : void

Mod_LoadTexinfo

LoadTextures ( lump_t &l ) : void

Mod_LoadTextures

LoadVertexes ( lump_t &l ) : void

Mod_LoadVertexes

LoadVisibility ( lump_t &l ) : void

Mod_LoadVisibility

MakeHull0 ( ) : void

Mod_MakeHull0 Deplicate the drawing hull structure as a clipping hull

RadiusFromBounds ( Vector3 &mins, Vector3 &maxs ) : float
SetParent ( mnodebase_t node, mnode_t parent ) : void

Mod_SetParent

SetupSubModel ( model_t mod, dmodel_t &submodel ) : void

Method Details

ClearAll() public static method

Mod_ClearAll
public static ClearAll ( ) : void
return void

FindName() public static method

Mod_FindName
public static FindName ( string name ) : model_t
name string
return model_t

ForName() public static method

Mod_ForName Loads in a model for the given name
public static ForName ( string name, bool crash ) : model_t
name string
crash bool
return model_t

GetExtraData() public static method

Mod_Extradata handles caching
public static GetExtraData ( model_t mod ) : aliashdr_t
mod model_t
return aliashdr_t

Init() public static method

Mod_Init
public static Init ( ) : void
return void

LeafPVS() public static method

Mod_LeafPVS
public static LeafPVS ( mleaf_t leaf, model_t model ) : byte[]
leaf mleaf_t
model model_t
return byte[]

LoadAliasModel() public static method

Mod_LoadAliasModel
public static LoadAliasModel ( model_t mod, byte buffer ) : void
mod model_t
buffer byte
return void

LoadBrushModel() public static method

Mod_LoadBrushModel
public static LoadBrushModel ( model_t mod, byte buffer ) : void
mod model_t
buffer byte
return void

LoadModel() public static method

Mod_LoadModel Loads a model into the cache
public static LoadModel ( model_t mod, bool crash ) : model_t
mod model_t
crash bool
return model_t

LoadSpriteModel() public static method

Mod_LoadSpriteModel
public static LoadSpriteModel ( model_t mod, byte buffer ) : void
mod model_t
buffer byte
return void

PointInLeaf() public static method

Mod_PointInLeaf
public static PointInLeaf ( Vector3 &p, model_t model ) : mleaf_t
p Vector3
model model_t
return mleaf_t

Print() public static method

public static Print ( ) : void
return void

TouchModel() public static method

Mod_TouchModel
public static TouchModel ( string name ) : void
name string
return void