|
#ifndef _IMAGEGL_H_INCLUDED_
#define _IMAGEGL_H_INCLUDED_
class ImageGL
{
public:
ImageGL();
virtual ~ImageGL();
void Release();
void SetTexture();
void Render();
void SetFilter();
GLuint GetTextureID() const
{
return m_textureID;
}
int GetHeight() const
{
return m_height;
}
int GetWidth() const
{
return m_width;
}
int GetPixels() const
{
return m_width*m_height;
}
virtual void Load(const string& nameImage) = 0;
bool IsLoaded() const
{
return m_textureID > 0;
}
const string& GetName() const
{
return m_name;
}
protected:
int m_width;
int m_height;
unsigned int m_textureID;
int m_minFilter;
string m_name;
};
#endif // _IMAGEGL_H_INCLUDED_
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
After working in the software industry for many years, I've started my own
games company that specialises in strategy games for mobile platforms.