azul3d / engine

Azul3D - A 3D game engine written in Go!
https://azul3d.org
Other
615 stars 52 forks source link

Split OpenGL and GLSL information out of DeviceInfo struct #116

Closed azul3d-bot closed 8 years ago

azul3d-bot commented 8 years ago

Issue by slimsag Tuesday Dec 09, 2014 at 18:09 GMT Originally opened as https://github.com/azul3d/gfx/issues/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 commented 8 years ago

Fixed/merged as part of https://github.com/azul3d/engine/issues/1