+ Reply to Thread
Page 5 of 6 FirstFirst ... 3456 LastLast
Results 41 to 50 of 52

Thread: c++/opengl: Introduction to c++/opengl game programming for beginners

  1. #41
    benchsketch is offline Newbie
    Join Date
    Apr 2009
    Posts
    1
    Blog Entries
    1
    Rep Power
    0

    Re: c++/opengl: Introduction to c++/opengl game programming for beginners

    Nice, a good way to get started

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #42
    raj_munshi88 is offline Newbie
    Join Date
    Apr 2009
    Posts
    1
    Rep Power
    0

    Smile Re: c++/opengl: Introduction to c++/opengl game programming for beginners

    thanx a lot...

  4. #43
    michaelvd12's Avatar
    michaelvd12 is offline Learning Programmer
    Join Date
    Apr 2009
    Posts
    99
    Rep Power
    11

    Re: c++/opengl: Introduction to c++/opengl game programming for beginners

    Code:
    int DrawGLScene(GLvoid) 
    {
    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 
    glLoadIdentity();
    glTranslatef(0.0f,0.0f,-10.0f);
    glBegin(GL_TRIANGLES); 
    glColor3f(0.0f,0.0f,0.0f);
    glVertex3f( 0.0f, 1.0f, 0.0f); 
    glColor3f(0.0f,1.0f,0.0f); //red
    glVertex3f(-1.0f,-1.0f, 0.0f); 
    glColor3f(1.0f,0.0f,1.0f); //red
    glVertex3f( 1.0f,-1.0f, 0.0f); 
    glEnd();
    
    return TRUE; 
    }
    Must be are :

    Code:
    int DrawGLScene(GLvoid) 
    {
    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 
    glLoadIdentity();
    glTranslatef(0.0f,0.0f,-10.0f);
    glBegin(GL_TRIANGLES); 
    glColor3f(0.0f,0.0f,0.0f);
    glVertex3f( 0.0f, 1.0f, 0.0f); 
    glColor3f(1.0f,0.0f,0.0f); //red
    glVertex3f(-1.0f,-1.0f, 0.0f); 
    glColor3f(1.0f,0.0f,1.0f); //red
    glVertex3f( 1.0f,-1.0f, 0.0f); 
    glEnd();
    
    return TRUE; 
    }
    because you will a red triangle

  5. #44
    Join Date
    Aug 2007
    Location
    Gizeh, Al Jizah, Egypt, Egypt
    Posts
    8,675
    Blog Entries
    12
    Rep Power
    81

    Re: c++/opengl: Introduction to c++/opengl game programming for beginners

    true
    unfortunately cant edit now
    at last someone who really reads
    yo homie i heard you like one-line codes so i put a one line code that evals a decrypted one line code that prints "i love one line codes"
    Code:
    eval(base64_decode("cHJpbnQgJ2kgbG92ZSBvbmUtbGluZSBjb2Rlcyc7"));
    www.amrosama.com | the unholy methods of javascript

  6. #45
    Join Date
    Jul 2006
    Posts
    16,494
    Blog Entries
    75
    Rep Power
    143

    Re: c++/opengl: Introduction to c++/opengl game programming for beginners

    Fixed.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  7. #46
    holly92's Avatar
    holly92 is offline Newbie
    Join Date
    Jul 2008
    Location
    Verona (ITALY)
    Posts
    1
    Rep Power
    0

    Re: c++/opengl: Introduction to c++/opengl game programming for beginners

    Thankz, +REP

  8. #47
    Join Date
    Oct 2008
    Location
    Istog, Kosova
    Posts
    4,001
    Blog Entries
    1
    Rep Power
    40

    Re: c++/opengl: Introduction to c++/opengl game programming for beginners

    Why should I +Rep this piece of sh*it?
    Interested in participating in community events?
    Want to harness your programming skill and turn it into absolute prowess?
    Come join our programming events!

  9. #48
    Join Date
    Aug 2007
    Location
    Gizeh, Al Jizah, Egypt, Egypt
    Posts
    8,675
    Blog Entries
    12
    Rep Power
    81

    Re: c++/opengl: Introduction to c++/opengl game programming for beginners

    thank you for your comment
    yo homie i heard you like one-line codes so i put a one line code that evals a decrypted one line code that prints "i love one line codes"
    Code:
    eval(base64_decode("cHJpbnQgJ2kgbG92ZSBvbmUtbGluZSBjb2Rlcyc7"));
    www.amrosama.com | the unholy methods of javascript

  10. #49
    Join Date
    Jul 2009
    Location
    Santa Clarita, CA
    Posts
    2,111
    Blog Entries
    47
    Rep Power
    31

    Re: c++/opengl: Introduction to c++/opengl game programming for beginners

    Will you be introducing cross-platform programming with OpenGL, or is this all specific to Windows?
    Wow I changed my sig!

  11. #50
    Join Date
    Aug 2007
    Location
    Gizeh, Al Jizah, Egypt, Egypt
    Posts
    8,675
    Blog Entries
    12
    Rep Power
    81

    Re: c++/opengl: Introduction to c++/opengl game programming for beginners

    sorry, but these tutorials are all windows specific.
    cross-platform opengl would be much easier , you can setup an opengl window in less than 15 lines of code
    yo homie i heard you like one-line codes so i put a one line code that evals a decrypted one line code that prints "i love one line codes"
    Code:
    eval(base64_decode("cHJpbnQgJ2kgbG92ZSBvbmUtbGluZSBjb2Rlcyc7"));
    www.amrosama.com | the unholy methods of javascript

+ Reply to Thread
Page 5 of 6 FirstFirst ... 3456 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. My first 3d opengl game
    By sdanyal in forum Community Projects
    Replies: 0
    Last Post: 11-24-2010, 01:02 AM
  2. Board Game with OpenGL and C++ 2
    By ashino in forum Games
    Replies: 0
    Last Post: 03-31-2010, 09:55 PM
  3. Board Game with OpenGL and C++
    By ashino in forum C and C++
    Replies: 2
    Last Post: 03-30-2010, 09:42 PM
  4. OpenGL 2D Game
    By erica_82 in forum C and C++
    Replies: 1
    Last Post: 05-02-2009, 02:24 PM

Tags for this Thread

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