From bf89e4cfa7191c3ea9bb3eeee7005db250001d55 Mon Sep 17 00:00:00 2001 From: ultramn Date: Sat, 4 Feb 2017 20:00:07 -0800 Subject: Added plot_lighthouse in dave folder --- dave/plot_lighthouse/glutil.c | 75 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 dave/plot_lighthouse/glutil.c (limited to 'dave/plot_lighthouse/glutil.c') diff --git a/dave/plot_lighthouse/glutil.c b/dave/plot_lighthouse/glutil.c new file mode 100644 index 0000000..dd022a0 --- /dev/null +++ b/dave/plot_lighthouse/glutil.c @@ -0,0 +1,75 @@ +// +// glutil.c +// +// +// Created by user on 2/4/17. +// +// + +#include "glutil.h" + +void DrawGrid( + float minX, float maxX, + float minY, float maxY, + float minZ, float maxZ, + float stepX, float stepY, float stepZ) +{ + float x,y,z; + + glBegin(GL_LINES); + + // X grid stripes + for (y=minY; y