mirror of
https://github.com/g-truc/glm.git
synced 2024-11-26 18:24:35 +00:00
Fixed glm::ortho #790
This commit is contained in:
parent
9a0311f327
commit
848800b5c4
@ -102,6 +102,7 @@ namespace glm
|
||||
mat<4, 4, T, defaultp> Result(static_cast<T>(1));
|
||||
Result[0][0] = static_cast<T>(2) / (right - left);
|
||||
Result[1][1] = static_cast<T>(2) / (top - bottom);
|
||||
Result[2][2] = - static_cast<T>(1);
|
||||
Result[3][0] = - (right + left) / (right - left);
|
||||
Result[3][1] = - (top + bottom) / (top - bottom);
|
||||
return Result;
|
||||
|
@ -66,6 +66,7 @@ glm::mat4 camera(float Translate, glm::vec2 const& Rotate)
|
||||
- Fixed build problems due to printf and std::clock_t #778
|
||||
- Fixed int mod
|
||||
- Anonymous unions require C++ language extensions
|
||||
- Fixed ortho #790
|
||||
|
||||
### [GLM 0.9.9.0](https://github.com/g-truc/glm/releases/tag/0.9.9.0) - 2018-05-22
|
||||
#### Features:
|
||||
|
Loading…
Reference in New Issue
Block a user