Class VMWareSVGAII
VMWareSVGAII class.
Inheritance
Inherited Members
Namespace: Cosmos.HAL.Drivers.Video.SVGAII
Assembly: Cosmos.HAL2.dll
Syntax
public class VMWareSVGAII
Constructors
| Improve this Doc View SourceVMWareSVGAII()
Initializes a new instance of the VMWareSVGAII class.
Declaration
public VMWareSVGAII()
Fields
| Improve this Doc View SourceFrameOffset
Declaration
public uint FrameOffset
Field Value
Type | Description |
---|---|
System.UInt32 |
FrameSize
Declaration
public uint FrameSize
Field Value
Type | Description |
---|---|
System.UInt32 |
videoMemory
Video memory block.
Declaration
public readonly MemoryBlock videoMemory
Field Value
Type | Description |
---|---|
MemoryBlock |
Methods
| Improve this Doc View SourceClear(UInt32)
Clear screen to specified color.
Declaration
public void Clear(uint color)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | color | Color. |
Exceptions
Type | Condition |
---|---|
System.Exception | Thrown on memory access violation. |
System.NotImplementedException | Thrown if VMWare SVGA 2 has no rectange copy capability |
Copy(UInt32, UInt32, UInt32, UInt32, UInt32, UInt32)
Copy rectangle.
Declaration
public void Copy(uint x, uint y, uint newX, uint newY, uint width, uint height)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | x | Source X coordinate. |
System.UInt32 | y | Source Y coordinate. |
System.UInt32 | newX | Destination X coordinate. |
System.UInt32 | newY | Destination Y coordinate. |
System.UInt32 | width | Width. |
System.UInt32 | height | Height. |
Exceptions
Type | Condition |
---|---|
System.NotImplementedException | Thrown if VMWare SVGA 2 has no rectange copy capability |
DefineAlphaCursor(UInt32, UInt32, Int32[])
Define alpha cursor.
Declaration
public void DefineAlphaCursor(uint width, uint height, int[] data)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | width | |
System.UInt32 | height | |
System.Int32[] | data |
DefineCursor()
Define cursor.
Declaration
public void DefineCursor()
Disable()
Disable the SVGA Driver, returns to text mode.
Declaration
public void Disable()
DoubleBufferUpdate()
Update video memory.
Declaration
public void DoubleBufferUpdate()
Enable()
Enable the SVGA Driver, only needed after Disable() has been called.
Declaration
public void Enable()
Fill(UInt32, UInt32, UInt32, UInt32, UInt32)
Fill rectangle.
Declaration
public void Fill(uint x, uint y, uint width, uint height, uint color)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | x | X coordinate. |
System.UInt32 | y | Y coordinate. |
System.UInt32 | width | Width. |
System.UInt32 | height | Height. |
System.UInt32 | color | Color. |
Exceptions
Type | Condition |
---|---|
System.Exception | Thrown on memory access violation. |
System.NotImplementedException | Thrown if VMWare SVGA 2 has no rectange copy capability |
GetFIFO(FIFO)
Get FIFO.
Declaration
public uint GetFIFO(FIFO cmd)
Parameters
Type | Name | Description |
---|---|---|
FIFO | cmd | FIFO command. |
Returns
Type | Description |
---|---|
System.UInt32 | uint value. |
GetPixel(UInt32, UInt32)
Get pixel.
Declaration
public uint GetPixel(uint x, uint y)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | x | X coordinate. |
System.UInt32 | y | Y coordinate. |
Returns
Type | Description |
---|---|
System.UInt32 | uint value. |
Exceptions
Type | Condition |
---|---|
System.Exception | Thrown on memory access violation. |
InitializeFIFO()
Initialize FIFO.
Declaration
public void InitializeFIFO()
ReadRegister(Register)
Read register.
Declaration
public uint ReadRegister(Register register)
Parameters
Type | Name | Description |
---|---|---|
Register | register | A register. |
Returns
Type | Description |
---|---|
System.UInt32 | uint value. |
SetCursor(Boolean, UInt32, UInt32)
Sets the cursor position and draws it.
Declaration
public void SetCursor(bool visible, uint x, uint y)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | visible | Visible. |
System.UInt32 | x | X coordinate. |
System.UInt32 | y | Y coordinate. |
SetFIFO(FIFO, UInt32)
Set FIFO.
Declaration
public uint SetFIFO(FIFO cmd, uint value)
Parameters
Type | Name | Description |
---|---|---|
FIFO | cmd | Command. |
System.UInt32 | value | Value. |
Returns
Type | Description |
---|---|
System.UInt32 |
SetMode(UInt32, UInt32, UInt32)
Set video mode.
Declaration
public void SetMode(uint width, uint height, uint depth = 32U)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | width | Width. |
System.UInt32 | height | Height. |
System.UInt32 | depth | Depth. |
SetPixel(UInt32, UInt32, UInt32)
Set pixel.
Declaration
public void SetPixel(uint x, uint y, uint color)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | x | X coordinate. |
System.UInt32 | y | Y coordinate. |
System.UInt32 | color | Color. |
Exceptions
Type | Condition |
---|---|
System.Exception | Thrown on memory access violation. |
Update(UInt32, UInt32, UInt32, UInt32)
Update FIFO.
Declaration
public void Update(uint x, uint y, uint width, uint height)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | x | X coordinate. |
System.UInt32 | y | Y coordinate. |
System.UInt32 | width | Width. |
System.UInt32 | height | Height. |
WaitForFifo()
Wait for FIFO.
Declaration
public void WaitForFifo()
WriteRegister(Register, UInt32)
Write register.
Declaration
public void WriteRegister(Register register, uint value)
Parameters
Type | Name | Description |
---|---|---|
Register | register | A register. |
System.UInt32 | value | A value. |
WriteToFifo(UInt32)
Write to FIFO.
Declaration
public void WriteToFifo(uint value)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | value | Value to write. |