45 lines
1.4 KiB
C++
45 lines
1.4 KiB
C++
/*****************************************************************************
|
|
* *
|
|
* 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
|