Cleanup: Remove BIF_gl.h
BIF_gl.h included hacks like redefining glew functions and a constant. The named constant `GLA_PIXEL_OFS` has been moved to `GPU_viewport.h` Reviewed By: brecht Differential Revision: https://developer.blender.org/D5860
This commit is contained in:
parent
83d3a7c12d
commit
73fa066e8b
|
@ -22,8 +22,6 @@
|
|||
|
||||
#include "workbench_private.h"
|
||||
|
||||
#include "BIF_gl.h"
|
||||
|
||||
#include "BLI_alloca.h"
|
||||
#include "BLI_dynstr.h"
|
||||
#include "BLI_string_utils.h"
|
||||
|
|
|
@ -22,8 +22,6 @@
|
|||
|
||||
#include "workbench_private.h"
|
||||
|
||||
#include "BIF_gl.h"
|
||||
|
||||
#include "BKE_image.h"
|
||||
#include "BKE_node.h"
|
||||
|
||||
|
|
|
@ -23,8 +23,6 @@
|
|||
#include "DRW_engine.h"
|
||||
#include "DRW_render.h"
|
||||
|
||||
#include "BIF_gl.h"
|
||||
|
||||
#include "BKE_node.h"
|
||||
|
||||
#include "BLI_string_utils.h"
|
||||
|
|
|
@ -1,44 +0,0 @@
|
|||
/*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*
|
||||
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
|
||||
* All rights reserved.
|
||||
* os dependent include locations of gl.h
|
||||
*/
|
||||
|
||||
/** \file
|
||||
* \ingroup editorui
|
||||
*/
|
||||
|
||||
#ifndef __BIF_GL_H__
|
||||
#define __BIF_GL_H__
|
||||
|
||||
#include "GPU_glew.h"
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
/* hacking pointsize and linewidth */
|
||||
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)
|
||||
# define glPointSize(f) \
|
||||
glPointSize(U.pixelsize *_Generic((f), double : (float)(f), default : (f)))
|
||||
# define glLineWidth(f) \
|
||||
glLineWidth(U.pixelsize *_Generic((f), double : (float)(f), default : (f)))
|
||||
#else
|
||||
# define glPointSize(f) glPointSize(U.pixelsize *(f))
|
||||
# define glLineWidth(f) glLineWidth(U.pixelsize *(f))
|
||||
#endif /* C11 */
|
||||
|
||||
#define GLA_PIXEL_OFS 0.375f
|
||||
|
||||
#endif /* #ifdef __BIF_GL_H__ */
|
|
@ -39,7 +39,7 @@
|
|||
|
||||
#include "RNA_access.h"
|
||||
|
||||
#include "BIF_gl.h"
|
||||
#include "GPU_glew.h"
|
||||
|
||||
#include "UI_interface.h"
|
||||
|
||||
|
|
|
@ -36,8 +36,6 @@
|
|||
#include "BKE_global.h"
|
||||
#include "BKE_mesh.h"
|
||||
|
||||
#include "BIF_gl.h"
|
||||
|
||||
#include "ED_mesh.h"
|
||||
#include "ED_screen.h"
|
||||
#include "ED_select_utils.h"
|
||||
|
|
|
@ -80,10 +80,10 @@
|
|||
#include "IMB_imbuf_types.h"
|
||||
#include "IMB_thumbs.h"
|
||||
|
||||
#include "BIF_gl.h"
|
||||
#include "BIF_glutil.h"
|
||||
|
||||
#include "GPU_shader.h"
|
||||
#include "GPU_glew.h"
|
||||
|
||||
#include "RE_pipeline.h"
|
||||
#include "RE_engine.h"
|
||||
|
|
|
@ -44,7 +44,6 @@ set(SRC
|
|||
select_utils.c
|
||||
|
||||
# general includes
|
||||
../include/BIF_gl.h
|
||||
../include/BIF_glutil.h
|
||||
../include/ED_anim_api.h
|
||||
../include/ED_armature.h
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
#include "GPU_texture.h"
|
||||
|
||||
#define GPU_INFO_SIZE 512 /* IMA_MAX_RENDER_TEXT */
|
||||
#define GLA_PIXEL_OFS 0.375f
|
||||
|
||||
typedef struct GPUViewport GPUViewport;
|
||||
|
||||
|
|
|
@ -29,8 +29,6 @@
|
|||
#include "BLI_rect.h"
|
||||
#include "BLI_memblock.h"
|
||||
|
||||
#include "BIF_gl.h"
|
||||
|
||||
#include "DNA_vec_types.h"
|
||||
#include "DNA_userdef_types.h"
|
||||
|
||||
|
|
|
@ -31,8 +31,6 @@
|
|||
#include "BLI_utildefines.h"
|
||||
#include "BLI_path_util.h"
|
||||
|
||||
#include "BIF_gl.h"
|
||||
|
||||
#include "RNA_define.h"
|
||||
#include "RNA_enum_types.h"
|
||||
|
||||
|
@ -52,6 +50,8 @@
|
|||
# include "DNA_image_types.h"
|
||||
# include "DNA_scene_types.h"
|
||||
|
||||
# include "GPU_glew.h"
|
||||
|
||||
# include "MEM_guardedalloc.h"
|
||||
|
||||
static void rna_ImagePackedFile_save(ImagePackedFile *imapf, Main *bmain, ReportList *reports)
|
||||
|
|
|
@ -34,14 +34,15 @@
|
|||
|
||||
#include "BLI_blenlib.h"
|
||||
|
||||
#include "BIF_gl.h"
|
||||
#include "BIF_glutil.h"
|
||||
|
||||
#include "BKE_context.h"
|
||||
#include "BKE_idcode.h"
|
||||
|
||||
#include "GPU_glew.h"
|
||||
#include "GPU_shader.h"
|
||||
#include "GPU_state.h"
|
||||
#include "GPU_viewport.h"
|
||||
|
||||
#include "IMB_imbuf_types.h"
|
||||
|
||||
|
|
|
@ -39,8 +39,6 @@
|
|||
#include "BLI_blenlib.h"
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "BIF_gl.h"
|
||||
|
||||
#include "BKE_context.h"
|
||||
#include "BKE_image.h"
|
||||
#include "BKE_main.h"
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "BIF_gl.h"
|
||||
|
||||
#include "BKE_context.h"
|
||||
#include "BKE_global.h"
|
||||
#include "BKE_report.h"
|
||||
|
@ -44,6 +42,7 @@
|
|||
|
||||
#include "GPU_immediate.h"
|
||||
#include "GPU_texture.h"
|
||||
#include "GPU_viewport.h"
|
||||
|
||||
#include "WM_api.h"
|
||||
#include "WM_types.h"
|
||||
|
|
|
@ -29,9 +29,9 @@
|
|||
#include "DNA_screen_types.h"
|
||||
#include "DNA_windowmanager_types.h"
|
||||
|
||||
#include "BIF_gl.h"
|
||||
|
||||
#include "GPU_glew.h"
|
||||
#include "GPU_matrix.h"
|
||||
#include "GPU_viewport.h"
|
||||
|
||||
#include "WM_api.h"
|
||||
|
||||
|
|
Loading…
Reference in New Issue