First off, im using OpenGL...so, I have a function 'cube' that requests 4 parameters, an object name, x,y,and z values. (cube(int objname,int x,int y, int z) Then I have a class that holds all of its coordinates...It works fine and dandy cept I cant get it to interpret the variable 'objname' as an actual number. So my class 'entity' ill do 'entity objname' 'objname.x=x....etc. But, obviously it reads 'objname' as the actual name, and not the variable stored in side. So, could I use a pointer somehow to get the value inside 'objname'? If not, what else should I try? thanks