From 8dfc31f61fac5a6301d6bfb17eda74ea4fffe384 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Fri, 17 Jul 2020 20:26:12 +0200 Subject: Cleanup: GPU: Encapsulate glProvokingVertex --- source/blender/gpu/GPU_state.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/blender/gpu/GPU_state.h') diff --git a/source/blender/gpu/GPU_state.h b/source/blender/gpu/GPU_state.h index c9f745a680d..0f0a8a5dd6e 100644 --- a/source/blender/gpu/GPU_state.h +++ b/source/blender/gpu/GPU_state.h @@ -46,6 +46,11 @@ typedef enum eGPUFaceCull { GPU_CULL_BACK, } eGPUFaceCull; +typedef enum eGPUProvokingVertex { + GPU_VERTEX_FIRST = 0, + GPU_VERTEX_LAST, /* Default */ +} eGPUProvokingVertex; + /* Initialize * - sets the default Blender opengl state, if in doubt, check * the contents of this function @@ -60,6 +65,7 @@ void GPU_blend_set_func_separate(eGPUBlendFunction src_rgb, eGPUBlendFunction dst_alpha); void GPU_face_culling(eGPUFaceCull culling); void GPU_front_facing(bool invert); +void GPU_provoking_vertex(eGPUProvokingVertex vert); void GPU_depth_range(float near, float far); void GPU_depth_test(bool enable); bool GPU_depth_test_enabled(void); -- cgit v1.2.3