diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-07-02 19:27:05 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-07-02 19:27:05 +0300 |
commit | 9f80429ab6a83a37ad94cbeee7f6ede4dec84f1a (patch) | |
tree | c11aa3a1db4c77256483aa9c2a5c5d571de6d1dc /source/blender/gpu | |
parent | c2814f5b28235f8cd621ea9dc965b37c97801d76 (diff) |
Cleanup: use _f, _i suffix for GPU state API
Diffstat (limited to 'source/blender/gpu')
-rw-r--r-- | source/blender/gpu/GPU_state.h | 12 | ||||
-rw-r--r-- | source/blender/gpu/intern/gpu_state.c | 8 |
2 files changed, 11 insertions, 9 deletions
diff --git a/source/blender/gpu/GPU_state.h b/source/blender/gpu/GPU_state.h index ee0216422b1..2d7ab6cd54c 100644 --- a/source/blender/gpu/GPU_state.h +++ b/source/blender/gpu/GPU_state.h @@ -44,7 +44,9 @@ typedef enum GPUFilterFunction { void GPU_blend(bool enable); void GPU_blend_set_func(GPUBlendFunction sfactor, GPUBlendFunction dfactor); -void GPU_blend_set_func_separate(GPUBlendFunction src_rgb, GPUBlendFunction dst_rgb, GPUBlendFunction src_alpha, GPUBlendFunction dst_alpha); +void GPU_blend_set_func_separate( + GPUBlendFunction src_rgb, GPUBlendFunction dst_rgb, + GPUBlendFunction src_alpha, GPUBlendFunction dst_alpha); void GPU_depth_test(bool enable); bool GPU_depth_test_enabled(void); void GPU_line_smooth(bool enable); @@ -53,9 +55,9 @@ void GPU_line_width(float width); void GPU_point_size(float size); void GPU_polygon_smooth(bool enable); void GPU_scissor(int x, int y, int width, int height); -void GPU_scissor_getf(float coords[4]); -void GPU_scissor_geti(int coords[4]); -void GPU_viewport_size_getf(float coords[4]); -void GPU_viewport_size_geti(int coords[4]); +void GPU_scissor_get_f(float coords[4]); +void GPU_scissor_get_i(int coords[4]); +void GPU_viewport_size_get_f(float coords[4]); +void GPU_viewport_size_get_i(int coords[4]); #endif /* __GPU_STATE_H__ */ diff --git a/source/blender/gpu/intern/gpu_state.c b/source/blender/gpu/intern/gpu_state.c index 0f754e37b92..588d61640bd 100644 --- a/source/blender/gpu/intern/gpu_state.c +++ b/source/blender/gpu/intern/gpu_state.c @@ -132,22 +132,22 @@ void GPU_scissor(int x, int y, int width, int height) glScissor(x, y, width, height); } -void GPU_scissor_getf(float coords[4]) +void GPU_scissor_get_f(float coords[4]) { glGetFloatv(GL_SCISSOR_BOX, coords); } -void GPU_scissor_geti(int coords[4]) +void GPU_scissor_get_i(int coords[4]) { glGetIntegerv(GL_SCISSOR_BOX, coords); } -void GPU_viewport_size_getf(float coords[4]) +void GPU_viewport_size_get_f(float coords[4]) { glGetFloatv(GL_VIEWPORT, coords); } -void GPU_viewport_size_geti(int coords[4]) +void GPU_viewport_size_get_i(int coords[4]) { glGetIntegerv(GL_VIEWPORT, coords); } |