1
Audio / -lsndfile-1?
« on: November 02, 2011, 09:28:09 pm »
Cannot find -lsndfile-1
ty for a reply.
ty for a reply.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
#include <SFML/Graphics.hpp>
using namespace std;
int main()
{
// Create the main window
sf::RenderWindow App(sf::VideoMode(800, 600, 32), "SFML window");
// Load a sprite to display
sf::Image Image;
if (!Image.LoadFromFile("cb.bmp"))
return EXIT_FAILURE;
sf::Sprite Sprite(Image);
// Start the game loop
while (App.IsOpened())
{
// Process events
sf::Event Event;
sf::Shape box=sf::Shape::Rectangle(0,0,50,50, sf::Color(127,0,0,255));
box.SetPosition(100, 100);
while (App.GetEvent(Event))
{
// Close window : exit
if (Event.Type == sf::Event::Closed)
App.Close();
}
// Clear screen
App.Clear(sf::Color(100, 149, 237));
// Draw the sprite
App.Draw(box);
// Update the window
App.Display();
}
return EXIT_SUCCESS;
}