|
@@ -117,254 +117,242 @@ namespace Framework
|
|
|
DLLEXPORT void setAlpha(unsigned char alpha);
|
|
DLLEXPORT void setAlpha(unsigned char alpha);
|
|
|
//! Removes the last alpha limit set with setAlpha()
|
|
//! Removes the last alpha limit set with setAlpha()
|
|
|
DLLEXPORT void releaseAlpha();
|
|
DLLEXPORT void releaseAlpha();
|
|
|
- //! Setzt einen Zeiger auf die Pixel, in die gezeichnet werden soll
|
|
|
|
|
- //! \param buffer Ein Array mit den A8R8G8B8 Farbwerten
|
|
|
|
|
- //! \param deleteBuffer 1, fals der Array vom Bild geloescht werden soll
|
|
|
|
|
- //! \param breite Die Breite in Pixeln
|
|
|
|
|
- //! \param height Die Hoehe in Pixeln
|
|
|
|
|
|
|
+ //! Sets a pointer to the pixels to draw into
|
|
|
|
|
+ //! \param buffer An array with A8R8G8B8 color values
|
|
|
|
|
+ //! \param deleteBuffer 1 if the array should be deleted by the image
|
|
|
|
|
+ //! \param breite The width in pixels
|
|
|
|
|
+ //! \param height The height in pixels
|
|
|
DLLEXPORT void setPixelBuffer(
|
|
DLLEXPORT void setPixelBuffer(
|
|
|
int* buffer, bool deleteBuffer, int breite, int height);
|
|
int* buffer, bool deleteBuffer, int breite, int height);
|
|
|
- //! Erstellt ein neues Bild
|
|
|
|
|
- //! \param breite Die Breite des Bildes in Pixeln
|
|
|
|
|
- //! \param hoehe Die Hoehe des Bildes in Pixeln
|
|
|
|
|
- //! \param fillColor Die startfarbe, auf die alle Pixel gesetzt werden
|
|
|
|
|
|
|
+ //! Creates a new image
|
|
|
|
|
+ //! \param breite The width of the image in pixels
|
|
|
|
|
+ //! \param hoehe The height of the image in pixels
|
|
|
|
|
+ //! \param fillColor The initial color all pixels are set to
|
|
|
DLLEXPORT void neuBild(int breite, int height, int fillColor);
|
|
DLLEXPORT void neuBild(int breite, int height, int fillColor);
|
|
|
- //! Blendet mittels Alphablending eine Farbe auf einen bestimmten Pixel
|
|
|
|
|
- //! Beachtet nicht die begrenzung der Zeichnenflaeche und das Skroll
|
|
|
|
|
- //! Offset \param x Die X Koordinate des Pixels \param y Die Y
|
|
|
|
|
- //! Koordinate des Pixels \param f Die Farbe in A8R8G8B8 Format, die
|
|
|
|
|
- //! geblendet werden soll
|
|
|
|
|
|
|
+ //! Blends a color onto a specific pixel using alpha blending.
|
|
|
|
|
+ //! Does not respect the drawing area boundary or scroll offset
|
|
|
|
|
+ //! \param x The X coordinate of the pixel
|
|
|
|
|
+ //! \param y The Y coordinate of the pixel
|
|
|
|
|
+ //! \param f The color in A8R8G8B8 format to be blended
|
|
|
DLLEXPORT void alphaPixel2D(int x, int y, int f);
|
|
DLLEXPORT void alphaPixel2D(int x, int y, int f);
|
|
|
DLLEXPORT void alphaPixel3D(int x, int y, int f);
|
|
DLLEXPORT void alphaPixel3D(int x, int y, int f);
|
|
|
- //! Blendet mittels Alphablending eine Farbe auf einen bestimmten Pixel
|
|
|
|
|
- //! Beachtet nicht die begrenzung der Zeichnenflaeche und das Skroll
|
|
|
|
|
- //! Offset \param i Der Index des Pixels im Pixel Array \param f Die
|
|
|
|
|
- //! Farbe in A8R8G8B8 Format, die geblendet werden soll
|
|
|
|
|
|
|
+ //! Blends a color onto a specific pixel using alpha blending.
|
|
|
|
|
+ //! Does not respect the drawing area boundary or scroll offset
|
|
|
|
|
+ //! \param i The index of the pixel in the pixel array
|
|
|
|
|
+ //! \param f The color in A8R8G8B8 format to be blended
|
|
|
DLLEXPORT void alphaPixel2D(int i, int f);
|
|
DLLEXPORT void alphaPixel2D(int i, int f);
|
|
|
DLLEXPORT void alphaPixel3D(int i, int f);
|
|
DLLEXPORT void alphaPixel3D(int i, int f);
|
|
|
- //! Blendet mittels Alphablending eine Farbe auf einen bestimmten Pixel
|
|
|
|
|
- //! \param x Die X Koordinate des Pixels
|
|
|
|
|
- //! \param y Die Y Koordinate des Pixels
|
|
|
|
|
- //! \param f Die Farbe in A8R8G8B8 Format, die geblendet werden soll
|
|
|
|
|
|
|
+ //! Blends a color onto a specific pixel using alpha blending
|
|
|
|
|
+ //! \param x The X coordinate of the pixel
|
|
|
|
|
+ //! \param y The Y coordinate of the pixel
|
|
|
|
|
+ //! \param f The color in A8R8G8B8 format to be blended
|
|
|
DLLEXPORT void alphaPixelDP2D(int x, int y, int f);
|
|
DLLEXPORT void alphaPixelDP2D(int x, int y, int f);
|
|
|
DLLEXPORT void alphaPixelDP3D(int x, int y, int f);
|
|
DLLEXPORT void alphaPixelDP3D(int x, int y, int f);
|
|
|
- //! Blendet mittels Alphablending eine Farbe auf einen bestimmten Pixel
|
|
|
|
|
- //! \param i Der Index des Pixels im Pixel Array
|
|
|
|
|
- //! \param f Die Farbe in A8R8G8B8 Format, die geblendet werden soll
|
|
|
|
|
|
|
+ //! Blends a color onto a specific pixel using alpha blending
|
|
|
|
|
+ //! \param i The index of the pixel in the pixel array
|
|
|
|
|
+ //! \param f The color in A8R8G8B8 format to be blended
|
|
|
DLLEXPORT void alphaPixelDP2D(int i, int f);
|
|
DLLEXPORT void alphaPixelDP2D(int i, int f);
|
|
|
DLLEXPORT void alphaPixelDP3D(int i, int f);
|
|
DLLEXPORT void alphaPixelDP3D(int i, int f);
|
|
|
- //! Setzt die Farbe eines besimmten Pixels
|
|
|
|
|
- //! \param x Die X Koordinate des Pixels
|
|
|
|
|
- //! \param y Die Y Koordinate des Pixels
|
|
|
|
|
- //! \param f Die neue Farbe in A8R8G8B8 Format
|
|
|
|
|
|
|
+ //! Sets the color of a specific pixel
|
|
|
|
|
+ //! \param x The X coordinate of the pixel
|
|
|
|
|
+ //! \param y The Y coordinate of the pixel
|
|
|
|
|
+ //! \param f The new color in A8R8G8B8 format
|
|
|
DLLEXPORT void setPixelDP(int x, int y, int f);
|
|
DLLEXPORT void setPixelDP(int x, int y, int f);
|
|
|
- //! Setzt die Farbe eines besimmten Pixels
|
|
|
|
|
- //! \param i Der Index des Pixels im Pixel Array
|
|
|
|
|
- //! \param f Die neue Farbe in A8R8G8B8 Format
|
|
|
|
|
|
|
+ //! Sets the color of a specific pixel
|
|
|
|
|
+ //! \param i The index of the pixel in the pixel array
|
|
|
|
|
+ //! \param f The new color in A8R8G8B8 format
|
|
|
DLLEXPORT void setPixelDP(int i, int f);
|
|
DLLEXPORT void setPixelDP(int i, int f);
|
|
|
- //! Setzt die Farbe aller Pixel des Bildes
|
|
|
|
|
- //! \param f Die neue Farbe
|
|
|
|
|
|
|
+ //! Sets the color of all pixels in the image
|
|
|
|
|
+ //! \param f The new color
|
|
|
DLLEXPORT void setFarbe(int f);
|
|
DLLEXPORT void setFarbe(int f);
|
|
|
- //! Setzt die Farben aller Pixel in einem Rechteck
|
|
|
|
|
- //! \param x Die X Koordinate
|
|
|
|
|
- //! \param y Die Y Koordinate
|
|
|
|
|
- //! \param b Die Breite des Rechtecks
|
|
|
|
|
- //! \param h Die Hoehe des Rechtecks
|
|
|
|
|
- //! \param fc Die Farbe im A8R8G8B8 Format
|
|
|
|
|
|
|
+ //! Sets the colors of all pixels in a rectangle
|
|
|
|
|
+ //! \param x The X coordinate
|
|
|
|
|
+ //! \param y The Y coordinate
|
|
|
|
|
+ //! \param b The width of the rectangle
|
|
|
|
|
+ //! \param h The height of the rectangle
|
|
|
|
|
+ //! \param fc The color in A8R8G8B8 format
|
|
|
DLLEXPORT void fillRegion(int x, int y, int b, int h, int fc);
|
|
DLLEXPORT void fillRegion(int x, int y, int b, int h, int fc);
|
|
|
- //! Blendet eine Farbe mit Alphablending in einem Rechteck
|
|
|
|
|
- //! \param x Die X Koordinate
|
|
|
|
|
- //! \param y Die Y Koordinate
|
|
|
|
|
- //! \param b Die Breite des Rechtecks
|
|
|
|
|
- //! \param h Die Hoehe des Rechtecks
|
|
|
|
|
- //! \param fc Die Farbe im A8R8G8B8 Format
|
|
|
|
|
|
|
+ //! Blends a color with alpha blending into a rectangle
|
|
|
|
|
+ //! \param x The X coordinate
|
|
|
|
|
+ //! \param y The Y coordinate
|
|
|
|
|
+ //! \param b The width of the rectangle
|
|
|
|
|
+ //! \param h The height of the rectangle
|
|
|
|
|
+ //! \param fc The color in A8R8G8B8 format
|
|
|
DLLEXPORT void alphaRegion(int x, int y, int b, int h, int fc);
|
|
DLLEXPORT void alphaRegion(int x, int y, int b, int h, int fc);
|
|
|
- //! Zeichnet eine horizontale Linie
|
|
|
|
|
- //! \param x Die X Koordinate des Startpunktes der Linie
|
|
|
|
|
- //! \param y Die Y Koordinate des Startpunktes der Linie
|
|
|
|
|
- //! \param length Die Laenge der Linie
|
|
|
|
|
- //! \param fc Die Farbe im A8R8G8B8 Format
|
|
|
|
|
|
|
+ //! Draws a horizontal line
|
|
|
|
|
+ //! \param x The X coordinate of the starting point
|
|
|
|
|
+ //! \param y The Y coordinate of the starting point
|
|
|
|
|
+ //! \param length The length of the line
|
|
|
|
|
+ //! \param fc The color in A8R8G8B8 format
|
|
|
DLLEXPORT void drawLinieH(int x, int y, int length, int fc);
|
|
DLLEXPORT void drawLinieH(int x, int y, int length, int fc);
|
|
|
- //! Zeichnet eine vertikale Linie
|
|
|
|
|
- //! \param x Die X Koordinate des Startpunktes der Linie
|
|
|
|
|
- //! \param y Die Y Koordinate des Startpunktes der Linie
|
|
|
|
|
- //! \param length Die Laenge der Linie
|
|
|
|
|
- //! \param fc Die Farbe im A8R8G8B8 Format
|
|
|
|
|
|
|
+ //! Draws a vertical line
|
|
|
|
|
+ //! \param x The X coordinate of the starting point
|
|
|
|
|
+ //! \param y The Y coordinate of the starting point
|
|
|
|
|
+ //! \param length The length of the line
|
|
|
|
|
+ //! \param fc The color in A8R8G8B8 format
|
|
|
DLLEXPORT void drawLinieV(int x, int y, int length, int fc);
|
|
DLLEXPORT void drawLinieV(int x, int y, int length, int fc);
|
|
|
- //! Zeichnet eine horizontale Linie mit Alpha blending
|
|
|
|
|
- //! \param x Die X Koordinate des Startpunktes der Linie
|
|
|
|
|
- //! \param y Die Y Koordinate des Startpunktes der Linie
|
|
|
|
|
- //! \param length Die Laenge der Linie
|
|
|
|
|
- //! \param fc Die Farbe im A8R8G8B8 Format
|
|
|
|
|
|
|
+ //! Draws a horizontal line with alpha blending
|
|
|
|
|
+ //! \param x The X coordinate of the starting point
|
|
|
|
|
+ //! \param y The Y coordinate of the starting point
|
|
|
|
|
+ //! \param length The length of the line
|
|
|
|
|
+ //! \param fc The color in A8R8G8B8 format
|
|
|
DLLEXPORT void drawLinieHAlpha(int x, int y, int length, int fc);
|
|
DLLEXPORT void drawLinieHAlpha(int x, int y, int length, int fc);
|
|
|
- //! Zeichnet eine vertikale Linie mit Alpha Blending
|
|
|
|
|
- //! \param x Die X Koordinate des Startpunktes der Linie
|
|
|
|
|
- //! \param y Die Y Koordinate des Startpunktes der Linie
|
|
|
|
|
- //! \param length Die Laenge der Linie
|
|
|
|
|
- //! \param fc Die Farbe im A8R8G8B8 Format
|
|
|
|
|
|
|
+ //! Draws a vertical line with alpha blending
|
|
|
|
|
+ //! \param x The X coordinate of the starting point
|
|
|
|
|
+ //! \param y The Y coordinate of the starting point
|
|
|
|
|
+ //! \param length The length of the line
|
|
|
|
|
+ //! \param fc The color in A8R8G8B8 format
|
|
|
DLLEXPORT void drawLinieVAlpha(int x, int y, int length, int fc);
|
|
DLLEXPORT void drawLinieVAlpha(int x, int y, int length, int fc);
|
|
|
- //! Zeichnet eine Linie
|
|
|
|
|
- //! \param a Der Startpunkt der Linie
|
|
|
|
|
- //! \param b der Endpunkt der Linie
|
|
|
|
|
- //! \param fc Die Farbe im A8R8G8B8 Format
|
|
|
|
|
|
|
+ //! Draws a bordered line
|
|
|
|
|
+ //! \param a The starting point of the line
|
|
|
|
|
+ //! \param b The ending point of the line
|
|
|
|
|
+ //! \param bc The border color in A8R8G8B8 format
|
|
|
|
|
+ //! \param fc The color in A8R8G8B8 format
|
|
|
DLLEXPORT void drawLinieBordered(Punkt a, Punkt b, int bc, int fc);
|
|
DLLEXPORT void drawLinieBordered(Punkt a, Punkt b, int bc, int fc);
|
|
|
- //! Zeichnet eine Linie
|
|
|
|
|
- //! \param a Der Startpunkt der Linie
|
|
|
|
|
- //! \param b der Endpunkt der Linie
|
|
|
|
|
- //! \param fc Die Farbe im A8R8G8B8 Format
|
|
|
|
|
|
|
+ //! Draws a bordered line with alpha blending
|
|
|
|
|
+ //! \param a The starting point of the line
|
|
|
|
|
+ //! \param b The ending point of the line
|
|
|
|
|
+ //! \param bc The border color in A8R8G8B8 format
|
|
|
|
|
+ //! \param fc The color in A8R8G8B8 format
|
|
|
DLLEXPORT void drawLinieBorderedAlpha(Punkt a, Punkt b, int bc, int fc);
|
|
DLLEXPORT void drawLinieBorderedAlpha(Punkt a, Punkt b, int bc, int fc);
|
|
|
- //! Zeichnet eine Linie
|
|
|
|
|
- //! \param a Der Startpunkt der Linie
|
|
|
|
|
- //! \param b der Endpunkt der Linie
|
|
|
|
|
- //! \param fc Die Farbe im A8R8G8B8 Format
|
|
|
|
|
|
|
+ //! Draws a line
|
|
|
|
|
+ //! \param a The starting point of the line
|
|
|
|
|
+ //! \param b The ending point of the line
|
|
|
|
|
+ //! \param fc The color in A8R8G8B8 format
|
|
|
DLLEXPORT void drawLinie(Punkt a, Punkt b, int fc);
|
|
DLLEXPORT void drawLinie(Punkt a, Punkt b, int fc);
|
|
|
- //! Zeichnet eine Linie mit Alpha Blending
|
|
|
|
|
- //! \param a Der Startpunkt der Linie
|
|
|
|
|
- //! \param b der Endpunkt der Linie
|
|
|
|
|
- //! \param fc Die Farbe im A8R8G8B8 Format
|
|
|
|
|
|
|
+ //! Draws a line with alpha blending
|
|
|
|
|
+ //! \param a The starting point of the line
|
|
|
|
|
+ //! \param b The ending point of the line
|
|
|
|
|
+ //! \param fc The color in A8R8G8B8 format
|
|
|
DLLEXPORT void drawLinieAlpha(Punkt a, Punkt b, int fc);
|
|
DLLEXPORT void drawLinieAlpha(Punkt a, Punkt b, int fc);
|
|
|
- //! Fuellt einen Kreis mit einer Farbe. (Unfertig)
|
|
|
|
|
- //! \param xOff Die X Koordinate des Kreismittelpunktes
|
|
|
|
|
- //! \param yOff Die Y Koordinate des Kreismittelpunktes
|
|
|
|
|
- //! \param r Der Radius des Kreises in Pixeln
|
|
|
|
|
- //! \param fc Die Farbe im A8R8G8B8 Format
|
|
|
|
|
|
|
+ //! Fills a circle with a color. (Unfinished)
|
|
|
|
|
+ //! \param xOff The X coordinate of the circle center
|
|
|
|
|
+ //! \param yOff The Y coordinate of the circle center
|
|
|
|
|
+ //! \param r The radius of the circle in pixels
|
|
|
|
|
+ //! \param fc The color in A8R8G8B8 format
|
|
|
DLLEXPORT void fillCircle(int xOff, int yOff, int r, int fc);
|
|
DLLEXPORT void fillCircle(int xOff, int yOff, int r, int fc);
|
|
|
- //! Zeichnet den Umriss eines Kreises
|
|
|
|
|
- //! \param xOff Die X Koordinate des Kreismittelpunktes
|
|
|
|
|
- //! \param yOff Die Y Koordinate des Kreismittelpunktes
|
|
|
|
|
- //! \param r Der Radius des Kreises in Pixeln
|
|
|
|
|
- //! \param fc Die Farbe im A8R8G8B8 Format
|
|
|
|
|
|
|
+ //! Draws the outline of a circle
|
|
|
|
|
+ //! \param xOff The X coordinate of the circle center
|
|
|
|
|
+ //! \param yOff The Y coordinate of the circle center
|
|
|
|
|
+ //! \param r The radius of the circle in pixels
|
|
|
|
|
+ //! \param fc The color in A8R8G8B8 format
|
|
|
DLLEXPORT void drawKreis(int xOff, int yOff, int r, int fc);
|
|
DLLEXPORT void drawKreis(int xOff, int yOff, int r, int fc);
|
|
|
- //! Zeichnet den Umriss eines Kreises mit Alpha Blending
|
|
|
|
|
- //! \param xOff Die X Koordinate des Kreismittelpunktes
|
|
|
|
|
- //! \param yOff Die Y Koordinate des Kreismittelpunktes
|
|
|
|
|
- //! \param r Der Radius des Kreises in Pixeln
|
|
|
|
|
- //! \param fc Die Farbe im A8R8G8B8 Format
|
|
|
|
|
|
|
+ //! Draws the outline of a circle with alpha blending
|
|
|
|
|
+ //! \param xOff The X coordinate of the circle center
|
|
|
|
|
+ //! \param yOff The Y coordinate of the circle center
|
|
|
|
|
+ //! \param r The radius of the circle in pixels
|
|
|
|
|
+ //! \param fc The color in A8R8G8B8 format
|
|
|
DLLEXPORT void drawKreisAlpha(int xOff, int yOff, int r, int fc);
|
|
DLLEXPORT void drawKreisAlpha(int xOff, int yOff, int r, int fc);
|
|
|
- //! Zeichnet ein Bild in ein bestimmtes Feld ohne Skallierung
|
|
|
|
|
- //! \param x Die X Koordinate der linken oberen Ecke des Rechtecks in
|
|
|
|
|
- //! dem das Bild gezeichnet werden soll \param y Die Y Koordinate der
|
|
|
|
|
- //! linken oberen Ecke des Rechtecks in dem das Bild gezeichnet werden
|
|
|
|
|
- //! soll \param br Die Breite des Rechecks in dem das Bild gezeichnet
|
|
|
|
|
- //! werden soll \param hi Die Hoehe des Rechecks in dem das Bild
|
|
|
|
|
- //! gezeichnet werden soll \param zBild Das Bild, was gezeichnet werden
|
|
|
|
|
- //! soll
|
|
|
|
|
|
|
+ //! Draws an image into a specific area without scaling
|
|
|
|
|
+ //! \param x The X coordinate of the top left corner of the target area
|
|
|
|
|
+ //! \param y The Y coordinate of the top left corner of the target area
|
|
|
|
|
+ //! \param br The width of the target area
|
|
|
|
|
+ //! \param hi The height of the target area
|
|
|
|
|
+ //! \param zBild The image to be drawn
|
|
|
DLLEXPORT void drawBild(
|
|
DLLEXPORT void drawBild(
|
|
|
int x, int y, int br, int hi, const Bild& zBild);
|
|
int x, int y, int br, int hi, const Bild& zBild);
|
|
|
- //! Zeichnet ein Bild in ein bestimmtes Feld ohne Skallierung mit alpha
|
|
|
|
|
- //! blending \param x Die X Koordinate der linken oberen Ecke des
|
|
|
|
|
- //! Rechtecks in dem das Bild gezeichnet werden soll \param y Die Y
|
|
|
|
|
- //! Koordinate der linken oberen Ecke des Rechtecks in dem das Bild
|
|
|
|
|
- //! gezeichnet werden soll \param br Die Breite des Rechecks in dem das
|
|
|
|
|
- //! Bild gezeichnet werden soll \param hi Die Hoehe des Rechecks in dem
|
|
|
|
|
- //! das Bild gezeichnet werden soll \param zBild Das Bild, was
|
|
|
|
|
- //! gezeichnet werden soll
|
|
|
|
|
|
|
+ //! Draws an image into a specific area without scaling with alpha
|
|
|
|
|
+ //! blending
|
|
|
|
|
+ //! \param x The X coordinate of the top left corner of the target area
|
|
|
|
|
+ //! \param y The Y coordinate of the top left corner of the target area
|
|
|
|
|
+ //! \param br The width of the target area
|
|
|
|
|
+ //! \param hi The height of the target area
|
|
|
|
|
+ //! \param zBild The image to be drawn
|
|
|
DLLEXPORT void alphaBild(
|
|
DLLEXPORT void alphaBild(
|
|
|
int x, int y, int br, int hi, const Bild& zBild);
|
|
int x, int y, int br, int hi, const Bild& zBild);
|
|
|
- //! Zeichnet ein Bild in ein bestimmtes Feld ohne Skallierung mit alpha
|
|
|
|
|
- //! blending \param x Die X Koordinate der linken oberen Ecke des
|
|
|
|
|
- //! Rechtecks in dem das Bild gezeichnet werden soll \param y Die Y
|
|
|
|
|
- //! Koordinate der linken oberen Ecke des Rechtecks in dem das Bild
|
|
|
|
|
- //! gezeichnet werden soll \param br Die Breite des Rechecks in dem das
|
|
|
|
|
- //! Bild gezeichnet werden soll \param hi Die Hoehe des Rechecks in dem
|
|
|
|
|
- //! das Bild gezeichnet werden soll \param zBild Das Bild, was
|
|
|
|
|
- //! gezeichnet werden soll
|
|
|
|
|
|
|
+ //! Draws an image into a specific area without scaling with associative
|
|
|
|
|
+ //! alpha blending
|
|
|
|
|
+ //! \param x The X coordinate of the top left corner of the target area
|
|
|
|
|
+ //! \param y The Y coordinate of the top left corner of the target area
|
|
|
|
|
+ //! \param br The width of the target area
|
|
|
|
|
+ //! \param hi The height of the target area
|
|
|
|
|
+ //! \param zBild The image to be drawn
|
|
|
DLLEXPORT void alphaBildAssoz(
|
|
DLLEXPORT void alphaBildAssoz(
|
|
|
int x, int y, int br, int hi, const Bild& zBild);
|
|
int x, int y, int br, int hi, const Bild& zBild);
|
|
|
- //! Zeichnet ein Bild um 90 grad nach rechts gedreht in ein bestimmtes
|
|
|
|
|
- //! Feld ohne Skallierung \param x Die X Koordinate der linken oberen
|
|
|
|
|
- //! Ecke des Rechtecks in dem das Bild gezeichnet werden soll \param y
|
|
|
|
|
- //! Die Y Koordinate der linken oberen Ecke des Rechtecks in dem das
|
|
|
|
|
- //! Bild gezeichnet werden soll \param br Die Breite des Rechecks in dem
|
|
|
|
|
- //! das Bild gezeichnet werden soll \param hi Die Hoehe des Rechecks in
|
|
|
|
|
- //! dem das Bild gezeichnet werden soll \param zBild Das Bild, was
|
|
|
|
|
- //! gezeichnet werden soll
|
|
|
|
|
|
|
+ //! Draws an image rotated 90 degrees clockwise into a specific area
|
|
|
|
|
+ //! without scaling
|
|
|
|
|
+ //! \param x The X coordinate of the top left corner of the target area
|
|
|
|
|
+ //! \param y The Y coordinate of the top left corner of the target area
|
|
|
|
|
+ //! \param br The width of the target area
|
|
|
|
|
+ //! \param hi The height of the target area
|
|
|
|
|
+ //! \param zBild The image to be drawn
|
|
|
DLLEXPORT void drawBild90(
|
|
DLLEXPORT void drawBild90(
|
|
|
int x, int y, int br, int hi, const Bild& zBild);
|
|
int x, int y, int br, int hi, const Bild& zBild);
|
|
|
- //! Zeichnet ein Bild um 90 grad nach rechts gedreht in ein bestimmtes
|
|
|
|
|
- //! Feld ohne Skallierung mit alpha Blending \param x Die X Koordinate
|
|
|
|
|
- //! der linken oberen Ecke des Rechtecks in dem das Bild gezeichnet
|
|
|
|
|
- //! werden soll \param y Die Y Koordinate der linken oberen Ecke des
|
|
|
|
|
- //! Rechtecks in dem das Bild gezeichnet werden soll \param br Die
|
|
|
|
|
- //! Breite des Rechecks in dem das Bild gezeichnet werden soll \param hi
|
|
|
|
|
- //! Die Hoehe des Rechecks in dem das Bild gezeichnet werden soll \param
|
|
|
|
|
- //! zBild Das Bild, was gezeichnet werden soll
|
|
|
|
|
|
|
+ //! Draws an image rotated 90 degrees clockwise into a specific area
|
|
|
|
|
+ //! without scaling with alpha blending
|
|
|
|
|
+ //! \param x The X coordinate of the top left corner of the target area
|
|
|
|
|
+ //! \param y The Y coordinate of the top left corner of the target area
|
|
|
|
|
+ //! \param br The width of the target area
|
|
|
|
|
+ //! \param hi The height of the target area
|
|
|
|
|
+ //! \param zBild The image to be drawn
|
|
|
DLLEXPORT void alphaBild90(
|
|
DLLEXPORT void alphaBild90(
|
|
|
int x, int y, int br, int hi, const Bild& zBild);
|
|
int x, int y, int br, int hi, const Bild& zBild);
|
|
|
- //! Zeichnet ein Bild um 180 grad nach rechts gedreht in ein bestimmtes
|
|
|
|
|
- //! Feld ohne Skallierung \param x Die X Koordinate der linken oberen
|
|
|
|
|
- //! Ecke des Rechtecks in dem das Bild gezeichnet werden soll \param y
|
|
|
|
|
- //! Die Y Koordinate der linken oberen Ecke des Rechtecks in dem das
|
|
|
|
|
- //! Bild gezeichnet werden soll \param br Die Breite des Rechecks in dem
|
|
|
|
|
- //! das Bild gezeichnet werden soll \param hi Die Hoehe des Rechecks in
|
|
|
|
|
- //! dem das Bild gezeichnet werden soll \param zBild Das Bild, was
|
|
|
|
|
- //! gezeichnet werden soll
|
|
|
|
|
|
|
+ //! Draws an image rotated 180 degrees into a specific area
|
|
|
|
|
+ //! without scaling
|
|
|
|
|
+ //! \param x The X coordinate of the top left corner of the target area
|
|
|
|
|
+ //! \param y The Y coordinate of the top left corner of the target area
|
|
|
|
|
+ //! \param br The width of the target area
|
|
|
|
|
+ //! \param hi The height of the target area
|
|
|
|
|
+ //! \param zBild The image to be drawn
|
|
|
DLLEXPORT void drawBild180(
|
|
DLLEXPORT void drawBild180(
|
|
|
int x, int y, int br, int hi, const Bild& zBild);
|
|
int x, int y, int br, int hi, const Bild& zBild);
|
|
|
- //! Zeichnet ein Bild um 180 grad nach rechts gedreht in ein bestimmtes
|
|
|
|
|
- //! Feld ohne Skallierung mit alpha Blending \param x Die X Koordinate
|
|
|
|
|
- //! der linken oberen Ecke des Rechtecks in dem das Bild gezeichnet
|
|
|
|
|
- //! werden soll \param y Die Y Koordinate der linken oberen Ecke des
|
|
|
|
|
- //! Rechtecks in dem das Bild gezeichnet werden soll \param br Die
|
|
|
|
|
- //! Breite des Rechecks in dem das Bild gezeichnet werden soll \param hi
|
|
|
|
|
- //! Die Hoehe des Rechecks in dem das Bild gezeichnet werden soll \param
|
|
|
|
|
- //! zBild Das Bild, was gezeichnet werden soll
|
|
|
|
|
|
|
+ //! Draws an image rotated 180 degrees into a specific area
|
|
|
|
|
+ //! without scaling with alpha blending
|
|
|
|
|
+ //! \param x The X coordinate of the top left corner of the target area
|
|
|
|
|
+ //! \param y The Y coordinate of the top left corner of the target area
|
|
|
|
|
+ //! \param br The width of the target area
|
|
|
|
|
+ //! \param hi The height of the target area
|
|
|
|
|
+ //! \param zBild The image to be drawn
|
|
|
DLLEXPORT void alphaBild180(
|
|
DLLEXPORT void alphaBild180(
|
|
|
int x, int y, int br, int hi, const Bild& zBild);
|
|
int x, int y, int br, int hi, const Bild& zBild);
|
|
|
- //! Zeichnet ein Bild um 270 grad nach rechts gedreht in ein bestimmtes
|
|
|
|
|
- //! Feld ohne Skallierung \param x Die X Koordinate der linken oberen
|
|
|
|
|
- //! Ecke des Rechtecks in dem das Bild gezeichnet werden soll \param y
|
|
|
|
|
- //! Die Y Koordinate der linken oberen Ecke des Rechtecks in dem das
|
|
|
|
|
- //! Bild gezeichnet werden soll \param br Die Breite des Rechecks in dem
|
|
|
|
|
- //! das Bild gezeichnet werden soll \param hi Die Hoehe des Rechecks in
|
|
|
|
|
- //! dem das Bild gezeichnet werden soll \param zBild Das Bild, was
|
|
|
|
|
- //! gezeichnet werden soll
|
|
|
|
|
|
|
+ //! Draws an image rotated 270 degrees clockwise into a specific area
|
|
|
|
|
+ //! without scaling
|
|
|
|
|
+ //! \param x The X coordinate of the top left corner of the target area
|
|
|
|
|
+ //! \param y The Y coordinate of the top left corner of the target area
|
|
|
|
|
+ //! \param br The width of the target area
|
|
|
|
|
+ //! \param hi The height of the target area
|
|
|
|
|
+ //! \param zBild The image to be drawn
|
|
|
DLLEXPORT void drawBild270(
|
|
DLLEXPORT void drawBild270(
|
|
|
int x, int y, int br, int hi, const Bild& zBild);
|
|
int x, int y, int br, int hi, const Bild& zBild);
|
|
|
- //! Zeichnet ein Bild um 270 grad nach rechts gedreht in ein bestimmtes
|
|
|
|
|
- //! Feld ohne Skallierung mit alpha Blending \param x Die X Koordinate
|
|
|
|
|
- //! der linken oberen Ecke des Rechtecks in dem das Bild gezeichnet
|
|
|
|
|
- //! werden soll \param y Die Y Koordinate der linken oberen Ecke des
|
|
|
|
|
- //! Rechtecks in dem das Bild gezeichnet werden soll \param br Die
|
|
|
|
|
- //! Breite des Rechecks in dem das Bild gezeichnet werden soll \param hi
|
|
|
|
|
- //! Die Hoehe des Rechecks in dem das Bild gezeichnet werden soll \param
|
|
|
|
|
- //! zBild Das Bild, was gezeichnet werden soll
|
|
|
|
|
|
|
+ //! Draws an image rotated 270 degrees clockwise into a specific area
|
|
|
|
|
+ //! without scaling with alpha blending
|
|
|
|
|
+ //! \param x The X coordinate of the top left corner of the target area
|
|
|
|
|
+ //! \param y The Y coordinate of the top left corner of the target area
|
|
|
|
|
+ //! \param br The width of the target area
|
|
|
|
|
+ //! \param hi The height of the target area
|
|
|
|
|
+ //! \param zBild The image to be drawn
|
|
|
DLLEXPORT void alphaBild270(
|
|
DLLEXPORT void alphaBild270(
|
|
|
int x, int y, int br, int hi, const Bild& zBild);
|
|
int x, int y, int br, int hi, const Bild& zBild);
|
|
|
- //! Zeichnet ein Bild in ein bestimmtes Feld mit Skallierung
|
|
|
|
|
- //! \param x Die X Koordinate der linken oberen Ecke des Rechtecks in
|
|
|
|
|
- //! dem das Bild gezeichnet werden soll \param y Die Y Koordinate der
|
|
|
|
|
- //! linken oberen Ecke des Rechtecks in dem das Bild gezeichnet werden
|
|
|
|
|
- //! soll \param br Die Breite des Rechecks in dem das Bild gezeichnet
|
|
|
|
|
- //! werden soll \param hi Die Hoehe des Rechecks in dem das Bild
|
|
|
|
|
- //! gezeichnet werden soll \param zBild Das Bild, was gezeichnet werden
|
|
|
|
|
- //! soll
|
|
|
|
|
|
|
+ //! Draws an image into a specific area with scaling
|
|
|
|
|
+ //! \param x The X coordinate of the top left corner of the target area
|
|
|
|
|
+ //! \param y The Y coordinate of the top left corner of the target area
|
|
|
|
|
+ //! \param br The width of the target area
|
|
|
|
|
+ //! \param hi The height of the target area
|
|
|
|
|
+ //! \param zBild The image to be drawn
|
|
|
DLLEXPORT void drawBildSkall(
|
|
DLLEXPORT void drawBildSkall(
|
|
|
int x, int y, int br, int hi, const Bild& zBild);
|
|
int x, int y, int br, int hi, const Bild& zBild);
|
|
|
- //! Zeichnet ein Bild in ein bestimmtes Feld mit Skallierung mit Alpha
|
|
|
|
|
- //! Blending \param x Die X Koordinate der linken oberen Ecke des
|
|
|
|
|
- //! Rechtecks in dem das Bild gezeichnet werden soll \param y Die Y
|
|
|
|
|
- //! Koordinate der linken oberen Ecke des Rechtecks in dem das Bild
|
|
|
|
|
- //! gezeichnet werden soll \param br Die Breite des Rechecks in dem das
|
|
|
|
|
- //! Bild gezeichnet werden soll \param hi Die Hoehe des Rechecks in dem
|
|
|
|
|
- //! das Bild gezeichnet werden soll \param zBild Das Bild, was
|
|
|
|
|
- //! gezeichnet werden soll
|
|
|
|
|
|
|
+ //! Draws an image into a specific area with scaling and alpha blending
|
|
|
|
|
+ //! \param x The X coordinate of the top left corner of the target area
|
|
|
|
|
+ //! \param y The Y coordinate of the top left corner of the target area
|
|
|
|
|
+ //! \param br The width of the target area
|
|
|
|
|
+ //! \param hi The height of the target area
|
|
|
|
|
+ //! \param zBild The image to be drawn
|
|
|
DLLEXPORT void alphaBildSkall(
|
|
DLLEXPORT void alphaBildSkall(
|
|
|
int x, int y, int br, int hi, const Bild& zBild);
|
|
int x, int y, int br, int hi, const Bild& zBild);
|
|
|
- //! Fuellt ein Dreieck mit einer bestimmten Farbe
|
|
|
|
|
- //! \param a Eine Ecke des Dreiecks
|
|
|
|
|
- //! \param b Eine Ecke des Dreiecks
|
|
|
|
|
- //! \param c Eine Ecke des Dreiecks
|
|
|
|
|
- //! \param farbe die Farbe im A8R8G8B8 Format
|
|
|
|
|
|
|
+ //! Fills a triangle with a specific color
|
|
|
|
|
+ //! \param a A corner of the triangle
|
|
|
|
|
+ //! \param b A corner of the triangle
|
|
|
|
|
+ //! \param c A corner of the triangle
|
|
|
|
|
+ //! \param farbe The color in A8R8G8B8 format
|
|
|
DLLEXPORT void drawDreieck(Punkt a, Punkt b, Punkt c, int farbe);
|
|
DLLEXPORT void drawDreieck(Punkt a, Punkt b, Punkt c, int farbe);
|
|
|
- //! Fuellt ein Dreieck mit einer bestimmten Textur
|
|
|
|
|
- //! \param a Eine Ecke des Dreiecks
|
|
|
|
|
- //! \param b Eine Ecke des Dreiecks
|
|
|
|
|
- //! \param c Eine Ecke des Dreiecks
|
|
|
|
|
- //! \param ta Die Koordinaten von a in der Textur
|
|
|
|
|
- //! \param tb Die Koordinaten von b in der Textur
|
|
|
|
|
- //! \param tc Die Koordinaten von c in der Textur
|
|
|
|
|
- //! \param textur Das Bild, was als Textur verwendet werden soll
|
|
|
|
|
|
|
+ //! Fills a triangle with a specific texture
|
|
|
|
|
+ //! \param a A corner of the triangle
|
|
|
|
|
+ //! \param b A corner of the triangle
|
|
|
|
|
+ //! \param c A corner of the triangle
|
|
|
|
|
+ //! \param ta The coordinates of a in the texture
|
|
|
|
|
+ //! \param tb The coordinates of b in the texture
|
|
|
|
|
+ //! \param tc The coordinates of c in the texture
|
|
|
|
|
+ //! \param textur The image to use as texture
|
|
|
DLLEXPORT void drawDreieckTextur(Punkt a,
|
|
DLLEXPORT void drawDreieckTextur(Punkt a,
|
|
|
Punkt b,
|
|
Punkt b,
|
|
|
Punkt c,
|
|
Punkt c,
|
|
@@ -372,20 +360,20 @@ namespace Framework
|
|
|
Punkt tb,
|
|
Punkt tb,
|
|
|
Punkt tc,
|
|
Punkt tc,
|
|
|
const Bild& textur);
|
|
const Bild& textur);
|
|
|
- //! Fuellt ein Dreieck mit einer bestimmten Farbe mit alpha blending
|
|
|
|
|
- //! \param a Eine Ecke des Dreiecks
|
|
|
|
|
- //! \param b Eine Ecke des Dreiecks
|
|
|
|
|
- //! \param c Eine Ecke des Dreiecks
|
|
|
|
|
- //! \param farbe die Farbe im A8R8G8B8 Format
|
|
|
|
|
|
|
+ //! Fills a triangle with a specific color with alpha blending
|
|
|
|
|
+ //! \param a A corner of the triangle
|
|
|
|
|
+ //! \param b A corner of the triangle
|
|
|
|
|
+ //! \param c A corner of the triangle
|
|
|
|
|
+ //! \param farbe The color in A8R8G8B8 format
|
|
|
DLLEXPORT void drawDreieckAlpha(Punkt a, Punkt b, Punkt c, int farbe);
|
|
DLLEXPORT void drawDreieckAlpha(Punkt a, Punkt b, Punkt c, int farbe);
|
|
|
- //! Fuellt ein Dreieck mit einer bestimmten Textur mit alpha blending
|
|
|
|
|
- //! \param a Eine Ecke des Dreiecks
|
|
|
|
|
- //! \param b Eine Ecke des Dreiecks
|
|
|
|
|
- //! \param c Eine Ecke des Dreiecks
|
|
|
|
|
- //! \param ta Die Koordinaten von a in der Textur
|
|
|
|
|
- //! \param tb Die Koordinaten von b in der Textur
|
|
|
|
|
- //! \param tc Die Koordinaten von c in der Textur
|
|
|
|
|
- //! \param textur Das Bild, was als Textur verwendet werden soll
|
|
|
|
|
|
|
+ //! Fills a triangle with a specific texture with alpha blending
|
|
|
|
|
+ //! \param a A corner of the triangle
|
|
|
|
|
+ //! \param b A corner of the triangle
|
|
|
|
|
+ //! \param c A corner of the triangle
|
|
|
|
|
+ //! \param ta The coordinates of a in the texture
|
|
|
|
|
+ //! \param tb The coordinates of b in the texture
|
|
|
|
|
+ //! \param tc The coordinates of c in the texture
|
|
|
|
|
+ //! \param textur The image to use as texture
|
|
|
DLLEXPORT void drawDreieckTexturAlpha(Punkt a,
|
|
DLLEXPORT void drawDreieckTexturAlpha(Punkt a,
|
|
|
Punkt b,
|
|
Punkt b,
|
|
|
Punkt c,
|
|
Punkt c,
|
|
@@ -393,120 +381,113 @@ namespace Framework
|
|
|
Punkt tb,
|
|
Punkt tb,
|
|
|
Punkt tc,
|
|
Punkt tc,
|
|
|
const Bild& textur);
|
|
const Bild& textur);
|
|
|
- //! Ersetzt eine bestimmte Farbe durch Transparenz
|
|
|
|
|
|
|
+ //! Replaces a specific color with transparency
|
|
|
DLLEXPORT void replaceColorWithAlpha(int color);
|
|
DLLEXPORT void replaceColorWithAlpha(int color);
|
|
|
- //! Begrenzt die Zeichenflaeche in die bis zum naechsten aufruf von
|
|
|
|
|
- //! releaseDrawOptions() gezeichnet werden kann. Alles ausserhalb der
|
|
|
|
|
- //! Flaeche wird automatisch ignoriert. Wenn die Zeichenflaeche ueber den
|
|
|
|
|
- //! Rand einer bestehenden Zeichenflaeche hinausragt, wird sie
|
|
|
|
|
- //! automatisch auf die bestehende Zeichnenflaeche beschnitten. \param
|
|
|
|
|
- //! pos Die Koordinaten der linken oberen Ecke der Zeichenflaeche \param
|
|
|
|
|
- //! gr Die Groesse der Zeichenflaeche \return 1, falls die neue
|
|
|
|
|
- //! Zeichenflaeche ganz oder teilweise innerhalb der bestehenden
|
|
|
|
|
- //! Zeichenflaeche ligt. Wenn 0 zurueckgegeben wird, wurde die
|
|
|
|
|
- //! Zeichenflaeche nicht gesetzt und es braucht nicht
|
|
|
|
|
- //! releaseDrawOptions() aufgerufen werden
|
|
|
|
|
|
|
+ //! Restricts the drawing area until the next call of
|
|
|
|
|
+ //! releaseDrawOptions(). Everything outside the area is automatically
|
|
|
|
|
+ //! ignored. If the drawing area extends beyond an existing drawing area,
|
|
|
|
|
+ //! it is automatically clipped to the existing one.
|
|
|
|
|
+ //! \param pos The coordinates of the top left corner of the drawing area
|
|
|
|
|
+ //! \param gr The size of the drawing area
|
|
|
|
|
+ //! \return 1 if the new drawing area is fully or partially within the
|
|
|
|
|
+ //! existing drawing area. If 0 is returned, the drawing area was not set
|
|
|
|
|
+ //! and releaseDrawOptions() does not need to be called
|
|
|
DLLEXPORT bool setDrawOptions(const Punkt& pos, const Punkt& gr);
|
|
DLLEXPORT bool setDrawOptions(const Punkt& pos, const Punkt& gr);
|
|
|
- //! Begrenzt die Zeichenflaeche in die bis zum naechsten aufruf von
|
|
|
|
|
- //! releaseDrawOptions() gezeichnet werden kann. Alles ausserhalb der
|
|
|
|
|
- //! Flaeche wird automatisch ignoriert. Wenn die Zeichenflaeche ueber den
|
|
|
|
|
- //! Rand einer bestehenden Zeichenflaeche hinausragt, wird sie
|
|
|
|
|
- //! automatisch auf die bestehende Zeichnenflaeche beschnitten. \param x
|
|
|
|
|
- //! Die X Koordinate der linken oberen Ecke der Zeichenflaeche \param y
|
|
|
|
|
- //! Die X Koordinate der linken oberen Ecke der Zeichenflaeche \param br
|
|
|
|
|
- //! Die Breite der Zeichenflaeche \param hi Die Hoehe der Zeichenflaeche
|
|
|
|
|
- //! \return 1, falls die neue Zeichenflaeche ganz oder teilweise
|
|
|
|
|
- //! innerhalb der bestehenden Zeichenflaeche ligt. Wenn 0 zurueckgegeben
|
|
|
|
|
- //! wird, wurde die Zeichenflaeche nicht gesetzt und es braucht nicht
|
|
|
|
|
- //! releaseDrawOptions() aufgerufen werden
|
|
|
|
|
|
|
+ //! Restricts the drawing area until the next call of
|
|
|
|
|
+ //! releaseDrawOptions(). Everything outside the area is automatically
|
|
|
|
|
+ //! ignored. If the drawing area extends beyond an existing drawing area,
|
|
|
|
|
+ //! it is automatically clipped to the existing one.
|
|
|
|
|
+ //! \param x The X coordinate of the top left corner of the drawing area
|
|
|
|
|
+ //! \param y The Y coordinate of the top left corner of the drawing area
|
|
|
|
|
+ //! \param br The width of the drawing area
|
|
|
|
|
+ //! \param hi The height of the drawing area
|
|
|
|
|
+ //! \return 1 if the new drawing area is fully or partially within the
|
|
|
|
|
+ //! existing drawing area. If 0 is returned, the drawing area was not set
|
|
|
|
|
+ //! and releaseDrawOptions() does not need to be called
|
|
|
DLLEXPORT bool setDrawOptions(int x, int y, int br, int hi);
|
|
DLLEXPORT bool setDrawOptions(int x, int y, int br, int hi);
|
|
|
- //! Begrenzt die Zeichenflaeche in die bis zum naechsten aufruf von
|
|
|
|
|
- //! releaseDrawOptions() gezeichnet werden kann. Alles ausserhalb der
|
|
|
|
|
- //! Flaeche wird automatisch ignoriert. Wenn die Zeichenflaeche darf ueber
|
|
|
|
|
- //! den Rand einer bestehenden Zeichenflaeche hinausragen \param pos Die
|
|
|
|
|
- //! Koordinaten der linken oberen Ecke der Zeichenflaeche \param gr Die
|
|
|
|
|
- //! Groesse der Zeichenflaeche \return 1, falls die neue Zeichenflaeche ganz
|
|
|
|
|
- //! oder teilweise innerhalb des Bildes ligt. Wenn 0 zurueckgegeben wird,
|
|
|
|
|
- //! wurde die Zeichenflaeche nicht gesetzt und es braucht nicht
|
|
|
|
|
- //! releaseDrawOptions() aufgerufen werden
|
|
|
|
|
|
|
+ //! Restricts the drawing area until the next call of
|
|
|
|
|
+ //! releaseDrawOptions(). Everything outside the area is automatically
|
|
|
|
|
+ //! ignored. The drawing area may extend beyond an existing drawing area.
|
|
|
|
|
+ //! \param pos The coordinates of the top left corner of the drawing area
|
|
|
|
|
+ //! \param gr The size of the drawing area
|
|
|
|
|
+ //! \return 1 if the new drawing area is fully or partially within the
|
|
|
|
|
+ //! image. If 0 is returned, the drawing area was not set and
|
|
|
|
|
+ //! releaseDrawOptions() does not need to be called
|
|
|
DLLEXPORT bool setDrawOptionsErzwingen(
|
|
DLLEXPORT bool setDrawOptionsErzwingen(
|
|
|
const Punkt& pos, const Punkt& gr);
|
|
const Punkt& pos, const Punkt& gr);
|
|
|
- //! Begrenzt die Zeichenflaeche in die bis zum naechsten aufruf von
|
|
|
|
|
- //! releaseDrawOptions() gezeichnet werden kann. Alles ausserhalb der
|
|
|
|
|
- //! Flaeche wird automatisch ignoriert. Wenn die Zeichenflaeche darf ueber
|
|
|
|
|
- //! den Rand einer bestehenden Zeichenflaeche hinausragen \param x Die X
|
|
|
|
|
- //! Koordinate der linken oberen Ecke der Zeichenflaeche \param y Die X
|
|
|
|
|
- //! Koordinate der linken oberen Ecke der Zeichenflaeche \param br Die
|
|
|
|
|
- //! Breite der Zeichenflaeche \param hi Die Hoehe der Zeichenflaeche
|
|
|
|
|
- //! \return 1, falls die neue Zeichenflaeche ganz oder teilweise
|
|
|
|
|
- //! innerhalb des Bildes ligt. Wenn 0 zurueckgegeben wird, wurde die
|
|
|
|
|
- //! Zeichenflaeche nicht gesetzt und es braucht nicht
|
|
|
|
|
- //! releaseDrawOptions() aufgerufen werden
|
|
|
|
|
|
|
+ //! Restricts the drawing area until the next call of
|
|
|
|
|
+ //! releaseDrawOptions(). Everything outside the area is automatically
|
|
|
|
|
+ //! ignored. The drawing area may extend beyond an existing drawing area.
|
|
|
|
|
+ //! \param x The X coordinate of the top left corner of the drawing area
|
|
|
|
|
+ //! \param y The Y coordinate of the top left corner of the drawing area
|
|
|
|
|
+ //! \param br The width of the drawing area
|
|
|
|
|
+ //! \param hi The height of the drawing area
|
|
|
|
|
+ //! \return 1 if the new drawing area is fully or partially within the
|
|
|
|
|
+ //! image. If 0 is returned, the drawing area was not set and
|
|
|
|
|
+ //! releaseDrawOptions() does not need to be called
|
|
|
DLLEXPORT bool setDrawOptionsErzwingen(int x, int y, int br, int hi);
|
|
DLLEXPORT bool setDrawOptionsErzwingen(int x, int y, int br, int hi);
|
|
|
- //! Setzt neue Draw options auf bildgroesse
|
|
|
|
|
|
|
+ //! Resets draw options to image size
|
|
|
DLLEXPORT void setDrawOptionsReset();
|
|
DLLEXPORT void setDrawOptionsReset();
|
|
|
- //! Setzt Koordinaten, die bei den Zeichenfunktionen von den Positionen
|
|
|
|
|
- //! abgezogen werden Vorher sollte eine Zeichenflaeche mit SetDrawOptions
|
|
|
|
|
- //! gesetzt worden sein. Die Werte werden mit dem aufruf von
|
|
|
|
|
- //! releaseDrawOptions() wieder zurueckgesetzt. \param xOff Ein Wert, der
|
|
|
|
|
- //! von allen X Koordinaten abgezogen wird \param yOff Ein Wert, der von
|
|
|
|
|
- //! allen Y Koordinaten abgezogen wird
|
|
|
|
|
|
|
+ //! Sets coordinates that are subtracted from positions in drawing
|
|
|
|
|
+ //! functions. A drawing area should have been set with setDrawOptions
|
|
|
|
|
+ //! beforehand. The values are reset with the call of
|
|
|
|
|
+ //! releaseDrawOptions().
|
|
|
|
|
+ //! \param xOff A value subtracted from all X coordinates
|
|
|
|
|
+ //! \param yOff A value subtracted from all Y coordinates
|
|
|
DLLEXPORT void addScrollOffset(int xOff, int yOff);
|
|
DLLEXPORT void addScrollOffset(int xOff, int yOff);
|
|
|
- //! Entfernt die als letztes gesetzte begrenzung der Zeichenflaeche und
|
|
|
|
|
- //! alle seit dem gesetzten Scroll Offsets Stellt die vorherige
|
|
|
|
|
- //! Zeichenflaeche und die zugehoerigen Scroll Offsets wieder her
|
|
|
|
|
|
|
+ //! Removes the last set drawing area restriction and all scroll offsets
|
|
|
|
|
+ //! set since then. Restores the previous drawing area and its
|
|
|
|
|
+ //! associated scroll offsets
|
|
|
DLLEXPORT void releaseDrawOptions();
|
|
DLLEXPORT void releaseDrawOptions();
|
|
|
- //! Gibt zurueck, ob sich das Bild seit dem letzten Aufruf dieser
|
|
|
|
|
- //! Funktion veraendert hat
|
|
|
|
|
|
|
+ //! Returns whether the image has changed since the last call of this
|
|
|
|
|
+ //! function
|
|
|
DLLEXPORT bool getRend();
|
|
DLLEXPORT bool getRend();
|
|
|
- //! Gibt den Array mit A8R8G8B8 Farbwerten der Pixel zurueck
|
|
|
|
|
- //! Der Index eines Pixels berechnet sich durch x + y * Bildbreite
|
|
|
|
|
|
|
+ //! Returns the array of A8R8G8B8 pixel color values.
|
|
|
|
|
+ //! The index of a pixel is calculated as x + y * image width
|
|
|
DLLEXPORT int* getBuffer() const;
|
|
DLLEXPORT int* getBuffer() const;
|
|
|
- //! Gibt den A8R8G8B8 Farbwert eines Pixels zurueck
|
|
|
|
|
- //! \param x Die X Koordinate des Pixels
|
|
|
|
|
- //! \param y Die Y Koordinate des Pixels
|
|
|
|
|
|
|
+ //! Returns the A8R8G8B8 color value of a pixel
|
|
|
|
|
+ //! \param x The X coordinate of the pixel
|
|
|
|
|
+ //! \param y The Y coordinate of the pixel
|
|
|
DLLEXPORT int getPixel(int x, int y) const;
|
|
DLLEXPORT int getPixel(int x, int y) const;
|
|
|
- //! Gibt die Groesse des Bildes zurueck
|
|
|
|
|
|
|
+ //! Returns the size of the image
|
|
|
DLLEXPORT const Punkt& getSize() const;
|
|
DLLEXPORT const Punkt& getSize() const;
|
|
|
- //! Gibt die Breite des Bildes zurueck
|
|
|
|
|
|
|
+ //! Returns the width of the image
|
|
|
DLLEXPORT int getBreite() const;
|
|
DLLEXPORT int getBreite() const;
|
|
|
- //! Gibt die Hoehe des Bildes zurueck
|
|
|
|
|
|
|
+ //! Returns the height of the image
|
|
|
DLLEXPORT int getHeight() const;
|
|
DLLEXPORT int getHeight() const;
|
|
|
- //! Gibt den aktuellen mindest Transparenz Wert zurueck
|
|
|
|
|
|
|
+ //! Returns the current minimum transparency value
|
|
|
DLLEXPORT unsigned char getAlpha() const;
|
|
DLLEXPORT unsigned char getAlpha() const;
|
|
|
- //! Gibt die Koordinaten der linken oberen Ecke der aktuellen
|
|
|
|
|
- //! Zeichenflaeche zurueck
|
|
|
|
|
|
|
+ //! Returns the coordinates of the top left corner of the current
|
|
|
|
|
+ //! drawing area
|
|
|
DLLEXPORT const Punkt& getDrawPos() const;
|
|
DLLEXPORT const Punkt& getDrawPos() const;
|
|
|
- //! Gibt die Groesse der aktuelen Zeichenflaeche zurueck
|
|
|
|
|
|
|
+ //! Returns the size of the current drawing area
|
|
|
DLLEXPORT const Punkt& getDrawGr() const;
|
|
DLLEXPORT const Punkt& getDrawGr() const;
|
|
|
- //! Gibt die Koordinaten zurueck, die zu allen Positionen vor dem
|
|
|
|
|
- //! Zeichnen hinzugefuegt werden
|
|
|
|
|
|
|
+ //! Returns the coordinates added to all positions before drawing
|
|
|
DLLEXPORT const Punkt& getDrawOff() const;
|
|
DLLEXPORT const Punkt& getDrawOff() const;
|
|
|
- //! Wird dieser Flag gesetzt, so wird beim Alpha Blending wenn die
|
|
|
|
|
- //! vorheriege Farbe 0 ist nur die neue mit ihrem Alpha Wert kopiert.
|
|
|
|
|
- //! Das ist sinnvoll fuer die Verwendung im 3DBildschirm, wo das
|
|
|
|
|
- //! Gezeichnette Bild spaeter mittels Alpha Blending angezeigt wird. Der
|
|
|
|
|
- //! Flag wird im 3DBildschirm automatisch gesetzt
|
|
|
|
|
|
|
+ //! If this flag is set, when alpha blending and the previous color
|
|
|
|
|
+ //! is 0, the new color is only copied with its alpha value.
|
|
|
|
|
+ //! This is useful for use in the 3D screen, where the drawn image
|
|
|
|
|
+ //! is later displayed using alpha blending. The flag is set
|
|
|
|
|
+ //! automatically in the 3D screen
|
|
|
DLLEXPORT bool hasAlpha3D() const;
|
|
DLLEXPORT bool hasAlpha3D() const;
|
|
|
- //! Berechnet die durchschnittliche Farbe aller Pixel des Bildes
|
|
|
|
|
|
|
+ //! Calculates the average color of all pixels in the image
|
|
|
DLLEXPORT int getAverageColor() const;
|
|
DLLEXPORT int getAverageColor() const;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
- //! Eine Zeichnung des 2d GUI Frameworks, die ein Bild anzeigt.
|
|
|
|
|
|
|
+ //! A 2D GUI Framework drawing that displays an image.
|
|
|
class BildZ : public ZeichnungHintergrund
|
|
class BildZ : public ZeichnungHintergrund
|
|
|
{
|
|
{
|
|
|
public:
|
|
public:
|
|
|
class Style : public ZeichnungHintergrund::Style
|
|
class Style : public ZeichnungHintergrund::Style
|
|
|
{
|
|
{
|
|
|
public:
|
|
public:
|
|
|
- //! Wenn dieser Flag gesetzt ist, wird zum Zeichnen des Bildes Alpha
|
|
|
|
|
- //! Blending verwendet
|
|
|
|
|
|
|
+ //! If this flag is set, alpha blending is used when drawing
|
|
|
|
|
+ //! the image
|
|
|
static const __int64 Alpha = 0x1000;
|
|
static const __int64 Alpha = 0x1000;
|
|
|
- //! Wenn dieser Flag gesetzt ist, wird das Bild in die Zeichenflaeche
|
|
|
|
|
- //! skalliert
|
|
|
|
|
|
|
+ //! If this flag is set, the image is scaled to the drawing area
|
|
|
static const __int64 Skalliert = 0x2000;
|
|
static const __int64 Skalliert = 0x2000;
|
|
|
|
|
|
|
|
- //! Der Normale Style einer Bild Zeichnung Bestehend aus HScroll,
|
|
|
|
|
|
|
+ //! The normal style of an image drawing consisting of HScroll,
|
|
|
//! Sichtbar, Erlaubt, Rahmen, VScroll
|
|
//! Sichtbar, Erlaubt, Rahmen, VScroll
|
|
|
static const __int64 normal
|
|
static const __int64 normal
|
|
|
= HScroll | Sichtbar | Erlaubt | Rahmen | VScroll;
|
|
= HScroll | Sichtbar | Erlaubt | Rahmen | VScroll;
|
|
@@ -516,43 +497,44 @@ namespace Framework
|
|
|
Bild* bild;
|
|
Bild* bild;
|
|
|
|
|
|
|
|
protected:
|
|
protected:
|
|
|
- //! Verarbeitet ein Maus Ereignis. Wird vom Framework automatisch
|
|
|
|
|
- //! aufgerufen. \param me Das Ereignis
|
|
|
|
|
|
|
+ //! Processes a mouse event. Called automatically by the framework.
|
|
|
|
|
+ //! \param me The event
|
|
|
DLLEXPORT void doMausEreignis(MausEreignis& me, bool userRet) override;
|
|
DLLEXPORT void doMausEreignis(MausEreignis& me, bool userRet) override;
|
|
|
|
|
|
|
|
public:
|
|
public:
|
|
|
- //! Konstruktor
|
|
|
|
|
|
|
+ //! Constructor
|
|
|
DLLEXPORT BildZ();
|
|
DLLEXPORT BildZ();
|
|
|
- //! Destruktor
|
|
|
|
|
|
|
+ //! Destructor
|
|
|
DLLEXPORT virtual ~BildZ();
|
|
DLLEXPORT virtual ~BildZ();
|
|
|
- //! Setzt einen Zeiger auf das Bild, was angezeigt werden soll
|
|
|
|
|
- //! \param b Das Bild
|
|
|
|
|
|
|
+ //! Sets a pointer to the image to be displayed
|
|
|
|
|
+ //! \param b The image
|
|
|
DLLEXPORT void setBildZ(Bild* b);
|
|
DLLEXPORT void setBildZ(Bild* b);
|
|
|
- //! Setzt das Bild, was angezeigt werden soll. Der Inhalt des Bildes
|
|
|
|
|
- //! wird Kopiert \param b Das Bild
|
|
|
|
|
|
|
+ //! Sets the image to be displayed. The image content is copied
|
|
|
|
|
+ //! \param b The image
|
|
|
DLLEXPORT void setBild(Bild* b);
|
|
DLLEXPORT void setBild(Bild* b);
|
|
|
- //! Updated den Zeichenhintergrund
|
|
|
|
|
- //! \param tickVal Die vergangene Zeit in Sekunden, die seit dem Letzten
|
|
|
|
|
- //! Aufruf dieser Funktion verstrichen ist \return 1, wenn das Bild neu
|
|
|
|
|
- //! gezeichnet werden muss. 0 sonnst
|
|
|
|
|
|
|
+ //! Updates the drawing background
|
|
|
|
|
+ //! \param tickVal The elapsed time in seconds since the last call
|
|
|
|
|
+ //! of this function
|
|
|
|
|
+ //! \return 1 if the image needs to be redrawn. 0 otherwise
|
|
|
DLLEXPORT bool tick(double tickVal) override;
|
|
DLLEXPORT bool tick(double tickVal) override;
|
|
|
- //! Zeichnet die Zeihnung in ein bestimmtes Bild
|
|
|
|
|
- //! \param zRObj Das Bild, in das gezeichnet werden soll
|
|
|
|
|
|
|
+ //! Draws the drawing into a specific image
|
|
|
|
|
+ //! \param zRObj The image to draw into
|
|
|
DLLEXPORT void render(Bild& zRObj) override;
|
|
DLLEXPORT void render(Bild& zRObj) override;
|
|
|
- //! Gibt das angezeigte Bild zurueck
|
|
|
|
|
|
|
+ //! Returns the displayed image
|
|
|
DLLEXPORT Bild* getBild() const;
|
|
DLLEXPORT Bild* getBild() const;
|
|
|
- //! Gbt das angezeigte Bild ohne erhoehten Reference Counter zurueck
|
|
|
|
|
|
|
+ //! Returns the displayed image without increased reference counter
|
|
|
DLLEXPORT Bild* zBild() const;
|
|
DLLEXPORT Bild* zBild() const;
|
|
|
- //! Kopiert die Komplette Zeichnung, so dass sie ohne Effekt auf das
|
|
|
|
|
- //! Original veraendert werden kann
|
|
|
|
|
|
|
+ //! Copies the complete drawing so it can be modified without
|
|
|
|
|
+ //! affecting the original
|
|
|
DLLEXPORT Zeichnung* dublizieren() const override;
|
|
DLLEXPORT Zeichnung* dublizieren() const override;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
#ifdef WIN32
|
|
#ifdef WIN32
|
|
|
- //! Laedt ein Bild aus einer .bmp, .jpg, .gif oder .png Datei
|
|
|
|
|
- //! \param pfad Der Pfad zur Bilddatei
|
|
|
|
|
- //! \param zError Ein Zeiger auf ein Text Objekt, in dem ein moeglicher
|
|
|
|
|
- //! Fehler zurueckgegeben wird \return Das geladene Bild
|
|
|
|
|
|
|
+ //! Loads an image from a .bmp, .jpg, .gif or .png file
|
|
|
|
|
+ //! \param pfad The path to the image file
|
|
|
|
|
+ //! \param zError A pointer to a Text object where a possible error is
|
|
|
|
|
+ //! returned
|
|
|
|
|
+ //! \return The loaded image
|
|
|
DLLEXPORT Bild* ladeBild(const char* pfad, Text* zError);
|
|
DLLEXPORT Bild* ladeBild(const char* pfad, Text* zError);
|
|
|
#endif
|
|
#endif
|
|
|
} // namespace Framework
|
|
} // namespace Framework
|