cImage Surface

This commit is contained in:
2018-06-30 02:33:48 -04:00
parent 269cbf8604
commit 93a6e9ccad
14 changed files with 120 additions and 36 deletions
@@ -197,11 +197,21 @@ const unsigned long int cVideo::getHeight() const
return m_height;
}
const unsigned long int cVideo::getColour() const
const unsigned long int cVideo::getColourDepth() const
{
return m_colour;
}
const unsigned long int cVideo::getPitch() const
{
unsigned long int rtn = 0;
if (cVideo::getColourDepth() == 32)
rtn = 4; // 4 bytes per pixel
else
rtn = 3;
return rtn;
}
const cString cVideo::getCaption() const
{
cString rtn = "";