C# Class Vector.Gpu.Device

Abstract class Device.

Contains Standard Rendering Methods and State Management.

Inheritance: IDisposable
Afficher le fichier Open project: sinclairzx81/vector-cs Class Usage Examples

Protected Properties

Свойство Type Description
indexBuffer IndexBuffer
state State
textures Vector.Gpu.TextureBase[]
vertexDeclaration VertexDeclaration

Méthodes publiques

Méthode Description
Clear ( ClearFlags flags, float red, float green, float blue, float alpha, float depth, int stencil ) : void

Clears the FrameBuffer.

Clear ( Color color ) : void

Clears the FrameBuffer

Clear ( float red, float green, float blue, float alpha ) : void

Clears the FrameBuffer.

(Automatically Clears the Depth Buffer Bit, Stencil Color Bit and the Color Bit)

Device ( ) : System
Dispose ( ) : void

Disposes this Object

Draw ( Topology topology ) : void

Draws the currently bound source objects associated with this device.

A valid VertexDeclaration, VertexBuffer, IndexBuffer and Optional Texture must be bound before calling this method.

DrawInstanced ( Topology topology, int primitiveCount ) : void

Only Availible on NVidia 8800's (Time of writing).

Draws buffers as instanced. Primitive Count refers to the amount of times the object is drawn. inside a shader. The instance can be looked up via the gl_InstanceId sematic.

GetExtensions ( ) : string[]
Present ( ) : void

Presents the Current OpenGL framebuffer to the drawing surface

SetVertexBuffer ( int streamIndex, VertexBuffer vertexBuffer ) : void

Sets the Vertex Buffer for a given rendering pass.

Méthodes protégées

Méthode Description
Create ( ) : void

Private Methods

Méthode Description
DisableTextures ( ) : void
DisableVertexDeclaration ( ) : void
EnableStates ( ) : void
EnableTextures ( ) : void
EnableVertexDeclaration ( ) : void

Method Details

Clear() public méthode

Clears the FrameBuffer.
public Clear ( ClearFlags flags, float red, float green, float blue, float alpha, float depth, int stencil ) : void
flags ClearFlags
red float
green float
blue float
alpha float
depth float
stencil int
Résultat void

Clear() public méthode

Clears the FrameBuffer
public Clear ( Color color ) : void
color Color
Résultat void

Clear() public méthode

Clears the FrameBuffer.

(Automatically Clears the Depth Buffer Bit, Stencil Color Bit and the Color Bit)

public Clear ( float red, float green, float blue, float alpha ) : void
red float
green float
blue float
alpha float
Résultat void

Create() protected abstract méthode

protected abstract Create ( ) : void
Résultat void

Device() public méthode

public Device ( ) : System
Résultat System

Dispose() public abstract méthode

Disposes this Object
public abstract Dispose ( ) : void
Résultat void

Draw() public méthode

Draws the currently bound source objects associated with this device.

A valid VertexDeclaration, VertexBuffer, IndexBuffer and Optional Texture must be bound before calling this method.

public Draw ( Topology topology ) : void
topology Topology
Résultat void

DrawInstanced() public méthode

Only Availible on NVidia 8800's (Time of writing).

Draws buffers as instanced. Primitive Count refers to the amount of times the object is drawn. inside a shader. The instance can be looked up via the gl_InstanceId sematic.

public DrawInstanced ( Topology topology, int primitiveCount ) : void
topology Topology
primitiveCount int
Résultat void

GetExtensions() public méthode

public GetExtensions ( ) : string[]
Résultat string[]

Present() public abstract méthode

Presents the Current OpenGL framebuffer to the drawing surface
public abstract Present ( ) : void
Résultat void

SetVertexBuffer() public méthode

Sets the Vertex Buffer for a given rendering pass.
public SetVertexBuffer ( int streamIndex, VertexBuffer vertexBuffer ) : void
streamIndex int
vertexBuffer VertexBuffer
Résultat void

Property Details

indexBuffer protected_oe property

protected IndexBuffer,Vector.Gpu indexBuffer
Résultat IndexBuffer

state protected_oe property

protected State,Vector.Gpu state
Résultat State

textures protected_oe property

protected TextureBase[],Vector.Gpu textures
Résultat Vector.Gpu.TextureBase[]

vertexDeclaration protected_oe property

protected VertexDeclaration,Vector.Gpu vertexDeclaration
Résultat VertexDeclaration