Skip to content

gl.CreateTextures(GLEnum || TextureTarget target, uint n, uint* textures); needs a gl.CreateTexture helper like gl.GenTexture #1249

Closed
@tilkinsc

Description

@tilkinsc

Summary of feature

Its typical to create a singular texture instead of a batch of textures. It's not really fun/clean to have to go unsafe, use an out param, the built in texture type, or spans to get out a singular initialized-to-default texture handle for DSA. It's typical enough to warrant a GenTexture overload for GenTextures.

Recommended declarations:

uint CreateTexture(GLEnum target);
uint CreateTexture(TextureTarget target);
Texture CreateTexture(TextureTarget target);

I would also like there to be a removal of Texture because its existence makes making a Texture class a nightmare because you have to specify it from namespace which you want to use.

Does this have a proposal?

No.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy