Class VGADriver
Inheritance
System.Object
VGADriver
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()
Assembly: Cosmos.HAL2.dll
Syntax
Fields
|
Improve this Doc
View Source
AttributeController_Index
Attribute controller index port.
Declaration
public const int AttributeController_Index = 960
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
AttributeController_Read
Attribute controller read port.
Declaration
public const int AttributeController_Read = 961
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
AttributeController_Write
Attribute controller write port.
Declaration
public const int AttributeController_Write = 960
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
CGATextMemoryBlock
Declaration
public readonly MemoryBlock CGATextMemoryBlock
Field Value
|
Improve this Doc
View Source
CRTController_Data
CRT controller data port.
Declaration
public const int CRTController_Data = 981
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
CRTController_Index
CRT controller index port.
Declaration
public const int CRTController_Index = 980
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
DAC_Data
Declaration
public const int DAC_Data = 969
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
DACIndex_Read
Declaration
public const int DACIndex_Read = 967
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
DACIndex_Write
Declaration
public const int DACIndex_Write = 968
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
GraphicsController_Data
Graphics controller data port.
Declaration
public const int GraphicsController_Data = 975
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
GraphicsController_Index
Graphics controller index port.
Declaration
public const int GraphicsController_Index = 974
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Instat_Read
Declaration
public const int Instat_Read = 986
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
MiscellaneousOutput_Write
Miscellaneous output write port.
Declaration
public const int MiscellaneousOutput_Write = 962
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
MonochromeTextMemoryBlock
Declaration
public readonly MemoryBlock MonochromeTextMemoryBlock
Field Value
|
Improve this Doc
View Source
Sequencer_Data
Declaration
public const int Sequencer_Data = 965
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Sequencer_Index
Declaration
public const int Sequencer_Index = 964
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
VGAMemoryBlock
Declaration
public readonly MemoryBlock VGAMemoryBlock
Field Value
Properties
|
Improve this Doc
View Source
Colors
Declaration
public int Colors { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
PixelHeight
Get and set pixel height.
Declaration
public int PixelHeight { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
PixelWidth
Declaration
public int PixelWidth { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
|
Improve this Doc
View Source
DrawFilledRectangle(Int32, Int32, Int32, Int32, UInt32)
Declaration
public void DrawFilledRectangle(int aX, int aY, int aW, int aH, uint aColor)
Parameters
Type |
Name |
Description |
System.Int32 |
aX |
X Position.
|
System.Int32 |
aY |
Y Position.
|
System.Int32 |
aW |
Rectangle width
|
System.Int32 |
aH |
Rectangle height
|
System.UInt32 |
aColor |
Rectangle color.
|
Exceptions
Type |
Condition |
System.Exception |
Thrown when Textmode enabled.
|
|
Improve this Doc
View Source
GetClosestColorInPalette(Color)
Declaration
public uint GetClosestColorInPalette(Color aColor)
Parameters
Type |
Name |
Description |
System.Drawing.Color |
aColor |
|
Returns
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
GetPaletteEntry(Int32)
Declaration
public Color GetPaletteEntry(int aIndex)
Parameters
Type |
Name |
Description |
System.Int32 |
aIndex |
|
Returns
Type |
Description |
System.Drawing.Color |
|
|
Improve this Doc
View Source
GetPixel(UInt32, UInt32)
Declaration
public uint GetPixel(uint aX, uint aY)
Parameters
Type |
Name |
Description |
System.UInt32 |
aX |
|
System.UInt32 |
aY |
|
Returns
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
GetPixel320x200x8(UInt32, UInt32)
Declaration
public uint GetPixel320x200x8(uint aX, uint aY)
Parameters
Type |
Name |
Description |
System.UInt32 |
aX |
|
System.UInt32 |
aY |
|
Returns
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
GetPixel640x480x4(UInt32, UInt32)
Declaration
public uint GetPixel640x480x4(uint aX, uint aY)
Parameters
Type |
Name |
Description |
System.UInt32 |
aX |
|
System.UInt32 |
aY |
|
Returns
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
GetPixel720x480x4(UInt32, UInt32)
Declaration
public uint GetPixel720x480x4(uint aX, uint aY)
Parameters
Type |
Name |
Description |
System.UInt32 |
aX |
|
System.UInt32 |
aY |
|
Returns
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
ReadPalette()
Declaration
public void ReadPalette()
|
Improve this Doc
View Source
SetGraphicsMode(VGADriver.ScreenSize, VGADriver.ColorDepth)
Declaration
public void SetGraphicsMode(VGADriver.ScreenSize aSize, VGADriver.ColorDepth aDepth)
Parameters
Exceptions
Type |
Condition |
System.Exception |
Thrown when aDepth not supported for the aSize / unknown screen size.
|
|
Improve this Doc
View Source
SetPaletteEntry(Int32, Byte, Byte, Byte)
Declaration
public void SetPaletteEntry(int aIndex, byte aR, byte aG, byte aB)
Parameters
Type |
Name |
Description |
System.Int32 |
aIndex |
Index.
|
System.Byte |
aR |
Red.
|
System.Byte |
aG |
Green.
|
System.Byte |
aB |
Blue.
|
|
Improve this Doc
View Source
SetPaletteEntry(Int32, Color)
Declaration
public void SetPaletteEntry(int aIndex, Color aColor)
Parameters
Type |
Name |
Description |
System.Int32 |
aIndex |
|
System.Drawing.Color |
aColor |
|
|
Improve this Doc
View Source
SetPixel(UInt32, UInt32, Color)
The closest color in the palette will be found to be drawn
This is quite slow, so whenever possible use the index of the color
Declaration
public void SetPixel(uint aX, uint aY, Color aColor)
Parameters
Type |
Name |
Description |
System.UInt32 |
aX |
|
System.UInt32 |
aY |
|
System.Drawing.Color |
aColor |
|
|
Improve this Doc
View Source
SetPixel(UInt32, UInt32, UInt32)
Declaration
public void SetPixel(uint aX, uint aY, uint aColor)
Parameters
Type |
Name |
Description |
System.UInt32 |
aX |
|
System.UInt32 |
aY |
|
System.UInt32 |
aColor |
The index of the color in the palette
|
|
Improve this Doc
View Source
SetPixel320x200x8(UInt32, UInt32, UInt32)
Declaration
public void SetPixel320x200x8(uint aX, uint aY, uint aC)
Parameters
Type |
Name |
Description |
System.UInt32 |
aX |
|
System.UInt32 |
aY |
|
System.UInt32 |
aC |
|
|
Improve this Doc
View Source
SetPixel640x480x4(UInt32, UInt32, UInt32)
Declaration
public void SetPixel640x480x4(uint aX, uint aY, uint aC)
Parameters
Type |
Name |
Description |
System.UInt32 |
aX |
|
System.UInt32 |
aY |
|
System.UInt32 |
aC |
|
|
Improve this Doc
View Source
SetPixel720x480x4(UInt32, UInt32, UInt32)
Declaration
public void SetPixel720x480x4(uint aX, uint aY, uint aC)
Parameters
Type |
Name |
Description |
System.UInt32 |
aX |
|
System.UInt32 |
aY |
|
System.UInt32 |
aC |
|
|
Improve this Doc
View Source
SetTextMode(VGADriver.TextSize)
Declaration
public void SetTextMode(VGADriver.TextSize aSize)
Parameters
Exceptions
Type |
Condition |
System.Exception |
Thrown when text size invalid / unable to determine memory segment.
|
|
Improve this Doc
View Source
WriteFont(Byte[], Byte)
Declaration
public void WriteFont(byte[] aFont, byte aFontHeight)
Parameters
Type |
Name |
Description |
System.Byte[] |
aFont |
|
System.Byte |
aFontHeight |
|
Exceptions
Type |
Condition |
System.Exception |
Thrown when unable to determine memory segment.
|