Skip to content

Better enum type support for Mesh types #462

@jespertheend

Description

@jespertheend

Mesh.js currently contains:
https://github.com/rendajs/Renda/blob/b8fbb5998d142f8c8c0dfc9ba8aad256414c3c95/src/core/Mesh.js#L5-L8
so functions like Mesh.getBufferForAttributeType() use unclear arguments such as:

mesh.getBufferForAttributeType(0);

We need an enum for this but we need to make sure it still serializes properly through binarySerialization.js and with closure compiler.

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort: CasualSimple changes that shouldn't take too much time when you're already familiar with the codebase

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions