2009-07-31 15:38:12 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2009, Haiku Inc. All rights reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Alexandre Deckner <alex@zappotek.com>
|
|
|
|
*/
|
|
|
|
#ifndef _TEXTURE_H
|
|
|
|
#define _TEXTURE_H
|
|
|
|
|
|
|
|
#include <Referenceable.h>
|
|
|
|
|
|
|
|
#include <opengl/GL/gl.h>
|
|
|
|
|
|
|
|
|
2009-11-04 16:50:01 +00:00
|
|
|
class Texture : public BReferenceable {
|
2009-07-31 15:38:12 +00:00
|
|
|
public:
|
|
|
|
Texture();
|
|
|
|
virtual ~Texture();
|
|
|
|
|
2009-11-05 09:37:45 +00:00
|
|
|
GLuint Id();
|
2009-07-31 15:38:12 +00:00
|
|
|
|
2009-08-03 10:55:13 +00:00
|
|
|
virtual void Update(float dt);
|
2009-07-31 15:38:12 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
GLuint fId;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* _TEXTURE_H */
|