I hereby claim:
- I am wldomiciano on github.
- I am wldomiciano (https://keybase.io/wldomiciano) on keybase.
- I have a public key ASDtxbksQZwI0YAHq0qYy8axno683HxmgtPIHZyVSDHmngo
To claim this, I am signing this object:
#include <SDL.h> | |
SDL_Window* window; | |
SDL_Renderer* renderer; | |
void drawCircle(int xc, int yc, int x, int y) { | |
SDL_RenderDrawPoint(renderer, xc + x, yc + y); | |
SDL_RenderDrawPoint(renderer, xc - x, yc + y); | |
SDL_RenderDrawPoint(renderer, xc + x, yc - y); |
I hereby claim:
To claim this, I am signing this object:
SELECT DISTINCT TABLE_NAME | |
FROM INFORMATION_SCHEMA.COLUMNS | |
WHERE COLUMN_NAME = 'your_column_name' | |
AND TABLE_SCHEMA = 'your_database_name'; |
// Testado no MinGW64 | |
// gcc -Wall -Wextra -Wpedantic -Wno-unused-parameter game.c `sdl2-config --cflags --libs` | |
#include <SDL.h> | |
SDL_Window* window; | |
SDL_Renderer* renderer; | |
SDL_bool quit = SDL_FALSE; | |
// A tecla está pressionada? |
#!/usr/bin/env sh | |
# Baixa a chave da Microsoft | |
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg | |
# Baixa a chave do Google | |
wget -qO- https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
# Move a chave da Microsoft pro lugar certo e remove arquivo temporário | |
sudo install -o root -g root -m 644 packages.microsoft.gpg /usr/share/keyrings/ && rm packages.microsoft.gpg |
// compiles with | |
// gcc vector.c -Wall -Wextra -Wpedantic `sdl2-config --cflags --libs` -lm | |
#include <SDL.h> | |
#include <math.h> | |
const double PI = 3.14159265358979323846264338327950288; | |
typedef struct { | |
double x, y; |
// Testado com MinGW64: | |
// gcc -Wall -Wextra -Wpedantic -Wno-unused-parameter test0.c `sdl2-config --cflags --libs` -lSDL2_ttf | |
#include <SDL.h> | |
#include <SDL_ttf.h> | |
SDL_Window *window; | |
SDL_Surface *surface; | |
TTF_Font *font; | |
int main(int argc, char *argv[]) { |
// Testado com MinGW64: | |
// gcc -Wall -Wextra -Wpedantic -Wno-unused-parameter test1.c `sdl2-config --cflags --libs` -lSDL2_ttf | |
#include <SDL.h> | |
#include <SDL_ttf.h> | |
SDL_Window *window; | |
SDL_Surface *surface; | |
TTF_Font *font; | |
#define MAX_LENGTH 1024 |
// Testado com MinGW64: | |
// gcc -Wall -Wextra -Wpedantic -Wno-unused-parameter test1.c `sdl2-config --cflags --libs` -lSDL2_ttf | |
#include <SDL.h> | |
#include <SDL_ttf.h> | |
SDL_Window *window; | |
SDL_Renderer *renderer; | |
TTF_Font *font; | |
#define MAX_LENGTH 1024 |
set SDL2=\path\to\sdl | |
@rem Use %SDL2%\lib\x64 for x64 builds | |
set SDL2LIB=%SDL2%\lib\x86 | |
@rem Put on PATH the DLLs | |
set PATH=%PATH%;%SDL2LIB% | |
@rem Alternative subsystem: /SUBSYSTEM:WINDOWS | |
cl yourcode.c /OUT yourprogram /I %SDL2%\include /LINK /LIBPATH:%SDL2LIB% SDL2.lib SDL2main.lib /SUBSYSTEM:CONSOLE |