diff options
author | Ray Molenkamp <github@lazydodo.com> | 2018-06-27 00:17:31 +0300 |
---|---|---|
committer | Ray Molenkamp <github@lazydodo.com> | 2018-06-27 00:17:31 +0300 |
commit | 6f2c9ea3e13248d146816910369983c5265bc968 (patch) | |
tree | 32b779874f8116663534ab8a6602f8f139bd6360 /source/blender/gpu/GPU_framebuffer.h | |
parent | a61480c27103fbf449fd14ea8061b65c29f19eae (diff) |
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
Diffstat (limited to 'source/blender/gpu/GPU_framebuffer.h')
-rw-r--r-- | source/blender/gpu/GPU_framebuffer.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 |