From 2afbb0313dafe3f52a38ee2061cb1de8043d16e6 Mon Sep 17 00:00:00 2001 From: ultramn Date: Sat, 4 Feb 2017 20:03:12 -0800 Subject: Moved plot_lighthouse to the tools folder --- tools/plot_lighthouse/glutil.c | 75 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 tools/plot_lighthouse/glutil.c (limited to 'tools/plot_lighthouse/glutil.c') diff --git a/tools/plot_lighthouse/glutil.c b/tools/plot_lighthouse/glutil.c new file mode 100644 index 0000000..dd022a0 --- /dev/null +++ b/tools/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