31
Graphics / sf::Text ignoring spaces at the end
« on: February 07, 2012, 11:15:16 am »
Ugh, didn't use the correct terms to search.
I'm sorry I feel stupid. :oops:
I'm sorry I feel stupid. :oops:
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>
#include <iostream>
int main()
{
sf::Text text1("Hello this is a string");
sf::Text text2("Hello this is a string ");
std::cout << "Bounds for text1: " << text1.GetGlobalBounds().Width << std::endl;
std::cout << "Bounds for text2: " << text2.GetGlobalBounds().Width << std::endl;
getchar();
return 0;
}
QuoteWhen I open an SFML application
Any SFML application?
The GetPosition() function takes a parameter? I didn't know that. How does that work?
I have no idea what 90% of those functions you mentioned do..
I also put a picture of the current build settings I have for CMake in there just in case anyone asks what settings used.
it->second = NULL;
delete it->second;
class Managers
{
private:
static ImageManager imgmng;
};
//outside the class
ImageManager Manager::imgmng = ImageManager();
This works but the same error occurs when exiting. Did I do this wrong?
#include <SFML\Graphics.hpp>
#include "ImageManager.hpp"
ImageManager imgmng;
int main()
{
sf::RenderWindow App(sf::VideoMode(560,270,32),"Error");
imgmng.GetImage("any.png");
return 0;
}
#include <SFML/Graphics.hpp>
#include <map>
#include <string>