Example #1
0
    def typeToOpenGL(type, colorDepth):
        if colorDepth == 8:
            return Texture.typeToOpenGL(type)

        elif colorDepth == 32:
            if type == Float:
                return GL_ALPHA_FLOAT32_ATI
            elif type == Float3:
                return GL_RGB_FLOAT32_ATI
            elif type == Float4:
                return GL_RGBA_FLOAT32_ATI
            else:
                assert False

        else:
            assert False
Example #2
0
    def typeToOpenGL(type, colorDepth):
        if colorDepth == 8:
            return Texture.typeToOpenGL(type)

        elif colorDepth == 32:
            if type == Float:
                return GL_ALPHA_FLOAT32_ATI
            elif type == Float3:
                return GL_RGB_FLOAT32_ATI
            elif type == Float4:
                return GL_RGBA_FLOAT32_ATI
            else:
                assert False

        else:
            assert False
Example #3
0
    def typeToOpenGL(type, colorDepth):
        if colorDepth == 8:
            return Texture.typeToOpenGL(type)

        elif colorDepth == 32:
            if type == Float:
                return GL_FLOAT_R32_NV
            elif type == Float2:
                return GL_FLOAT_RG32_NV
            elif type == Float3:
                return GL_FLOAT_RGB32_NV
            elif type == Float4:
                return GL_FLOAT_RGBA32_NV
            else:
                assert False

        else:
            assert False
Example #4
0
    def typeToOpenGL(type, colorDepth):
        if colorDepth == 8:
            return Texture.typeToOpenGL(type)

        elif colorDepth == 32:
            if type == Float:
                return GL_FLOAT_R32_NV
            elif type == Float2:
                return GL_FLOAT_RG32_NV
            elif type == Float3:
                return GL_FLOAT_RGB32_NV
            elif type == Float4:
                return GL_FLOAT_RGBA32_NV
            else:
                assert False

        else:
            assert False