Thread: OpenGL Question...simple (triangle drawing stuff)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427
    EDIT, got it work people, apparently you have to call glEnable (GL_LINE_SMOOTH) for some reason.


    Thanks no one it's working now.....hey people I am also having problems with this.......it won't smooth out the lines.


    Code:
    
    		glPolygonMode(GL_BACK, GL_LINE);
    		
    		glBegin(GL_TRIANGLES);
    		glEnable(GL_POLYGON_SMOOTH);	
    		glVertex3f(-1.0f, -1.0f, -5.1f);
    		glVertex3f( 0.0f, 1.0f, -5.1f);
    		glVertex3f( 1.0f, -1.0f, -5.1f);
    		glEnd();

    The book says something about lines of with (1.0) but I don't really understand what it's refering to.
    Last edited by incognito; 03-15-2003 at 07:55 PM.
    There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!

    "...The only real game I thank in the world is baseball..." --Babe Ruth

    "Life is beautiful"-Don Corleone right before he died.

    "The expert on anything was once a beginner" -Baseball poster I own.


    Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Opengl question
    By Shadowwoelf in forum Windows Programming
    Replies: 3
    Last Post: 06-03-2007, 01:21 PM
  2. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  3. Simple Ddraw question. Display bitmap on a screen.
    By tegwin in forum Game Programming
    Replies: 0
    Last Post: 05-22-2004, 05:50 PM
  4. OpenGL question
    By Malek in forum Windows Programming
    Replies: 1
    Last Post: 09-10-2001, 12:00 PM