00001
00002 /*00003
00004 /*00005 * Copyright (c) 2005 Institute for Visualization and Interactive00006 * Systems, University of Stuttgart, Germany00007 *00008 * This source code is distributed as part of the single-pass volume00009 * rendering project. Details about this project can be found on the00010 * project web page at http://www.vis.uni-stuttgart.de/eng/research/00011 * fields/current/spvolren. This file may be distributed, modified,00012 * and used free of charge as long as this copyright notice is00013 * included in its original form. Commercial use is strictly00014 * prohibited.00015 *00016 * Filename: texture.h00017 * 00018 */00019
00020 #ifndef TEXTURE_H00021 #define TEXTURE_H00022
00023 #include <GL/gl.h>00024
00026typedefstruct {
00028char name[256];
00030 GLuint id;
00032 GLenum target;
00033 } Texture;
00034
00036typedefstruct {
00037 GLuint texUnit;
00038Texturetexture;
00039 } TextureObject;
00040
00042 voidtexActivate(int numTextureObjects, TextureObject *textureObjects);
00044 voidtexDeactivate(int numTextureObjects, TextureObject *textureObjects);
00045
00046 #endif