DevIL needs a documentation

Help
2010-01-26
2013-05-02
  • StretchTheBits

    StretchTheBits - 2010-01-26

    It needs some real documentation because I don't see anything that describes what parameters each function takes. For example, what param does ilGetIntegerv accept? When I load a DDS or VTF file, how do I know it is a 2D or 3D or cubemap?
    The header file doesn't have any commenting.
    The pdf doc doesn't have much.

     
  • Matěj Týč

    Matěj Týč - 2010-01-27

    Documentation should be on its way.
    In the meantime, you can download the tarball and

    ./configure && make pdf
    

    to get a PDF manual in the docs/ directory

     
  • StretchTheBits

    StretchTheBits - 2010-01-27

    ok, I found what I was looking for. This is how you deal with file that might contain a cubemap such as DDS and VTF.
    ilvalue=ilGetInteger(IL_IMAGE_CUBEFLAGS);
    if(ilvalue==IL_CUBEMAP_POSITIVEX)
    {
    //it is a cubemap, so get each face
    //Compute the size
    Total = xxxxxxxxxxxx
    for(i=0; i<6; i++)
    {
    ilActiveImage(i);
    memcpy(&pColorData, ilGetData(), Total);
    }

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks