HaikuDepot: notify work status from main window
[haiku.git] / src / apps / haiku3d / Texture.cpp
blob76b20575ca6fa430b72f8a91ece869be2fd40b06
1 /*
2 * Copyright 2008, Haiku Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Alexandre Deckner <alex@zappotek.com>
7 */
9 #include "Texture.h"
11 #include <GL/gl.h>
14 Texture::Texture()
16 fId(0)
21 Texture::~Texture()
23 if (glIsTexture(fId)) {
24 GLuint ids[1] = {fId};
25 glDeleteTextures(1, ids);
30 GLuint
31 Texture::Id()
33 return fId;
37 void
38 Texture::Update(float dt)