Class VBEDriver
VBEDriver class. Used to directly write registers values to the port.
Inheritance
System.Object
VBEDriver
Namespace: Cosmos.HAL.Drivers
Assembly: Cosmos.HAL2.dll
Syntax
public class VBEDriver : object
Constructors
| Improve this Doc View SourceVBEDriver(UInt16, UInt16, UInt16)
Create new instance of the VBEDriver class.
Declaration
public VBEDriver(ushort xres, ushort yres, ushort bpp)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16 | xres | X resolution. |
System.UInt16 | yres | Y resolution. |
System.UInt16 | bpp | BPP (color depth). |
Methods
| Improve this Doc View SourceClearVRAM(Int32, Int32, Int32)
Clear VRAM.
Declaration
public void ClearVRAM(int aStart, int aCount, int value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | aStart | A start. |
System.Int32 | aCount | A count. |
System.Int32 | value | A volum. |
ClearVRAM(UInt32)
Clear VRAM.
Declaration
public void ClearVRAM(uint value)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | value | Value of fill with. |
CopyVRAM(Int32, Int32[], Int32, Int32)
Copy VRAM.
Declaration
public void CopyVRAM(int aStart, int[] aData, int aIndex, int aCount)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | aStart | A start. |
System.Int32[] | aData | A data. |
System.Int32 | aIndex | A index. |
System.Int32 | aCount | A count. |
DisableDisplay()
Disable display.
Declaration
public void DisableDisplay()
GetVRAM(UInt32)
Get VRAM.
Declaration
public uint GetVRAM(uint index)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | index | Index to get. |
Returns
Type | Description |
---|---|
System.UInt32 | byte value. |
ISAModeAvailable()
Declaration
public static bool ISAModeAvailable()
Returns
Type | Description |
---|---|
System.Boolean |
SetVRAM(UInt32, Byte)
Set VRAM.
Declaration
public void SetVRAM(uint index, byte value)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | index | Index to set. |
System.Byte | value | Value to set. |
SetVRAM(UInt32, UInt16)
Set VRAM.
Declaration
public void SetVRAM(uint index, ushort value)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | index | Index to set. |
System.UInt16 | value | Value to set. |
SetVRAM(UInt32, UInt32)
Set VRAM.
Declaration
public void SetVRAM(uint index, uint value)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | index | Index to set. |
System.UInt32 | value | Value to set. |
Swap()
Swap back buffer to video memory
Declaration
public void Swap()
VBESet(UInt16, UInt16, UInt16)
Set VBE values.
Declaration
public void VBESet(ushort xres, ushort yres, ushort bpp)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16 | xres | X resolution. |
System.UInt16 | yres | Y resolution. |
System.UInt16 | bpp | BPP (color depth). |