engine/video_layer.c
/*	TODO:
		Modify this so it works as a replacement for TexMgr_SetFilterModes.
*/
Modify this so it works as a replacement for TexMgr_SetFilterModes.
Modify this so it works as a replacement for TexMgr_SetFilterModes .
void VideoLayer_SetTextureFilter(VideoTextureFilter_t FilterMode)
{
	VIDEO_FUNCTION_START
	unsigned int SetFilter = 0;
	switch (FilterMode)
	{
	case VIDEO_TEXTURE_FILTER_LINEAR:
		SetFilter = GL_LINEAR;
		break;
	case VIDEO_TEXTURE_FILTER_NEAREST:
		SetFilter = GL_NEAREST;
		break;
	default:
		Sys_Error("Unknown texture filter type! (%i)\n", FilterMode);
	}
	glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, SetFilter);
	glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, SetFilter);
	VIDEO_FUNCTION_END
}
void VideoLayer_SetTextureFilter ( VideoTextureFilter_t FilterMode ) { VIDEO_FUNCTION_START unsigned int SetFilter = 0 ; switch ( FilterMode ) { case VIDEO_TEXTURE_FILTER_LINEAR : SetFilter = GL_LINEAR ; break ; case VIDEO_TEXTURE_FILTER_NEAREST : SetFilter = GL_NEAREST ; break ; default : Sys_Error ( " \n " , FilterMode ) ; } glTexParameteri ( GL_TEXTURE_2D , GL_TEXTURE_MIN_FILTER , SetFilter ) ; glTexParameteri ( GL_TEXTURE_2D , GL_TEXTURE_MAG_FILTER , SetFilter ) ; VIDEO_FUNCTION_END }
TODO:
Modify this so it works as a replacement for TexMgr_SetFilterModes.
TODO : Modify this so it works as a replacement for TexMgr_SetFilterModes .