[Cogl] CoglTextureType and bindings

Robert Bragg robert at sixbynine.org
Wed Oct 3 06:14:27 PDT 2012


On Tue, Oct 2, 2012 at 6:05 PM, Lespiau, Damien
<damien.lespiau at intel.com> wrote:
> Hey,
>
> The CoglTextureType enum has:
>   COGL_TEXTURE_TYPE_2D and
>   COGL_TEXTURE_TYPE_3D
>
> as values, with means that automatically generated bindings would try
> to use 2D and 3D as enum values, which are not identifiers. An
> override in the bindings should be possible, but in case we'd like to
> change that...

Right. It seems like it would be a bit of a shame to make the C api
even more verbose here just to avoid a special case for namespaced
language bindings. For language bindings though it would be good to be
consistent here and from talking to you offline it sounds like your
approach of effectively considering the name of these enums to be
COGL_TEXTURE_TYPE_TEXTURE_XYZ sounds sensible.

kind regards,
- Robert

>
> --
> Damien
> _______________________________________________
> Cogl mailing list
> Cogl at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/cogl


More information about the Cogl mailing list