C# Класс Ohana3DS_Transfigured.Ohana.Models.PICA200.PICACommandReader

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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