C# 클래스 SFML.Graphics.VertexArray

Define a set of one or more 2D primitives
상속: ObjectBase, Drawable
파일 보기 프로젝트 열기: SFML/SFML.Net 1 사용 예제들

공개 메소드들

메소드 설명
Append ( Vertex vertex ) : void

Add a vertex to the array

Clear ( ) : void

Clear the vertex array

Draw ( RenderTarget target, RenderStates states ) : void

Draw the vertex array to a render target

Resize ( uint vertexCount ) : void

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.

VertexArray ( ) : System

Default constructor

VertexArray ( PrimitiveType type ) : System

Construct the vertex array with a type

VertexArray ( PrimitiveType type, uint vertexCount ) : System

Construct the vertex array with a type and an initial number of vertices

VertexArray ( VertexArray copy ) : System

Construct the vertex array from another vertex array

this ( uint index ) : Vertex

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.

보호된 메소드들

메소드 설명
Destroy ( bool disposing ) : void

Handle the destruction of the object

비공개 메소드들

메소드 설명
sfRenderTexture_drawVertexArray ( IntPtr CPointer, IntPtr VertexArray, RenderStates &states ) : void
sfRenderWindow_drawVertexArray ( IntPtr CPointer, IntPtr VertexArray, RenderStates &states ) : void
sfVertexArray_append ( IntPtr CPointer, Vertex vertex ) : void
sfVertexArray_clear ( IntPtr CPointer ) : void
sfVertexArray_copy ( IntPtr CPointer ) : IntPtr
sfVertexArray_create ( ) : IntPtr
sfVertexArray_destroy ( IntPtr CPointer ) : void
sfVertexArray_getBounds ( IntPtr CPointer ) : FloatRect
sfVertexArray_getPrimitiveType ( IntPtr CPointer ) : PrimitiveType
sfVertexArray_getVertex ( IntPtr CPointer, uint index ) : Vertex*
sfVertexArray_getVertexCount ( IntPtr CPointer ) : uint
sfVertexArray_resize ( IntPtr CPointer, uint vertexCount ) : void
sfVertexArray_setPrimitiveType ( IntPtr CPointer, PrimitiveType type ) : void

메소드 상세

Append() 공개 메소드

Add a vertex to the array
public Append ( Vertex vertex ) : void
vertex Vertex Vertex to add
리턴 void

Clear() 공개 메소드

Clear the vertex array
public Clear ( ) : void
리턴 void

Destroy() 보호된 메소드

Handle the destruction of the object
protected Destroy ( bool disposing ) : void
disposing bool Is the GC disposing the object, or is it an explicit call ?
리턴 void

Draw() 공개 메소드

Draw the vertex array to a render target
public Draw ( RenderTarget target, RenderStates states ) : void
target RenderTarget Render target to draw to
states RenderStates Current render states
리턴 void

Resize() 공개 메소드

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 Resize ( uint vertexCount ) : void
vertexCount uint New size of the array (number of vertices)
리턴 void

VertexArray() 공개 메소드

Default constructor
public VertexArray ( ) : System
리턴 System

VertexArray() 공개 메소드

Construct the vertex array with a type
public VertexArray ( PrimitiveType type ) : System
type PrimitiveType Type of primitives
리턴 System

VertexArray() 공개 메소드

Construct the vertex array with a type and an initial number of vertices
public VertexArray ( PrimitiveType type, uint vertexCount ) : System
type PrimitiveType Type of primitives
vertexCount uint Initial number of vertices in the array
리턴 System

VertexArray() 공개 메소드

Construct the vertex array from another vertex array
public VertexArray ( VertexArray copy ) : System
copy VertexArray Transformable to copy
리턴 System

this() 공개 메소드

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 this ( uint index ) : Vertex
index uint Index of the vertex to get
리턴 Vertex