다음을 통해 공유


VertexBuffer 클래스

업데이트: 2007년 11월

꼭지점 버퍼 리소스를 조작합니다.

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

구문

‘선언
Public Class VertexBuffer _
    Inherits Resource _
    Implements IDisposable
‘사용 방법
Dim instance As VertexBuffer
public class VertexBuffer : Resource, 
    IDisposable
public ref class VertexBuffer : public Resource, 
    IDisposable
public class VertexBuffer extends Resource implements IDisposable

설명

이 개체는 Resource 개체에서 추가 기능을 상속합니다.

예제

다음 코드 예제에서는 꼭지점을 저장하는 데 사용되는 꼭지점 버퍼를 만듭니다.

' This code example is taken from the
' Direct3D Mobile Vertices Sample
' of the .NET Compact Framework Samples in the SDK.

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.TransformedColored), 3, dev, 0, CustomVertex.TransformedColored.Format, Pool.Managed)
    AddHandler vertexBuffer.Created, AddressOf Me.OnCreateVertexBuffer
    Me.OnCreateVertexBuffer(vertexBuffer, Nothing)

End Sub
// This code example is taken from the
// Direct3D Mobile Vertices Sample
// of the .NET Compact Framework Samples in the SDK.

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

상속 계층 구조

System.Object
  Microsoft.WindowsMobile.DirectX.Direct3D.Resource
    Microsoft.WindowsMobile.DirectX.Direct3D.VertexBuffer

스레드로부터의 안전성

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

참고 항목

참조

VertexBuffer 멤버

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

기타 리소스

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