Share via


Mesh.LockAttributeBuffer Method

Locks an attribute buffer and obtains its memory.

Namespace: Microsoft.WindowsMobile.DirectX.Direct3D
Assembly: Microsoft.WindowsMobile.DirectX (in microsoft.windowsmobile.directx.dll)

Syntax

'Declaration
Public Function LockAttributeBuffer ( _
    flags As LockFlags _
) As GraphicsStream
'Usage
Dim instance As Mesh
Dim flags As LockFlags
Dim returnValue As GraphicsStream

returnValue = instance.LockAttributeBuffer(flags)
public GraphicsStream LockAttributeBuffer (
    LockFlags flags
)
public:
GraphicsStream^ LockAttributeBuffer (
    LockFlags flags
)
public GraphicsStream LockAttributeBuffer (
    LockFlags flags
)
public function LockAttributeBuffer (
    flags : LockFlags
) : GraphicsStream
Not applicable.

Parameters

Return Value

Array that contains three values for each face in the mesh.

Exceptions

Exception type Condition

InvalidCallException

The method call is invalid. For example, a method's parameter may contain an invalid value.

Remarks

If Optimize is called, the mesh attribute buffer contains an attribute table.

Platforms

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

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Compact Framework

Supported in: 2.0

See Also

Reference

Mesh Class
Mesh Members
Microsoft.WindowsMobile.DirectX.Direct3D Namespace