www.pudn.com > 3dterrain.zip > load_texture.h
#ifndef _LOAD_TEXTURE_H #define _LOAD_TEXTURE_H #include "init.h" #include "jpeglib.h" /* GL_SGIS_texture_edge_clamp */ #define GL_CLAMP_TO_EDGE_SGIS 0x812F int LoadTexture(char *texture_name,GLuint *texture, int repeat = 0); // nacitava podla pripony int LoadGLTexture_JPG(char *texture_name,GLuint *texture, int repeat = 0); // *.jpg int LoadGLTexture_BMP(char *texture_name,GLuint *texture, int repeat = 0); // *.bmp #endif