Class VMWareSVGAII
VMWareSVGAII class.
Inheritance
Inherited Members
Namespace: Cosmos.HAL.Drivers.PCI.Video
Assembly: Cosmos.HAL2.dll
Syntax
public class VMWareSVGAII
Constructors
| Improve this Doc View SourceVMWareSVGAII()
Create 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 , return 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(VMWareSVGAII.FIFO)
Get FIFO.
Declaration
protected uint GetFIFO(VMWareSVGAII.FIFO cmd)
Parameters
Type | Name | Description |
---|---|---|
VMWareSVGAII.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
protected void InitializeFIFO()
ReadRegister(VMWareSVGAII.Register)
Read register.
Declaration
protected uint ReadRegister(VMWareSVGAII.Register register)
Parameters
Type | Name | Description |
---|---|---|
VMWareSVGAII.Register | register | A register. |
Returns
Type | Description |
---|---|
System.UInt32 | uint value. |
SetCursor(Boolean, UInt32, UInt32)
Set cursor.
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(VMWareSVGAII.FIFO, UInt32)
Set FIFO.
Declaration
protected uint SetFIFO(VMWareSVGAII.FIFO cmd, uint value)
Parameters
Type | Name | Description |
---|---|---|
VMWareSVGAII.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
protected void WaitForFifo()
WriteRegister(VMWareSVGAII.Register, UInt32)
Write register.
Declaration
protected void WriteRegister(VMWareSVGAII.Register register, uint value)
Parameters
Type | Name | Description |
---|---|---|
VMWareSVGAII.Register | register | A register. |
System.UInt32 | value | A value. |
WriteToFifo(UInt32)
Write to FIFO.
Declaration
protected void WriteToFifo(uint value)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | value | Value to write. |