[question] Enabling support for Highres TGA textures

Discuss programming in the QuakeC language.
Post Reply
marcelo_20xx
Posts: 10
Joined: Sat Nov 12, 2011 2:05 am

[question] Enabling support for Highres TGA textures

Post by marcelo_20xx »

I tried almost everything I know in the source to have this implemented but cannot make a tga display correctly scaled. I read the tutorials in the old tutorials page, but still nothing. I need help. So far the only part I got working is in gl_image.c:

Code: Select all

	

image_t	*GL_FindImage (char *name, imagetype_t type)

+	char	s[128];

// then jump to

// MrG's automatic TGA loading
	// search for TGAs to replace .pcx and .wal images
+	if (!strcmp(name+len-4, ".pcx") || !strcmp(name+len-4, ".wal"))
+	{
+		strcpy(s,name);
+		s[len-3]='t'; s[len-2]='g'; s[len-1]='a';
+		image = GL_FindImage(s,type);
+		if (image)
+			return image;	}
Nahuel
Posts: 495
Joined: Wed Jan 12, 2011 8:42 pm
Location: mar del plata

Re: [question] Enabling support for Highres TGA textures

Post by Nahuel »

you are in the wrong forum!!!
move this thread to "gl Programming" :)
hi, I am nahuel, I love quake and qc.
marcelo_20xx
Posts: 10
Joined: Sat Nov 12, 2011 2:05 am

Re: [question] Enabling support for Highres TGA textures

Post by marcelo_20xx »

Oh sorry! thanks for the reminder, and btw I already solved my problem with the tga textures, It was more complex than I initially though it would. Lots of code changes but in the end I could add high res support for my engine.
Post Reply