Skip to content

retain / release & static map for opengl objects could be abstracted #1570

@ofZach

Description

@ofZach

in reviewing the code, we've seen a bunch of chunks of code for each opengl based object that handles a static map between GLunits and int ids, and which has retain and release code that the objects (ofLight, ofTexture, ofFbo) use. It seems like this code could be written once (glManager?), and then used in multiple places, with some minor customization based on the object you're tracking. It would mean less repetition in the code, and if we want to expand on what this code does it will make it easier to have it only in one place.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions