update VBEdemo
This commit is contained in:
44
c_os/user/demo/VBEdemo.h
Normal file
44
c_os/user/demo/VBEdemo.h
Normal file
@ -0,0 +1,44 @@
|
||||
/*****************************************************************************
|
||||
* *
|
||||
* V B E D E M O *
|
||||
* *
|
||||
*---------------------------------------------------------------------------*
|
||||
* Beschreibung: Demo zu VESA. *
|
||||
* *
|
||||
* Autor: Michael Schoettner, HHU, 26.12.2016 *
|
||||
*****************************************************************************/
|
||||
#ifndef __VBEdemo_include__
|
||||
#define __VBEdemo_include__
|
||||
|
||||
#include "kernel/threads/Thread.h"
|
||||
#include "kernel/Globals.h"
|
||||
|
||||
class VBEdemo : public Thread {
|
||||
|
||||
private:
|
||||
VBEdemo(const VBEdemo& copy) = delete; // Verhindere Kopieren
|
||||
|
||||
// Hilfsfunktionen fuer drawColors()
|
||||
int linInterPol1D(int x, int xr, int l, int r);
|
||||
int linInterPol2D(int x, int y, int lt, int rt, int lb, int rb);
|
||||
|
||||
public:
|
||||
// Gib dem Anwendungsthread einen Stack.
|
||||
VBEdemo() {
|
||||
kout << "Initialized VBEdemo" << endl;
|
||||
}
|
||||
|
||||
// Thread-Startmethode
|
||||
void run() override;
|
||||
|
||||
// Farbraum ausgeben
|
||||
void drawColors();
|
||||
|
||||
// Bitmap aus GIMP ausgeben
|
||||
void drawBitmap();
|
||||
|
||||
// Fonts ausgeben
|
||||
void drawFonts();
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user