aod6060 / dsge

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

Adding IndexBuffer Manager #20

Closed aod6060 closed 6 days ago

aod6060 commented 1 week ago
          IndexBuffer manager will be the same as VertexBuffer manager, however, its for IndexBuffers.

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

aod6060 commented 6 days ago

Alright its time to get started one then I can add in the rest of reloadInit + reloadRelease

aod6060 commented 6 days ago

Alright here is the interface for this new render addition to the render system.

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

    void reloadInit();
    void reloadRelease();

    void add1(std::string name, int x);
    void add2(std::string name, int x, int y);
    void add3(std::string name, int x, int y, int z);
    void add4(std::string name, int x, int y, int z, int 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

The nice thing about the index buffer interface is that similar to the vertex buffer.

aod6060 commented 6 days ago

Alright implemented IndexBuffer manager. Now its time to add in the reloadInit + reloadRelease