Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 130 lines (123 sloc) 2.847 kb
bfd9040 @cthulhuology Importing SDLPerl 2.2
cthulhuology authored
1 TYPEMAP
2 const Uint16 * T_PTR
11914b0 xs for SDL::GFX::Primitives done, test and docs open [Ticket #73]
Tobias Leich authored
3 const Sint16 * T_PTR
bfd9040 @cthulhuology Importing SDLPerl 2.2
cthulhuology authored
4 Uint8 T_U_CHAR
5 Uint8 * T_PTR
6 const Uint8* T_PTR
7 Uint8 ** T_PTR
8 Uint16 T_UV
9 Uint16 * T_PTR
10 Uint32 T_UV
11 Uint32 * T_PTR
12 SDLKey T_UV
741bcb0 added SDL_keysym struct
Tobias Leich authored
13 SDLKey * T_PTR
14 SDLMod T_UV
15 SDLMod * T_PTR
bfd9040 @cthulhuology Importing SDLPerl 2.2
cthulhuology authored
16 Sint16 T_IV
17 Sint16 * T_PTR
18 Sint32 T_IV
19 Sint32 * T_PTR
263e588 @kthakore Got Event working. Events at 25%. Poll_event and Push_event done
kthakore authored
20 SDL_Event * O_OBJECT
3f36fc2 @kthakore Fix of typemap for Event objects
kthakore authored
21 SDL_ActiveEvent * O_OBJECT
22 SDL_KeyboardEvent * O_OBJECT
23 SDL_TextInputEvent * O_OBJECT
24 SDL_MouseMotionEvent * O_OBJECT
25 SDL_MouseButtonEvent * O_OBJECT
26 SDL_JoyAxisEvent * O_OBJECT
27 SDL_JoyHatEvent * O_OBJECT
87d11e7 @kthakore Fixed JoyButtonEvent
kthakore authored
28 SDL_JoyButtonEvent * O_OBJECT
3f36fc2 @kthakore Fix of typemap for Event objects
kthakore authored
29 SDL_JoyBallEvent * O_OBJECT
30 SDL_ResizeEvent * O_OBJECT
31 SDL_ExposeEvent * O_OBJECT
32 SDL_SysWMEvent * O_OBJECT
33 SDL_UserEvent * O_OBJECT
34 SDL_QuitEvent * O_OBJECT
35 SDL_keysym * O_OBJECT
88a46ef @acme try seperating out surface - not quite working yet
acme authored
36 SDL_Surface * O_OBJECT
bfd9040 @cthulhuology Importing SDLPerl 2.2
cthulhuology authored
37 SDL_SysWMmsg * T_PTR
0ceb978 @kthakore Migrate CD, CDTrack, CDROM. use safemalloc instead of malloc in AudioSpe...
kthakore authored
38 SDL_CD * O_OBJECT
39 SDL_CDtrack * O_OBJECT
bfd9040 @cthulhuology Importing SDLPerl 2.2
cthulhuology authored
40 SDL_TimerCallback T_PTR
e4ab5b2 @kthakore Using new Rect with v2.2.2.11. Had to change getClipRect paramters.
kthakore authored
41 SDL_Rect * O_OBJECT
3e3f41e @acme Split out SDL_Color into its own C-level class
acme authored
42 SDL_Color * O_OBJECT
1be4c6f @kthakore Should never malloc SDL_Pallete
kthakore authored
43 SDL_Palette * O_OBJECT
50d9130 @acme Wrap PixelFormat
acme authored
44 SDL_PixelFormat * O_OBJECT
f1ad86b @kthakore Added VideoInfo as an object with appropriate docs
kthakore authored
45 SDL_VideoInfo * O_OBJECT
ce88b52 @acme Wrap SDL_version
acme authored
46 SDL_version * O_OBJECT
67bdd32 linked_verion is _const_ SDL_verion *
Tobias Leich authored
47 const SDL_version * O_OBJECT
4bd2d74 @kthakore Typo fixes. NULL is a pointer cannot be assinged to integer value.
kthakore authored
48 SDL_SysWMInfo * O_OBJECT
a95ab5c @kthakore Implemented Mouse and Cursor. Need to test
kthakore authored
49 SDL_Cursor * O_OBJECT
afb3d72 @acme Implement SDL::AudioSpec
acme authored
50 SDL_AudioSpec * O_OBJECT
e512f66 @kthakore Added stubs for AudioCVT
kthakore authored
51 SDL_AudioCVT * O_OBJECT
bfd9040 @cthulhuology Importing SDLPerl 2.2
cthulhuology authored
52 Mix_Fading T_UV
42bd71c @acme Implement MixChunk
acme authored
53 Mix_Chunk * O_OBJECT
47cda86 @acme Implement MixMusic
acme authored
54 Mix_Music * O_OBJECT
bfd9040 @cthulhuology Importing SDLPerl 2.2
cthulhuology authored
55 SDL_GLattr T_IV
a74034f added stubs for SDL::Pango and SDL::Pango::Context
Tobias Leich authored
56 SDLPango_Context * O_OBJECT
9af5927 @kthakore Initial XS for Timer
kthakore authored
57 sdlx_timer * O_OBJECT
6f709d8 added alignment support, constants and docs
Tobias Leich authored
58 SDLPango_Alignment T_UV
bfd9040 @cthulhuology Importing SDLPerl 2.2
cthulhuology authored
59 int * T_PTR
11914b0 xs for SDL::GFX::Primitives done, test and docs open [Ticket #73]
Tobias Leich authored
60 int ** T_PTR
bfd9040 @cthulhuology Importing SDLPerl 2.2
cthulhuology authored
61 void * T_PTR
62 SDL_TimerID T_PTR
63 SDL_NewTimerCallback T_PTR
f104313 @kthakore Added Joystick XS, Added surface tests. Need a joystick to test the rest...
kthakore authored
64 SDL_Joystick * O_OBJECT
0919311 added FPSManager
Tobias Leich authored
65 FPSmanager * O_OBJECT
bfd9040 @cthulhuology Importing SDLPerl 2.2
cthulhuology authored
66 SDLNet_SocketSet T_PTR
67 TCPsocket T_PTR
68 UDPsocket T_PTR
69 UDPpacket * T_PTR
70 UDPpacket ** T_PTR
66c9210 @kthakore Testing load of SDL::Net, TCP, UDP, IPaddress
kthakore authored
71 IPaddress* O_OBJECT
bfd9040 @cthulhuology Importing SDLPerl 2.2
cthulhuology authored
72 SDLNet_GenericSocket T_PTR
b41abbd @acme Wrap TTF_Font with a few calls
acme authored
73 TTF_Font * O_OBJECT
fcd68a9 @kthakore Mare Overlay an object with new and DESTROY. Bootstrapper made to
kthakore authored
74 SDL_Overlay * O_OBJECT
bfd9040 @cthulhuology Importing SDLPerl 2.2
cthulhuology authored
75 SMPEG_Info * T_PTR
76 SMPEG * T_PTR
77 SMPEGstatus T_IV
78 SDL_mutex * T_PTR
79 GLbitfield T_IV
80 GLenum T_IV
81 ConsoleInformation * T_PTR
82 GLboolean T_U_CHAR
45f7368 @kthakore Added types for GLU and Tels Faster color function
kthakore authored
83 GLUquadric * T_PTR
84 GLdouble T_NV
bfd9040 @cthulhuology Importing SDLPerl 2.2
cthulhuology authored
85 GLUnurbsObj * T_PTR
86 GLUtesselator * T_PTR
87 GLuint T_UV
88 GLuint* T_PTR
89 GLint T_IV
90 GLint* T_PTR
91 float * T_PTR
92 float T_NV
93 GLfloat T_NV
94 Sound_DecoderInfo * T_PTR
95 const Sound_DecoderInfo * T_PTR
96 Sound_Sample * T_PTR
97 Sound_AudioInfo * T_PTR
0f35edd @kthakore Cleanup. Added RWops xs,pm, and pod. Added tests to 00-load
kthakore authored
98 SDL_RWops* O_OBJECT
bfd9040 @cthulhuology Importing SDLPerl 2.2
cthulhuology authored
99 SDL_svg_context* T_PTR
5e9f278 @kthakore Added in Video.XS set_gamma, and stub for set_gamma_ramp. Added test for...
kthakore authored
100 int T_IV
0b79e0e @kthakore Implemented get_key_state
kthakore authored
101 intArray T_ARRAY
e4ab5b2 @kthakore Using new Rect with v2.2.2.11. Had to change getClipRect paramters.
kthakore authored
102
103 OUTPUT
104
105 # The Perl object is blessed into 'CLASS', which should be a
106 # char* having the name of the package for the blessing.
107 O_OBJECT
7f651c7 @ruoso fix typemap to return undef if the return is null... this solves two fai...
ruoso authored
108 if ($var) {
109 void** pointers = malloc(2 * sizeof(void*));
110 pointers[0] = (void*)$var;
0126b1f @kthakore one forgotten my_perl
kthakore authored
111 pointers[1] = (void*)PERL_GET_CONTEXT;
7f651c7 @ruoso fix typemap to return undef if the return is null... this solves two fai...
ruoso authored
112 sv_setref_pv( $arg, CLASS, (void*)pointers );
113 } else {
114 XSRETURN_UNDEF;
115 }
e4ab5b2 @kthakore Using new Rect with v2.2.2.11. Had to change getClipRect paramters.
kthakore authored
116
117 INPUT
118
119 O_OBJECT
2be22ba @ruoso remove CLONE_SKIP frmo Event and Surface, but associates the object with...
ruoso authored
120 if( sv_isobject($arg) && (SvTYPE(SvRV($arg)) == SVt_PVMG) ) {
121 void** pointers = (void**)(SvIV((SV*)SvRV( $arg )));
122 $var = ($type)(pointers[0]);
123 } else if ($arg == 0) {
124 XSRETURN(0);
125 } else {
126 XSRETURN_UNDEF;
127 }
e4ab5b2 @kthakore Using new Rect with v2.2.2.11. Had to change getClipRect paramters.
kthakore authored
128
129
Something went wrong with that request. Please try again.