idobjeto.h
Código:
int ObjetosTotales = 0;
struct Objeto{
float x, y, z;
GLuint modelo;
float t_x, t_y, t_z;
int ang_x;
void Nuevo(GLuint vmodelo, float vx,float vy,float vz,int vang_x,float vt_x,float vt_y,float vt_z) {
modelo = vmodelo;
ang_x = vang_x;
x = vx; t_x = vt_x;
y = vy; t_y = vt_y;
z = vz; t_z = vt_z;
ObjetosTotales++;
}
}Objeto[5000];
struct Objeto{
float x, y, z;
GLuint modelo;
float t_x, t_y, t_z;
int ang_x;
void Nuevo(GLuint vmodelo, float vx,float vy,float vz,int vang_x,float vt_x,float vt_y,float vt_z) {
modelo = vmodelo;
ang_x = vang_x;
x = vx; t_x = vt_x;
y = vy; t_y = vt_y;
z = vz; t_z = vt_z;
ObjetosTotales++;
}
}Objeto[5000];
Como hago para poder acceder a el desde cualquier .cpp? uso vc++2008
Gracias de antemano porfavor las respuestas lo mas detalladas posibles






