xy_display_opengl
xy_display_opengl,
a C++ code which
reads the name of a data file
containing a list of 2D point coordinates, reads the data,
and displays the points using OpenGL().
Usage:
xy_display_opengl data.txt
where
-
data.txt is a file containing a list of X, Y coordinates;
Licensing:
The information on this web page is distributed under the MIT license.
Languages:
xy_display_opengl is available in
a C++ version.
Related Data and Programs:
fern_opengl,
a C++ code which
uses OpenGL to display the Barnsley fractal fern.
screenshot_opengl,
a C++ code which
shows how a program using the OpenGL graphics library can save a
screenshot of the graphics being displayed.
sphere_xyz_display_opengl
a C++ code which
reads XYZ information defining points in 3D,
and displays a unit sphere and the points, using OpenGL.
xy,
a data directory which
contains some examples of 2D pointsets.
xy_display,
a MATLAB code which
reads XY information defining points in 2D,
and displays an image;
xy_io,
a C++ code which
reads and writes XY files.
xyf_display_opengl,
a C++ code which
reads XYF information defining points and faces in 2D,
and displays an image using OpenGL.
xyl_display_opengl,
a C++ code which
reads XYL information defining points and lines in 2D, and displays
an image using OpenGL.
xyz_display_opengl,
a C++ code which
reads an XYZ file of 3D point coordinates, and displays
an image of those points using OpenGL.
Reference:
-
Edward Angel,
Interactive Computer Graphics,
a Top-Down Approach with OpenGL,
Addison-Wesley, 2000,
ISBN: 0-201-38597-X,
LC: T385.A514.
-
Renate Kempf, Chris Frazier, editors,
OpenGL Reference Manual,
Fourth Edition,
Addison-Wesley, 2004,
ISBN: 032117383X,
LC: T385.O642
-
Mason Woo, Jackie Neider, Tom Davis,
OpenGL Programming Guide,
Addison-Wesley, 1997,
ISBN: 0-201-46138-2,
LC: T385.N435
-
Richard Wright, Michael Sweet,
OpenGL Superbible,
Third Edition,
Sams, 2004,
ISBN: 0672326019,
LC: T385.W73
-
https://www.opengl.org/
The official OpenGL site.
Source Code:
Examples and Tests:
List of Routines:
-
MAIN is the main program for XY_DISPLAY_OPENGL.
-
CH_EQI is true if two characters are equal, disregarding case.
-
CH_TO_DIGIT returns the integer value of a base 10 digit.
-
DISPLAY generates the graphics output.
-
DTABLE_DATA_READ reads the data from a real TABLE file.
-
DTABLE_HEADER_READ reads the header from a real TABLE file.
-
MYINIT initializes OpenGL state variables dealing with viewing and attributes.
-
R8_MAX returns the maximum of two R8.
-
R82VEC_MAX returns the maximum value in a R82VEC.
-
R82VEC_MIN returns the minimum value in a R82VEC.
-
S_LEN_TRIM returns the length of a string to the last nonblank.
-
S_TO_R8 reads an R8 from a string.
-
S_TO_R8VEC reads an R8VEC from a string.
-
TIMESTAMP prints the current YMDHMS date as a time stamp.
-
TIMESTRING returns the current YMDHMS date as a string.
You can go up one level to
the C++ source codes.
Last revised on 06 January 2009.