|
@@ -1,7 +1,7 @@
|
1
|
1
|
/* -*- Mode: C++; tab-width: 3; indent-tabs-mode: t; c-basic-offset: 3 -*- */
|
2
|
2
|
/*==========================================================================
|
3
|
3
|
*
|
4
|
|
- * Project : MTK, Freyja, OpenRaider
|
|
4
|
+ * Project : Freyja, OpenRaider
|
5
|
5
|
* Author : Terry 'Mongoose' Hendrix II
|
6
|
6
|
* Website : http://www.westga.edu/~stu7440
|
7
|
7
|
* Email : stu7440@westga.edu
|
|
@@ -37,12 +37,12 @@
|
37
|
37
|
#include <memory_test.h>
|
38
|
38
|
#endif
|
39
|
39
|
|
40
|
|
-#ifdef USING_MTK_TGA
|
41
|
|
-#include <mtk_tga.h>
|
|
40
|
+#ifdef USING_TGA
|
|
41
|
+#include <tga.h>
|
42
|
42
|
#endif
|
43
|
43
|
|
44
|
|
-#ifdef USING_MTK_PNG
|
45
|
|
-#include <mtk_png.h>
|
|
44
|
+#ifdef USING_PNG
|
|
45
|
+#include <png.h>
|
46
|
46
|
#endif
|
47
|
47
|
|
48
|
48
|
#ifdef HAVE_SDL_TTF
|
|
@@ -831,7 +831,7 @@ void Texture::bindTextureId(unsigned int n)
|
831
|
831
|
|
832
|
832
|
void Texture::glScreenShot(char *base, unsigned int width, unsigned int height)
|
833
|
833
|
{
|
834
|
|
-#ifdef USING_MTK_PNG
|
|
834
|
+#ifdef USING_PNG
|
835
|
835
|
FILE *f;
|
836
|
836
|
int sz = width*height;
|
837
|
837
|
unsigned char *image = new unsigned char[sz*3];
|
|
@@ -1002,7 +1002,7 @@ void Texture::glScreenShot(char *base, unsigned int width, unsigned int height)
|
1002
|
1002
|
|
1003
|
1003
|
int Texture::loadPNG(const char *filename)
|
1004
|
1004
|
{
|
1005
|
|
-#ifdef USING_MTK_PNG
|
|
1005
|
+#ifdef USING_PNG
|
1006
|
1006
|
FILE *f;
|
1007
|
1007
|
unsigned char *image = NULL;
|
1008
|
1008
|
unsigned char *image2 = NULL;
|
|
@@ -1053,7 +1053,7 @@ int Texture::loadPNG(const char *filename)
|
1053
|
1053
|
|
1054
|
1054
|
return id;
|
1055
|
1055
|
#else
|
1056
|
|
- printf("ERROR: MTK PNG support not enabled in this build\n");
|
|
1056
|
+ printf("ERROR: PNG support not enabled in this build\n");
|
1057
|
1057
|
return -1;
|
1058
|
1058
|
#endif
|
1059
|
1059
|
}
|
|
@@ -1061,7 +1061,7 @@ int Texture::loadPNG(const char *filename)
|
1061
|
1061
|
|
1062
|
1062
|
int Texture::loadTGA(const char *filename)
|
1063
|
1063
|
{
|
1064
|
|
-#ifdef USING_MTK_TGA
|
|
1064
|
+#ifdef USING_TGA
|
1065
|
1065
|
FILE *f;
|
1066
|
1066
|
unsigned char *image = NULL;
|
1067
|
1067
|
unsigned char *image2 = NULL;
|
|
@@ -1109,7 +1109,7 @@ int Texture::loadTGA(const char *filename)
|
1109
|
1109
|
|
1110
|
1110
|
return id;
|
1111
|
1111
|
#else
|
1112
|
|
- printf("ERROR: MTK TGA support not enabled in this build\n");
|
|
1112
|
+ printf("ERROR: TGA support not enabled in this build\n");
|
1113
|
1113
|
return -1;
|
1114
|
1114
|
#endif
|
1115
|
1115
|
}
|