diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-08-16 21:56:39 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-08-18 22:30:10 +0300 |
commit | f30df15edc0b5bfce98809cfa8c2ca96cfe03e97 (patch) | |
tree | 3b5fb309ed8a39e64a576cc6631d2866ca5318ac /source/blender/gpu/GPU_state.h | |
parent | 298329554a5a0ae40bc4a64ca9c1490d22edc947 (diff) |
GPUState: Make use of GPUStateStack class
This isolate most GL calls to the GL backend. Still a few remains.
Diffstat (limited to 'source/blender/gpu/GPU_state.h')
-rw-r--r-- | source/blender/gpu/GPU_state.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/gpu/GPU_state.h b/source/blender/gpu/GPU_state.h index 0aeb4df8b77..39b52567a46 100644 --- a/source/blender/gpu/GPU_state.h +++ b/source/blender/gpu/GPU_state.h @@ -20,6 +20,8 @@ #pragma once +#include "BLI_utildefines.h" + #ifdef __cplusplus extern "C" { #endif @@ -33,6 +35,8 @@ typedef enum eGPUWriteMask { GPU_WRITE_COLOR = (GPU_WRITE_RED | GPU_WRITE_GREEN | GPU_WRITE_BLUE | GPU_WRITE_ALPHA), } eGPUWriteMask; +ENUM_OPERATORS(eGPUWriteMask) + /** * Defines the fixed pipeline blending equation. * SRC is the output color from the shader. @@ -126,7 +130,6 @@ void GPU_viewport_size_get_i(int coords[4]); void GPU_color_mask(bool r, bool g, bool b, bool a); void GPU_depth_mask(bool depth); bool GPU_depth_mask_get(void); -void GPU_stencil_mask(uint stencil); void GPU_unpack_row_length_set(uint len); void GPU_clip_distances(int enabled_len); bool GPU_mipmap_enabled(void); |