This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Compile with:_ | |
g++ sfml.cpp -lsfml-system -lsfml-graphics -lsfml-window -o sfml | |
*/ | |
#include <SFML/Graphics.hpp> | |
#include <iostream> | |
#include <stdio.h> | |
using namespace std; | |
using namespace sf; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SDL/SDL.h> | |
#include <SDL/SDL_opengl.h> | |
void Render() { | |
glClearColor( 0, 0, 0, 0 ); | |
} | |
int main(int argc, char *argv[]) | |
{ | |
int rc = SDL_Init(SDL_INIT_VIDEO); |
NewerOlder