summaryrefslogtreecommitdiff
path: root/source/modules/asura-core/Graphics/RenderState.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-08-02 20:51:00 +0800
committerchai <chaifix@163.com>2019-08-02 20:51:00 +0800
commitbad78945ceba425f6a80e3b8dca2414d592970eb (patch)
tree8bf7540766349c534bf9e5746b24fd7507ba034e /source/modules/asura-core/Graphics/RenderState.h
parent99b90496765df21c5f377f42b9ed073ccb34c1fd (diff)
*修改文件名格式
Diffstat (limited to 'source/modules/asura-core/Graphics/RenderState.h')
-rw-r--r--source/modules/asura-core/Graphics/RenderState.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/source/modules/asura-core/Graphics/RenderState.h b/source/modules/asura-core/Graphics/RenderState.h
new file mode 100644
index 0000000..5dcf12d
--- /dev/null
+++ b/source/modules/asura-core/Graphics/RenderState.h
@@ -0,0 +1,47 @@
+#ifndef _ASURA_ENGINE_RENDER_STATE_H_
+#define _ASURA_ENGINE_RENDER_STATE_H_
+
+#include <asura-utils/Math/Vector2.hpp>
+#include <asura-utils/Math/Transform.h>
+
+#include "BlendMode.h"
+
+namespace_begin(AsuraEngine)
+namespace_begin(Graphics)
+
+class Shader;
+
+///
+/// Ⱦǰķʽ
+///
+struct RenderState ASURA_FINAL
+{
+ ///
+ /// Ĭϵrender state
+ ///
+ static RenderState Default;
+
+ RenderState();
+ ~RenderState();
+
+ ///
+ /// λášλúת
+ ///
+ Math::Transform transform;
+
+ ///
+ /// ɫ
+ ///
+ Shader* shader;
+
+ ///
+ /// Ϸʽ
+ ///
+ BlendMode blendMode;
+
+};
+
+namespace_end
+namespace_end
+
+#endif \ No newline at end of file