Skip to content

Use Concrete Shape types in constructors? #11

Description

@LPGhatguy

Currently, all of the shapes are constructed with an API that looks like this:

JPC_API bool JPC_FooShapeSettings_Create(const JPC_FooShapeSettings* self, JPC_Shape** outShape, JPC_String** outError);

but I wonder if we should treat this, conceptually, as binding to the constructors of the shape types themselves:

JPC_API bool JPC_FooShape_new(const JPC_FooShapeSettings* settings, JPC_FooShape** outShape, JPC_String** outError);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions