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

Pages: [1]
1
General discussions / Java
« on: February 08, 2010, 06:39:45 pm »
Any progress?  I'm writing a couple of apps in Java and jSFML would come in handy.

2
General / #include problem (more C++ related than just SFML)
« on: March 11, 2009, 07:21:37 pm »
I usually solve a lot of these recurive include problems by declaring a class without defining it.  For instance, your level class declaration may only need a pointer to your resource manager class.  In this case, you can create a pointer without including your resource manager header.

Example:

Level.h
------------------------
Code: [Select]
class ResourceManager;

class Level
{
  ....

  ResourceManager *m_pResourceMgr;
  ...
};


Now in ResourceManager.h, you are free to include Level.h

3
Graphics / Custom Refresh Rate
« on: March 06, 2009, 11:41:24 pm »
I don't know of any way to ask for a video mode with a specific refresh rate.  If you ask for 800x600x32 and your monitor supports that resolution at both 60Hz and 75Hz, I'm not sure which video mode you'll get.  It looks to me like you get 60Hz.

Perhaps in the future a requested refresh rate can be added as part of the VideoMode structure.

Of course, I'm fairly new to SFML myself, so I could be wrong.

4
Sounds great! Thanks!!

5
Blend::Add ignores the source image's alpha channel.
In my game, I am using some special effects where I want an additive blend mode, but I need it to use the source image's alpha channel as well.

The GL blend function I need is:
glBlendFunc(GL_SRC_ALPHA, GL_ONE)

It was really simple to change SFML to do this, but I'd like to stay standard to maintain a good upgrade path.  It would be helpful to add a new blend mode to handle this.

Thanks

Pages: [1]
anything