C# 클래스 MaterialsOptimizer.Material

파일 보기 프로젝트 열기: Patapom/GodComplex 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
m_errors string
m_forbiddenParms List
m_glossMinMax float2
m_height Layer.Texture
m_isUsingCloudParms bool
m_isUsingVegetationParms bool
m_isUsingWaterParms bool
m_layers List
m_lightMap Layer.Texture
m_metallicMinMax float2
m_name string
m_options Options
m_parms Parms
m_physicsMaterial string
m_programs Programs
m_sourceFileName System.IO.FileInfo
m_states States
m_unknownVariables List
m_version int
m_warnings string

Private Properties

프로퍼티 타입 설명
CheckSafeTokens bool
Parse void
ParseOptions void
ReadListOfStrings void
RecordCommentVariable void
RecordSingleLineCommentVariable void
WriteListOfStrings void

공개 메소드들

메소드 설명
CheckSafeOptionsTokens ( string token, int value ) : void
CleanUp ( int &_clearedOptionsCount, int &_removedTexturesCount, int &_blackColorConstantsCount, int &_swappedSlotsCount, int &_missingTexturesReplacedCount, int &_removedHasOcclusionMapOptionsCount, int &_reUseOptionsSetCount ) : void

This function cleans the material from automatically recoverable errors and warnings

CleanUpUselessComments ( List _unknownStrings ) : void
ClearErrorLevel ( ) : void
CollectDiffuseGlossTextures ( Dictionary _diffuse2GlossMaps ) : void
Export ( StringWriter W ) : void

This attempts to re-export a valid material for a M2 file

Material ( BinaryReader R ) : System
Material ( FileInfo _sourceFileName, string _name, string _content ) : System
Optimize ( int &_totalDiffuseGlossTexturesReplaced ) : bool

This function optimizes the material by compacting diffuse and gloss textures into a single "_dg" texture whenever possible

RaiseErrorLevel ( ERROR_LEVEL _errorLevel ) : void
Read ( BinaryReader R ) : void
RecordCommentOption ( string _token, Parser P ) : void
RecordCommentVariable ( string _token, Parser P ) : void
RecordForbiddenVariable ( string _token, Parser P ) : void
RecordSingleLineCommentOption ( string _token, Parser P ) : void
RecordSingleLineCommentVariable ( string _token, Parser P ) : void
RecordUnknownOption ( string _token, Parser P ) : void
RecordUnknownOption ( string _token, int value, Parser P ) : void
RecordUnknownVariable ( string _token, Parser P ) : void
ToString ( ) : string
Write ( BinaryWriter W ) : void

비공개 메소드들

메소드 설명
CheckSafeTokens ( string token ) : bool
Parse ( string _block ) : void
ParseOptions ( string _options ) : void
ReadListOfStrings ( BinaryReader R, List _list ) : void
RecordCommentVariable ( List _variables, string _token, Parser P ) : void
RecordSingleLineCommentVariable ( List _variables, string _token, Parser P ) : void
WriteListOfStrings ( BinaryWriter W, List _list ) : void

메소드 상세

CheckSafeOptionsTokens() 공개 메소드

public CheckSafeOptionsTokens ( string token, int value ) : void
token string
value int
리턴 void

CleanUp() 공개 메소드

This function cleans the material from automatically recoverable errors and warnings
public CleanUp ( int &_clearedOptionsCount, int &_removedTexturesCount, int &_blackColorConstantsCount, int &_swappedSlotsCount, int &_missingTexturesReplacedCount, int &_removedHasOcclusionMapOptionsCount, int &_reUseOptionsSetCount ) : void
_clearedOptionsCount int
_removedTexturesCount int
_blackColorConstantsCount int
_swappedSlotsCount int
_missingTexturesReplacedCount int
_removedHasOcclusionMapOptionsCount int
_reUseOptionsSetCount int
리턴 void

CleanUpUselessComments() 공개 메소드

public CleanUpUselessComments ( List _unknownStrings ) : void
_unknownStrings List
리턴 void

ClearErrorLevel() 공개 메소드

public ClearErrorLevel ( ) : void
리턴 void

CollectDiffuseGlossTextures() 공개 메소드

public CollectDiffuseGlossTextures ( Dictionary _diffuse2GlossMaps ) : void
_diffuse2GlossMaps Dictionary
리턴 void

Export() 공개 메소드

This attempts to re-export a valid material for a M2 file
public Export ( StringWriter W ) : void
W System.IO.StringWriter
리턴 void

Material() 공개 메소드

public Material ( BinaryReader R ) : System
R System.IO.BinaryReader
리턴 System

Material() 공개 메소드

public Material ( FileInfo _sourceFileName, string _name, string _content ) : System
_sourceFileName System.IO.FileInfo
_name string
_content string
리턴 System

Optimize() 공개 메소드

This function optimizes the material by compacting diffuse and gloss textures into a single "_dg" texture whenever possible
public Optimize ( int &_totalDiffuseGlossTexturesReplaced ) : bool
_totalDiffuseGlossTexturesReplaced int
리턴 bool

RaiseErrorLevel() 공개 메소드

public RaiseErrorLevel ( ERROR_LEVEL _errorLevel ) : void
_errorLevel ERROR_LEVEL
리턴 void

Read() 공개 메소드

public Read ( BinaryReader R ) : void
R System.IO.BinaryReader
리턴 void

RecordCommentOption() 공개 메소드

public RecordCommentOption ( string _token, Parser P ) : void
_token string
P Parser
리턴 void

RecordCommentVariable() 공개 메소드

public RecordCommentVariable ( string _token, Parser P ) : void
_token string
P Parser
리턴 void

RecordForbiddenVariable() 공개 메소드

public RecordForbiddenVariable ( string _token, Parser P ) : void
_token string
P Parser
리턴 void

RecordSingleLineCommentOption() 공개 메소드

public RecordSingleLineCommentOption ( string _token, Parser P ) : void
_token string
P Parser
리턴 void

RecordSingleLineCommentVariable() 공개 메소드

public RecordSingleLineCommentVariable ( string _token, Parser P ) : void
_token string
P Parser
리턴 void

RecordUnknownOption() 공개 메소드

public RecordUnknownOption ( string _token, Parser P ) : void
_token string
P Parser
리턴 void

RecordUnknownOption() 공개 메소드

public RecordUnknownOption ( string _token, int value, Parser P ) : void
_token string
value int
P Parser
리턴 void

RecordUnknownVariable() 공개 메소드

public RecordUnknownVariable ( string _token, Parser P ) : void
_token string
P Parser
리턴 void

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

Write() 공개 메소드

public Write ( BinaryWriter W ) : void
W System.IO.BinaryWriter
리턴 void

프로퍼티 상세

m_errors 공개적으로 프로퍼티

public string m_errors
리턴 string

m_forbiddenParms 공개적으로 프로퍼티

public List m_forbiddenParms
리턴 List

m_glossMinMax 공개적으로 프로퍼티

public float2 m_glossMinMax
리턴 float2

m_height 공개적으로 프로퍼티

public Layer.Texture m_height
리턴 Layer.Texture

m_isUsingCloudParms 공개적으로 프로퍼티

public bool m_isUsingCloudParms
리턴 bool

m_isUsingVegetationParms 공개적으로 프로퍼티

public bool m_isUsingVegetationParms
리턴 bool

m_isUsingWaterParms 공개적으로 프로퍼티

public bool m_isUsingWaterParms
리턴 bool

m_layers 공개적으로 프로퍼티

public List m_layers
리턴 List

m_lightMap 공개적으로 프로퍼티

public Layer.Texture m_lightMap
리턴 Layer.Texture

m_metallicMinMax 공개적으로 프로퍼티

public float2 m_metallicMinMax
리턴 float2

m_name 공개적으로 프로퍼티

public string m_name
리턴 string

m_options 공개적으로 프로퍼티

public Options m_options
리턴 Options

m_parms 공개적으로 프로퍼티

public Parms m_parms
리턴 Parms

m_physicsMaterial 공개적으로 프로퍼티

public string m_physicsMaterial
리턴 string

m_programs 공개적으로 프로퍼티

public Programs m_programs
리턴 Programs

m_sourceFileName 공개적으로 프로퍼티

public FileInfo,System.IO m_sourceFileName
리턴 System.IO.FileInfo

m_states 공개적으로 프로퍼티

public States m_states
리턴 States

m_unknownVariables 공개적으로 프로퍼티

public List m_unknownVariables
리턴 List

m_version 공개적으로 프로퍼티

public int m_version
리턴 int

m_warnings 공개적으로 프로퍼티

public string m_warnings
리턴 string