[question] Enabling support for Highres TGA textures
Moderator: InsideQC Admins
3 posts
• Page 1 of 1
[question] Enabling support for Highres TGA textures
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; }
- marcelo_20xx
- Posts: 10
- Joined: Sat Nov 12, 2011 2:05 am
Re: [question] Enabling support for Highres TGA textures
you are in the wrong forum!!!
move this thread to "gl Programming"
move this thread to "gl Programming"
hi, I am nahuel, I love quake and qc.
-

Nahuel - Posts: 492
- Joined: Wed Jan 12, 2011 8:42 pm
- Location: mar del plata
Re: [question] Enabling support for Highres TGA textures
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.
- marcelo_20xx
- Posts: 10
- Joined: Sat Nov 12, 2011 2:05 am
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest