Code Monkey home page Code Monkey logo

Comments (5)

Jagholin avatar Jagholin commented on May 3, 2024

two things i might add:

  1. Although objects don't usually have id 0, it is still a valid binding value, for instance one can always call glBindVertexArray(0), which just "unbinds" any currently bound VAO.
  2. Speaking of VAOs, it would be good to have some "stable" interface for the state object, that would allow user to set bindings he likes, right now VAO bind functions are part of Mesh class, as if the user is not supposed to have his own VAOs apart from the Mesh class

If you implement the reset function, consider to allow to specify which parts of the state tracker need to be reset.

from magnum.

mosra avatar mosra commented on May 3, 2024
  1. Yes, 0 is valid binding value. I thought about using 0xFFFFFFFFu as disengaged binding value. As far as I know the drivers start with 1 for object IDs and not from the other end of the range.
  2. What do you mean, exactly? The Mesh and MeshView classes should provide everything needed for drawing (when I implement all the missing multi/indirect/instanced/transform feedback functionality).

Partial state reset is a very good idea, thank you.

from magnum.

Jagholin avatar Jagholin commented on May 3, 2024

in 2: you have then to be somewhat sure in that you cover all possible use cases, even rare ones.

from magnum.

mosra avatar mosra commented on May 3, 2024

Yep, that's the plan (supporting everything what's possible with core GL, except maybe for client-side data).

from magnum.

mosra avatar mosra commented on May 3, 2024

Done (for all currently tracked state) in 4e50aee, more will come when state tracking is implemented for Renderer and other classes.

from magnum.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.