Skip to content

[Wrapper] error handling #15

Open
Open
@tonitch

Description

@tonitch

Most OpenGL functions can return errors, but they have to be handled manually.

https://www.khronos.org/opengl/wiki/OpenGL_Error

Should the wrapper handle this?

I think it could be cool to have the functions return the error directly if it happens.

My idea is to have a wrapper around each binding call that would do 1) empty the error queue 2) execute the opengl function 3) check if there is a new error and, if so return it.

This is quite the major change in the wrapper, so I want to know what you think about it before doing so.

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