From 250e30d73f09e9da2b5a81d0fbae63744ae12a73 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 2 Apr 2019 08:47:15 +0800 Subject: *misc --- source/libs/asura-lib-core/graphics/render_state.h | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 source/libs/asura-lib-core/graphics/render_state.h (limited to 'source/libs/asura-lib-core/graphics/render_state.h') diff --git a/source/libs/asura-lib-core/graphics/render_state.h b/source/libs/asura-lib-core/graphics/render_state.h new file mode 100644 index 0000000..4d1831c --- /dev/null +++ b/source/libs/asura-lib-core/graphics/render_state.h @@ -0,0 +1,49 @@ +#ifndef __ASURA_ENGINE_RENDER_STATE_H__ +#define __ASURA_ENGINE_RENDER_STATE_H__ + +#include +#include + +#include "Shader.h" +#include "blend_mode.h" + +namespace AsuraEngine +{ + namespace Graphics + { + + /// + /// 渲染当前纹理的方式 + /// + struct RenderState ASURA_FINAL + { + /// + /// 默认的render state + /// + static RenderState Default; + + RenderState(); + ~RenderState(); + + /// + /// 位置、缩放、中心位置和旋转 + /// + + Math::Transform transform; + + /// + /// 着色器 + /// + Shader* shader; + + /// + /// 混合方式 + /// + BlendMode blendMode; + + }; + + } +} + +#endif \ No newline at end of file -- cgit v1.1-26-g67d0