Log in or register to post comments

How to get the value from .h(3D model) in the same name but different directory.

December 21, 2012 - 10:10pm #1

How to get the value from .h(3D model) which are diffenent 3D model but same name and different directory.
For Example.

A1.h(Banana model) is in /FrameMarkers/Model/A1.h

A1.h(Tiger model) is in /FrameMarkers/Model1/A1.h

but I want to get values from the variables, which are A1NumVerts, A1Verts, A1Normal, A1TexCoords from both of them in order to use for my condition in this code:
 

 

int Type=Animal;

- (void) setup3dObjects

{

    if(Type==Animal){

    [self add3DObjectWith:A1NumVerts ofVertices:A1Verts normals:A1Normals texcoords:A1TexCoords                        

                     with:NUM_R_OBJECT_INDEX ofIndices:RobjectIndices usingTextureIndex:0];                                     <<<<<<<<<<<< show Tiger

    }

    else

    {        

        [self add3DObjectWith:A1NumVerts ofVertices:A1Verts normals:A1Normals texcoords:A1TexCoords

                         with:NUM_R_OBJECT_INDEX ofIndices:RobjectIndices usingTextureIndex:0];                                    <<<<<<<<<<<< show Banana

    }

}

 

How can I change the code that I underline in order to get the value from them?

Log in or register to post comments