Thread: open-gl wireframe and infinite

  1. #1
    Registered User xlnk's Avatar
    Join Date
    Mar 2002
    Posts
    186

    open-gl wireframe and infinite

    I have a square which i want to be infinite, like landscape.

    Code:
    glTranslatef(0.0f, 0.0f, -6.0f);                         
    glRotatef(-50.0f,1.0f,0.0f,0.0f);			
    glColor3f(0.0,0.8,0.0);
    	glBegin(GL_QUADS);                                      
    		glVertex3f(-5.0f, 5.0f, 0.0f);		       
    		glVertex3f( 5.0f, 5.0f, 0.0f);		       
    		glVertex3f( 5.0f,-5.0f, 0.0f);		      
    		glVertex3f(-5.0f,-5.0f, 0.0f);		       
    	glEnd();
    i also want it to be in a wireframe view, is there anyway to do that? Also is there a function to subdivide?
    Last edited by xlnk; 05-18-2002 at 11:34 AM.
    the best things in life are simple.

  2. #2
    Registered User xlnk's Avatar
    Join Date
    Mar 2002
    Posts
    186
    anyone?
    the best things in life are simple.

Popular pages Recent additions subscribe to a feed