New answers tagged

2

As it says on the SDL documentation, SDL_GetKeyboardState returns an array of the keyboard state, with SDL_SCANCODE values as indices. You can't use the SDLK_ values, they won't reference the right values. So change your code to use the SDL_SCANCODE values. There is a reference page here. Your if-statement should then look like if ...


0

Well, it seems I had some problem with the alpha-blending algorithm I wrote in the in-line assembler, that uses MMX. While I could test that the code actually works and wrote actual data to the framebuffer, the image didn't show on the window. Here's the assembly part to the alpha-blending: asm{ //mov edi,dest; ...



Top 50 recent answers are included