Class VBEDriver
VBEDriver class. Used to directly write registers values to the port.
Inheritance
System.Object
VBEDriver
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Cosmos.HAL.Drivers.Video
Assembly: Cosmos.HAL2.dll
Syntax
public class VBEDriver
Constructors
| Improve this Doc View SourceVBEDriver(UInt16, UInt16, UInt16)
Initializes a 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). |
Fields
| Improve this Doc View Sourcelastbuffer
Declaration
protected readonly ManagedMemoryBlock lastbuffer
Field Value
Type | Description |
---|---|
ManagedMemoryBlock |
LinearFrameBuffer
Frame buffer memory block.
Declaration
public MemoryBlock LinearFrameBuffer
Field Value
Type | Description |
---|---|
MemoryBlock |
VBEData
Data IOPort.
Declaration
public const int VBEData = 463
Field Value
Type | Description |
---|---|
System.Int32 |
VBEIndex
Index IOPort.
Declaration
public const int VBEIndex = 462
Field Value
Type | Description |
---|---|
System.Int32 |
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, Byte[], Int32, Int32)
Copy VRAM.
Declaration
public void CopyVRAM(int aStart, byte[] aData, int aIndex, int aCount)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | aStart | A start. |
System.Byte[] | aData | A data. |
System.Int32 | aIndex | A index. |
System.Int32 | aCount | A count. |
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(Int32, Int32[], Int32, Int32)
Get VRAM data.
Declaration
public void GetVRAM(int aStart, int[] aData, int aIndex, int aCount)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | aStart | Start position in VRAM. |
System.Int32[] | aData | Array to copy data into. |
System.Int32 | aIndex | Starting index in the array to begin copying data. |
System.Int32 | aCount | Number of elements to copy. |
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, Boolean)
Set VBE values.
Declaration
public void VBESet(ushort xres, ushort yres, ushort bpp, bool clear = false)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16 | xres | X resolution. |
System.UInt16 | yres | Y resolution. |
System.UInt16 | bpp | BPP (color depth). |
System.Boolean | clear |