comparison R/scratch/test_cstructs.R @ 0:0cfcc391201f

initial from svn dyncall-1745
author Daniel Adler
date Thu, 19 Mar 2015 22:26:28 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:0cfcc391201f
1 sdlLib <- dynload("SDL")
2 ._SDL_SetVideoMode <- sdlLib$SDL_SetVideoMode
3 ._SDL_Init <- sdlLib$SDL_Init
4 err <- .dyncall.cdecl(._SDL_Init, "i)i", SDL_INIT_VIDEO)
5 surf <- .dyncall.cdecl(._SDL_SetVideoMode, "iiii)*<SDL_Surface>", 640,480,32,SDL_DOUBLEBUF+SDL_OPENGL)
6