• Navigation überspringen
  • Zur Navigation
  • Zum Seitenende
Organisationsmenü öffnen Organisationsmenü schließen
Friedrich-Alexander-Universität Lehrstuhl für Informatik 4 (Systemsoftware)
  • FAUZur zentralen FAU Website
  1. Friedrich-Alexander-Universität
  2. Technische Fakultät
  3. Department Informatik
Suche öffnen
  • English
  • Campo
  • StudOn
  • FAUdir
  • Stellenangebote
  • Lageplan
  • Hilfe im Notfall
  1. Friedrich-Alexander-Universität
  2. Technische Fakultät
  3. Department Informatik
Friedrich-Alexander-Universität Lehrstuhl für Informatik 4 (Systemsoftware)
Menu Menu schließen
  • Lehrstuhl
    • Team
    • Aktuelles
    • Kontakt und Anfahrt
    • Leitbild
    • 50-jähriges Jubiläum
    Portal Lehrstuhl
  • Forschung
    • Forschungsbereiche
      • Betriebssysteme
      • Confidential Computing
      • Eingebettete Systemsoftware
      • Verteilte Systeme
    • Projekte
      • AIMBOS
      • BALu
      • BFT2Chain
      • DOSS
      • Mirador
      • NEON
      • PAVE
      • ResPECT
      • Watwa
    • Projektkampagnen
      • maRE
    • Seminar
      • Systemsoftware
    Portal Forschung
  • Publikationen
  • Lehre
    • Sommersemester 2025
      • Applied Software Architecture
      • Ausgewählte Kapitel der Systemsoftware
      • Betriebssystemtechnik
      • Projekt angewandte Systemsoftwaretechnik
      • System-Level Programming
      • Systemnahe Programmierung in C
      • Systemprogrammierung 1
      • Verteilte Systeme
    • Wintersemester 2024/25
      • Betriebssysteme
      • Middleware – Cloud Computing
      • Systemprogrammierung 2
      • Verlässliche Echtzeitsysteme
      • Virtuelle Maschinen
      • Web-basierte Systeme
    Portal Lehre
  • Examensarbeiten
  1. Startseite
  2. Extern

Extern

Bereichsnavigation: Lehre
  • Betriebssysteme
    • Vorlesung
      • Folien
    • Übung
      • Seminar
      • Aufgaben
      • Aufgabe 0: C++ Streams
        • Aufgabe 1: Ein-/Ausgabe
          • Aufgabe 2: Unterbrechungen
            • Aufgabe 3: Pro-/Epilog
              • Aufgabe 4: Kontextwechsel
                • Aufgabe 5: Zeitscheiben
                  • Aufgabe 6: Synchronisation
                    • Aufgabe 7: Anwendung
                      • Assembler Crashkurs
                        • C++ Crashkurs
                          • Entwicklungsumgebung
                            • FAQ
                              • Ruhmeshalle
                              • Evaluation

                              Aufgabe 7: Anwendung

                              Public Member Functions | List of all members
                              GuardedGraphics Class Reference

                              Guarded interface to Graphics used by user applications. More...

                              #include <syscall/guarded_graphics.h>

                              + Inheritance diagram for GuardedGraphics:
                              [legend]
                              + Collaboration diagram for GuardedGraphics:
                              [legend]

                              Public Member Functions

                               GuardedGraphics (unsigned size, void *frontbuffer, void *backbuffer)
                               The constructor passes the pointers to the base-class constructor.
                               
                              bool switchBuffers ()
                               Switch front and back buffer (only if front buffer was already copied to video memory) More...
                               
                              void scanoutFrontbuffer ()
                               Copy current front buffer to the video memory. More...
                               
                              - Public Member Functions inherited from Graphics
                               Graphics (unsigned size, void *frontbuffer, void *backbuffer)
                               Constructor. More...
                               
                              bool init (bool force=false)
                               Initialize GraphicsPrinter according to the current video mode. More...
                               
                              bool switchBuffers ()
                               Switch front and back buffer (only if front buffer was already copied to video memory) More...
                               
                              void scanoutFrontbuffer ()
                               Copy current front buffer to the video memory.
                               
                              void clear ()
                               Clear all pixel of the current back buffer (set full screen to black)
                               
                              bool valid (const Point &p)
                               Check if a Point can be displayed at the current resolution. More...
                               
                              unsigned height ()
                               Number of vertical pixels in current resolution. More...
                               
                              unsigned width ()
                               Number of horizontal pixels in current resolution. More...
                               
                              void pixel (const Point &p, const Color &color)
                               Draw a pixel on the current back buffer. More...
                               
                              void pixel (const Point &p, const ColorAlpha &color)
                               Draw a pixel on the current back buffer. More...
                               
                              void line (const Point &start, const Point &end, const Color &color)
                               Draw a line on the current back buffer. More...
                               
                              void line (const Point &start, const Point &end, const ColorAlpha &color)
                               Draw a line on the current back buffer. More...
                               
                              void rectangle (const Point &start, const Point &end, const Color &color, bool filled=true)
                               Draw a rectangle on the current back buffer. More...
                               
                              void rectangle (const Point &start, const Point &end, const ColorAlpha &color, bool filled=true)
                               Draw a rectangle on the current back buffer. More...
                               
                              void font (const Font &new_font)
                               Change the current font for text output in video mode. More...
                               
                              void text (const Point &p, const char *string, unsigned len, const Color &color, const Font *font=nullptr)
                               Print text (without automatic word wrap) on the current back buffer. More...
                               
                              void text (const Point &p, const char *string, unsigned len, const ColorAlpha &color, const Font *font=nullptr)
                               Print text (without automatic word wrap) on the current back buffer. More...
                               
                              void image (const Point &p, PNG &image, unsigned width=0, unsigned height=0, unsigned offset_x=0, unsigned offset_y=0)
                               Draw a PNG image [detail] on the current back buffer. More...
                               
                              void image (const Point &p, const GIMP &image, unsigned width=0, unsigned height=0, unsigned offset_x=0, unsigned offset_y=0)
                               Draw a GIMP image [detail] on the current back buffer. More...
                               
                              void image (const Point &p, const Color *image, unsigned width, unsigned height, unsigned offset_x=0, unsigned offset_y=0)
                               Draw a sprite on the current back buffer. More...
                               
                              void image (const Point &p, const ColorAlpha *image, unsigned width, unsigned height, unsigned offset_x=0, unsigned offset_y=0)
                               Draw a sprite with alpha blending (transparency) on the current back buffer. More...
                               

                              Detailed Description

                              Guarded interface to Graphics used by user applications.

                              Member Function Documentation

                              bool GuardedGraphics::switchBuffers ( )
                              inline

                              Switch front and back buffer (only if front buffer was already copied to video memory)

                              Returns
                              true if buffers have been switched, false if previous front buffer wasn't yet fully copied to video memory.
                              Note
                              This method is equal to the correspondent method in base class Graphics, with the only difference that the call will be protected by a Guarded object.
                              Optional:
                              Extend method by a Guarded object.
                              void GuardedGraphics::scanoutFrontbuffer ( )
                              inline

                              Copy current front buffer to the video memory.

                              Note
                              This method is equal to the correspondent method in base class Graphics, with the only difference that the call will be protected by a Guarded object.
                              Optional:
                              Extend method by a Guarded object.

                              The documentation for this class was generated from the following file:
                              • syscall/guarded_graphics.h
                              Friedrich-Alexander-Universität
                              Erlangen-Nürnberg

                              Schlossplatz 4
                              91054 Erlangen
                              • Impressum
                              • Datenschutz
                              • Barrierefreiheit
                              • Facebook
                              • RSS Feed
                              • Xing
                              Nach oben