Results 1 to 3 of 3

Thread: How to draw a 3D cube wireframe using glVertex

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2003
    Location
    Australia
    Posts
    7

    How to draw a 3D cube wireframe using glVertex

    Hi, im a beginner in OpenGL and would like to know how to draw a 3D cube wireframe in OpenGL using the glVertx(). Could someone please advise me?

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

    Re: How to draw a 3D cube wireframe using glVertex

    This website: nehe.gamedev.net has a example of a rotating 3D cube, built using glVertex, but then all 3D objects are built using glVertex in some form!!!!


    NEHE also a good website to get you feet wet learning the basics of openGL.


    Originally posted by nene:
    Hi, im a beginner in OpenGL and would like to know how to draw a 3D cube wireframe in OpenGL using the glVertx(). Could someone please advise me?

  3. #3
    Junior Member Newbie
    Join Date
    May 2005
    Location
    Beijing China
    Posts
    21

    Re: How to draw a 3D cube wireframe using glVertex

    Yes, he is right. The website of nehe is very very useful. So many source codes are there!
    Glad to discuss here!

Similar Threads

  1. How can i draw a star using glut and basic glVertex function?
    By colagl in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 05-01-2012, 11:03 AM
  2. wireframe cube
    By joker40 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 03-26-2011, 08:37 AM
  3. special wireframe cube
    By yaney2 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 07-06-2010, 04:15 AM
  4. how to draw wireframe polygon
    By cjren in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 01-24-2010, 01:55 PM

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