示例#1
0
文件: _pyopengl.py 项目: LiloD/vispy
def glGetFramebufferAttachmentParameter(target, attachment, pname):
    d = -2**31  # smallest 32bit integer
    params = (ctypes.c_int*1)(d)
    FBO.glGetFramebufferAttachmentParameteriv(target, attachment, pname, params)
    return params[0]
示例#2
0
def glGetFramebufferAttachmentParameter(target, attachment, pname):
    d = -2**31  # smallest 32bit integer
    params = (ctypes.c_int * 1)(d)
    FBO.glGetFramebufferAttachmentParameteriv(target, attachment, pname,
                                              params)
    return params[0]