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.


Messages - Zabarovka

Pages: [1]
1
Graphics / Re: ConcaveShape
« on: October 25, 2016, 09:47:44 am »
Minor updates.

2
Graphics / Re: ConcaveShape
« on: September 02, 2016, 02:46:45 pm »
Just a couple of points that I could see with a quick look:

1) Instead of:
if (texture!=nullptr) {states.texture=texture;}
you can just use:
states.texture = texture;
as nullptr is a valid value for states.texture

2) This is just a question. Why do you attempt to delete the external texture that is used when the object is destroyed? This texture may be used elsewhere.
1) Done  :)
2) ...nevermind- just forgot to remove "delete"...

Thanks ^^

3
Graphics / ConcaveShape
« on: September 02, 2016, 12:48:35 pm »
Hi all. I just wrote some class for concave shapes, but because of being pretty new to SFML and even C++ (this is only my second project with SFML),so I decided to ask you if it is ok and ask you for some advices, and thank you for your time  :)

ConcaveShape.hpp
(click to show/hide)

ConcaveShape.cpp
(click to show/hide)

Usage example
(click to show/hide)

I created it for displaying some charts, so there are few examples:
(click to show/hide)
(click to show/hide)
(click to show/hide)

Pages: [1]