다음을 통해 공유


MaterialFixed 구조체

업데이트: 2007년 11월

고정 소수점 구조체에서 재료 속성을 지정합니다.

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

구문

‘선언
Public Structure MaterialFixed
‘사용 방법
Dim instance As MaterialFixed
public struct MaterialFixed
public value class MaterialFixed
JScript에서는 구조체를 사용할 수 있지만 새로 선언할 수는 없습니다.

설명

이 구조체는 고정 소수점 수학 연산을 지원합니다.

예제

다음 코드 예제에서는 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);
}

스레드로부터의 안전성

이 형식의 모든 공용 static(Visual Basic의 경우 Shared) 멤버는 스레드로부터 안전합니다. 인터페이스 멤버는 스레드로부터 안전하지 않습니다.

플랫폼

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에서 지원

참고 항목

참조

MaterialFixed 멤버

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

기타 리소스

.NET Compact Framework의 모바일 Direct3D 프로그래밍