open-gl wireframe and infinite

This is a discussion on open-gl wireframe and infinite within the Game Programming forums, part of the General Programming Boards category; 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, ...

  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 12:34 PM.
    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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21