Commit Graph

26 Commits (61e6178d1b71d78832aab4fbe7bd2d3550626b87)

Author SHA1 Message Date
Ivo Noorhoff 61e6178d1b In this commit i'll change just the Qt project, c and header files to get OpenSCAD
building and working on Windows 7 compiled with Visual Studio Express 2012.

A couple of things needed changing :
* MSVC 2012 has no trunc or round, i have added those to mathc99 and included mathc99 to the files needed.
The implementations were taken from boost.
* MSVC 2012 stl does now allow accessing out of bounds elements in std:vector as an array, so "chain->objects[i]" will
fail in "OpenCSGRenderer::renderCSGChain". Whatever the platform, it will me a good idea to change this
code to something that does not trigger undefined behavior.
* MSVC 2012 cannot figure out the types involved in "if (file_size ==  80 + 4 + 50*facenum) {", i have added
a cast to force it to "if (file_size ==  static_cast<std::streamoff>(80 + 4 + 50*facenum)) {".

The next round would be regression testing and debugging and possibly more changes to the OpenSCAD main code.

The round after that would be changing the .pro and .pri files to create correct visual studio solutions.
2013-07-28 13:42:35 +02:00
don bright 974abf1304 fix strecthing with --imgsize per bug rept from Marius Kintel 2013-03-05 21:10:10 -06:00
Marius Kintel 72d3cf4659 compile fix: include opencsg.h 2013-03-05 14:16:17 -05:00
don bright 52f0071958 render settings wrong syntax 2013-03-03 20:24:24 -06:00
don bright 94d4acf765 cleanup tab spacing 2013-03-03 20:23:03 -06:00
don bright 689fdad0ac move FAR_FAR_AWAY (gl clipping limit) to rendersettings 2013-03-03 20:08:04 -06:00
don bright 42ca2151b1 cleanups 2013-03-03 19:47:07 -06:00
don bright 58de93af95 add --projection=ortho|perspective option to cmdline 2013-03-03 13:48:23 -06:00
don bright 03de7fce81 try to fix gimbal camera view on Offscreen mode 2013-03-03 12:50:32 -06:00
don bright f190b9605c add imgsize cmdline parameter for png output 2013-03-03 12:20:18 -06:00
don bright bacaa2b1b9 fix bugs in testing 2013-03-03 18:41:37 +01:00
don bright 2b2dc7a078 make Camera into single class, simplify code 2013-03-03 10:52:25 -06:00
don bright bfae32fe99 remove boost::variant stuff. trim code. add 'vector cam' cmdline option 2013-03-03 10:11:56 -06:00
don bright eb1f73de03 add Camera.h per bug rept from Marius Kintel 2013-03-01 18:41:50 -06:00
don bright 13b0fe4b3f rework Camera using boost::variant. first working --gimbalcam version 2013-02-27 00:37:37 -06:00
don bright f60ece7864 fix bugs for test compile 2013-02-26 05:55:07 +01:00
don bright 50489c4287 begin to implement --viewport option, by adding Camera class + children 2013-02-25 22:32:57 -06:00
don bright 9896b6f15e first working version of opencsg png export from gui binary
also guiopencsgtest introduced. passes 100% of 'normal' tests
2013-02-24 21:07:37 -06:00
don bright 8738cdc034 split out axes functions. begin to split out opencsg pre-rendering 2013-02-24 19:04:50 -06:00
don bright eb2c0d38f2 unify intializeGL(), remove duplicate code 2013-02-24 14:31:03 -06:00
don bright 76c5d5b55c merge enable_opencsg_shaders into GLView, remove duplicate code
from QGLView and OffscreenView
2013-02-24 12:33:11 -06:00
don bright ca41979ee5 Merge branch 'master' of github.com:openscad/openscad into issue11_2
Conflicts:
	RELEASE_NOTES
	openscad.pro
	src/mainwin.cc
2013-02-23 21:54:53 -06:00
don bright 386df69c0f consolidate resizeGL() 2013-02-23 19:58:06 -06:00
don bright bebc7a3734 finish unify camera. unify getRenderInfo. fix width on libraryinfo box. 2013-02-23 19:19:33 -06:00
don bright 0f977609b4 put qglview.h into mainwin for deps. unify camera functions into glview.
remove duplicate code.
2013-02-23 18:50:20 -06:00
don bright 5389107aa6 create GLView as parent of OffscreenView and QGLView. combine setRenderer() 2013-02-23 15:34:06 -06:00