C# 클래스 Ohana3DS_Transfigured.Ohana.Models.PICA200.PICACommandReader

파일 보기 프로젝트 열기: Quibilia/Ohana3DS-Transfigured 1 사용 예제들

공개 메소드들

메소드 설명
PICACommandReader ( Stream input, uint wordCount, bool ignoreAlign = false ) : System

Creates a new PICA200 Command Buffer reader and reads the content.

getAlphaTest ( ) : RenderBase.OAlphaTest

Gets the parameters used for Alpha testing.

getBlendOperation ( ) : RenderBase.OBlendOperation

Gets Blending operation parameters.

getColorLogicOperation ( ) : RenderBase.OLogicalOperation

Gets the Logical operation applied to Fragment colors.

getCullMode ( ) : RenderBase.OCullMode

Gets the Culling mode.

getDepthTest ( ) : RenderBase.ODepthOperation

Gets the parameters used for Depth testing.

getFSHLookUpTable ( ) : float[]

Gets the 1D LookUp table sampler used on the Fragment Shader lighting.

getFragmentBufferColor ( ) : Color

Gets the Fragment Buffer Color.

getIndexBufferAddress ( ) : uint

Gets the Address where the Index Buffer is located.

getIndexBufferFormat ( ) : PICACommand.indexBufferFormat

Gets the Format of the Index Buffer (byte or short).

getIndexBufferTotalVertices ( ) : uint

Gets the total number of vertices indexed by the Index Buffer.

getParameter ( ushort commandId ) : uint

Gets the lastest written parameter of a given Command in the buffer.

getReflectanceSamplerAbsolute ( ) : PICACommand.fragmentSamplerAbsolute

Gets if the Absolute value should be used before using the LUT for each Input.

getReflectanceSamplerInput ( ) : PICACommand.fragmentSamplerInput

Gets the Input used to pick a value from the LookUp Table on Fragment Shader.

getReflectanceSamplerScale ( ) : PICACommand.fragmentSamplerScale

Gets the scale used on the value on Fragment Shader.

getStencilTest ( ) : RenderBase.OStencilOperation

Gets the parameters used for Stencil testing.

getTevStage ( byte stage ) : RenderBase.OTextureCombiner

Gets TEV Stage parameters.

getTexUnit0Address ( ) : uint

Gets the Address of the texture at Texture Unit 0.

getTexUnit0BorderColor ( ) : Color

Gets the border color used on Texture Unit 0, when the wrapping mode is set to Border.

getTexUnit0Format ( ) : RenderBase.OTextureFormat

Gets the encoded format of the texture at Texture Unit 0.

getTexUnit0Mapper ( ) : RenderBase.OTextureMapper

Gets the mapping parameters used on Texture Unit 0, such as the wrapping mode, filtering and so on.

getTexUnit0Size ( ) : Size

Gets the resolution of the texture at Texture Unit 0.

getTexUnit1Address ( ) : uint

Gets the Address of the texture at Texture Unit 1.

getTexUnit1BorderColor ( ) : Color

Gets the border color used on Texture Unit 1, when the wrapping mode is set to Border.

getTexUnit1Format ( ) : RenderBase.OTextureFormat

Gets the encoded format of the texture at Texture Unit 1.

getTexUnit1Mapper ( ) : RenderBase.OTextureMapper

Gets the mapping parameters used on Texture Unit 1, such as the wrapping mode, filtering and so on.

getTexUnit1Size ( ) : Size

Gets the resolution of the texture at Texture Unit 1.

getTexUnit2Address ( ) : uint

Gets the Address of the texture at Texture Unit 2.

getTexUnit2BorderColor ( ) : Color

Gets the border color used on Texture Unit 2, when the wrapping mode is set to Border.

getTexUnit2Format ( ) : RenderBase.OTextureFormat

Gets the encoded format of the texture at Texture Unit 2.

getTexUnit2Mapper ( ) : RenderBase.OTextureMapper

Gets the mapping parameters used on Texture Unit 2, such as the wrapping mode, filtering and so on.

getTexUnit2Size ( ) : Size

Gets the resolution of the texture at Texture Unit 2.

getVSHAttributesBufferAddress ( ) : uint

Gets the Address where the Attributes Buffer is located. Note that it may be a Relative address, and may need to be relocated.

getVSHAttributesBufferAddress ( byte bufferIndex ) : uint

Gets the Address of a given Attributes Buffer. It is relative to the Main Buffer address.

getVSHAttributesBufferFormat ( ) : Ohana3DS_Transfigured.Ohana.Models.PICA200.PICACommand.attributeFormat[]

Gets an array containing all formats of the main Attributes Buffer. It have the length of each attribute, and the format (byte, float, short...).

getVSHAttributesBufferPermutation ( ) : PICACommand.vshAttribute[]

Gets an array containing all Vertex Atrributes permutation order.

getVSHAttributesBufferPermutation ( byte bufferIndex ) : uint[]

Gets the Permutation of a given Attributes Buffer. Values corresponds to a value on the main Permutation.

getVSHAttributesBufferStride ( byte bufferIndex ) : byte

Gets the Stride of a given Attributes Buffer.

getVSHBooleanUniforms ( ) : bool[]

Gets Uniform Booleans used on Vertex Shader.

getVSHFloatUniformData ( uint register ) : Stack

Gets the Float Uniform data array from the given register.

getVSHTotalAttributes ( ) : uint

Gets the Total Attributes minus 1.

getVSHTotalAttributes ( byte bufferIndex ) : uint

Gets the Total Attributes of a given Attributes Buffer.

비공개 메소드들

메소드 설명
toFloat ( uint value ) : float

Converts a IEEE 754 encoded float on uint to float.

메소드 상세

PICACommandReader() 공개 메소드

Creates a new PICA200 Command Buffer reader and reads the content.
public PICACommandReader ( Stream input, uint wordCount, bool ignoreAlign = false ) : System
input Stream The Input stream where the buffer is located
wordCount uint Total number of words (4 bytes per word) that the buffer have
ignoreAlign bool (Optional) Set to true to ignore potential 0x0 padding words
리턴 System

getAlphaTest() 공개 메소드

Gets the parameters used for Alpha testing.
public getAlphaTest ( ) : RenderBase.OAlphaTest
리턴 RenderBase.OAlphaTest

getBlendOperation() 공개 메소드

Gets Blending operation parameters.
public getBlendOperation ( ) : RenderBase.OBlendOperation
리턴 RenderBase.OBlendOperation

getColorLogicOperation() 공개 메소드

Gets the Logical operation applied to Fragment colors.
public getColorLogicOperation ( ) : RenderBase.OLogicalOperation
리턴 RenderBase.OLogicalOperation

getCullMode() 공개 메소드

Gets the Culling mode.
public getCullMode ( ) : RenderBase.OCullMode
리턴 RenderBase.OCullMode

getDepthTest() 공개 메소드

Gets the parameters used for Depth testing.
public getDepthTest ( ) : RenderBase.ODepthOperation
리턴 RenderBase.ODepthOperation

getFSHLookUpTable() 공개 메소드

Gets the 1D LookUp table sampler used on the Fragment Shader lighting.
public getFSHLookUpTable ( ) : float[]
리턴 float[]

getFragmentBufferColor() 공개 메소드

Gets the Fragment Buffer Color.
public getFragmentBufferColor ( ) : Color
리턴 Color

getIndexBufferAddress() 공개 메소드

Gets the Address where the Index Buffer is located.
public getIndexBufferAddress ( ) : uint
리턴 uint

getIndexBufferFormat() 공개 메소드

Gets the Format of the Index Buffer (byte or short).
public getIndexBufferFormat ( ) : PICACommand.indexBufferFormat
리턴 PICACommand.indexBufferFormat

getIndexBufferTotalVertices() 공개 메소드

Gets the total number of vertices indexed by the Index Buffer.
public getIndexBufferTotalVertices ( ) : uint
리턴 uint

getParameter() 공개 메소드

Gets the lastest written parameter of a given Command in the buffer.
public getParameter ( ushort commandId ) : uint
commandId ushort ID code of the command
리턴 uint

getReflectanceSamplerAbsolute() 공개 메소드

Gets if the Absolute value should be used before using the LUT for each Input.
public getReflectanceSamplerAbsolute ( ) : PICACommand.fragmentSamplerAbsolute
리턴 PICACommand.fragmentSamplerAbsolute

getReflectanceSamplerInput() 공개 메소드

Gets the Input used to pick a value from the LookUp Table on Fragment Shader.
public getReflectanceSamplerInput ( ) : PICACommand.fragmentSamplerInput
리턴 PICACommand.fragmentSamplerInput

getReflectanceSamplerScale() 공개 메소드

Gets the scale used on the value on Fragment Shader.
public getReflectanceSamplerScale ( ) : PICACommand.fragmentSamplerScale
리턴 PICACommand.fragmentSamplerScale

getStencilTest() 공개 메소드

Gets the parameters used for Stencil testing.
public getStencilTest ( ) : RenderBase.OStencilOperation
리턴 RenderBase.OStencilOperation

getTevStage() 공개 메소드

Gets TEV Stage parameters.
public getTevStage ( byte stage ) : RenderBase.OTextureCombiner
stage byte The stage (0-5)
리턴 RenderBase.OTextureCombiner

getTexUnit0Address() 공개 메소드

Gets the Address of the texture at Texture Unit 0.
public getTexUnit0Address ( ) : uint
리턴 uint

getTexUnit0BorderColor() 공개 메소드

Gets the border color used on Texture Unit 0, when the wrapping mode is set to Border.
public getTexUnit0BorderColor ( ) : Color
리턴 Color

getTexUnit0Format() 공개 메소드

Gets the encoded format of the texture at Texture Unit 0.
public getTexUnit0Format ( ) : RenderBase.OTextureFormat
리턴 RenderBase.OTextureFormat

getTexUnit0Mapper() 공개 메소드

Gets the mapping parameters used on Texture Unit 0, such as the wrapping mode, filtering and so on.
public getTexUnit0Mapper ( ) : RenderBase.OTextureMapper
리턴 RenderBase.OTextureMapper

getTexUnit0Size() 공개 메소드

Gets the resolution of the texture at Texture Unit 0.
public getTexUnit0Size ( ) : Size
리턴 System.Drawing.Size

getTexUnit1Address() 공개 메소드

Gets the Address of the texture at Texture Unit 1.
public getTexUnit1Address ( ) : uint
리턴 uint

getTexUnit1BorderColor() 공개 메소드

Gets the border color used on Texture Unit 1, when the wrapping mode is set to Border.
public getTexUnit1BorderColor ( ) : Color
리턴 Color

getTexUnit1Format() 공개 메소드

Gets the encoded format of the texture at Texture Unit 1.
public getTexUnit1Format ( ) : RenderBase.OTextureFormat
리턴 RenderBase.OTextureFormat

getTexUnit1Mapper() 공개 메소드

Gets the mapping parameters used on Texture Unit 1, such as the wrapping mode, filtering and so on.
public getTexUnit1Mapper ( ) : RenderBase.OTextureMapper
리턴 RenderBase.OTextureMapper

getTexUnit1Size() 공개 메소드

Gets the resolution of the texture at Texture Unit 1.
public getTexUnit1Size ( ) : Size
리턴 System.Drawing.Size

getTexUnit2Address() 공개 메소드

Gets the Address of the texture at Texture Unit 2.
public getTexUnit2Address ( ) : uint
리턴 uint

getTexUnit2BorderColor() 공개 메소드

Gets the border color used on Texture Unit 2, when the wrapping mode is set to Border.
public getTexUnit2BorderColor ( ) : Color
리턴 Color

getTexUnit2Format() 공개 메소드

Gets the encoded format of the texture at Texture Unit 2.
public getTexUnit2Format ( ) : RenderBase.OTextureFormat
리턴 RenderBase.OTextureFormat

getTexUnit2Mapper() 공개 메소드

Gets the mapping parameters used on Texture Unit 2, such as the wrapping mode, filtering and so on.
public getTexUnit2Mapper ( ) : RenderBase.OTextureMapper
리턴 RenderBase.OTextureMapper

getTexUnit2Size() 공개 메소드

Gets the resolution of the texture at Texture Unit 2.
public getTexUnit2Size ( ) : Size
리턴 System.Drawing.Size

getVSHAttributesBufferAddress() 공개 메소드

Gets the Address where the Attributes Buffer is located. Note that it may be a Relative address, and may need to be relocated.
public getVSHAttributesBufferAddress ( ) : uint
리턴 uint

getVSHAttributesBufferAddress() 공개 메소드

Gets the Address of a given Attributes Buffer. It is relative to the Main Buffer address.
public getVSHAttributesBufferAddress ( byte bufferIndex ) : uint
bufferIndex byte Index number of the buffer (0-11)
리턴 uint

getVSHAttributesBufferFormat() 공개 메소드

Gets an array containing all formats of the main Attributes Buffer. It have the length of each attribute, and the format (byte, float, short...).
public getVSHAttributesBufferFormat ( ) : Ohana3DS_Transfigured.Ohana.Models.PICA200.PICACommand.attributeFormat[]
리턴 Ohana3DS_Transfigured.Ohana.Models.PICA200.PICACommand.attributeFormat[]

getVSHAttributesBufferPermutation() 공개 메소드

Gets an array containing all Vertex Atrributes permutation order.
public getVSHAttributesBufferPermutation ( ) : PICACommand.vshAttribute[]
리턴 PICACommand.vshAttribute[]

getVSHAttributesBufferPermutation() 공개 메소드

Gets the Permutation of a given Attributes Buffer. Values corresponds to a value on the main Permutation.
public getVSHAttributesBufferPermutation ( byte bufferIndex ) : uint[]
bufferIndex byte Index number of the buffer (0-11)
리턴 uint[]

getVSHAttributesBufferStride() 공개 메소드

Gets the Stride of a given Attributes Buffer.
public getVSHAttributesBufferStride ( byte bufferIndex ) : byte
bufferIndex byte Index number of the buffer (0-11)
리턴 byte

getVSHBooleanUniforms() 공개 메소드

Gets Uniform Booleans used on Vertex Shader.
public getVSHBooleanUniforms ( ) : bool[]
리턴 bool[]

getVSHFloatUniformData() 공개 메소드

Gets the Float Uniform data array from the given register.
public getVSHFloatUniformData ( uint register ) : Stack
register uint Index number of the register (observed values: 6 and 7)
리턴 Stack

getVSHTotalAttributes() 공개 메소드

Gets the Total Attributes minus 1.
public getVSHTotalAttributes ( ) : uint
리턴 uint

getVSHTotalAttributes() 공개 메소드

Gets the Total Attributes of a given Attributes Buffer.
public getVSHTotalAttributes ( byte bufferIndex ) : uint
bufferIndex byte Index number of the buffer (0-11)
리턴 uint