X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;ds=sidebyside;f=src%2F3dengfx%2Fsrc%2F3dengfx%2Ftexman.hpp;fp=src%2F3dengfx%2Fsrc%2F3dengfx%2Ftexman.hpp;h=6a41a770cccdde43d27c5715ae9fb6dcbd42d010;hb=6e23259dbabaeb1711a2a5ca25b9cb421f693759;hp=0000000000000000000000000000000000000000;hpb=fe068fa879814784c45e0cb2e65dac489e8f5594;p=summerhack diff --git a/src/3dengfx/src/3dengfx/texman.hpp b/src/3dengfx/src/3dengfx/texman.hpp new file mode 100644 index 0000000..6a41a77 --- /dev/null +++ b/src/3dengfx/src/3dengfx/texman.hpp @@ -0,0 +1,47 @@ +/* +This file is part of 3dengfx, realtime visualization system. +Copyright (C) 2004, 2005, 2006 John Tsiombikas + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _TEXMAN_HPP_ +#define _TEXMAN_HPP_ + +#include "textures.hpp" + +void add_texture(Texture *texture, const char *fname = 0); +void remove_texture(Texture *texture); +Texture *find_texture(const char *fname); + +Texture *get_texture(const char *fname); +void destroy_textures(); + + +enum CubeMapIndex { + CUBE_MAP_INDEX_PX, + CUBE_MAP_INDEX_NX, + CUBE_MAP_INDEX_PY, + CUBE_MAP_INDEX_NY, + CUBE_MAP_INDEX_PZ, + CUBE_MAP_INDEX_NZ +}; + +Texture *make_cube_map(Texture **tex_array); +Texture *get_normal_cube(); + +bool is_cubemap(const char *fname); +Texture *load_cubemap(const char *fname); + +#endif // _TEXMAN_HPP_