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 - Kadoba

Pages: [1]
1
Graphics / [SOLVED] Are SFML shapes suitable for collision detection?
« on: July 22, 2013, 07:30:12 pm »
Hello,

I want to use SFML shapes for collision detection to save me some work and for this purpose I won't be using them for rendering (except for maybe debugging). Since I don't know much about OpenGL or the underlying code I am just wondering if they are lightweight enough for this purpose.

2
System / Resource and ResourcePtr
« on: August 03, 2009, 06:05:36 pm »
Hello I'm new to SFML and C++ and I'm trying to make my own resource manager to get some experience and decided to use the built-in Resource and ResourcePtr classes.

After struggling a bit I realized that whenever you try to access the resource of a pointer it will always return a constant of that resource. Now, const correctness is something I usually don't bother with so I am a little lost.

How can you use resource pointers if it always returns a constant? Are mutators impossible in this situation?

It seems like a really useful feature but a little contrained. I guess if I have to I'll do my own reference counting with raw pointers or use another library, but I'd really like to use the built-in features if I could.

Pages: [1]