continue implementing new graphics engine

* implement OpenGL ES 1.1 and OpenGL ES 2.0 support
* new framebuffer that can run on any opengl implementation
* fixes in outfit size rendering
This commit is contained in:
Eduardo Bart
2012-04-20 07:16:03 -03:00
parent 58d76e255d
commit f14706206a
25 changed files with 515 additions and 398 deletions

View File

@@ -32,7 +32,7 @@ public:
Texture(int width, int height, int channels, uchar* pixels = NULL);
virtual ~Texture();
void bind() { glBindTexture(GL_TEXTURE_2D, m_textureId); }
void bind();
/// Tries to generate mipmaps via hardware, otherwise fallback to software implementation
void generateMipmaps();
@@ -43,10 +43,8 @@ public:
/// Activate texture anti-aliasing giving a better look when they are resized
void setSmooth(bool smooth);
GLuint getId() { return m_textureId; }
/// Return actual texture pixels
std::vector<uint8> getPixels();
GLuint getId() { return m_textureId; }
int getWidth() { return m_size.width(); }
int getHeight() { return m_size.height(); }