コード例 #1
0
    doc='glutLeaveMainLoop(  ) -> None',
    argNames=(),
)

# /usr/include/GL/freeglut_ext.h 69
##glutMouseWheelFunc = platform.createBaseFunction(
##	'glutMouseWheelFunc', dll=platform.GLUT, resultType=None,
##	argTypes=[FUNCTION_TYPE(None, c_int, c_int, c_int, c_int)],
##	doc='glutMouseWheelFunc( FUNCTION_TYPE(None, c_int, c_int, c_int, c_int)(callback) ) -> None',
##	argNames=('callback',),
##)
glutMouseWheelFunc = special.GLUTCallback(
    'MouseWheel',
    (
        c_int,
        c_int,
        c_int,
        c_int,
    ),
    ('wheel', 'direction', 'x', 'y'),
)

# /usr/include/GL/freeglut_ext.h 70
##glutCloseFunc = platform.createBaseFunction(
##	'glutCloseFunc', dll=platform.GLUT, resultType=None,
##	argTypes=[FUNCTION_TYPE(None)],
##	doc='glutCloseFunc( FUNCTION_TYPE(None)(callback) ) -> None',
##	argNames=('callback',),
##)
glutCloseFunc = special.GLUTCallback(
    'Close',
    (),
コード例 #2
0
"""OSX specific extensions to GLUT"""
from OpenGL import platform
from OpenGL import constant
from OpenGL.GLUT import special

GLUT_NO_RECOVERY = constant.Constant("GLUT_NO_RECOVERY", 1024)
GLUT_3_2_CORE_PROFILE = constant.Constant("GLUT_3_2_CORE_PROFILE", 2048)

glutCheckLoop = platform.createBaseFunction(
    "glutCheckLoop",
    dll=platform.PLATFORM.GLUT,
    resultType=None,
    argTypes=[],
    doc="glutCheckLoop() -> None",
    argNames=(),
)

glutWMCloseFunc = special.GLUTCallback(
    "WMClose",
    (),
    (),
)
コード例 #3
0
"""OSX specific extensions to GLUT"""
from OpenGL import platform
from OpenGL import constant
from OpenGL.GLUT import special

GLUT_NO_RECOVERY = constant.Constant('GLUT_NO_RECOVERY', 1024)
GLUT_3_2_CORE_PROFILE = constant.Constant('GLUT_3_2_CORE_PROFILE', 2048)

glutCheckLoop = platform.createBaseFunction(
    'glutCheckLoop',
    dll=platform.PLATFORM.GLUT,
    resultType=None,
    argTypes=[],
    doc='glutCheckLoop(  ) -> None',
    argNames=(),
)

glutWMCloseFunc = special.GLUTCallback(
    'WMClose',
    (),
    (),
)
コード例 #4
0
glutLeaveMainLoop = platform.createBaseFunction(
    "glutLeaveMainLoop", dll=platform.PLATFORM.GLUT, resultType=None, 
    argTypes=[],
    doc="glutLeaveMainLoop() -> None", 
    argNames=(),
)

# /usr/include/GL/freeglut_ext.h 69
##glutMouseWheelFunc = platform.createBaseFunction(
##	"glutMouseWheelFunc", dll=platform.PLATFORM.GLUT, resultType=None, 
##	argTypes=[FUNCTION_TYPE(None, c_int, c_int, c_int, c_int)],
##	doc="glutMouseWheelFunc(FUNCTION_TYPE(None, c_int, c_int, c_int, c_int)(callback)) -> None", 
##	argNames=("callback",),
##)
glutMouseWheelFunc = special.GLUTCallback(
    "MouseWheel", (c_int, c_int, c_int, c_int,), ("wheel","direction","x","y"),
)


# /usr/include/GL/freeglut_ext.h 70
##glutCloseFunc = platform.createBaseFunction(
##	"glutCloseFunc", dll=platform.PLATFORM.GLUT, resultType=None, 
##	argTypes=[FUNCTION_TYPE(None)],
##	doc="glutCloseFunc(FUNCTION_TYPE(None)(callback)) -> None", 
##	argNames=("callback",),
##)
glutCloseFunc = special.GLUTCallback(
    "Close", (), (),
)

# /usr/include/GL/freeglut_ext.h 71