[nostalgia/glutils] Upgrade non-Apple platforms to GLES 3.2
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
#endif
|
||||
#include <OpenGL/gl3.h>
|
||||
#else
|
||||
#include <GLES3/gl3.h>
|
||||
#include <GLES3/gl32.h>
|
||||
#endif
|
||||
|
||||
#include <ox/std/error.hpp>
|
||||
@@ -66,7 +66,7 @@ struct GLObject: public Base {
|
||||
this->id = id;
|
||||
}
|
||||
|
||||
constexpr GLObject(GLObject &&o) noexcept: Base(ox::move(o)) {
|
||||
constexpr GLObject(GLObject &&o) noexcept: Base(std::move(o)) {
|
||||
id = o.id;
|
||||
o.id = 0;
|
||||
}
|
||||
@@ -78,7 +78,7 @@ struct GLObject: public Base {
|
||||
GLObject &operator=(GLObject &&o) noexcept {
|
||||
if (this != &o) {
|
||||
del(id);
|
||||
Base::operator=(ox::move(o));
|
||||
Base::operator=(std::move(o));
|
||||
id = o.id;
|
||||
o.id = 0;
|
||||
}
|
||||
@@ -145,9 +145,9 @@ struct FrameBuffer {
|
||||
};
|
||||
|
||||
|
||||
ox::Result<GLProgram> buildShaderProgram(const GLchar *vert, const GLchar *frag) noexcept;
|
||||
ox::Result<GLProgram> buildShaderProgram(const GLchar *vert, const GLchar *frag, const GLchar *geo = nullptr) noexcept;
|
||||
|
||||
ox::Result<GLProgram> buildShaderProgram(const ox::String &vert, const ox::String &frag) noexcept;
|
||||
ox::Result<GLProgram> buildShaderProgram(const ox::String &vert, const ox::String &frag, const ox::String &geo = "") noexcept;
|
||||
|
||||
glutils::GLVertexArray generateVertexArrayObject() noexcept;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user