diff --git a/source/Cosmos.System2/Graphics/FullScreenCanvas.cs b/source/Cosmos.System2/Graphics/FullScreenCanvas.cs
index d2886833f..a849edc49 100644
--- a/source/Cosmos.System2/Graphics/FullScreenCanvas.cs
+++ b/source/Cosmos.System2/Graphics/FullScreenCanvas.cs
@@ -1,12 +1,23 @@
//#define COSMOSDEBUG
using Cosmos.HAL;
+using sys = System;
namespace Cosmos.System.Graphics
{
+ ///
+ /// FullScreenCanvas class. Used to set and get full screen canvas.
+ ///
public static class FullScreenCanvas
{
+ ///
+ /// SVGA 2 device.
+ ///
private static PCIDevice SVGAIIDevice = PCI.GetDevice(VendorID.VMWare, DeviceID.SVGAIIAdapter);
+ ///
+ /// Check if SVGA 2 Exists.
+ ///
+ /// bool value.
public static bool SVGAIIExist()
{
if (SVGAIIDevice == null)
@@ -17,8 +28,16 @@ namespace Cosmos.System.Graphics
return SVGAIIDevice.DeviceExists;
}
+ ///
+ /// Video driver.
+ ///
private static Canvas MyVideoDriver = null;
+ ///
+ /// Get video driver.
+ ///
+ /// Canvas value.
+ /// Thrown if default graphics mode is not suppoted.
private static Canvas GetVideoDriver()
{
if (SVGAIIExist())
@@ -31,6 +50,12 @@ namespace Cosmos.System.Graphics
}
}
+ ///
+ /// Get video driver.
+ ///
+ /// Mode.
+ /// Canvas value.
+ /// Thrown if graphics mode is not suppoted.
private static Canvas GetVideoDriver(Mode mode)
{
if (SVGAIIExist())
@@ -43,6 +68,11 @@ namespace Cosmos.System.Graphics
}
}
+ ///
+ /// Get full screen canvas.
+ ///
+ /// Canvas value.
+ /// Thrown if default graphics mode is not suppoted.
public static Canvas GetFullScreenCanvas()
{
Global.mDebugger.SendInternal($"GetFullScreenCanvas() with default mode");
@@ -59,6 +89,12 @@ namespace Cosmos.System.Graphics
}
}
+ ///
+ /// Get full screen canvas.
+ ///
+ /// Mode.
+ /// Canvas value.
+ /// Thrown if graphics mode is not suppoted.
public static Canvas GetFullScreenCanvas(Mode mode)
{
Global.mDebugger.SendInternal($"GetFullScreenCanvas() with mode" + mode);