diff options
author | Alexis211 <alexis211@gmail.com> | 2009-11-08 18:21:17 +0100 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2009-11-08 18:21:17 +0100 |
commit | 699a1497a4eb432f41d643a18f2ac6ba10a66518 (patch) | |
tree | 06983d53f9507a7f3f265925700ecc440ae18ff4 /Source/Kernel/DeviceManager/Disp.ns.h | |
parent | 87a1dd39d0036f55f5bdbf4ef8921a4767d95825 (diff) | |
download | Melon-699a1497a4eb432f41d643a18f2ac6ba10a66518.tar.gz Melon-699a1497a4eb432f41d643a18f2ac6ba10a66518.zip |
Worked on graphics mode selection, in prevision for having VESA grpahics
Diffstat (limited to 'Source/Kernel/DeviceManager/Disp.ns.h')
-rw-r--r-- | Source/Kernel/DeviceManager/Disp.ns.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Source/Kernel/DeviceManager/Disp.ns.h b/Source/Kernel/DeviceManager/Disp.ns.h index 0eea51d..0d56cf0 100644 --- a/Source/Kernel/DeviceManager/Disp.ns.h +++ b/Source/Kernel/DeviceManager/Disp.ns.h @@ -1,22 +1,31 @@ #ifndef DEF_DISP_NS_H #define DEF_DISP_NS_H -#include <Devices/Display/Display.proto.h> +#include <Devices/Display/VGATextOutput.class.h> #include <WChar.class.h> +#include <Vector.class.h> namespace Disp { struct mode_t { int textCols, textRows; + int graphWidth, graphHeight, graphDepth; + int identifier; //Used by video devices Display *device; }; + extern Vector<mode_t> modes; + extern mode_t mode; + u16int textCols(); u16int textRows(); void putChar(u16int line, u16int col, WChar c, u8int color); void moveCursor(u16int line, u16int col); void clear(); - void setDisplay(Display* disp); + void getModes(); + bool setMode(mode_t& mode); + + void setText(VGATextOutput* o); //To use only once : when display is initializing } #endif |