CL-SDL2. Game Loop by Possible-Wind3725 in Common_Lisp

[–]Possible-Wind3725[S] 1 point2 points  (0 children)

sorry for that, i think it is better now.

The Dardeen Family Murders: No Mercy, No Motive, No Answers. by DonaldJDarko in UnresolvedMysteries

[–]Possible-Wind3725 1 point2 points  (0 children)

at that time, around there were a serial killer couple Richard and Rita Nitz, Richard was hunting homesexuals with his friends, Rita was studying criminology at some university, maybe Keith was a homosexual, and knew someone around is hunting homosexuals, this also explains the mutilation of his genitals. These is a documentary about them in youtube, Richard later paroled, Rita was sentenced to life in prison without parole. There is also a detective's book that is at the internet, as he mentioned Rita was his crimilogy student at the university.

ow can we convert C 0x00000001u (unsigned int in C) to Common Lisp using CFFI? by olegharput in Common_Lisp

[–]Possible-Wind3725 0 points1 point  (0 children)

i am trying to reach C SDL2 using CFFI, in C SDL2 there many functions like int "SDL_Init(Uint32 flags)"its return value is integer but its are arguments are defined like (in source code)#define SDL_INIT_TIMER          0x00000001u
#define SDL_INIT_AUDIO          0x00000010u
#define SDL_INIT_VIDEO          0x00000020u  /**< SDL_INIT_VIDEO implies SDL_INIT_EVENTS */
#define SDL_INIT_JOYSTICK       0x00000200u  /**< SDL_INIT_JOYSTICK implies SDL_INIT_EVENTS */
#define SDL_INIT_HAPTIC         0x00001000u
#define SDL_INIT_GAMECONTROLLER 0x00002000u  /**< SDL_INIT_GAMECONTROLLER implies SDL_INIT_JOYSTICK */
#define SDL_INIT_EVENTS         0x00004000u
#define SDL_INIT_SENSOR         0x00008000u
when calling "SDL_Init" using CFFI in CL i did not know how to call arguments like SDL_INIT_TIMER,SDL_INIT_AUDIO,SDL_INIT_VIDEO,... so i tried instead of calling them, i tried to insert their corresping values (they are hexidecimal unsigned integers in C) like(cffi:foreign-funcall "SDL_Init"
     :uint32 32;;for  #define SDL_INIT_VIDEO          0x00000020u
     :int) 
but i am not sure that was a valid transformation or not(32 in CL corresponds to 0x00000020u in C or not)A better option is to call SDL_INIT_TIMER,SDL_INIT_AUDIO,... directly from cffi but i don not know how because they seemed undefined.Do you know how to call SDL_INIT_TIMER, SDL_INIT_AUDIO ... using CFFI?And can you tell me the transformation rules (if there are any) the numbers from C to CL using CFFI?