This file contains 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 <SFML/System.hpp> | |
#include <iostream> | |
int main() | |
{ | |
sf::Clock Saat; | |
while (Saat.GetElapsedTime() < 5.f) | |
{ | |
std::cout << Saat.GetElapsedTime() << std::endl; | |
sf::Sleep(0.5f); |
This file contains 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 <SFML/System.hpp> | |
#include <iomanip> | |
#include <iostream> | |
int main() | |
{ | |
// Şu anki tohum | |
unsigned int InitialSeed = sf::Randomizer::GetSeed(); | |
std::cout << "İlk tohum: " << InitialSeed << std::endl << std::endl; |
This file contains 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 <SFML/Window.hpp> | |
int main() | |
{ | |
// Ana pencereyi oluştur | |
sf::Window App(sf::VideoMode::GetDesktopMode(), "SFML Penceresi", sf::Style::Fullscreen); | |
// Ana döngüye başla | |
bool Running = true; | |
while (Running) |
This file contains 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 <SFML/Window.hpp> | |
#include <iostream> | |
int main() | |
{ | |
// Ana pencereyi oluştur | |
sf::Window App(sf::VideoMode(800, 600, 32), "SFML Söyle Bana Fare Nerde"); | |
// Girdi yöneticisine oluşturduğumuz pencereyle ilişkilendirilmiş bir referans al | |
// ve sonraki kullanımlar için sakla |
This file contains 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 <iostream> | |
#include <sstream> | |
int main() | |
{ | |
int i = 5; | |
std::string s; | |
std::stringstream out; | |
out << i; |
This file contains 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 <iostream> | |
#include <sstream> | |
template <class T> inline std::string to_string (const T& t) | |
{ | |
std::stringstream ss; | |
ss << t; | |
return ss.str(); | |
} |
This file contains 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 <iostream> | |
#include <boost/lexical_cast.hpp> | |
int main() | |
{ | |
int i = 5; | |
std::string foo = boost::lexical_cast<std::string>(i); | |
std::cout << i + i << std::endl; | |
std::cout << foo + foo << std::endl; | |
} |
This file contains 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 <SFML/Window.hpp> | |
int main() | |
{ | |
// Ana penceremizi oluşturalım | |
sf::Window App(sf::VideoMode(800, 600, 16), "SFML Zaman Zaman"); | |
// En yüksek kareoranını elde etmek için dikey eşzamanlamayı kapatalım | |
App.EnableVerticalSync(false); |
This file contains 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 <SFML/Window.hpp> | |
#include <GL/glut.h> | |
int main() | |
{ | |
sf::Window App(sf::VideoMode(800, 600, 32), "SFML OpenGL"); | |
sf::Clock Clock; | |
// Renk ve derinlik temizleme değerlerini ayarla |
This file contains 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
// Başlıklar | |
#include <SFML/Graphics.hpp> | |
int main() | |
{ | |
// Tarama penceremizi oluşturalım | |
sf::RenderWindow App(sf::VideoMode(800, 600, 32), "SFML Grafik"); | |
// birkaç değişken ekleyelim | |
int xxx, yyy, zzz = 0; |
OlderNewer