aod6060 / dsge

This is a simple 2D engine for my projects.
MIT License
2 stars 0 forks source link

Adding VertexBuffer Manager #19

Closed aod6060 closed 6 days ago

aod6060 commented 1 week ago
          VertexBuffer manager will be used in a similar way to the previous 2 however it doesn't need to worry about loading anything from a file.

Originally posted by @aod6060 in https://github.com/aod6060/dsge/issues/1#issuecomment-2481942768

aod6060 commented 6 days ago

Alright lets get started on this one so I can have managed vertex buffers.

aod6060 commented 6 days ago

Alright here is the interface for this namespace.

    void add(std::string name);
    void release();

    void reloadInit();
    void reloadRelease();

    void add1(std::string name, float x);
    void add2(std::string name, float x, float y);
    void add3(std::string name, float x, float y, float z);
    void add4(std::string name, float x, float y, float z, float w);
    void clear(std::string name);

    void bind(std::string name);
    void unbind(std::string name);
aod6060 commented 6 days ago

For got the "update(string)" function. Here the updated interface.

    void add(std::string name);
    void release();

    void reloadInit();
    void reloadRelease();

    void add1(std::string name, float x);
    void add2(std::string name, float x, float y);
    void add3(std::string name, float x, float y, float z);
    void add4(std::string name, float x, float y, float z, float w);
    void clear(std::string name);

    void bind(std::string name);
    void unbind(std::string name);

    void update(std::string name);
aod6060 commented 6 days ago

Alright I'm almost done with this new section of the render. Doing a bit of testing then closing this issue.

aod6060 commented 6 days ago

Yay! It works great!

image

aod6060 commented 6 days ago

Ok, I've completed this so time to move on.