[nostalgia/glutils] Add resizeInitFrameBuffer function, cleanup inconsistent argument names

This commit is contained in:
2023-03-11 14:53:55 -06:00
parent 9583b223ca
commit a5547487f8
2 changed files with 45 additions and 17 deletions
+7 -2
View File
@@ -146,6 +146,11 @@ glutils::GLBuffer generateBuffer() noexcept;
[[nodiscard]]
FrameBuffer generateFrameBuffer(int width, int height) noexcept;
/**
* Resizes a FrameBuffer, and creates if it does not already exist.
*/
void resizeInitFrameBuffer(FrameBuffer *fb, int width, int height) noexcept;
struct BufferSet {
glutils::GLVertexArray vao;
glutils::GLBuffer vbo;
@@ -155,8 +160,8 @@ struct BufferSet {
ox::Vector<GLuint> elements;
};
void sendVbo(const BufferSet &bg) noexcept;
void sendVbo(const BufferSet &bs) noexcept;
void sendEbo(const BufferSet &bg) noexcept;
void sendEbo(const BufferSet &bs) noexcept;
}