C# Class OpenRA.Platforms.Default.Sdl2GraphicsDevice

Inheritance: OpenRA.Platforms.Default.ThreadAffine, IGraphicsDevice
Datei anzeigen Open project: cjshmyr/OpenRA Class Usage Examples

Public Methods

Method Description
Clear ( ) : void
CreateFrameBuffer ( Size s ) : IFrameBuffer
CreateHardwareCursor ( string name, Size size, byte data, int2 hotspot ) : IHardwareCursor
CreateShader ( string name ) : IShader
CreateTexture ( ) : ITexture
CreateTexture ( Bitmap bitmap ) : ITexture
CreateVertexBuffer ( int size ) : IVertexBuffer
DisableDepthBuffer ( ) : void
DisableScissor ( ) : void
Dispose ( ) : void
DrawPrimitives ( PrimitiveType pt, int firstVertex, int numVertices ) : void
EnableDepthBuffer ( ) : void
EnableScissor ( int left, int top, int width, int height ) : void
GetClipboardText ( ) : string
GrabWindowMouseFocus ( ) : void
Present ( ) : void
PumpInput ( IInputHandler inputHandler ) : void
ReleaseWindowMouseFocus ( ) : void
Sdl2GraphicsDevice ( Size windowSize, WindowMode windowMode ) : System
SetBlendMode ( BlendMode mode ) : void
SetClipboardText ( string text ) : bool
SetHardwareCursor ( IHardwareCursor cursor ) : void
TakeScreenshot ( ) : Bitmap

Private Methods

Method Description
ModeFromPrimitiveType ( PrimitiveType pt ) : int

Method Details

Clear() public method

public Clear ( ) : void
return void

CreateFrameBuffer() public method

public CreateFrameBuffer ( Size s ) : IFrameBuffer
s System.Drawing.Size
return IFrameBuffer

CreateHardwareCursor() public method

public CreateHardwareCursor ( string name, Size size, byte data, int2 hotspot ) : IHardwareCursor
name string
size System.Drawing.Size
data byte
hotspot int2
return IHardwareCursor

CreateShader() public method

public CreateShader ( string name ) : IShader
name string
return IShader

CreateTexture() public method

public CreateTexture ( ) : ITexture
return ITexture

CreateTexture() public method

public CreateTexture ( Bitmap bitmap ) : ITexture
bitmap System.Drawing.Bitmap
return ITexture

CreateVertexBuffer() public method

public CreateVertexBuffer ( int size ) : IVertexBuffer
size int
return IVertexBuffer

DisableDepthBuffer() public method

public DisableDepthBuffer ( ) : void
return void

DisableScissor() public method

public DisableScissor ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

DrawPrimitives() public method

public DrawPrimitives ( PrimitiveType pt, int firstVertex, int numVertices ) : void
pt PrimitiveType
firstVertex int
numVertices int
return void

EnableDepthBuffer() public method

public EnableDepthBuffer ( ) : void
return void

EnableScissor() public method

public EnableScissor ( int left, int top, int width, int height ) : void
left int
top int
width int
height int
return void

GetClipboardText() public method

public GetClipboardText ( ) : string
return string

GrabWindowMouseFocus() public method

public GrabWindowMouseFocus ( ) : void
return void

Present() public method

public Present ( ) : void
return void

PumpInput() public method

public PumpInput ( IInputHandler inputHandler ) : void
inputHandler IInputHandler
return void

ReleaseWindowMouseFocus() public method

public ReleaseWindowMouseFocus ( ) : void
return void

Sdl2GraphicsDevice() public method

public Sdl2GraphicsDevice ( Size windowSize, WindowMode windowMode ) : System
windowSize System.Drawing.Size
windowMode WindowMode
return System

SetBlendMode() public method

public SetBlendMode ( BlendMode mode ) : void
mode BlendMode
return void

SetClipboardText() public method

public SetClipboardText ( string text ) : bool
text string
return bool

SetHardwareCursor() public method

public SetHardwareCursor ( IHardwareCursor cursor ) : void
cursor IHardwareCursor
return void

TakeScreenshot() public method

public TakeScreenshot ( ) : Bitmap
return System.Drawing.Bitmap