Mercurial > pub > dyncall > bindings
view R/scratch/test_cstructs.R @ 56:16151547265e
made callback example python 2 compatible, and added some randomness to numbers to sort
author | Tassilo Philipp |
---|---|
date | Tue, 02 Feb 2021 21:07:41 +0100 |
parents | 0cfcc391201f |
children |
line wrap: on
line source
sdlLib <- dynload("SDL") ._SDL_SetVideoMode <- sdlLib$SDL_SetVideoMode ._SDL_Init <- sdlLib$SDL_Init err <- .dyncall.cdecl(._SDL_Init, "i)i", SDL_INIT_VIDEO) surf <- .dyncall.cdecl(._SDL_SetVideoMode, "iiii)*<SDL_Surface>", 640,480,32,SDL_DOUBLEBUF+SDL_OPENGL)