diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d9de347 --- /dev/null +++ b/.gitignore @@ -0,0 +1,57 @@ +# Prerequisites +*.d + +# Compiled Object files +*.slo +*.lo +*.o +*.obj + +# Precompiled Headers +*.gch +*.pch + +# Compiled Dynamic libraries +*.so +*.dylib +*.dll + +# Fortran module files +*.mod +*.smod + +# Compiled Static libraries +*.lai +*.la +*.a +*.lib + +# Executables +*.exe +*.out +*.app + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + + diff --git a/OBJ_Import/Form1.cs b/OBJ_Import/Form1.cs index c5ca5e2..6322a3d 100644 --- a/OBJ_Import/Form1.cs +++ b/OBJ_Import/Form1.cs @@ -272,6 +272,20 @@ private void glControl1_Load(object sender, EventArgs e) GL.ClearColor(0.0f, 0.0f, 0.0f, 0.0f); GL.Enable(EnableCap.DepthTest);//sonradan yazdık } + private void glControl1_MouseWheel(object sender, MouseEventArgs e) + { + if (e.Delta > 0) + { + cameraPos.Y += moveVelocity; + coordinateLinesLong += moveVelocity; + } + else + { + cameraPos.Y -= moveVelocity; + coordinateLinesLong += moveVelocity; + } + glControl1.Invalidate(); + } private void ModelLoadToBuffer(string filePath) {