summaryrefslogtreecommitdiff
path: root/Runtime/Graphics/GfxDevice.h
diff options
context:
space:
mode:
Diffstat (limited to 'Runtime/Graphics/GfxDevice.h')
-rw-r--r--Runtime/Graphics/GfxDevice.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/Runtime/Graphics/GfxDevice.h b/Runtime/Graphics/GfxDevice.h
index 437696a..f00a58f 100644
--- a/Runtime/Graphics/GfxDevice.h
+++ b/Runtime/Graphics/GfxDevice.h
@@ -1,5 +1,6 @@
#ifndef DEVICE_H
#define DEVICE_H
+#include "Runtime/Math/Math.h"
#include "../Utilities/NonCopyable.h"
#include "../Utilities/Type.h"
@@ -63,10 +64,10 @@ public:
void UseShader(LuaBind::State& state, Shader* shader, int idx);
void UnuseShader();
- void SetUniformVec2(const char* name, Internal::Vector2 vec2);
- void SetUniformVec3(const char* name, Internal::Vector3 vec3);
- void SetUniformVec4(const char* name, Internal::Vector4 vec4);
- void SetUniformMat4(const char* name, Internal::Matrix44 mat4);
+ void SetUniformVec2(const char* name, Vector2 vec2);
+ void SetUniformVec3(const char* name, Vector3 vec3);
+ void SetUniformVec4(const char* name, Vector4 vec4);
+ void SetUniformMat4(const char* name, Matrix44 mat4);
void SetUniformTexture(const char* name, Texture* texture);
void ResetUniformsState();
@@ -79,7 +80,7 @@ public:
DynamicVertexBuffer* GetSharedVBO() { return &m_DynamicVBO; }
- GET_SET(Internal::Color, ClearColor, m_ClearColor);
+ GET_SET(Color, ClearColor, m_ClearColor);
GET_SET(ETextureFilterMode, DefaultFilterMode, m_DefaultFilterMode);
GET_SET(ETextureWrapMode, DefaultWrapMode, m_DefaultWrapMode);
@@ -88,7 +89,7 @@ private:
// äÖȾ״̬
uint m_EnableFlag;
- Internal::Color m_ClearColor;
+ Color m_ClearColor;
EDepthTest m_DepthTest;
EStencilTest m_StencilTest;
EStencilOp m_StencilOp;