CRM64Pro GDK v0.11.0
A free cross-platform game development kit built on top of SDL 3.0
|
v2.00 (20 June 2023)
The GFX interface provides generic graphics methods.
Useful methods:
Drawing methods are fast enough for realtime effects when rendering to a screen.
However, when the target is an image, it is not so fast. This is not intended for realtime effects although some will not hurt, several of them will do.
Only a single instance of the GFX interface exists which is created once Main is instantiated.
You can get a reference to this interface using Main::IGFX() method.
Classes | |
class | CRM64Pro::GFX |
GFX class. More... | |
Functions | |
Sint32 | CRM64Pro::GFX::info (Sint32 iMode=0) |
Request GFX Interface information. | |
Sint32 | CRM64Pro::GFX::setSurfacePixel (Sint32 iX, Sint32 iY, Uint32 iColor, SDL_Surface *pSurf) |
Draw a pixel in a surface. | |
Uint32 | CRM64Pro::GFX::getSurfacePixel (Sint32 iX, Sint32 iY, SDL_Surface *pSurf) |
Get a pixel color from a surface. | |
Sint32 | CRM64Pro::GFX::setPixel (Sint32 iX, Sint32 iY, Uint32 iColor, Sint32 idRes=0) |
Draw a pixel. | |
Sint32 | CRM64Pro::GFX::setPixel (Sint32 iX, Sint32 iY, Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, Sint32 idRes=0) |
Draw a pixel. | |
Uint32 | CRM64Pro::GFX::getPixel (Sint32 iX, Sint32 iY, Sint32 idRes=0) |
Get a pixel color. | |
Sint32 | CRM64Pro::GFX::lineH (Sint32 iX1, Sint32 iX2, Sint32 iY, Uint32 iColor, Sint32 idRes=0) |
Draw a horizontal line. | |
Sint32 | CRM64Pro::GFX::lineH (Sint32 iX1, Sint32 iX2, Sint32 iY, Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, Sint32 idRes=0) |
Draw a horizontal line. | |
Sint32 | CRM64Pro::GFX::lineV (Sint32 iX, Sint32 iY1, Sint32 iY2, Uint32 iColor, Sint32 idRes=0) |
Draw a vertical line. | |
Sint32 | CRM64Pro::GFX::lineV (Sint32 iX, Sint32 iY1, Sint32 iY2, Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, Sint32 idRes=0) |
Draw a vertical line. | |
Sint32 | CRM64Pro::GFX::line (Sint32 iX1, Sint32 iY1, Sint32 iX2, Sint32 iY2, Uint32 iColor, Sint32 idRes=0) |
Draw a line. | |
Sint32 | CRM64Pro::GFX::line (Sint32 iX1, Sint32 iY1, Sint32 iX2, Sint32 iY2, Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, Sint32 idRes=0) |
Draw a line. | |
Sint32 | CRM64Pro::GFX::rect (Sint32 iX1, Sint32 iY1, Sint32 iX2, Sint32 iY2, Uint32 iColor, Sint32 idRes=0) |
Draw an outlined rectangle. | |
Sint32 | CRM64Pro::GFX::rect (Sint32 iX1, Sint32 iY1, Sint32 iX2, Sint32 iY2, Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, Sint32 idRes=0) |
Draw an outlined rectangle. | |
Sint32 | CRM64Pro::GFX::rectFilled (Sint32 iX1, Sint32 iY1, Sint32 iX2, Sint32 iY2, Uint32 iColor, Sint32 idRes=0) |
Draw a filled rectangle. | |
Sint32 | CRM64Pro::GFX::rectFilled (Sint32 iX1, Sint32 iY1, Sint32 iX2, Sint32 iY2, Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, Sint32 idRes=0) |
Draw a filled rectangle. | |
Sint32 | CRM64Pro::GFX::rectRound (Sint32 iX1, Sint32 iY1, Sint32 iX2, Sint32 iY2, Sint32 iRad, Uint32 iColor, Sint32 idRes=0) |
Draw a round outlined rectangle. | |
Sint32 | CRM64Pro::GFX::rectRound (Sint32 iX1, Sint32 iY1, Sint32 iX2, Sint32 iY2, Sint32 iRad, Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, Sint32 idRes=0) |
Draw a round outlined rectangle. | |
Sint32 | CRM64Pro::GFX::rectFilledRound (Sint32 iX1, Sint32 iY1, Sint32 iX2, Sint32 iY2, Sint32 iRad, Uint32 iColor, Sint32 idRes=0) |
Draw a round filled rectangle. | |
Sint32 | CRM64Pro::GFX::rectFilledRound (Sint32 iX1, Sint32 iY1, Sint32 iX2, Sint32 iY2, Sint32 iRad, Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, Sint32 idRes=0) |
Draw a round filled rectangle. | |
Sint32 | CRM64Pro::GFX::arc (Sint32 iX, Sint32 iY, Sint32 iRad, Sint32 iStart, Sint32 iEnd, Uint32 iColor, Sint32 idRes=0) |
Draw an arc. | |
Sint32 | CRM64Pro::GFX::arc (Sint32 iX, Sint32 iY, Sint32 iRad, Sint32 iStart, Sint32 iEnd, Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, Sint32 idRes=0) |
Draw an arc. | |
Sint32 | CRM64Pro::GFX::circle (Sint32 iX, Sint32 iY, Sint32 iRad, Uint32 iColor, Sint32 idRes=0) |
Draw an outlined circle. | |
Sint32 | CRM64Pro::GFX::circle (Sint32 iX, Sint32 iY, Sint32 iRad, Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, Sint32 idRes=0) |
Draw an outlined circle. | |
Sint32 | CRM64Pro::GFX::circleFilled (Sint32 iX, Sint32 iY, Sint32 iRad, Uint32 iColor, Sint32 idRes=0) |
Draw a filled circle. | |
Sint32 | CRM64Pro::GFX::circleFilled (Sint32 iX, Sint32 iY, Sint32 iRad, Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, Sint32 idRes=0) |
Draw a filled circle. | |
Sint32 | CRM64Pro::GFX::ellipse (Sint32 iX, Sint32 iY, Sint32 iRadX, Sint32 iRadY, Uint32 iColor, Sint32 idRes=0) |
Draw an outlined ellipse. | |
Sint32 | CRM64Pro::GFX::ellipse (Sint32 iX, Sint32 iY, Sint32 iRadX, Sint32 iRadY, Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, Sint32 idRes=0) |
Draw an outlined ellipse. | |
Sint32 | CRM64Pro::GFX::ellipseFilled (Sint32 iX, Sint32 iY, Sint32 iRadX, Sint32 iRadY, Uint32 iColor, Sint32 idRes=0) |
Draw a filled ellipse. | |
Sint32 | CRM64Pro::GFX::ellipseFilled (Sint32 iX, Sint32 iY, Sint32 iRadX, Sint32 iRadY, Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, Sint32 idRes=0) |
Draw a filled ellipse. | |
Sint32 | CRM64Pro::GFX::polygon (Sint32 *iVX, Sint32 *iVY, Sint32 iNV, Uint32 iColor, Sint32 idRes=0) |
Draw an outlined polygon. | |
Sint32 | CRM64Pro::GFX::polygon (Sint32 *iVX, Sint32 *iVY, Sint32 iNV, Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, Sint32 idRes=0) |
Draw an outlined polygon. | |
Sint32 | CRM64Pro::GFX::polygonFilled (Sint32 *iVX, Sint32 *iVY, Sint32 iNV, Uint32 iColor, Sint32 idRes=0) |
Draw a filled polygon. | |
Sint32 | CRM64Pro::GFX::polygonFilled (Sint32 *iVX, Sint32 *iVY, Sint32 iNV, Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, Sint32 idRes=0) |
Draw a filled polygon. | |
Sint32 | CRM64Pro::GFX::RGBtoHSV (Uint8 iR, Uint8 iG, Uint8 iB, float *fH, float *fS, float *fV) |
Color conversion from RGB to HSV. | |
Sint32 | CRM64Pro::GFX::HSVtoRGB (float fH, float fS, float fV, Uint8 *iR, Uint8 *iG, Uint8 *iB) |
Color conversion from HSV to RGB. | |
Sint32 | CRM64Pro::GFX::RGBtoYUV (Uint8 iR, Uint8 iG, Uint8 iB, Uint8 *iY, Uint8 *iU, Uint8 *iV) |
Color conversion from RGB to YUV. | |
Sint32 | CRM64Pro::GFX::YUVtoRGB (Uint8 iY, Uint8 iU, Uint8 iV, Uint8 *iR, Uint8 *iG, Uint8 *iB) |
Color conversion from YUV to RGB. | |
Sint32 | CRM64Pro::GFX::RGBtoCMYK (Uint8 iR, Uint8 iG, Uint8 iB, Uint8 *iC, Uint8 *iM, Uint8 *iY, Uint8 *iK) |
Color conversion from RGB to CMYK. | |
Sint32 | CRM64Pro::GFX::CMYKtoRGB (Uint8 iC, Uint8 iM, Uint8 iY, Uint8 iK, Uint8 *iR, Uint8 *iG, Uint8 *iB) |
Color conversion from CMYK to RGB. | |
Sint32 | CRM64Pro::GFX::RGBtoYCC (Uint8 iR, Uint8 iG, Uint8 iB, Uint8 *iY, Uint8 *Cb, Uint8 *Cr) |
Color conversion from RGB to YCC. | |
Sint32 | CRM64Pro::GFX::YCCtoRGB (Uint8 iY, Uint8 Cb, Uint8 Cr, Uint8 *iR, Uint8 *iG, Uint8 *iB) |
Color conversion from YCC to RGB. | |
Sint32 CRM64Pro::GFX::info | ( | Sint32 | iMode = 0 | ) |
Request GFX Interface information.
For displaying the information, it uses the default log.
iMode | unused for the time being. |
Sint32 CRM64Pro::GFX::setSurfacePixel | ( | Sint32 | iX, |
Sint32 | iY, | ||
Uint32 | iColor, | ||
SDL_Surface * | pSurf | ||
) |
Draw a pixel in a surface.
iX | X (horizontal) coordinate of the pixel. |
iY | Y (vertical) coordinate of the pixel. |
iColor | The color value of the pixel to draw (0xAARRGGBB). |
pSurf | SDL_Surface pointer. |
Uint32 CRM64Pro::GFX::getSurfacePixel | ( | Sint32 | iX, |
Sint32 | iY, | ||
SDL_Surface * | pSurf | ||
) |
Get a pixel color from a surface.
iX | X (horizontal) coordinate of the pixel. |
iY | Y (vertical) coordinate of the pixel. |
pSurf | SDL_Surface pointer. |
Sint32 CRM64Pro::GFX::setPixel | ( | Sint32 | iX, |
Sint32 | iY, | ||
Uint32 | iColor, | ||
Sint32 | idRes = 0 |
||
) |
Draw a pixel.
iX | X (horizontal) coordinate of the pixel. |
iY | Y (vertical) coordinate of the pixel. |
iColor | The color value of the pixel to draw (0xRRGGBBAA). |
idRes | a valid screen or image handle. By default it tries to use the default screen. |
Sint32 CRM64Pro::GFX::setPixel | ( | Sint32 | iX, |
Sint32 | iY, | ||
Uint8 | iR, | ||
Uint8 | iG, | ||
Uint8 | iB, | ||
Uint8 | iA, | ||
Sint32 | idRes = 0 |
||
) |
Draw a pixel.
iX | X (horizontal) coordinate of the pixel. |
iY | Y (vertical) coordinate of the pixel. |
iR | The red color value of the pixel to draw. |
iG | The green color value of the pixel to draw. |
iB | The blue color value of the pixel to draw. |
iA | The alpha value of the pixel to draw. |
idRes | a valid screen or image handle. By default it tries to use the default screen. |
Uint32 CRM64Pro::GFX::getPixel | ( | Sint32 | iX, |
Sint32 | iY, | ||
Sint32 | idRes = 0 |
||
) |
Get a pixel color.
iX | X (horizontal) coordinate of the pixel. |
iY | Y (vertical) coordinate of the pixel. |
idRes | a valid screen or image handle. By default it tries to use the default screen. |
Sint32 CRM64Pro::GFX::lineH | ( | Sint32 | iX1, |
Sint32 | iX2, | ||
Sint32 | iY, | ||
Uint32 | iColor, | ||
Sint32 | idRes = 0 |
||
) |
Draw a horizontal line.
iX1 | X coordinate of the first point of the line. |
iX2 | X coordinate of the second point of the line. |
iY | Y coordinate of the points of the line. |
iColor | The color value (0xRRGGBBAA). |
idRes | a valid screen or image handle. By default it tries to use the default screen. |
Sint32 CRM64Pro::GFX::lineH | ( | Sint32 | iX1, |
Sint32 | iX2, | ||
Sint32 | iY, | ||
Uint8 | iR, | ||
Uint8 | iG, | ||
Uint8 | iB, | ||
Uint8 | iA, | ||
Sint32 | idRes = 0 |
||
) |
Draw a horizontal line.
iX1 | X coordinate of the first point of the line. |
iX2 | X coordinate of the second point of the line. |
iY | Y coordinate of the points of the line. |
iR | The red color value. |
iG | The green color value. |
iB | The blue color value. |
iA | The alpha value. |
idRes | a valid screen or image handle. By default it tries to use the default screen. |
Sint32 CRM64Pro::GFX::lineV | ( | Sint32 | iX, |
Sint32 | iY1, | ||
Sint32 | iY2, | ||
Uint32 | iColor, | ||
Sint32 | idRes = 0 |
||
) |
Draw a vertical line.
iX | X coordinate of the points of the line. |
iY1 | Y coordinate of the first point of the line. |
iY2 | Y coordinate of the second point of the line. |
iColor | The color value (0xRRGGBBAA). |
idRes | a valid screen or image handle. By default it tries to use the default screen. |
Sint32 CRM64Pro::GFX::lineV | ( | Sint32 | iX, |
Sint32 | iY1, | ||
Sint32 | iY2, | ||
Uint8 | iR, | ||
Uint8 | iG, | ||
Uint8 | iB, | ||
Uint8 | iA, | ||
Sint32 | idRes = 0 |
||
) |
Draw a vertical line.
iX | X coordinate of the points of the line. |
iY1 | Y coordinate of the first point of the line. |
iY2 | Y coordinate of the second point of the line. |
iR | The red color value. |
iG | The green color value. |
iB | The blue color value. |
iA | The alpha value. |
idRes | a valid screen or image handle. By default it tries to use the default screen. |
Sint32 CRM64Pro::GFX::line | ( | Sint32 | iX1, |
Sint32 | iY1, | ||
Sint32 | iX2, | ||
Sint32 | iY2, | ||
Uint32 | iColor, | ||
Sint32 | idRes = 0 |
||
) |
Draw a line.
iX1 | X coordinate of the first point of the line. |
iY1 | Y coordinate of the first point of the line. |
iX2 | X coordinate of the second point of the line. |
iY2 | Y coordinate of the second point of the line. |
iColor | The color value (0xRRGGBBAA). |
idRes | a valid screen or image handle. By default it tries to use the default screen. |
Sint32 CRM64Pro::GFX::line | ( | Sint32 | iX1, |
Sint32 | iY1, | ||
Sint32 | iX2, | ||
Sint32 | iY2, | ||
Uint8 | iR, | ||
Uint8 | iG, | ||
Uint8 | iB, | ||
Uint8 | iA, | ||
Sint32 | idRes = 0 |
||
) |
Draw a line.
iX1 | X coordinate of the first point of the line. |
iY1 | Y coordinate of the first point of the line. |
iX2 | X coordinate of the second point of the line. |
iY2 | Y coordinate of the second point of the line. |
iR | The red color value. |
iG | The green color value. |
iB | The blue color value. |
iA | The alpha value. |
idRes | a valid screen or image handle. By default it tries to use the default screen. |
Sint32 CRM64Pro::GFX::rect | ( | Sint32 | iX1, |
Sint32 | iY1, | ||
Sint32 | iX2, | ||
Sint32 | iY2, | ||
Uint32 | iColor, | ||
Sint32 | idRes = 0 |
||
) |
Draw an outlined rectangle.
iX1 | X coordinate of the first point of the rectangle. |
iY1 | Y coordinate of the first point of the rectangle. |
iX2 | X coordinate of the second point of the rectangle. |
iY2 | Y coordinate of the second point of the rectangle. |
iColor | The color value (0xRRGGBBAA). |
idRes | a valid screen or image handle. By default it tries to use the default screen. |
Sint32 CRM64Pro::GFX::rect | ( | Sint32 | iX1, |
Sint32 | iY1, | ||
Sint32 | iX2, | ||
Sint32 | iY2, | ||
Uint8 | iR, | ||
Uint8 | iG, | ||
Uint8 | iB, | ||
Uint8 | iA, | ||
Sint32 | idRes = 0 |
||
) |
Draw an outlined rectangle.
iX1 | X coordinate of the first point of the rectangle. |
iY1 | Y coordinate of the first point of the rectangle. |
iX2 | X coordinate of the second point of the rectangle. |
iY2 | Y coordinate of the second point of the rectangle. |
iR | The red color value. |
iG | The green color value. |
iB | The blue color value. |
iA | The alpha value. |
idRes | a valid screen or image handle. By default it tries to use the default screen. |
Sint32 CRM64Pro::GFX::rectFilled | ( | Sint32 | iX1, |
Sint32 | iY1, | ||
Sint32 | iX2, | ||
Sint32 | iY2, | ||
Uint32 | iColor, | ||
Sint32 | idRes = 0 |
||
) |
Draw a filled rectangle.
iX1 | X coordinate of the first point of the rectangle. |
iY1 | Y coordinate of the first point of the rectangle. |
iX2 | X coordinate of the second point of the rectangle. |
iY2 | Y coordinate of the second point of the rectangle. |
iColor | The color value (0xRRGGBBAA). |
idRes | a valid screen or image handle. By default it tries to use the default screen. |
Sint32 CRM64Pro::GFX::rectFilled | ( | Sint32 | iX1, |
Sint32 | iY1, | ||
Sint32 | iX2, | ||
Sint32 | iY2, | ||
Uint8 | iR, | ||
Uint8 | iG, | ||
Uint8 | iB, | ||
Uint8 | iA, | ||
Sint32 | idRes = 0 |
||
) |
Draw a filled rectangle.
iX1 | X coordinate of the first point of the rectangle. |
iY1 | Y coordinate of the first point of the rectangle. |
iX2 | X coordinate of the second point of the rectangle. |
iY2 | Y coordinate of the second point of the rectangle. |
iR | The red color value. |
iG | The green color value. |
iB | The blue color value. |
iA | The alpha value. |
idRes | a valid screen or image handle. By default it tries to use the default screen. |
Sint32 CRM64Pro::GFX::rectRound | ( | Sint32 | iX1, |
Sint32 | iY1, | ||
Sint32 | iX2, | ||
Sint32 | iY2, | ||
Sint32 | iRad, | ||
Uint32 | iColor, | ||
Sint32 | idRes = 0 |
||
) |
Draw a round outlined rectangle.
iX1 | X coordinate of the first point of the rectangle. |
iY1 | Y coordinate of the first point of the rectangle. |
iX2 | X coordinate of the second point of the rectangle. |
iY2 | Y coordinate of the second point of the rectangle. |
iRad | Radius in pixels of the corner arc. |
iColor | The color value (0xRRGGBBAA). |
idRes | a valid screen or image handle. By default it tries to use the default screen. |
Sint32 CRM64Pro::GFX::rectRound | ( | Sint32 | iX1, |
Sint32 | iY1, | ||
Sint32 | iX2, | ||
Sint32 | iY2, | ||
Sint32 | iRad, | ||
Uint8 | iR, | ||
Uint8 | iG, | ||
Uint8 | iB, | ||
Uint8 | iA, | ||
Sint32 | idRes = 0 |
||
) |
Draw a round outlined rectangle.
iX1 | X coordinate of the first point of the rectangle. |
iY1 | Y coordinate of the first point of the rectangle. |
iX2 | X coordinate of the second point of the rectangle. |
iY2 | Y coordinate of the second point of the rectangle. |
iRad | Radius in pixels of the corner arc. |
iR | The red color value. |
iG | The green color value. |
iB | The blue color value. |
iA | The alpha value. |
idRes | a valid screen or image handle. By default it tries to use the default screen. |
Sint32 CRM64Pro::GFX::rectFilledRound | ( | Sint32 | iX1, |
Sint32 | iY1, | ||
Sint32 | iX2, | ||
Sint32 | iY2, | ||
Sint32 | iRad, | ||
Uint32 | iColor, | ||
Sint32 | idRes = 0 |
||
) |
Draw a round filled rectangle.
iX1 | X coordinate of the first point of the rectangle. |
iY1 | Y coordinate of the first point of the rectangle. |
iX2 | X coordinate of the second point of the rectangle. |
iY2 | Y coordinate of the second point of the rectangle. |
iRad | Radius in pixels of the corner arc. |
iColor | The color value (0xRRGGBBAA). |
idRes | a valid screen or image handle. By default it tries to use the default screen. |
Sint32 CRM64Pro::GFX::rectFilledRound | ( | Sint32 | iX1, |
Sint32 | iY1, | ||
Sint32 | iX2, | ||
Sint32 | iY2, | ||
Sint32 | iRad, | ||
Uint8 | iR, | ||
Uint8 | iG, | ||
Uint8 | iB, | ||
Uint8 | iA, | ||
Sint32 | idRes = 0 |
||
) |
Draw a round filled rectangle.
iX1 | X coordinate of the first point of the rectangle. |
iY1 | Y coordinate of the first point of the rectangle. |
iX2 | X coordinate of the second point of the rectangle. |
iY2 | Y coordinate of the second point of the rectangle. |
iRad | Radius in pixels of the corner arc. |
iR | The red color value. |
iG | The green color value. |
iB | The blue color value. |
iA | The alpha value. |
idRes | a valid screen or image handle. By default it tries to use the default screen. |
Sint32 CRM64Pro::GFX::arc | ( | Sint32 | iX, |
Sint32 | iY, | ||
Sint32 | iRad, | ||
Sint32 | iStart, | ||
Sint32 | iEnd, | ||
Uint32 | iColor, | ||
Sint32 | idRes = 0 |
||
) |
Draw an arc.
iX | X coordinate of the center of the arc. |
iY | Y coordinate of the center of the arc. |
iRad | Radius in pixels of the arc. |
iStart | Starting radius in degrees of the arc. 0 degrees is down, increasing counterclockwise. |
iEnd | Ending radius in degrees of the arc. 0 degrees is down, increasing counterclockwise. |
iColor | The color value (0xRRGGBBAA). |
idRes | a valid screen or image handle. By default it tries to use the default screen. |
Sint32 CRM64Pro::GFX::arc | ( | Sint32 | iX, |
Sint32 | iY, | ||
Sint32 | iRad, | ||
Sint32 | iStart, | ||
Sint32 | iEnd, | ||
Uint8 | iR, | ||
Uint8 | iG, | ||
Uint8 | iB, | ||
Uint8 | iA, | ||
Sint32 | idRes = 0 |
||
) |
Draw an arc.
iX | X coordinate of the center of the arc. |
iY | Y coordinate of the center of the arc. |
iRad | Radius in pixels of the arc. |
iStart | Starting radius in degrees of the arc. 0 degrees is down, increasing counterclockwise. |
iEnd | Ending radius in degrees of the arc. 0 degrees is down, increasing counterclockwise. |
iR | The red color value. |
iG | The green color value. |
iB | The blue color value. |
iA | The alpha value. |
idRes | a valid screen or image handle. By default it tries to use the default screen. |
Sint32 CRM64Pro::GFX::circle | ( | Sint32 | iX, |
Sint32 | iY, | ||
Sint32 | iRad, | ||
Uint32 | iColor, | ||
Sint32 | idRes = 0 |
||
) |
Draw an outlined circle.
iX | X coordinate of the center of the circle. |
iY | Y coordinate of the center of the circle. |
iRad | Radius in pixels of the circle. |
iColor | The color value (0xRRGGBBAA). |
idRes | a valid screen or image handle. By default it tries to use the default screen. |
Sint32 CRM64Pro::GFX::circle | ( | Sint32 | iX, |
Sint32 | iY, | ||
Sint32 | iRad, | ||
Uint8 | iR, | ||
Uint8 | iG, | ||
Uint8 | iB, | ||
Uint8 | iA, | ||
Sint32 | idRes = 0 |
||
) |
Draw an outlined circle.
iX | X coordinate of the center of the circle. |
iY | Y coordinate of the center of the circle. |
iRad | Radius in pixels of the circle. |
iR | The red color value. |
iG | The green color value. |
iB | The blue color value. |
iA | The alpha value. |
idRes | a valid screen or image handle. By default it tries to use the default screen. |
Sint32 CRM64Pro::GFX::circleFilled | ( | Sint32 | iX, |
Sint32 | iY, | ||
Sint32 | iRad, | ||
Uint32 | iColor, | ||
Sint32 | idRes = 0 |
||
) |
Draw a filled circle.
iX | X coordinate of the center of the circle. |
iY | Y coordinate of the center of the circle. |
iRad | Radius in pixels of the circle. |
iColor | The color value (0xRRGGBBAA). |
idRes | a valid screen or image handle. By default it tries to use the default screen. |
Sint32 CRM64Pro::GFX::circleFilled | ( | Sint32 | iX, |
Sint32 | iY, | ||
Sint32 | iRad, | ||
Uint8 | iR, | ||
Uint8 | iG, | ||
Uint8 | iB, | ||
Uint8 | iA, | ||
Sint32 | idRes = 0 |
||
) |
Draw a filled circle.
iX | X coordinate of the center of the circle. |
iY | Y coordinate of the center of the circle. |
iRad | Radius in pixels of the circle. |
iR | The red color value. |
iG | The green color value. |
iB | The blue color value. |
iA | The alpha value. |
idRes | a valid screen or image handle. By default it tries to use the default screen. |
Sint32 CRM64Pro::GFX::ellipse | ( | Sint32 | iX, |
Sint32 | iY, | ||
Sint32 | iRadX, | ||
Sint32 | iRadY, | ||
Uint32 | iColor, | ||
Sint32 | idRes = 0 |
||
) |
Draw an outlined ellipse.
iX | X coordinate of the center of the ellipse. |
iY | Y coordinate of the center of the ellipse. |
iRadX | horizontal radius in pixels of the ellipse. |
iRadY | vertical radius in pixels of the ellipse. |
iColor | The color value (0xRRGGBBAA). |
idRes | a valid screen or image handle. By default it tries to use the default screen. |
Sint32 CRM64Pro::GFX::ellipse | ( | Sint32 | iX, |
Sint32 | iY, | ||
Sint32 | iRadX, | ||
Sint32 | iRadY, | ||
Uint8 | iR, | ||
Uint8 | iG, | ||
Uint8 | iB, | ||
Uint8 | iA, | ||
Sint32 | idRes = 0 |
||
) |
Draw an outlined ellipse.
iX | X coordinate of the center of the ellipse. |
iY | Y coordinate of the center of the ellipse. |
iRadX | horizontal radius in pixels of the ellipse. |
iRadY | vertical radius in pixels of the ellipse. |
iR | The red color value. |
iG | The green color value. |
iB | The blue color value. |
iA | The alpha value. |
idRes | a valid screen or image handle. By default it tries to use the default screen. |
Sint32 CRM64Pro::GFX::ellipseFilled | ( | Sint32 | iX, |
Sint32 | iY, | ||
Sint32 | iRadX, | ||
Sint32 | iRadY, | ||
Uint32 | iColor, | ||
Sint32 | idRes = 0 |
||
) |
Draw a filled ellipse.
iX | X coordinate of the center of the ellipse. |
iY | Y coordinate of the center of the ellipse. |
iRadX | horizontal radius in pixels of the ellipse. |
iRadY | vertical radius in pixels of the ellipse. |
iColor | The color value (0xRRGGBBAA). |
idRes | a valid screen or image handle. By default it tries to use the default screen. |
Sint32 CRM64Pro::GFX::ellipseFilled | ( | Sint32 | iX, |
Sint32 | iY, | ||
Sint32 | iRadX, | ||
Sint32 | iRadY, | ||
Uint8 | iR, | ||
Uint8 | iG, | ||
Uint8 | iB, | ||
Uint8 | iA, | ||
Sint32 | idRes = 0 |
||
) |
Draw a filled ellipse.
iX | X coordinate of the center of the ellipse. |
iY | Y coordinate of the center of the ellipse. |
iRadX | horizontal radius in pixels of the ellipse. |
iRadY | vertical radius in pixels of the ellipse. |
iR | The red color value. |
iG | The green color value. |
iB | The blue color value. |
iA | The alpha value. |
idRes | a valid screen or image handle. By default it tries to use the default screen. |
Sint32 CRM64Pro::GFX::polygon | ( | Sint32 * | iVX, |
Sint32 * | iVY, | ||
Sint32 | iNV, | ||
Uint32 | iColor, | ||
Sint32 | idRes = 0 |
||
) |
Draw an outlined polygon.
iVX | Vertex array containing X coordinates of the points of the polygon. |
iVY | Vertex array containing Y coordinates of the points of the polygon. |
iNV | Number of points in the vertex array. From a minimum number of 3 up to 32. |
iColor | The color value (0xRRGGBBAA). |
idRes | a valid screen or image handle. By default it tries to use the default screen. |
Sint32 CRM64Pro::GFX::polygon | ( | Sint32 * | iVX, |
Sint32 * | iVY, | ||
Sint32 | iNV, | ||
Uint8 | iR, | ||
Uint8 | iG, | ||
Uint8 | iB, | ||
Uint8 | iA, | ||
Sint32 | idRes = 0 |
||
) |
Draw an outlined polygon.
iVX | Vertex array containing X coordinates of the points of the polygon. |
iVY | Vertex array containing Y coordinates of the points of the polygon. |
iNV | Number of points in the vertex array. From a minimum number of 3 up to 31. |
iR | The red color value. |
iG | The green color value. |
iB | The blue color value. |
iA | The alpha value. |
idRes | a valid screen or image handle. By default it tries to use the default screen. |
Sint32 CRM64Pro::GFX::polygonFilled | ( | Sint32 * | iVX, |
Sint32 * | iVY, | ||
Sint32 | iNV, | ||
Uint32 | iColor, | ||
Sint32 | idRes = 0 |
||
) |
Draw a filled polygon.
iVX | Vertex array containing X coordinates of the points of the polygon. |
iVY | Vertex array containing Y coordinates of the points of the polygon. |
iNV | Number of points in the vertex array. From a minimum number of 3 up to 32. |
iColor | The color value (0xRRGGBBAA). |
idRes | a valid screen or image handle. By default it tries to use the default screen. |
Sint32 CRM64Pro::GFX::polygonFilled | ( | Sint32 * | iVX, |
Sint32 * | iVY, | ||
Sint32 | iNV, | ||
Uint8 | iR, | ||
Uint8 | iG, | ||
Uint8 | iB, | ||
Uint8 | iA, | ||
Sint32 | idRes = 0 |
||
) |
Draw a filled polygon.
iVX | Vertex array containing X coordinates of the points of the polygon. |
iVY | Vertex array containing Y coordinates of the points of the polygon. |
iNV | Number of points in the vertex array. From a minimum number of 3 up to 32. |
iR | The red color value. |
iG | The green color value. |
iB | The blue color value. |
iA | The alpha value. |
idRes | a valid screen or image handle. By default it tries to use the default screen. |
Sint32 CRM64Pro::GFX::RGBtoHSV | ( | Uint8 | iR, |
Uint8 | iG, | ||
Uint8 | iB, | ||
float * | fH, | ||
float * | fS, | ||
float * | fV | ||
) |
Color conversion from RGB to HSV.
iR | Red component. |
iG | Green component. |
iB | Blue component. |
fH | pointer to Hue component. |
fS | pointer to Saturation component. |
fV | pointer to Value component. |
Sint32 CRM64Pro::GFX::HSVtoRGB | ( | float | fH, |
float | fS, | ||
float | fV, | ||
Uint8 * | iR, | ||
Uint8 * | iG, | ||
Uint8 * | iB | ||
) |
Color conversion from HSV to RGB.
fH | Hue component. |
fS | Saturation component. |
fV | Value component. |
iR | pointer to Red component. |
iG | pointer to Green component. |
iB | pointer to Blue component. |
Sint32 CRM64Pro::GFX::RGBtoYUV | ( | Uint8 | iR, |
Uint8 | iG, | ||
Uint8 | iB, | ||
Uint8 * | iY, | ||
Uint8 * | iU, | ||
Uint8 * | iV | ||
) |
Color conversion from RGB to YUV.
iR | Red component. |
iG | Green component. |
iB | Blue component. |
iY | pointer to luma component. |
iU | pointer to chrominance U component. |
iV | pointer to chrominance V component. |
Sint32 CRM64Pro::GFX::YUVtoRGB | ( | Uint8 | iY, |
Uint8 | iU, | ||
Uint8 | iV, | ||
Uint8 * | iR, | ||
Uint8 * | iG, | ||
Uint8 * | iB | ||
) |
Color conversion from YUV to RGB.
iY | luma component. |
iU | chrominance U component. |
iV | chrominance V component. |
iR | pointer to Red component. |
iG | pointer to Green component. |
iB | pointer to Blue component. |
Sint32 CRM64Pro::GFX::RGBtoCMYK | ( | Uint8 | iR, |
Uint8 | iG, | ||
Uint8 | iB, | ||
Uint8 * | iC, | ||
Uint8 * | iM, | ||
Uint8 * | iY, | ||
Uint8 * | iK | ||
) |
Color conversion from RGB to CMYK.
iR | Red component. |
iG | Green component. |
iB | Blue component. |
iC | pointer to cyan component. |
iM | pointer to magenta component. |
iY | pointer to yellow component. |
iK | pointer to key(black) component. |
Sint32 CRM64Pro::GFX::CMYKtoRGB | ( | Uint8 | iC, |
Uint8 | iM, | ||
Uint8 | iY, | ||
Uint8 | iK, | ||
Uint8 * | iR, | ||
Uint8 * | iG, | ||
Uint8 * | iB | ||
) |
Color conversion from CMYK to RGB.
iC | cyan component. |
iM | magenta component. |
iY | yellow component. |
iK | key(black) component. |
iR | pointer to Red component. |
iG | pointer to Green component. |
iB | pointer to Blue component. |
Sint32 CRM64Pro::GFX::RGBtoYCC | ( | Uint8 | iR, |
Uint8 | iG, | ||
Uint8 | iB, | ||
Uint8 * | iY, | ||
Uint8 * | Cb, | ||
Uint8 * | Cr | ||
) |
Color conversion from RGB to YCC.
iR | Red component. |
iG | Green component. |
iB | Blue component. |
iY | pointer to luma component. |
Cb | pointer to chrominance blue component. |
Cr | pointer to chrominance red component. |
Sint32 CRM64Pro::GFX::YCCtoRGB | ( | Uint8 | iY, |
Uint8 | Cb, | ||
Uint8 | Cr, | ||
Uint8 * | iR, | ||
Uint8 * | iG, | ||
Uint8 * | iB | ||
) |
Color conversion from YCC to RGB.
iY | luma component. |
Cb | chrominance blue component. |
Cr | chrominance red component. |
iR | pointer to Red component. |
iG | pointer to Green component. |
iB | pointer to Blue component. |