Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 5 of 5

Thread: OpenGL Basic Shapes tutorial

  1. #1
    Junior Member Newbie
    Join Date
    May 2012
    Posts
    8

    OpenGL Basic Shapes tutorial


  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Apr 2010
    Location
    Germany
    Posts
    894
    I'm not sure if posting tutorials is the best thing to do here. The developers forum is supposed to provide a platform for discussing concrete problems.

  3. #3
    Advanced Member Frequent Contributor
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    723
    Perhaps there should be a forum or stickies for this type of information and useful (and up to date) web sites. I know when I google I often find what I think is a good code example only to find out later that it has been replaced by new better OpenGL code.

  4. #4
    Super Moderator OpenGL Guru
    Join Date
    Feb 2000
    Location
    Montreal, Canada
    Posts
    4,421
    Not that I want to discourage you but somebody beat you to it by about 15 years.
    Look at http://nehe.gamedev.net/tutorial/lessons_01__05/22004/
    and if you look at each tutorial, they have the code in multiple languages and IDEs.

    and there are many such sites that show you how to draw a triangle or cube or torus.

    These days, what is needed more are tutorials and examples using the modern features of GL since the ARB doesn't release an SDK like Microsoft does for their API.
    ------------------------------
    Sig: http://glhlib.sourceforge.net
    an open source GLU replacement library. Much more modern than GLU.
    float matrix[16], inverse_matrix[16];
    glhLoadIdentityf2(matrix);
    glhTranslatef2(matrix, 0.0, 0.0, 5.0);
    glhRotateAboutXf2(matrix, angleInRadians);
    glhScalef2(matrix, 1.0, 1.0, -1.0);
    glhQuickInvertMatrixf2(matrix, inverse_matrix);
    glUniformMatrix4fv(uniformLocation1, 1, FALSE, matrix);
    glUniformMatrix4fv(uniformLocation2, 1, FALSE, inverse_matrix);

  5. #5
    Junior Member Newbie
    Join Date
    May 2012
    Posts
    8
    Hi guys, check the link out and leave a rating or a comment.

Posting Permissions

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