realbasic-games
[Top] [All Lists]

Re: OpenGL- drawing from coordinates

To: <realbasic-games at lists dot realsoftware dot com>
Subject: Re: OpenGL- drawing from coordinates
From: Thomas Cunningham <mauitom at maui dot net>
Date: Wed, 27 Sep 2006 18:10:28 -1000
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-games at lists dot realsoftware dot com
Fargo,
 
> Anyone see what I'm doing wrong? I tried a couple other shapes with
> similar results.

You're not doing anything wrong that I can see. OpenGL is drawing what you
are telling it to. GL_LINE_LOOP and GL_POLYGON are drawing mode parameters,
try GL_QUADS and see what it draws. A polygon is a convex geometry
structure, so you are seeing its best guess of the data.

GL_LINE_LOOP
Draws a connected group of line segments from the first vertex to the last,
then back to the first.  Vertices n and n+1 define line n.  The last line,
however, is defined by vertices N and 1.  N lines are drawn.

GL_POLYGON
Draws a single, convex polygon.  Vertices 1 through N define this polygon.

--
Thomas C.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>