Skip to content

Commit

Permalink
mark bind() calls with override where needed
Browse files Browse the repository at this point in the history
  • Loading branch information
JarrettSJohnson committed Aug 30, 2024
1 parent 3dadcb0 commit fa134b6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions layer0/GenericBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ class VertexBuffer : public GenericBuffer {
VertexBuffer(buffer_layout layout = buffer_layout::SEPARATE,
GLenum usage = GL_STATIC_DRAW);

void bind() const;
void bind() const override;

void bind(GLuint prg, int index = -1);

Expand All @@ -413,7 +413,7 @@ class IndexBuffer : public GenericBuffer {
public:
using GenericBuffer::GenericBuffer;

void bind() const;
void bind() const override;
void unbind();
GLenum bufferType() const override;
};
Expand Down Expand Up @@ -447,7 +447,7 @@ class renderBuffer_t : public gpuBuffer_t {
freeBuffer();
}

void bind() const;
void bind() const override;
void unbind() const;

private:
Expand Down Expand Up @@ -551,7 +551,7 @@ class textureBuffer_t : public gpuBuffer_t {
freeBuffer();
}

void bind() const;
void bind() const override;
/**
* Binds the texture to a specific texture unit
* @param textureUnit The texture unit to bind to (0, 1, 2, etc)
Expand Down Expand Up @@ -618,7 +618,7 @@ class frameBuffer_t : public gpuBuffer_t {
void attach_renderbuffer(renderBuffer_t * renderbuffer, fbo::attachment loc);
void print_fbo();

void bind() const;
void bind() const override;
void unbind() const;
private:
void genBuffer();
Expand Down Expand Up @@ -657,7 +657,7 @@ class renderTarget_t : public gpuBuffer_t {
renderTarget_t(int width, int height) : _size(width, height) {}
~renderTarget_t();

void bind() const { bind(true); };
void bind() const override { bind(true); };
void bind(bool clear) const;
void bindFBORBO() const
{
Expand Down

0 comments on commit fa134b6

Please sign in to comment.