From 1497dccd63a84b7ee2b229b1ad9c5c02718f2a78 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 19 Mar 2019 23:06:27 +0800 Subject: *rename --- source/libs/asura-lib-core/graphics/render_state.h | 50 ++++++++++++++++++++++ 1 file changed, 50 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..a80efd3 --- /dev/null +++ b/source/libs/asura-lib-core/graphics/render_state.h @@ -0,0 +1,50 @@ +#ifndef __ASURA_ENGINE_RENDER_STATE_H__ +#define __ASURA_ENGINE_RENDER_STATE_H__ + +#include "Math/Vector2.hpp" +#include "Math/Rect.hpp" +#include "Math/Transform.h" + +#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