cButton Texture Generate
This commit is contained in:
@@ -13,16 +13,16 @@ cImage::cImage( const bool transparent /*= false*/, const unsigned char red /*=
|
||||
m_transRed(red), m_transBlue(blue), m_transGreen(green), m_transLevel(translevel), m_isSurface(isSurface)
|
||||
{}
|
||||
|
||||
cImage::cImage( SDL_Surface* surface )
|
||||
cImage::cImage(SDL_Surface* surface)
|
||||
: mp_texture(nullptr), mp_surface(nullptr), m_transparent(false),
|
||||
m_transRed(0), m_transBlue(0), m_transGreen(255), m_transLevel(255)
|
||||
m_transRed(0), m_transBlue(0), m_transGreen(255), m_transLevel(255), m_isSurface(true)
|
||||
{
|
||||
setImage(surface);
|
||||
}
|
||||
|
||||
cImage::cImage( SDL_Texture* texture )
|
||||
cImage::cImage(SDL_Texture* texture)
|
||||
: mp_texture(nullptr), mp_surface(nullptr), m_transparent(false),
|
||||
m_transRed(0), m_transBlue(0), m_transGreen(255), m_transLevel(255)
|
||||
m_transRed(0), m_transBlue(0), m_transGreen(255), m_transLevel(255), m_isSurface(false)
|
||||
{
|
||||
setImage(texture);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user