CRM64Pro GDK v0.11.0
A free cross-platform game development kit built on top of SDL 3.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
CRM64Pro::GFX

GFX class. More...

Inherits CRM64Pro::Base.

Public Member Functions

Sint32 info (Sint32 iMode=0)
 Request GFX Interface information.
 
Sint32 setSurfacePixel (Sint32 iX, Sint32 iY, Uint32 iColor, SDL_Surface *pSurf)
 Draw a pixel in a surface.
 
Uint32 getSurfacePixel (Sint32 iX, Sint32 iY, SDL_Surface *pSurf)
 Get a pixel color from a surface.
 
Sint32 setPixel (Sint32 iX, Sint32 iY, Uint32 iColor, Sint32 idRes=0)
 Draw a pixel.
 
Sint32 setPixel (Sint32 iX, Sint32 iY, Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, Sint32 idRes=0)
 Draw a pixel.
 
Uint32 getPixel (Sint32 iX, Sint32 iY, Sint32 idRes=0)
 Get a pixel color.
 
Sint32 lineH (Sint32 iX1, Sint32 iX2, Sint32 iY, Uint32 iColor, Sint32 idRes=0)
 Draw a horizontal line.
 
Sint32 lineH (Sint32 iX1, Sint32 iX2, Sint32 iY, Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, Sint32 idRes=0)
 Draw a horizontal line.
 
Sint32 lineV (Sint32 iX, Sint32 iY1, Sint32 iY2, Uint32 iColor, Sint32 idRes=0)
 Draw a vertical line.
 
Sint32 lineV (Sint32 iX, Sint32 iY1, Sint32 iY2, Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, Sint32 idRes=0)
 Draw a vertical line.
 
Sint32 line (Sint32 iX1, Sint32 iY1, Sint32 iX2, Sint32 iY2, Uint32 iColor, Sint32 idRes=0)
 Draw a line.
 
Sint32 line (Sint32 iX1, Sint32 iY1, Sint32 iX2, Sint32 iY2, Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, Sint32 idRes=0)
 Draw a line.
 
Sint32 rect (Sint32 iX1, Sint32 iY1, Sint32 iX2, Sint32 iY2, Uint32 iColor, Sint32 idRes=0)
 Draw an outlined rectangle.
 
Sint32 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 rectFilled (Sint32 iX1, Sint32 iY1, Sint32 iX2, Sint32 iY2, Uint32 iColor, Sint32 idRes=0)
 Draw a filled rectangle.
 
Sint32 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 rectRound (Sint32 iX1, Sint32 iY1, Sint32 iX2, Sint32 iY2, Sint32 iRad, Uint32 iColor, Sint32 idRes=0)
 Draw a round outlined rectangle.
 
Sint32 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 rectFilledRound (Sint32 iX1, Sint32 iY1, Sint32 iX2, Sint32 iY2, Sint32 iRad, Uint32 iColor, Sint32 idRes=0)
 Draw a round filled rectangle.
 
Sint32 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 arc (Sint32 iX, Sint32 iY, Sint32 iRad, Sint32 iStart, Sint32 iEnd, Uint32 iColor, Sint32 idRes=0)
 Draw an arc.
 
Sint32 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 circle (Sint32 iX, Sint32 iY, Sint32 iRad, Uint32 iColor, Sint32 idRes=0)
 Draw an outlined circle.
 
Sint32 circle (Sint32 iX, Sint32 iY, Sint32 iRad, Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, Sint32 idRes=0)
 Draw an outlined circle.
 
Sint32 circleFilled (Sint32 iX, Sint32 iY, Sint32 iRad, Uint32 iColor, Sint32 idRes=0)
 Draw a filled circle.
 
Sint32 circleFilled (Sint32 iX, Sint32 iY, Sint32 iRad, Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, Sint32 idRes=0)
 Draw a filled circle.
 
Sint32 ellipse (Sint32 iX, Sint32 iY, Sint32 iRadX, Sint32 iRadY, Uint32 iColor, Sint32 idRes=0)
 Draw an outlined ellipse.
 
Sint32 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 ellipseFilled (Sint32 iX, Sint32 iY, Sint32 iRadX, Sint32 iRadY, Uint32 iColor, Sint32 idRes=0)
 Draw a filled ellipse.
 
Sint32 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 polygon (Sint32 *iVX, Sint32 *iVY, Sint32 iNV, Uint32 iColor, Sint32 idRes=0)
 Draw an outlined polygon.
 
Sint32 polygon (Sint32 *iVX, Sint32 *iVY, Sint32 iNV, Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, Sint32 idRes=0)
 Draw an outlined polygon.
 
Sint32 polygonFilled (Sint32 *iVX, Sint32 *iVY, Sint32 iNV, Uint32 iColor, Sint32 idRes=0)
 Draw a filled polygon.
 
Sint32 polygonFilled (Sint32 *iVX, Sint32 *iVY, 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.
 

Detailed Description

GFX class.