Results 1 to 10 of 19

Thread: 2D perspective correct texturing ?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #10
    Hi phibermon,

    with this code:
    Code:
    glBegin(GL_QUADS);
            
    glTexCoord2f(0, 0);
    
    glVertex2f  (500, 200);
    
    glTexCoord2f(0, 1);
    glVertex2f  (600,  200);
    
    glTexCoord2f(1, 1);
    glVertex2f  (1000,  700);
    
    glTexCoord2f(1, 0);
    glVertex2f  (50, 700);

    this is the rendering:



    Browsing the web i found the Opengl glTexCoord4f function, but it is not clear about use it.

    Thanks
    Sesilla
    Attached Images Attached Images

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •