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

Pages: [1] 2
1
Graphics / Re: Preserve aspect ratio / letterboxing?
« on: November 25, 2014, 03:11:19 am »
I am not quite sure.

Like I said, my main objective is to have all of my sprites maintain their aspect ratio when being resized as opposed to stretching to conform to the bounds of the window. If the aforementioned sprites do maintain their aspect ratio, this would result in a letterbox effect. For example, a sprite drawn at the size of 960x540 in a window of the same size, upon the window being resized to 1024x768, would result in black bars along the bottom and top of the window.

I do not quite understand how to accomplish this with views.

2
Graphics / Re: Preserve aspect ratio / letterboxing?
« on: November 24, 2014, 11:40:34 pm »
I am confused and would appreciate additional assistance.

3
Graphics / Preserve aspect ratio / letterboxing?
« on: November 24, 2014, 07:55:44 am »
I'm looking for something simliar to the functionality of this: http://wiki.libsdl.org/SDL_RenderSetLogicalSize

When the window is resized, all of the sprites should preserve their aspect ratio and "cut off edges", resulting in a letterbox effect to do so.

How would I do this?

4
DotNet / Window sizes not accurate
« on: November 02, 2014, 02:10:46 am »
If i create a renderWindow at 1024x768, sizer reports it to be at 1040x806. why is this?

5
Window / Window position changes
« on: November 04, 2013, 11:04:10 am »
Is there a way to detect when the user shifts the renderWindow's position? Or is there any sort of interaction with this event at all?

6
Graphics / Window Scaling
« on: October 05, 2013, 09:38:17 am »
So when you resize an SFML2 window, the sprites / dimensions scale. How can I manipulate this codewise?

ex: window.setScale(float, float);

7
Graphics / font Smoothing
« on: August 29, 2013, 02:11:45 am »
How does one toggle the smoothing effect on sf::Font/Text?

thanks.

8
Graphics / Copying sf::Sprite(s) -> sf::Image
« on: July 23, 2013, 12:06:34 am »
I have a 2d array of sf::Sprites.  Is there a way for me to copy all of them to one sf::Image / similar type and then draw the single image/type they were copied to?

Thanks a bunch.

9
Graphics / Re: How are sf::Textures saved?
« on: May 07, 2013, 07:49:52 am »
Yes it does. Thanks!

10
Graphics / How are sf::Textures saved?
« on: May 02, 2013, 10:46:05 am »
To elaborate/be more specific, are sf::Textures copied into the sf::Sprite or does the sf::Texture need to always be reference-able by the variable?

Explanations? :D

11
Graphics / Re: GetPixel
« on: January 18, 2013, 02:00:27 pm »
thanks!

12
Graphics / GetPixel
« on: January 18, 2013, 01:47:24 pm »
Has GetPixel been removed? If so, why?

Is there a replacement?

13
General / Design issue with sf::Keyboard / Events
« on: March 03, 2012, 12:19:39 am »
Thanks.

14
General / Design issue with sf::Keyboard / Events
« on: March 02, 2012, 08:08:30 am »
So like many other people using SFML2, I'm making a game. Like many other games, it uses several keys on the keyboard to move a sprite around.

The issue is that if I use KeyPressed in the Event Loop to get player movement, I get a sort of "stutter" and it is very unpleasant.

If I use sf::Keyboard to get player movement, it moves smoothly but movement persists when the window is not in focus.

How can I work around this? :(

15
General / White Window
« on: January 03, 2011, 04:56:43 am »
That was it! (Damn, I swear I had put it outside of the event loop)

Thanks.

Pages: [1] 2