Skip to content

Why doesn't ALLEGRO_PRIM_COLOR_ATTR respect the storage declaration provided in ALLEGRO_VERTEX_ELEMENT? #1574

Open
@ghassanpl

Description

As far as I understand, there should be no reason for it not to. Non-float4 color data is supported by most modern cards, and it would be easy to error-out in case it's not supported for some reason.

If I could build allegro from source

I'd make a change at: https://github.com/liballeg/allegro5/blob/master/addons/primitives/prim_opengl.c#L158

ALLEGRO_PRIM_POSITION, ALLEGRO_PRIM_TEX_COORD and user attributes use convert_storage to get the parameters for glVertexAttribPointer to setup the vertex declaration, but the call for ALLEGRO_PRIM_COLOR_ATTR at the link above does not.

Analogous for DX.

There might be a reason this is not done, so feel free to correct me :)

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