Trees | Indices | Toggle frames |
---|
Main module for importing SDL-ctypes.
It also imports all functions, constants and classes from the package submodules. Typical usage, then, is to just import this module directly into your namespace:
from SDL import *
This gives you access to all SDL names exactly as they appear in the C header files.
cocos.audio.SDL.array | |
cocos.audio.SDL.audio Access to the raw audio mixing buffer. | |
cocos.audio.SDL.constants Constants and enums for all SDL submodules. | |
cocos.audio.SDL.dll | |
cocos.audio.SDL.endian Functions for converting to native byte order | |
cocos.audio.SDL.error Error detection and error handling functions. | |
cocos.audio.SDL.rwops General interface for SDL to read and write data sources. | |
cocos.audio.SDL.timer Time management routines. | |
cocos.audio.SDL.version Functions related to the SDL shared library version. | |
Non-core modules | |
---|---|
cocos.audio.SDL.mixer A simple multi-channel audio mixer. |
int |
SDL_Init(flags)
Initialise the SDL library.
|
int |
SDL_InitSubSystem(flags)
Initialize specific SDL subsystems.
|
__package__ =
|
Initialise the SDL library.
This function loads the SDL dynamically linked library and initializes
the subsystems specified by flags
(and those satisfying dependencies)
Unless the SDL_INIT_NOPARACHUTE flag is set, it will install cleanup
signal handlers for some commonly ignored fatal signals (like SIGSEGV).
The following flags are recognised:
- SDL_INIT_TIMER
- SDL_INIT_AUDIO
- SDL_INIT_VIDEO
- SDL_INIT_CDROM
- SDL_INIT_JOYSTICK
- SDL_INIT_NOPARACHUTE
- SDL_INIT_EVENTTHREAD
- SDL_INIT_EVERYTHING
See Also: SDL_Quit
See Also: SDL_Init, SDL_QuitSubSystem
Trees | Indices | Toggle frames |
---|
Generated by Epydoc 3.0beta1 on Wed Sep 08 23:50:16 2010 | http://epydoc.sourceforge.net |