mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +00:00
Get the lightmap texture properly.
This commit is contained in:
parent
ef311b60d6
commit
754dda92ff
4 changed files with 14 additions and 0 deletions
|
@ -42,5 +42,6 @@ void gl_lightmap_init (void);
|
|||
void R_BuildLightmaps (struct model_s **models, int num_models);
|
||||
void R_CalcLightmaps (void);
|
||||
extern void (*R_BuildLightMap) (msurface_t *surf);
|
||||
int R_LightmapTexture (void);
|
||||
|
||||
#endif//__QF_GLSL_lightmap_h
|
||||
|
|
|
@ -52,6 +52,7 @@ void GL_TextureInit (void);
|
|||
|
||||
scrap_t *GL_CreateScrap (int size, int format);
|
||||
void GL_DestroyScrap (scrap_t *scrap);
|
||||
int GL_ScrapTexture (scrap_t *scrap);
|
||||
subpic_t *GL_ScrapSubpic (scrap_t *scrap, int width, int height); //XXX slow!
|
||||
void GL_SubpicDelete (subpic_t *subpic); //XXX slow!
|
||||
void GL_SubpicUpdate (subpic_t *subpic, byte *data);
|
||||
|
|
|
@ -238,3 +238,9 @@ R_BuildLightmaps (model_t **models, int num_models)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
R_LightmapTexture (void)
|
||||
{
|
||||
return GL_ScrapTexture (light_scrap);
|
||||
}
|
||||
|
|
|
@ -311,6 +311,12 @@ GL_DestroyScrap (scrap_t *scrap)
|
|||
free (scrap);
|
||||
}
|
||||
|
||||
int
|
||||
GL_ScrapTexture (scrap_t *scrap)
|
||||
{
|
||||
return scrap->tnum;
|
||||
}
|
||||
|
||||
subpic_t *
|
||||
GL_ScrapSubpic (scrap_t *scrap, int width, int height)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue