Results 1 to 2 of 2

Thread: Construct a wired cube

  1. #1
    Member Contributor
    Join Date
    Apr 2007
    Posts
    80

    Construct a wired cube

    Hi to all,

    This place below explains how to construct a cube.

    But, how to construct a wired cube with with a similar code?


    http://www.morrowland.com/apron/tuto...ating_cube.php

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Aug 2004
    Location
    munich, germany
    Posts
    659

    Re: Construct a wired cube

    the code can be the same, but before glBegin(GL_QUADS) call glPolygonMode(GL_FRONT_AND_BACK, GL_LINE)

    alternatively, use glBegin(GL_LINE_LOOP) instead of GL_QUADS

Similar Threads

  1. Translate and rotate a wired sphere using values from VBO
    By Sangam in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 02-26-2016, 09:44 PM
  2. Wired -glEvalMesh2 problem
    By ehope2012 in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 05-14-2012, 09:56 PM
  3. Can't Construct DAE Object
    By jtjr008 in forum COLLADA
    Replies: 1
    Last Post: 02-09-2012, 11:32 PM
  4. how to construct a 3d environment from a 2d map
    By MrBoB in forum OpenGL: General
    Replies: 1
    Last Post: 03-28-2005, 01:18 AM
  5. wired facets
    By Dave007 in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 12-05-2000, 11:13 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