CRM64Pro GDK v0.13.0
A free cross-platform game development kit built on top of SDL 3.0
Loading...
Searching...
No Matches
CRM64Pro::GFX

GFX class. More...

Detailed Description

GFX class.

Public Member Functions

Sint32 info (Sint32 iMode=0)
 Request GFX Interface information.
Sint32 setSurfacePixel (float fX, float fY, Uint32 iColor, SDL_Surface *pSurf)
 Draw a pixel in a surface.
Uint32 getSurfacePixel (float fX, float fY, SDL_Surface *pSurf)
 Get a pixel color from a surface.
Sint32 setPixel (float fX, float fY, Uint32 iColor, Sint32 idRes=0)
 Draw a pixel.
Sint32 setPixel (float fX, float fY, Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, Sint32 idRes=0)
 Draw a pixel.
Uint32 getPixel (float fX, float fY, Sint32 idRes=0)
 Get a pixel color.
Sint32 lineH (float fX1, float fX2, float fY, Uint32 iColor, Sint32 idRes=0)
 Draw a horizontal line.
Sint32 lineH (float fX1, float fX2, float fY, Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, Sint32 idRes=0)
 Draw a horizontal line.
Sint32 lineV (float fX, float fY1, float fY2, Uint32 iColor, Sint32 idRes=0)
 Draw a vertical line.
Sint32 lineV (float fX, float fY1, float fY2, Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, Sint32 idRes=0)
 Draw a vertical line.
Sint32 line (float fX1, float fY1, float fX2, float fY2, Uint32 iColor, Sint32 idRes=0)
 Draw a line.
Sint32 line (float fX1, float fY1, float fX2, float fY2, Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, Sint32 idRes=0)
 Draw a line.
Sint32 rect (float fX1, float fY1, float fX2, float fY2, Uint32 iColor, Sint32 idRes=0)
 Draw an outlined rectangle.
Sint32 rect (float fX1, float fY1, float fX2, float fY2, Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, Sint32 idRes=0)
 Draw an outlined rectangle.
Sint32 rectFilled (float fX1, float fY1, float fX2, float fY2, Uint32 iColor, Sint32 idRes=0)
 Draw a filled rectangle.
Sint32 rectFilled (float fX1, float fY1, float fX2, float fY2, Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, Sint32 idRes=0)
 Draw a filled rectangle.
Sint32 rectRound (float fX1, float fY1, float fX2, float fY2, float fRad, Uint32 iColor, Sint32 idRes=0)
 Draw a round outlined rectangle.
Sint32 rectRound (float fX1, float fY1, float fX2, float fY2, float fRad, Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, Sint32 idRes=0)
 Draw a round outlined rectangle.
Sint32 rectFilledRound (float fX1, float fY1, float fX2, float fY2, float fRad, Uint32 iColor, Sint32 idRes=0)
 Draw a round filled rectangle.
Sint32 rectFilledRound (float fX1, float fY1, float fX2, float fY2, float fRad, Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, Sint32 idRes=0)
 Draw a round filled rectangle.
Sint32 arc (float fX, float fY, float fRad, float fStart, float fEnd, Uint32 iColor, Sint32 idRes=0)
 Draw an arc.
Sint32 arc (float fX, float fY, float fRad, float fStart, float fEnd, Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, Sint32 idRes=0)
 Draw an arc.
Sint32 circle (float fX, float fY, float fRad, Uint32 iColor, Sint32 idRes=0)
 Draw an outlined circle.
Sint32 circle (float fX, float fY, float fRad, Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, Sint32 idRes=0)
 Draw an outlined circle.
Sint32 circleFilled (float fX, float fY, float fRad, Uint32 iColor, Sint32 idRes=0)
 Draw a filled circle.
Sint32 circleFilled (float fX, float fY, float fRad, Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, Sint32 idRes=0)
 Draw a filled circle.
Sint32 ellipse (float fX, float fY, float fRadX, float fRadY, Uint32 iColor, Sint32 idRes=0)
 Draw an outlined ellipse.
Sint32 ellipse (float fX, float fY, float fRadX, float fRadY, Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, Sint32 idRes=0)
 Draw an outlined ellipse.
Sint32 ellipseFilled (float fX, float fY, float fRadX, float fRadY, Uint32 iColor, Sint32 idRes=0)
 Draw a filled ellipse.
Sint32 ellipseFilled (float fX, float fY, float fRadX, float fRadY, Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, Sint32 idRes=0)
 Draw a filled ellipse.
Sint32 polygon (float *fVX, float *fVY, Sint32 iNV, Uint32 iColor, Sint32 idRes=0)
 Draw an outlined polygon.
Sint32 polygon (float *fVX, float *fVY, Sint32 iNV, Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, Sint32 idRes=0)
 Draw an outlined polygon.
Sint32 polygonFilled (float *fVX, float *fVY, Sint32 iNV, Uint32 iColor, Sint32 idRes=0)
 Draw a filled polygon.
Sint32 polygonFilled (float *fVX, float *fVY, Sint32 iNV, Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, Sint32 idRes=0)
 Draw a filled polygon.
Sint32 RGBtoHSV (Uint8 iR, Uint8 iG, Uint8 iB, float *fH, float *fS, float *fV)
 Color conversion from RGB to HSV.
Sint32 HSVtoRGB (float fH, float fS, float fV, Uint8 *iR, Uint8 *iG, Uint8 *iB)
 Color conversion from HSV to RGB.
Sint32 RGBtoYUV (Uint8 iR, Uint8 iG, Uint8 iB, Uint8 *iY, Uint8 *iU, Uint8 *iV)
 Color conversion from RGB to YUV.
Sint32 YUVtoRGB (Uint8 iY, Uint8 iU, Uint8 iV, Uint8 *iR, Uint8 *iG, Uint8 *iB)
 Color conversion from YUV to RGB.
Sint32 RGBtoCMYK (Uint8 iR, Uint8 iG, Uint8 iB, Uint8 *iC, Uint8 *iM, Uint8 *iY, Uint8 *iK)
 Color conversion from RGB to CMYK.
Sint32 CMYKtoRGB (Uint8 iC, Uint8 iM, Uint8 iY, Uint8 iK, Uint8 *iR, Uint8 *iG, Uint8 *iB)
 Color conversion from CMYK to RGB.
Sint32 RGBtoYCC (Uint8 iR, Uint8 iG, Uint8 iB, Uint8 *iY, Uint8 *Cb, Uint8 *Cr)
 Color conversion from RGB to YCC.
Sint32 YCCtoRGB (Uint8 iY, Uint8 Cb, Uint8 Cr, Uint8 *iR, Uint8 *iG, Uint8 *iB)
 Color conversion from YCC to RGB.