Move EnableDepthTest functionality into a bool alpha_blend var on ImmediateDraw.

This commit is contained in:
Dr. Chat
2016-02-16 18:24:37 -06:00
parent e77af94c7c
commit 253e164753
4 changed files with 14 additions and 22 deletions

View File

@@ -87,6 +87,9 @@ struct ImmediateDraw {
bool scissor = false;
// Scissoring region in framebuffer pixels as (x, y, w, h).
int scissor_rect[4] = {0};
// Blends this draw with the background depending on its alpha (if true).
bool alpha_blend = true;
};
class ImmediateDrawer {
@@ -113,8 +116,6 @@ class ImmediateDrawer {
// Ends drawing in immediate mode and flushes contents.
virtual void End() = 0;
virtual void EnableAlphaTest(bool enable) = 0;
protected:
ImmediateDrawer(GraphicsContext* graphics_context)
: graphics_context_(graphics_context) {}