Skip to content

Instantly share code, notes, and snippets.

View rmallermartins's full-sized avatar

Rodrigo Maller Martins rmallermartins

View GitHub Profile
@rmallermartins
rmallermartins / windowExample.cpp
Last active August 29, 2015 14:21
SDLBlog Codes
#include <SDL.h>
#include <stdio.h>
const int SCREEN_WIDTH = 800;
const int SCREEN_HEIGTH = 600;
int main(int argc, char* args[])
{
SDL_Window* window = NULL;
SDL_Surface* screenSurface = NULL;
//SDL_BlitSurface(SDL_Surface* origem, SDL_Rect* rectOrigem, SDL_Surface* destino, SDL_Rect* rectDestino);
SDL_BlitSurface(background, NULL, surface, NULL);
//SDL_UpdateWindowSurface(SDL_Window* janela);
SDL_UpdateWindowSurface(tela);