다음을 통해 공유


CustomVertex.PositionNormalFixed 구조체

업데이트: 2007년 11월

위치 및 법선 데이터가 포함된 사용자 지정 꼭지점 형식 고정 소수점 구조체를 나타냅니다.

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

구문

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

설명

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

예제

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

' This code example is taken from the
' Managed Direct3D Mobile Lights Tutorial Sample
' of the .NET Compact Framework Samples in the SDK.
' The .NET Compact Framework provides three
' fixed-point structures for custom vertex buffers:
' PositionNormalFixed, PostionOnlyFixed, and TransformedFixed.

vbPosNormalF = New VertexBuffer(GetType(CustomVertex.PositionNormalFixed), 100, dev, Usage.WriteOnly, CustomVertex.PositionNormalFixed.Format, vertexBufferPool)
// This code example is taken from the
// Managed Direct3D Mobile Lights Tutorial Sample
// of the .NET Compact Framework Samples in the SDK.

// The .NET Compact Framework provides three
// fixed-point structures for custom vertex buffers:
// PositionNormalFixed, PostionOnlyFixed, and TransformedFixed.

    vbPosNormalF = new VertexBuffer(
        typeof(CustomVertex.PositionNormalFixed), 100, dev,
        Usage.WriteOnly, CustomVertex.PositionNormalFixed.Format,
        vertexBufferPool);

스레드로부터의 안전성

이 형식의 모든 공용 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에서 지원

참고 항목

참조

CustomVertex.PositionNormalFixed 멤버

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

기타 리소스

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