diff options
author | chai <chaifix@163.com> | 2021-11-04 12:55:25 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-11-04 12:55:25 +0800 |
commit | d24f17b88d901b779c81c7434995675eb2a17429 (patch) | |
tree | d8f4cfee93d70598ef4b1419316b30acfff0eb04 /Runtime/Graphics/GfxDevice.cpp | |
parent | 94a9a28de16badb75e66a60efca3b01d31cc0fc6 (diff) |
- Internal::
Diffstat (limited to 'Runtime/Graphics/GfxDevice.cpp')
-rw-r--r-- | Runtime/Graphics/GfxDevice.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Runtime/Graphics/GfxDevice.cpp b/Runtime/Graphics/GfxDevice.cpp index 2c740ed..e172756 100644 --- a/Runtime/Graphics/GfxDevice.cpp +++ b/Runtime/Graphics/GfxDevice.cpp @@ -1,5 +1,6 @@ #include <vector> #include "GfxDevice.h" +#include "Runtime/Math/Math.h" static bool deviceInited = false; @@ -94,7 +95,7 @@ void GfxDevice::UnuseShader() glUseProgram(0); } -void GfxDevice::SetUniformVec2(const char* name, Internal::Vector2 vec2) +void GfxDevice::SetUniformVec2(const char* name, Vector2 vec2) { if (!m_Shader) return; @@ -102,7 +103,7 @@ void GfxDevice::SetUniformVec2(const char* name, Internal::Vector2 vec2) glUniform2f(loc, vec2.x, vec2.y); } -void GfxDevice::SetUniformVec3(const char* name, Internal::Vector3 vec3) +void GfxDevice::SetUniformVec3(const char* name, Vector3 vec3) { if (!m_Shader) return; @@ -110,7 +111,7 @@ void GfxDevice::SetUniformVec3(const char* name, Internal::Vector3 vec3) glUniform3f(loc, vec3.x, vec3.y, vec3.z); } -void GfxDevice::SetUniformVec4(const char* name, Internal::Vector4 vec4) +void GfxDevice::SetUniformVec4(const char* name, Vector4 vec4) { if (!m_Shader) return; @@ -118,7 +119,7 @@ void GfxDevice::SetUniformVec4(const char* name, Internal::Vector4 vec4) glUniform4f(loc, vec4.x, vec4.y, vec4.z, vec4.w); } -void GfxDevice::SetUniformMat4(const char* name, Internal::Matrix44 mat4) +void GfxDevice::SetUniformMat4(const char* name, Matrix44 mat4) { if (!m_Shader) return; |