Multiple Values?

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

  • Hi, I am just wondering how you can set multiple values for example to set a color. I am just testing fog and it works fine but the only problem is the variable use for the color. In standard OpenGL it's like this i think -

    GLfloat fogColor[4]= {0.5f, 0.5f, 0.5f, 1.0f};

    glFogfv(GL_FOG_COLOR, fogColor);

    If i try -

    fogColor = ( 0.5, 0.5, 0.5, 1.0 )


    fogColor[4] = ( 0.5, 0.5, 0.5, 1.0 )


    gl.float fogColor[4] = { 0.5, 0.5, 0.5, 1.0 }

    gl.Fog(gl.FOG_COLOR, fogColor)

    And various other attempts return a black screen. Without setting a color it shows fine but then the fog is always black as default but i wanted to set a grey so it appears more like real fog. Does anyone know how to do this with Xlua OpenGL code?

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!