Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

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.


Topics - Phys1k3r

Pages: [1]
1
General / SFML 2.0 on Visual Studio 2010 64Bit
« on: September 26, 2012, 02:44:41 pm »
Hey,
I need SFML 2.0 to run on a project with Visual Studio 2010 that is compiled on 64 Bit systems...

Are there any precompiled libraries I can use for that?

Or do I have to compile them myself? And if I need so, how do I do that?

I already asked google, but I haven't found an answer. It is very important for me to have a fast solution for this problem.

thank you for your time!

2
Graphics / Creating your own drawable objects
« on: September 07, 2012, 04:23:10 pm »
Hello,
I am just a beginner in C++ and even more a beginner in SFML. I use SFML 2.0 with Visual Studio 2010.

For a project I need to paint 3 objects. (2 coordinatesystems, 1 scale).
I wanted to create a class for each object and than I wanted to draw the object on my window.

I created a window with this
 
main(){
sf::RenderWindow window(sf::VideoMode(800, 600), "SFML window");

// I had something in mind like doing this:

zControl zCon;                      // zControl is the scale class I want to print
xyControl xyCon;                  // xyControl is on coord System I want to draw
angleControl angleCon;       // angleControl is the orther coord System I want to draw

... // do some other stuff

window.draw(zCon);
window.draw(xyCon);
window.draw(angleCon);

... // do other stuff
}


One class is called  zControl, this should be one of the objects, I want to draw.

class zControl : public sf::Shape
{
public:
        zControl(void);
        ~zControl(void);
};
 

I thought that if I inherit from Shape could be a useful Idea, but I do not really know how to do it. I know the basics of abstract classes, but I have no idea how to realize it.

Unfortunately I do understand the tutorials, but there is not explained how to solve my problems.
The Tutorials just show me how to paint Rectangles, Strings, Circles, etc...
I assume it is pretty basic, but I tried a lot of things now for a long time and nothing seems to work.

Pages: [1]
anything