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

Pages: [1]
1
Window / Re: Window and View coords
« on: March 11, 2013, 05:13:28 pm »
Thanks, I think it'll do with the problem.

2
Window / Re: Window and View coords
« on: March 10, 2013, 09:59:00 pm »
Sorry, as through I read it now it really seems unclear to me as well.

So let's start with this:

I have a window and a view, that shows, let's say, half of the window(both in X and Y axis).
And then I'd like to know if my view contains a specific point in the window. Basically I'd like to achieve having no negative coordinate values(-40, -60 etc.) in my view. I'm writing a tilemap engine so it'd be good if every and each of my map's top-left corner was in (0.f, 0.f), not any other coords.

Does it have something to do with ViewPort? Or maybe should I get the View's Rectangle(but would it then return the X and Y Positions Window-related?).

I know I'm not that good at explaining what I want to achieve, but hope it will suffice.
Thanks for Your patience.

3
Window / Window and View coords
« on: March 10, 2013, 02:37:46 pm »
Hi.
I've been trying to make my View Window-coord dependant somehow, but really have no idea how to do it.
So basically I'd like to not let the view move, for example:
To the left, if there's window pixel (x=0,y) in the view
To the top, if there's window pixel(x,y=0) in the view
And so on.
Does it have anything to do with the ConvertCoords function? Cause that's rather to be used with mouseclicks, or am I wrong?
Awaiting response,
Sincerely

4
General / Code::Blocks WxSmith-provided code and SFML 2.
« on: February 21, 2013, 07:40:55 pm »
Hello.
I've recently felt that I badly need something to create a good GUI, and my library of chose has been WxWidgets.
I'm using Code::Blocks and it's built-in WxSmith Editor to get some basic knowledge about how to use it. I'm really impressed by what it's shown me so far. I've read the official tutorial on integrating Wx with SFML, but as of my current knowledge state I don't really now whether I'm able to use the code generated in WxSmith with my SFML project, or should I rather go straightly for learning the pure WxWidgets programming?

Thanks for Your patience.

Pages: [1]
anything