diff --git a/c++/.gitignore b/c++/.gitignore
new file mode 100644
index 0000000..d410065
--- /dev/null
+++ b/c++/.gitignore
@@ -0,0 +1,7 @@
+*.exe
+*.o
+*/.project
+*/.cproject
+*/.settings/
+*/test_*
+*~
\ No newline at end of file
diff --git a/c++/contourgl/.gitignore b/c++/contourgl/.gitignore
new file mode 100644
index 0000000..d87bd8d
--- /dev/null
+++ b/c++/contourgl/.gitignore
@@ -0,0 +1,2 @@
+/contourgl
+
diff --git a/c++/contourgl/Makefile b/c++/contourgl/Makefile
new file mode 100644
index 0000000..dca43ca
--- /dev/null
+++ b/c++/contourgl/Makefile
@@ -0,0 +1,14 @@
+DEPS = gl x11
+
+CXXFLAGS = -O2 -g -Wall -fmessage-length=0 `pkg-config --libs $(DEPS)` -DGL_GLEXT_PROTOTYPES
+OBJS = contourgl.o
+LIBS = `pkg-config --libs $(DEPS)`
+TARGET = contourgl
+
+$(TARGET): $(OBJS)
+ $(CXX) -o $(TARGET) $(OBJS) $(LIBS)
+
+all: $(TARGET)
+
+clean:
+ rm -f $(OBJS) $(TARGET)
diff --git a/c++/contourgl/contourgl.cpp b/c++/contourgl/contourgl.cpp
new file mode 100644
index 0000000..d3aa000
--- /dev/null
+++ b/c++/contourgl/contourgl.cpp
@@ -0,0 +1,311 @@
+/*
+ ......... 2015 Ivan Mahonin
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
+*/
+
+#include
+
+#include
+#include
+#include
+#include