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

Pages: 1 [2] 3 4 ... 21
Graphics / Re: Problem with rendering a rectangle
« on: January 26, 2016, 06:56:32 pm »
You show you're using of window.draw(), but nowhere in this code is window.clear() or window.display(). Do you have clear() happening before drawing in your game loop and display() happening immediately after?

General / Re: SFML 2 and Qt 5
« on: January 15, 2016, 07:41:19 pm »
Ooooh, that's an interesting idea. I'll try that if I can't work out how to easily replicate my SFML code using Qt.

General / Re: SFML 2 and Qt 5
« on: January 15, 2016, 07:13:25 pm »
That's a shame. I've got lots of my course work done with sfml and I'm much more familiar with drawing stuff with sfml, but the application ends up looking much more professional and being easier to use with a Qt gui, so I guess I'll have to redo all my drawing code using Qt.  :-\

General / Re: SFML 2 and Qt 5
« on: January 15, 2016, 06:37:59 pm »
So is it possible to use QT5.5 with SFML doing just rendering to a GraphicsScene and not using SFML for events?

SFML projects / Re: Selba Ward
« on: January 13, 2016, 11:22:44 pm »
I haven't looked through much of the code of the library and was just going off the file you linked so I may have misunderstood things. I was suggesting that a palette could be used by multiple objects of different types, and that you might want to change the brightness for example of that palette (which in my examlke is being used as a whole program colour scheme).

Nexus, I understand the rationale behind using the American spellings, I just innately dislike the oversimplification of words to something which to me just looks like someone didn't know how to spell and guessed. For the record, that is my personal opinion, I do not intend to go on a large rampage and demand things be changed, I just liked seeing someone using what I have always known as the 'correct' spelling after years of having to use what I've always known as the 'incorrect' spelling. Can you tell I'm being careful because I'm used to people turning the subject into a giant fight?

SFML projects / Re: Selba Ward
« on: January 13, 2016, 08:37:46 am »
With palette, is there a reason you made it an enum class, rather than just a class that could be constructed from either, a preset palette, a list of colours, or a list of other palettes, and could have its own methods like setBrightness() for example? I only ask, because this would make it easier to modify palettes and use them for several objects. Also, is there any difference between greyscale and grayscale? It is nice to see the British spelling included, as I already have to live with littering my code with words like 'color', however I feel the inclusion of both goes against thr idea of simplifying the API if they aren't actually different.

Graphics / Re: image to multipart texture
« on: January 12, 2016, 10:37:16 pm »
load test.jpg into an sf::Image and then use loadFromImage().

Graphics / Re: Rectangle intersection returning a weird value
« on: January 12, 2016, 08:08:32 pm »
The second parameter is the size, not the other corner, so a rectangle that starts at (7,7) and has a size of 11x11, will intersect a rectangle which has a corner at (10,14).
Edit: Damn it, you beat me to it.

Graphics / Re: Problem with rotation
« on: December 30, 2015, 10:07:51 am »
My bad, forgot to check the documentation.

Graphics / Re: Problem with rotation
« on: December 29, 2015, 10:38:35 pm »
Do you mean how it works internally, or how you use it, because I'd be much more adept at answering the latter. Every transformable object has a centerpoint, which is by default the top left. Rotate takes an amount of degrees, by which to rotate it, note rotate, not set the total rotation to. It then rotates the corners around that point by the number of degrees given.

Graphics / Re: Problem with rotation
« on: December 29, 2015, 10:33:28 pm »
Also, I'd advise putting the rotate function before the clear function so that you have just clear, draw, display, without anything in between.

Graphics / Re: Problem with rotation
« on: December 29, 2015, 10:24:07 pm »
The code you gave is your workaround. It does not at any point use the rotate() function and hence we cannot see what you were doing wrong with the rotate() function. Also, from the image you've given, it appears to be working.

Graphics / Re: Problem with rotation
« on: December 29, 2015, 10:00:08 pm »
But can you please post the code that didn't work such that we can attempt to see what the problem was.

Graphics / Re: Problem with rotation
« on: December 29, 2015, 09:22:00 pm »
Could you please post a compilable and minimal example of your code.

Audio / Re: Playing a sound wave
« on: December 22, 2015, 10:46:29 pm »
That is a very good point. Thank you.

Pages: 1 [2] 3 4 ... 21