Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: opengl documentation ?

  1. #1
    Guest

    opengl documentation ?

    Hi,
    i'm new to opengl programing and i am having troubles to simply find the documentation for it.

    I have already made a few things with DirectX, and i wondered if there was a documentation similar to the one given with the DirectX sdk (this document contains the description of the DirectX functions, notes from authors, ..., and i would need the same for opengl)

  2. #2
    Senior Member Regular Contributor
    Join Date
    Jan 2002
    Posts
    292

    Re: opengl documentation ?

    go to nividia's page... www.nvidia.com

  3. #3
    Guest

    Re: opengl documentation ?

    Well, i already went to nvidia's site, but i don't know what to take.

    In fact, i am learning opengl init right now, and looking at some tutorials code, i see some functions and i wonder what they do... i would need a doc describing the opengl functions.

    For exemple, in some tuts, they call the DescribePixelFormat, and in some other tuts, they don't call it... naturally, that excites my curiosity, then i would like to get a simple doc where the functions are listed and described briefly.

    Thanks for your reply, i'll dig in nvidia's site, but could u give me the name of the document i have to look for please ? or maybe a link ?

  4. #4
    Senior Member OpenGL Guru
    Join Date
    Jun 2000
    Location
    Gastonia, NC, USA
    Posts
    2,068

    Re: opengl documentation ?

    There is complete on-line documentation on this site, on the main page you can do a search for any Opengl function.

    If you have not noticed there are lot's of book's on Opengl programming.

    Also book's on-line, the openGL reb book is a good source on command usage.

    Red book


    Originally posted by charly:
    Hi,
    i'm new to opengl programing and i am having troubles to simply find the documentation for it.

    I have already made a few things with DirectX, and i wondered if there was a documentation similar to the one given with the DirectX sdk (this document contains the description of the DirectX functions, notes from authors, ..., and i would need the same for opengl)
    [This message has been edited by nexusone (edited 02-06-2002).]

    [This message has been edited by nexusone (edited 02-06-2002).]

  5. #5
    Guest

    Re: opengl documentation ?

    Thanks for your help.

  6. #6
    Senior Member Regular Contributor
    Join Date
    Feb 2002
    Posts
    133

    Re: opengl documentation ?

    Visual C++ has full context sensative help
    for all GL and GLU functions. Just type a function name, highlight it and hit F1.
    --
    Jim Mathies http://www.mathies.com/

    \"The best way to predict the future is to invent it."

  7. #7
    Guest

    Re: opengl documentation ?

    Hmmm, one more thing,
    i got it working a little bit now and i identified the source of the problem.
    When i don't set up the projection and model matrices it seems to work. (i draw in 2D now)

    Here is my code initializing the matrices :
    //create a perspective projection
    glMatrixMode (GL_PROJECTION);
    glLoadIdentity ();

    gluPerspective (45.0f, (GLfloat) m_dwWidth / (GLfloat) m_dwHeight, 1.0f, 100.0f);

    //switch to our model matrix stack
    glMatrixMode (GL_MODELVIEW);
    glLoadIdentity ();

    Do you see something wrong in it ?

    PS: i should still be able to draw in 2D even after having set up these matrices no ?

  8. #8
    Senior Member Regular Contributor
    Join Date
    Jun 2000
    Location
    Karlsruhe, Germany
    Posts
    360

    Re: opengl documentation ?

    If you're drawing 2D you should set up an orthographic projection and not a perspective one:

    glMatrixMode(GL_PROJECTION);
    glLoadIdentity();
    now either
    gluOrtho2D(..)
    or
    glOrtho(..)

    -Lev

  9. #9
    Guest

    Re: opengl documentation ?

    Sure, if i WANTED to draw 2D, actually, i draw 2D to try to make my code work.

    I use the glVertex2i function to do so, and i feel like it draws on the screen plane, right ? (these are pre-transformed vertices who dont store homogeneous information, they are considered as already transformed (their range is of course [-1,1]))

    If yes, it should be independent of the matrices, and should be directly shaded/drawn on the buffer, i guess.

    If no, then it is normal that i have a diferent result when using this function after having set up the matrices or not...

    I hope i am understandable.

  10. #10
    Senior Member Regular Contributor
    Join Date
    Jun 2000
    Location
    Karlsruhe, Germany
    Posts
    360

    Re: opengl documentation ?

    The result *does* depends on how you set up your matrices, thats what matrices are for.

    -Lev

Page 1 of 2 12 LastLast

Similar Threads

  1. Fix link Documentation/OpenGL 2.1 Reference Pages
    By carsten neumann in forum OpenGL: General
    Replies: 2
    Last Post: 04-29-2013, 01:29 PM
  2. Outdated and innacurate documentation on OpenGL.org considered harmful
    By Alfonse Reinheart in forum OpenGL: General
    Replies: 6
    Last Post: 10-02-2012, 07:01 AM
  3. Documentation
    By Jose Ricardo in forum OpenGL: User Software
    Replies: 2
    Last Post: 12-12-2009, 04:56 PM
  4. looking for opengl matrix documentation...
    By in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 09-29-2004, 07:57 PM
  5. Replies: 1
    Last Post: 07-23-2003, 05:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean