Пример #1
0
 static extern void sfVertexBuffer_setUsage(IntPtr CPointer, UsageSpecifier usageType);
Пример #2
0
 ////////////////////////////////////////////////////////////
 /// <summary>
 /// Create a new vertex buffer with a specific
 /// PrimitiveType and usage specifier.
 ///
 /// Creates the vertex buffer, allocating enough graphcis
 /// memory to hold \p vertexCount vertices, and sets its
 /// primitive type to \p type and usage to \p usage.
 /// </summary>
 /// <param name="vertexCount">Amount of vertices</param>
 /// <param name="primitiveType">Type of primitives</param>
 /// <param name="usageType">Usage specifier</param>
 ////////////////////////////////////////////////////////////
 public VertexBuffer(uint vertexCount, PrimitiveType primitiveType, UsageSpecifier usageType)
     : base(sfVertexBuffer_create(vertexCount, primitiveType, usageType))
 {
 }
Пример #3
0
 static extern IntPtr sfVertexBuffer_create(uint vertexCount, PrimitiveType type, UsageSpecifier usage);