다음을 통해 공유


Device.MaterialFixed 속성

업데이트: 2007년 11월

고정 소수점 수학을 사용하여 장치에 대한 현재 재료 속성을 가져오거나 설정합니다.

네임스페이스:  Microsoft.WindowsMobile.DirectX.Direct3D
어셈블리:  Microsoft.WindowsMobile.DirectX(Microsoft.WindowsMobile.DirectX.dll)

구문

‘선언
Public Property MaterialFixed As MaterialFixed
‘사용 방법
Dim instance As Device
Dim value As MaterialFixed

value = instance.MaterialFixed

instance.MaterialFixed = value
public MaterialFixed MaterialFixed { get; set; }
public:
property MaterialFixed MaterialFixed {
    MaterialFixed get ();
    void set (MaterialFixed value);
}
public function get MaterialFixed () : MaterialFixed
public function set MaterialFixed (value : MaterialFixed)

속성 값

형식: Microsoft.WindowsMobile.DirectX.Direct3D.MaterialFixed

가져올 현재 재료 속성이나 설정할 재료 속성을 나타내는 MaterialFixed 구조체입니다.

예외

예외 상황
InvalidCallException

MaterialFixed 구조체의 속성이 잘못된 경우

예제

다음 코드 예제에서는 MaterialFixed 구조체를 사용하는 방법을 보여 줍니다.

' The following code example is from the
' Direct3D Mobile Meshes Sample of the 
' .NET Compact Framework Samples in the SDK.

' In this example, meshes are divided into subsets, 
' one for each material.
' Render them in a loop.
Dim i As Integer
For i = 0 To meshMaterials.Length
    ' Set the material and texture for this subset
    device.MaterialFixed = meshMaterials(i)
    device.SetTexture(0, meshTextures(i))

    ' Draw the mesh subset
    mesh.DrawSubset(i)
Next i
// The following code example is from the
// Direct3D Mobile Meshes Sample of the
// .NET Compact Framework Samples in the SDK.

// Meshes are divided into subsets, one for each material. Render them in
// a loop
for( int i=0; i<meshMaterials.Length; i++ )
{
    // Set the material and texture for this subset
    device.MaterialFixed = meshMaterials[i];
    device.SetTexture(0, meshTextures[i]);

    // Draw the mesh subset
    mesh.DrawSubset(i);
}

권한

  • 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.

플랫폼

Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Compact Framework

3.5, 2.0에서 지원

참고 항목

참조

Device 클래스

Device 멤버

Microsoft.WindowsMobile.DirectX.Direct3D 네임스페이스