C# 클래스 FBX.SceneLoader.MaterialsDatabase

This materials database is a collection of materials that reference textures and parameters for each material
파일 보기 프로젝트 열기: Patapom/GodComplex 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
m_MaterialName2Material Material>.Dictionary
m_Materials List
m_QueriedMaterials List

공개 메소드들

메소드 설명
BuildFromM2 ( DirectoryInfo _RootDirectory ) : int

Builds the database from a recursive parsing of M2 files on disk

Clear ( ) : void

Clears the database

ClearQueriedMaterialsList ( ) : void
FindByName ( string _Name ) : Material

Finds a material by its name

MaterialsDatabase ( ) : System
ParseM2 ( FileInfo _M2File ) : FBX.SceneLoader.Objects.Material[]

Parses a M2 file and creates the materials from it

비공개 메소드들

메소드 설명
FindEOL ( string _Text, int _StartIndex ) : int
IndexOfClosingBrace ( string _Text, int _StartIndex ) : int

Provided an index right after an opening brace, finds the corresponding closing brace or -1 if none is found

IsWordChar ( char C ) : bool
MatchWholeWord ( string _Text, string _Pattern ) : int

Whole word pattern matching (case insensitive)

MatchWholeWord ( string _Text, string _Pattern, int _Index ) : int
ParseParameter ( string _Text, string _Pattern, string _ApendExtensionIfMissing ) : string

메소드 상세

BuildFromM2() 공개 메소드

Builds the database from a recursive parsing of M2 files on disk
public BuildFromM2 ( DirectoryInfo _RootDirectory ) : int
_RootDirectory System.IO.DirectoryInfo
리턴 int

Clear() 공개 메소드

Clears the database
public Clear ( ) : void
리턴 void

ClearQueriedMaterialsList() 공개 메소드

public ClearQueriedMaterialsList ( ) : void
리턴 void

FindByName() 공개 메소드

Finds a material by its name
public FindByName ( string _Name ) : Material
_Name string
리턴 FBX.SceneLoader.Objects.Material

MaterialsDatabase() 공개 메소드

public MaterialsDatabase ( ) : System
리턴 System

ParseM2() 공개 정적인 메소드

Parses a M2 file and creates the materials from it
public static ParseM2 ( FileInfo _M2File ) : FBX.SceneLoader.Objects.Material[]
_M2File System.IO.FileInfo
리턴 FBX.SceneLoader.Objects.Material[]

프로퍼티 상세

m_MaterialName2Material 보호되어 있는 프로퍼티

protected Dictionary m_MaterialName2Material
리턴 Material>.Dictionary

m_Materials 보호되어 있는 프로퍼티

protected List m_Materials
리턴 List

m_QueriedMaterials 보호되어 있는 프로퍼티

protected List m_QueriedMaterials
리턴 List