From 6f2c9ea3e13248d146816910369983c5265bc968 Mon Sep 17 00:00:00 2001 From: Ray Molenkamp Date: Tue, 26 Jun 2018 15:17:31 -0600 Subject: bf_gpu: Add GPU_state module. This has wrappers for the most common gl* functions in the codebase, and is in preparation for D3502 Reviewers: brecht, fclem Differential Revision: https://developer.blender.org/D3501 --- source/blender/gpu/GPU_framebuffer.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/gpu/GPU_framebuffer.h') diff --git a/source/blender/gpu/GPU_framebuffer.h b/source/blender/gpu/GPU_framebuffer.h index 61dd899f3d9..084ee4c0459 100644 --- a/source/blender/gpu/GPU_framebuffer.h +++ b/source/blender/gpu/GPU_framebuffer.h @@ -194,6 +194,9 @@ void GPU_offscreen_viewport_data_get( GPUOffScreen *ofs, GPUFrameBuffer **r_fb, struct GPUTexture **r_color, struct GPUTexture **r_depth); +void GPU_clear_color(float red, float green, float blue, float alpha); +void GPU_clear(GPUFrameBufferBits flags); + #ifdef __cplusplus } #endif -- cgit v1.2.3