Replace glm with vec.h
Vec2, IVec2, Vec3, Vec4, IVec4 and a column-major Mat4, with glm's formulas, in one header. Free functions are vec_ and mat4_ prefixed. The leaked using namespace glm is gone. Render goldens still match.
This commit is contained in:
1 parent
c38a3a9890
commit
03bbb93ba6
79 files changed
+1232
-810
No files matched your search
+2
-4
@@ -2,8 +2,6 @@
|
||||
|
||||
#include "texture.h"
|
||||
|
||||
using namespace glm;
|
||||
|
||||
Framebuffer::Framebuffer()
|
||||
{
|
||||
gl.GenFramebuffers(1, &fbo);
|
||||
@@ -49,7 +47,7 @@ void Framebuffer::resize_check()
|
||||
}
|
||||
}
|
||||
|
||||
void Framebuffer::size_set(vec2 size)
|
||||
void Framebuffer::size_set(Vec2 size)
|
||||
{
|
||||
previousSize = this->size;
|
||||
this->size = size;
|
||||
@@ -70,7 +68,7 @@ std::vector<uint8_t> Framebuffer::pixels_get() const
|
||||
return pixels;
|
||||
}
|
||||
|
||||
void Framebuffer::clear(vec4 color) const
|
||||
void Framebuffer::clear(Vec4 color) const
|
||||
{
|
||||
gl.Enable(GL_BLEND);
|
||||
gl.ClearColor(color.r, color.g, color.b, color.a);
|
||||
|
||||
Reference in new issue
Block a user