다음을 통해 공유


CustomVertex.PositionColored 구조체

업데이트: 2007년 11월

위치 및 색 정보가 포함된 사용자 지정 꼭지점 형식 구조체를 나타냅니다.

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

구문

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

예제

다음 예제에서는 사용자 지정 꼭지점 형식 구조체를 사용하는 방법을 보여 줍니다. 이 예제는 Managed Direct3D Mobile Samples의 모바일 매트릭스 샘플에서 발췌한 것입니다.

Private Sub OnCreateDevice(ByVal sender As Object, ByVal e As EventArgs)
    Dim dev As Device = CType(sender, Device)
    ' Create the vertex buffer.
    vertexBuffer = New VertexBuffer(GetType(CustomVertex.PositionColored), 3, dev, 0, CustomVertex.PositionColored.Format, Pool.Managed)
    AddHandler vertexBuffer.Created, AddressOf Me.OnCreateVertexBuffer
    Me.OnCreateVertexBuffer(vertexBuffer, Nothing)

End Sub
private void OnCreateDevice(object sender, EventArgs e)
{
    Device dev = (Device)sender;
    // Create the vertex buffer.
    vertexBuffer = new VertexBuffer(typeof(CustomVertex.PositionColored), 3, dev, 0, CustomVertex.PositionColored.Format, Pool.Managed);
    vertexBuffer.Created += new System.EventHandler(this.OnCreateVertexBuffer);
    this.OnCreateVertexBuffer(vertexBuffer, null);
}

스레드로부터의 안전성

이 형식의 모든 공용 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.PositionColored 멤버

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

기타 리소스

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