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

Pages: 1 ... 8 9 [10] 11 12 ... 34
136
General / Re: Facing in the direction of velocity vector
« on: September 14, 2016, 07:54:49 pm »
The following code is rotating a shape to 45 deg and 90 deg correctly.

(click to show/hide)

Can you make a minimal example (ie, similar to the code I put above) of what you are doing?

137
General / Re: Facing in the direction of velocity vector
« on: September 14, 2016, 06:42:42 am »
Remember that a (2D) vector can be thought of as a triangle on a plane.

y
|\
|  \
|    \  -> vector
|     \
|___\
x     ^
        angle

angle = arctan(y / x)

Gotta remember your trigonometry. Turns out it's useful. Sometimes. :)

(click to show/hide)

138
General discussions / Re: SFML at C++ Archive Network
« on: September 13, 2016, 10:50:29 pm »
Cool stuff! Though, you may want to consider an acronym change. CPAN is a thing.

Different, but close enough to potentially looking like a typo. Just my two cents!

Maybe CXXAN?

139
Feature requests / Re: Simple Message Box
« on: September 12, 2016, 06:56:39 pm »
FWIW, SDL's X11 implementation uses X11 primitives to make a message box.

140
General / Re: SFML errors when compiling if OpenGL.hpp is included.
« on: September 12, 2016, 01:59:00 am »
If you want to develop for Android and/or iOS (where OpenGL ES is used), you need the respective SDKs.

If you don't need Android support (Since you're on Windows, iOS isn't relevant here. OSX is needed), don't worry about it.

141
General / Re: SFML errors when compiling if OpenGL.hpp is included.
« on: September 11, 2016, 10:22:19 pm »
Add OpenGL32.lib as an input in your linker options.

Instead of copying the GL folder, a better option would have been to add the Windows SDK include directories as additional include directories for your project.

142
General / Re: SFML errors when compiling if OpenGL.hpp is included.
« on: September 11, 2016, 07:25:07 am »
You need the Windows SDK installed to have GL/gl.h on Windows. (Google for it to get the right version for your OS)

143
General / Re: Problem on using SFML.NET binding
« on: September 03, 2016, 02:27:38 am »
I use the build configurations(I think this is what you mean by build configurations) as "Debug" and "Platform" as "Any CPU"

Yep, this is it. I've never had good experience with using Any CPU when using native dlls (ie: CSFML). Easiest thing to do is add x86 and x64 Platforms, and remove Any CPU. That should solve your problem.

144
General / Re: Problem on using SFML.NET binding
« on: September 02, 2016, 10:22:11 pm »
Ah okay. How are you switching to the 64-bit libraries? What are your build configurations in Visual Studio?

145
General / Re: Problem on using SFML.NET binding
« on: September 02, 2016, 03:18:19 am »
The SFML.NET 64-bit download already contains CSFML 64-bit in the extlibs folder.

The download page doesn't contain a "complete package" for 32-bit and 64-bit versions. You have to download each individually. I assume that's the issue.

146
General / Re: Problem on using SFML.NET binding
« on: September 01, 2016, 08:08:06 pm »
Looks like you're not providing the correct CSFML dlls. You need x86 SFML.NET libraries with x86 CSFML libraries. Same goes for x64.

Side note: That's not WPF, that's WinForms.

147
Feature requests / Re: Support scalar color operator overloads
« on: August 19, 2016, 03:10:05 am »
A cool alternative that could technically make all parties happy would be to simply add swizzling to sf::Color (and sf::Vector#<T>)!

(I'm not serious, just to be clear. As cool it would be, I don't find it worth the effort. Though, it has been done.)

148
General discussions / Re: SFML 2.4.0 released
« on: August 17, 2016, 07:48:44 pm »
Alright, no problem. Thanks for letting me know!

I've ended up doing a fair amount of C++ <-> C <-> C# binding at work, so I figured I might be able to help out a bit.

149
SFML projects / Re: Super Mario game
« on: August 17, 2016, 07:46:51 pm »
Happy to help; and good job on figuring it out!

150
SFML projects / Re: Super Mario game
« on: August 17, 2016, 01:33:32 am »
That's what my 2nd and 3rd sentences were talking about.

See: https://msdn.microsoft.com/en-us/library/ms185328.aspx

I think I saw you mention you're on a 32-bit machine, so make sure you set it all up for x86.

Pages: 1 ... 8 9 [10] 11 12 ... 34
anything