Compiling OGLE (Relocated)

Developers
Brennan
2006-06-14
2013-04-11
  • Brennan

    Brennan - 2006-06-14
     
    • Brennan

      Brennan - 2006-06-14

      Hey Mike,
           Can you send me the changes you made in the source files for Descent III?  I think when I recompiled, I overwrote your changes, so I am getting the weird '.obj' files again.

      Thanks.

       
      • Michael Frumin

        Michael Frumin - 2006-06-14

        oh, shux.  that modification, which isn't in the released code, was to suhffle a bit of code in the OGLEPlugin::GLFunctionPre method.  please move the following from the lower set of clauses:

            else if(strcmp(funcName, "glVertexPointer") == 0) {
                GLint size; _args.Get(size);
                GLenum type; _args.Get(type);
                GLsizei stride; _args.Get(stride);
                GLvoid *pointer; _args.Get(pointer);
                ogle->glVertexPointer(size , type , stride , pointer);
            }
            else if(strcmp(funcName, "glNormalPointer") == 0) {
                GLenum type; _args.Get(type);
                GLsizei stride; _args.Get(stride);
                GLvoid *pointer; _args.Get(pointer);
                ogle->glNormalPointer(type , stride , pointer);
            }
            else if(strcmp(funcName, "glTexCoordPointer") == 0) {
                GLint size; _args.Get(size);
                GLenum type; _args.Get(type);
                GLsizei stride; _args.Get(stride);
                GLvoid *pointer; _args.Get(pointer);
                ogle->glTexCoordPointer(size , type , stride , pointer);
            }

        to right under:

                else if(strcmp(funcName, "glBufferData") == 0
                        || strcmp(funcName, "glBufferDataARB") == 0) {
                    GLenum  target; _args.Get(target);
                    GLsizei size; _args.Get(size);
                    GLvoid * data; _args.Get(data);
                    GLenum  usage; _args.Get(usage);
                    ogle->glBufferData(target , size , data , usage);
                }

        thanks,
        mike

         

Log in to post a comment.