VertexArray Class

SFML.Net

VertexArray Class
Define a set of one or more 2D primitives
Inheritance Hierarchy
SystemObject  SFMLObjectBase
    SFML.GraphicsVertexArray

Namespace: SFML.Graphics
Assembly: sfmlnet-graphics-2 (in sfmlnet-graphics-2.dll) Version: 2.2.0.0 (2.2.0)
Syntax
public class VertexArray : ObjectBase, 
	Drawable
Public Class VertexArray
	Inherits ObjectBase
	Implements Drawable
public ref class VertexArray : public ObjectBase, 
	Drawable
type VertexArray =  
    class
        inherit ObjectBase
        interface Drawable
    end

The VertexArray type exposes the following members.

Constructors
  NameDescription
Public methodVertexArray
Default constructor
Public methodVertexArray(PrimitiveType)
Construct the vertex array with a type
Public methodVertexArray(VertexArray)
Construct the vertex array from another vertex array
Public methodVertexArray(PrimitiveType, UInt32)
Construct the vertex array with a type and an initial number of vertices
Top
Methods
  NameDescription
Public methodAppend
Add a vertex to the array
Public methodClear
Clear the vertex array
Protected methodDestroy
Handle the destruction of the object
(Overrides ObjectBaseDestroy(Boolean).)
Public methodDispose
Explicitely dispose the object
(Inherited from ObjectBase.)
Public methodDraw
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Dispose the object
(Inherited from ObjectBase.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodResize
Resize the vertex array If \a vertexCount is greater than the current size, the previous vertices are kept and new (default-constructed) vertices are added. If \a vertexCount is less than the current size, existing vertices are removed from the array.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyBounds
Public propertyCPointer
Access to the internal pointer of the object. For internal use only
(Inherited from ObjectBase.)
Public propertyItem
Read-write access to vertices by their index. This function doesn't check index, it must be in range [0, VertexCount - 1]. The behaviour is undefined otherwise.
Public propertyPrimitiveType
Type of primitives to draw
Public propertyVertexCount
Total vertex count
Top
See Also