gl bmodel fullbrights implemented. I hope. I'll find out for sure when I get

home.
This commit is contained in:
Bill Currie 2000-09-20 23:06:26 +00:00
parent 96aba78186
commit ddef594b2e
7 changed files with 74 additions and 8 deletions

View file

@ -38,6 +38,8 @@
#include "quakefs.h"
#include "glquake.h"
int Mod_Fullbright(byte *skin, int width, int height, char *name);
extern model_t *loadmodel;
extern char loadname[];
@ -48,7 +50,11 @@ const int mod_lightmap_bytes=3;
void
Mod_ProcessTexture(miptex_t *mt, texture_t *tx)
{
char name[32];
texture_mode = GL_LINEAR_MIPMAP_NEAREST; //_LINEAR;
snprintf (name, sizeof(name), "fb_%s", mt->name);
tx->gl_fb_texturenum = Mod_Fullbright ((byte *)(tx+1), tx->width, tx->height, name);
tx->gl_texturenum = GL_LoadTexture (mt->name, tx->width, tx->height, (byte *)(tx+1), true, false, 1);
texture_mode = GL_LINEAR;
}