Lines Matching refs:smax
76 int smax, tmax; in R_AddDynamicLights() local
79 smax = (surf->extents[0]>>4)+1; in R_AddDynamicLights()
114 for (s=0 ; s<smax ; s++) in R_AddDynamicLights()
124 blocklights[t*smax + s] += (int)((rad - dist)*256); in R_AddDynamicLights()
140 int smax, tmax; in R_BuildLightMap() local
151 smax = (surf->extents[0]>>4)+1; in R_BuildLightMap()
153 size = smax*tmax; in R_BuildLightMap()
189 stride -= (smax<<2); in R_BuildLightMap()
193 for (j=0 ; j<smax ; j++) in R_BuildLightMap()
210 for (j=0 ; j<smax ; j++) in R_BuildLightMap()
860 int smax, tmax; in R_RenderBrushPoly() local
913 smax = (fa->extents[0]>>4)+1; in R_RenderBrushPoly()
915 if ((theRect->w + theRect->l) < (fa->light_s + smax)) in R_RenderBrushPoly()
916 theRect->w = (fa->light_s-theRect->l)+smax; in R_RenderBrushPoly()
938 int smax, tmax; in R_RenderDynamicLightmaps() local
972 smax = (fa->extents[0]>>4)+1; in R_RenderDynamicLightmaps()
974 if ((theRect->w + theRect->l) < (fa->light_s + smax)) in R_RenderDynamicLightmaps()
975 theRect->w = (fa->light_s-theRect->l)+smax; in R_RenderDynamicLightmaps()
1675 int smax, tmax, s, t, l, i; in GL_CreateSurfaceLightmap() local
1681 smax = (surf->extents[0]>>4)+1; in GL_CreateSurfaceLightmap()
1684 surf->lightmaptexturenum = AllocBlock (smax, tmax, &surf->light_s, &surf->light_t); in GL_CreateSurfaceLightmap()