Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split OpenGL and GLSL information out of DeviceInfo struct #116

Closed
azul3d-bot opened this issue Mar 6, 2016 · 1 comment
Closed

Split OpenGL and GLSL information out of DeviceInfo struct #116

azul3d-bot opened this issue Mar 6, 2016 · 1 comment

Comments

@azul3d-bot
Copy link

Issue by slimsag
Tuesday Dec 09, 2014 at 18:09 GMT
Originally opened as azul3d-legacy/gfx#62


The DeviceInfo structure has many OpenGL and GLSL fields that will not be used for other non-OpenGL graphics API's.

It makes sense to split these into two separate structures GLInfo and GLSLInfo and then have:

type DeviceInfo struct {
    // GL is a pointer to information about the OpenGL implementation, if the
    // device is a OpenGL device. Otherwise it is nil.
    GL *GLInfo

    // GLSL is a pointer to information about the GLSL implementation, if the
    // device is a OpenGL device. Otherwise it is nil.
    GLSL *GLSLInfo
@slimsag
Copy link
Member

slimsag commented Mar 6, 2016

Fixed/merged as part of #1

@slimsag slimsag closed this as completed Mar 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants