Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 15 Mar 2013
Offline Last Active Jul 13 2014 04:13 AM

Posts I've Made

In Topic: Fastcall22 tries to install SQL on Ubuntu Server

13 July 2014 - 04:13 AM

It should be a one click install with synaptic?

In Topic: Anyone heard of "Cogl"? I have no idea but need help with it

07 July 2014 - 12:44 AM

Never heard of that licence but it seems you only need to mention the previous authors?

In Topic: how to use or ||

07 July 2014 - 12:22 AM

Thanks. || was ok but a displaced clamp.  Below seems fine:


                                    if(state != AL_PLAYING)
                                        SourcesPos[0][0] = 0.0;
                                        SourcesPos[0][1] = 0.0;
                                        SourcesPos[0][2] = 0.0;

                                        alSourcefv(Sources[0], AL_POSITION, SourcesPos[0]);
                                    if (rainP <= 0.3 || temperatureC < 0 || cloudAlt <= altibaro){
                                    }else if(state != AL_PLAYING){

In Topic: sdl_image load tga fails on Windows

03 July 2014 - 05:04 AM

Yes nothing, so maybe something's different on win64.


Why do I get lots of errors alike:

Error    7    error LNK2001: unresolved external symbol _SDL_SetError    H:\CPP-Win\SDL_image-1.2.12\VisualC\IMG_webp.obj    SDL_image


when I try to compile sdl_image with vc? I've added the path to sdl and sdl_image libs. I have mostly used Eclipse on Linux so I might have overlooked something.


In Topic: sdl_image load tga fails on Windows

03 July 2014 - 04:52 AM

That's what I do. The very same works fine on Linux/Mac but on Windows 64bit I only get white squares. Just ran the debugger through with no errors.

I've problems compiling sdl_image, so thanks if someone could compile that with tga support on win64.


    SDL_Surface* image;
    image = IMG_Load(pFileName);

        if (image) {
            XPLMGenerateTextureNumbers(&gTexture[TextureId], 1);
            XPLMBindTexture2d(gTexture[TextureId], 0);
            gluBuild2DMipmaps(GL_TEXTURE_2D, 4, image->w, image->h, GL_RGBA, GL_UNSIGNED_BYTE, image->pixels);
    Stat = TRUE;

    } else {
        XPLMDebugString("### LoadGLTex(): Error loading texture!\n");
        Stat = FALSE;