コード例 #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]