summaryrefslogtreecommitdiff
path: root/Source/Kernel/Devices/Display/Display.proto.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Kernel/Devices/Display/Display.proto.h')
-rw-r--r--Source/Kernel/Devices/Display/Display.proto.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/Kernel/Devices/Display/Display.proto.h b/Source/Kernel/Devices/Display/Display.proto.h
index e1775bd..8401e0b 100644
--- a/Source/Kernel/Devices/Display/Display.proto.h
+++ b/Source/Kernel/Devices/Display/Display.proto.h
@@ -19,7 +19,13 @@ class Display : public Device {
virtual void putChar(u16int line, u16int col, WChar c, u8int color) = 0; //Color : <bg 4bits><fg 4bits>
virtual void moveCursor(u16int line, u16int col) = 0;
- //Graphic functions
+ //Graphic functions, can stay unimplemented for textual displays
+ virtual void putPix(u16int x, u16int y, u32int color) {}
+ virtual u32int getPix(u16int x, u16int y) { return 0; }
+ //Advanced graphic functions. These have a simple implementation in GraphicDisplay,
+ //and should have an optimized version in each individual driver. This is also the
+ //case of the graphical putChar and moveCursor.
+ //drawLine, drawCircle, ...
};
#endif