Original Post
Here''s the code:
//global
GLuint laser;
//
GLvoid BuildList()
{
laser=glGenLists(1);
glNewList(laser,GL_COMPILE);
glLineWidth(1);
glColor3f(1.0f,0.0f,0.0f);
glBindTexture(GL_TEXTURE_2D, texture[4]);
glBegin(GL_LINES);
glVertex3f(0.0f,0.0f,0.0f);
glVertex3f(0.0f,0.25f,0.0f);
glEnd();
glEndList();
}
void lasers(){
glLoadIdentity();
glTranslatef(rightlaserx,rightlasery,yourshipz);
glCallList(laser);
}
int DrawGLScene(GLvoid)
{
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
lasers();
return TRUE;
}
The laser doesn''t show up. Any ideas? Thanks!
lunasol