git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2422
d7cf8633-e32d-0410-b094-
e92efae38249
void *GL_GetProcAddress(const char *name);
int GL_CheckExtension(const char *name, const gl_extensionfunctionlist_t *funcs, const char *disableparm, int silent);
-double VID_CompareMode(int width1, int height1, int bpp1, int width2, int height2, int bpp2);
-
void VID_InitCvars(void);
void GL_Init (void);
qglDrawRangeElements = qglDrawRangeElementsEXT;
}
-double VID_CompareMode(int width1, int height1, int bpp1, int width2, int height2, int bpp2)
-{
- double dw, dh, db;
- dw = ((width2 - width1) / 2048) * 16;
- dh = ((height2 - height1) / 1536) * 4;
- db = (bpp2 - bpp1) / 32;
- return dw * dw + dh * dh + db * db;
-}
-
void Force_CenterView_f (void)
{
cl.viewangles[PITCH] = 0;