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

Pages: [1]
1
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?

2
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?

3
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?

4
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);

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

thanks.

6
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.

7
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

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

Is there a replacement?

9
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? :(

10
General / White Window
« on: January 03, 2011, 01:35:17 am »
For some odd reason my SFML program won't render anything until I mouse over it, or press a key or do anything that qualifies as an event.

How do I fix this?

11
Window / I just do not know what to do!
« on: December 25, 2010, 06:46:06 am »
Hi. I've been trying to get SFML to work with Code::Blocks and the provided gcc 4.4 MinGW compiler. SFML-System, as the Randomizer works.

The problem comes with using any form of SFML-Window. As what happens is if (in Code::Blocks) I set the kind of application to Console Application, I get a normal blank command prompt window. It won't respond to any styles. So if I put in Styles::Fullscreen, nothing happens. Just the normal blank command prompt window.

If I set it to a GUI Application like it is supposed to be, nothing appears on screen and I have to manually end the process with the Task Manager.

I've tried reinstalling Code::Blocks. I've tried reinstalling SFML.

I've tried linking the libraries dynamically.

No dice.

Please help me. I'm really sick of using SDL for my programs and would like to switch to SFML, but as you can see I probably won't be able to for now. :(

Pages: [1]