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

Pages: [1]
1
General discussions / Re: SFML 2 Linker error VS2012
« on: October 30, 2012, 12:45:07 am »
I want to link libraries statically to my application. Is Laurent's answer gonna fix my problem ? Thanks.

2
General discussions / Re: SFML 2 Linker error VS2012
« on: October 30, 2012, 12:34:28 am »
Actually I've already read these posts but doesn't get the solution. I'm started to thinking my english isn't enough for this :) I will read these posts again. Thanks.

3
General discussions / SFML 2 Linker error VS2012
« on: October 30, 2012, 12:16:54 am »
When i tried to use the newly compiled libraries in my project linker error in the below occurred. Any solutions?

1>sfml-graphics-s.lib(jerror.obj) : error LNK2001: unresolved external symbol __imp__fprintf

[attachment deleted by admin]

4
Graphics / Re: sf::Image Problem
« on: October 26, 2012, 11:18:20 pm »
Here is my main loop

while(mainWindow.isOpen())
{
        glEnable(GL_DEPTH_TEST);
        glDepthMask(GL_TRUE);
        glEnable(GL_CULL_FACE);
        glEnable(GL_LIGHTING);
        glEnable(GL_LIGHT0);

        glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
        glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

        glMatrixMode(GL_PROJECTION);
        glLoadIdentity();

        gluPerspective(60.0f, 0.f, 0.1f, 10.0f);

        glMatrixMode(GL_MODELVIEW);
        glLoadIdentity();

        draw();

        mainWindow.display();
}
 

5
Graphics / Re: sf::Image Problem
« on: October 26, 2012, 06:34:05 pm »
                gluBuild2DMipmaps(GL_TEXTURE_2D, 4, texture.getSize().x, texture.getSize().y,
                        GL_BGRA_EXT, GL_UNSIGNED_BYTE, texture.getPixelsPtr());

Changing GL_BGRA_EXT to GL_RGBA fixed color problem but its still transparent.

Thanks.

6
Graphics / Re: sf::Image Problem
« on: October 26, 2012, 05:47:47 pm »
You probably use it as ARGB whereas sf::Image uses RGBA.

I'm not experinced in computer graphics. Is there a color profile for gimp for this conversion? Should I convert pixels one by one?

Thanks for your help.

7
Graphics / sf::Image Problem [Solved]
« on: October 26, 2012, 04:36:59 pm »
When i use sf::Image instead of another bitmap loader textures drawn in blue and becomes transparent. Any solutions?

Thanks.

[attachment deleted by admin]

Pages: [1]