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

Pages: 1 ... 3 4 [5] 6 7 ... 34
Audio / Re: Best way to compress music...
« on: October 27, 2012, 10:47:52 pm »
Why don't you use the ogg/vorbis format?

Oh. ??? I was under the impression that .ogg files where for short sound snippets, not music. Thanks for the help! :)

That's the exact opposite of what they're for. OGG is for music and longer samples, WAV is for short samples like sound effects.

Window / Re: Error in the OpenGL Version Picking
« on: October 27, 2012, 05:35:22 am »
I've been looking into a possible solution to this problem, and I found a function in GLEW that may be of interest. The example code given is

if (glewIsSupported("GL_VERSION_1_4"))
  /* Great, we have OpenGL 1.4. */

Perhaps dynamically build a string from the context settings, automatically inserting the version number, and using this function to test the version before trying to build the context? Because as it is right now, on Linux, the program completely crashes out to desktop if we even attempt to make a context with an unsupported version.

General / Re: How do i write variables contents in text?
« on: October 26, 2012, 12:18:48 am »
Im not really that advaned yet to use templates.
Check the StandardTemplateLibrary documentation for more information
Love this forum sometimes.  ;D
The best part about the Standard Template Library is that you can know next to nothing about templates and still be able to use it effectively.

Window / Re: Error in the OpenGL Version Picking
« on: October 24, 2012, 06:49:46 am »
Maybe using an old GLEW version

GLEW 1.9.0 Available OpenGL 4.3 Support

Try updating the GLEW library
Updating GLEW did not help.

Window / Re: Error in the OpenGL Version Picking
« on: October 24, 2012, 06:46:21 am »
Maybe using an old GLEW version

GLEW 1.9.0 Available OpenGL 4.3 Support

Try updating the GLEW library
Oddly, GLEW has not been updated from 1.8 in Arch's repositories, and there seems to be no plans of doing so. How frustrating.

Graphics / Re: Where to put renderwindow
« on: October 23, 2012, 04:39:08 am »
Well, first of all, that's not a complete code sample. By itself, what you posted is completely useless.

Also, you're using a class where just a function would do. Or even better, just put it in main where it belongs.

Window / Re: Error in the OpenGL Version Picking
« on: October 22, 2012, 03:19:34 am »
What happens after this error message is printed? Does the program crash? Or does it continue to run? If so, what does window.getSettings() say about the context version? And if it crashes, what does the debugger say?
It completely crashes out. GDB gives no additional information. SFML prints nothing. All I get is the X error that I posted already. The driver update didn't help, either.

Window / Error in the OpenGL Version Picking
« on: October 21, 2012, 10:36:09 pm »
A while back, it was suggested that if an SFML window fails to create an OpenGL context of a specific, requested version (say, 4.3), it falls back to a previous version, and continues to do so until it finds a supported version. Right now, I have a bit of code that creates a window with an OpenGL version of 4.3 (but my graphics cards only supports up to 4.2), and instead of falling back to a previous version of OpenGL, it instead crashes with the following error:

X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  153 (GLX)
  Minor opcode of failed request:  34 ()
  Serial number of failed request:  89
  Current serial number in output stream:  90

I am using the latest version of SFML2 from the repository. I did search for this error, but found nothing.

A complete and minimal source that demonstrates this is here.

I'm running an NVidia GTX 460 on Arch Linux. Drivers are proprietary, 304.51. I just updated to 304.60 though, so I will test with those as well and edit with the results.

General discussions / Re: Does Code::Blocks have support for C++11?
« on: August 23, 2012, 10:27:45 pm »
EDIT:  Forgot to add that if that option isn't in your Code::Blocks install then get one of the nightly builds.
Or just add -std=c++0x to the compiler flags yourself...
-std=c++11 also works

General / Re: How can I make .exe?
« on: May 13, 2012, 07:24:12 pm »
Well, you're missing SFML's DLLs. May we see your source code?

Copy the sfml-system, sfml-window, and sfml-graphics DLLs into the same folder as your exe. If you're using audio as well, copy the sfml-audio DLL into the folder too.

General / Re: Framerate Issues
« on: April 29, 2012, 07:28:41 pm »
Well, you ARE rendering a LOT. What graphics card do you have? Are your drivers up to date?

General / Re: Framerate Issues
« on: April 29, 2012, 04:05:07 am »
Your equation for calculating framerate is wrong. It should be 1/seconds, not 1000/seconds.

I think its even more simple. In your render loop make sure you call RenderWinow.DispatchEvents().

While (RenderWindow.IsOpen())
There is no DispatchEvents() function in SFML.

SFML website / Re: Site sends spam to email?
« on: April 23, 2012, 03:34:56 pm »
You know that error message has your email and your IP address in it, right? And that this forum has spam bots lurking everywhere?

General discussions / Re: SFML 2.0 Disable Screensaver
« on: April 17, 2012, 02:08:27 am »
This is completely irrelevant to SFML. Programs can not turn off the screensaver. Only the user can through changing their options in the OS.

Pages: 1 ... 3 4 [5] 6 7 ... 34