Hmmm maybe it's just me, but I don't understand what you really want to do...
If you want to draw your own geometry things, you may want to use sf::ConvexShape and handle the points on your own, or go directly to sf::VertexArray.
hm, I've seen this method. But I don't think ConvexShape is what I need.
If you don't know how to derive from classes and implement the virtual functions, then you haven't understood some basic OOP stuff, which you can read up on various knowledge sources (better FRex? ).
If you understand OOP, then you should maybe take a look at sf::Drawable and sf::Transformable in the SFML documentation. Those base classes can be used to create your own drawable and transformable object.
I know the basics of OOP and the idea of OOP, as I come from java, but I still have troubles with implementation in C++.
I had look at drawable too and even think, that this could be more usefull than using Shape. I have to revise OOP, propably you're right and my knowledge in OPP is too short
So what exactly do you mean by that line:
For a project I need to paint 3 objects. (2 coordinatesystems, 1 scale).
I need to decelop a window where you can see 3 constant Objects.
The first object is a coordinate System. On the surface of this coordsystem I want to display a moving point, which coordinates are transmitted by an extern program.
I made a small picture in paint, so you can see what I have in mind.
I thought it is useful to make a class for each of this objects, as I have to make some calculations and some data a transmitted. I didn't want to put all in the window method.
I hope you understand, what I want to do.
Edit:
@FRex
Hey, I already experimented with Drawable.
In the end, I was not able to call the MyDrawable.draw(RenderTarget,RenderStates) method,
because I was not able to transform my RenderWindow into a RenderTarget?
I found this quite strange, as I thought, RenderWindow inherits from RenderTarget, but I had no Idea to solve this
Edit2:
wow, I testet it now with this command:
window.draw(myDrawableTest); // myDrawableTest is a object I generated from myDrawable
and it works!!! Thank you FRex and eXpl0it3r!
I almost had the same code like you before, but I didn't try to use window.draw( ... ).
[attachment deleted by admin]