Commit Graph

241 Commits

Author SHA1 Message Date
granzuglia 73ee392537 - fixed parenthesis bug 2015-07-05 02:18:54 +00:00
granzuglia a974f13258 - completely rewritten GLMeshAttributesFeeder code 2015-07-03 06:02:33 +00:00
granzuglia 8842cea2b3 - cleaned up a little the class function members
- switched from private functions to protected ones
2015-06-14 09:39:42 +00:00
granzuglia 69bc2244d1 - removed "glIndexPointer invalid operation" bug 2015-06-10 23:52:50 +00:00
granzuglia 1d9d1e6324 - removed linux compiler errrors 2015-06-10 18:39:23 +00:00
granzuglia ec348bc0fe - removed the vertex array object handle from the GLMeshAttributesFeeder class in order to make it opengl context dependent (According to opengl specification VAO cannot be share by different glcontext) 2015-06-10 18:13:28 +00:00
granzuglia 80babdb68e - removed the GLMeshAttributesFeeder classes from the old trimesh.h file 2015-06-04 00:19:46 +00:00
granzuglia b5a8f57137 - added gl_mesh_attributes_feeder.h file 2015-06-04 00:18:35 +00:00
granzuglia 62208a4fd2 - fixed "not allocated vertex buffer array" bug 2015-06-03 14:08:22 +00:00
granzuglia c8004cf4ad - removed clang compiler errors 2015-06-03 13:45:41 +00:00
granzuglia a2efddf456 - added new opengl attributes feeder 2015-06-03 13:06:35 +00:00
Nico Pietroni 7a6aa07201 minor changes 2015-04-12 06:08:20 +00:00
granzuglia 1f721c1507 - added small conversion function from DramMode to NormalMode 2014-11-28 13:07:14 +00:00
Paolo Cignoni fb2ad3f323 Changed a few GL_TYPE -> GL_TYPE_NM to remove ambiguity 2014-11-12 00:22:24 +00:00
Nico Pietroni 0a597d4682 did several changes in the function calls 2014-11-05 19:26:54 +00:00
granzuglia 5c809dc701 - renamed GL_TYPE with GL_TYPE_NM in order to avoid names conflict 2014-08-28 08:59:24 +00:00
granzuglia 8cebfaf679 pick.h:
- added support for double scalar type (the changes have been validated by Paolo)
- there is still a bug on the PickClosestFace function.
2014-08-09 10:00:09 +00:00
granzuglia 558fcd784a trimesh.h:
- added ScalarType typedef to GL_TYPE structure
2014-08-09 09:54:43 +00:00
Paolo Cignoni ffb02815a8 Added a static class GL_TYPE with a memenber SCALAR that returns the correct GLenum (GL_FLOAT or GL_DOUBLE) according to the template type. Needed to make this class works also with double... 2014-08-09 00:06:15 +00:00
Paolo Cignoni 9b6833e521 added templated glLoadMatrix that automatically choose the right OpenGL call according the matrix type 2014-08-06 22:37:55 +00:00
Paolo Cignoni 5e910a0058 Improved float/double consistency removing some wrong Point3f and substitued with MeshType::CoordType 2014-07-01 10:08:30 +00:00
Paolo Cignoni 1491037631 Improved float/double consistency removing some wrong Point3f and substitued with MeshType::CoordType 2014-06-27 15:09:08 +00:00
Paolo Cignoni 4fc33e2e95 Improved float/double consistency removing some wrong Point3f and substitued with MeshType::CoordType 2014-06-19 11:42:23 +00:00
Paolo Cignoni b605d04d26 Improved float/double consistency removing some wrong Point3f and substitued with MeshType::CoordType 2014-06-19 11:41:55 +00:00
Paolo Cignoni 9f6d5f1d84 Completed the rewriting all the picking stuff. Now the default is NOT using OpenGL. And it is actually faster on all the machines I have tested... 2014-04-08 09:37:44 +00:00
Paolo Cignoni 306c334877 Added PickFaceSW for selecting faces in a rectangular region. 2014-04-07 14:49:07 +00:00
Paolo Cignoni adfa6dde12 Added PickVertSW to offer an alternative for selection for hw that does not support opengl selection 2014-04-07 12:32:21 +00:00
Nico Pietroni 6071372992 some minor changes 2014-04-07 06:29:56 +00:00
Nico Pietroni 4b15067dd1 minor modifications 2014-02-16 16:37:39 +00:00
Paolo Cignoni 94540d3ca6 float -> GLdouble for better compliance... 2013-12-12 21:09:22 +00:00
Paolo Cignoni d44d6e6f41 changed int -> size_t to remove warnings 2013-12-12 20:52:07 +00:00
Paolo Cignoni ecf5bfeeb2 Added a if(!TMId.empty()) before attempting to bind a texture id from an empty vector... 2013-12-06 10:16:59 +00:00
Nico Pietroni d4eb599a66 resolved 1 warning on cast 2013-11-24 15:08:27 +00:00
granzuglia 6ec773c50a - added missing upper bound control on vector access by index 2013-10-17 17:22:16 +00:00
granzuglia 6b7ca162ce - fixed compile time errors with qt 5.0 2013-05-24 16:31:16 +00:00
Paolo Cignoni b473bebdd3 added another style of rendering to the opengl addon.
Imprpved customizability of arrows
2012-12-21 15:34:32 +00:00
Paolo Cignoni e04a37bf60 removed harmless warnings 2012-12-02 14:57:08 +00:00
Paolo Cignoni 7540b29cf5 Added a few missing const specifiers 2012-11-28 11:23:51 +00:00
Nico Pietroni 70b2cd1d25 removed several functions and moved to the gl wrapper of mixed integer 2012-11-18 18:07:39 +00:00
Nico Pietroni 52648c58ad used per vertex and per face optional attributes 2012-10-15 01:13:30 +00:00
Nico Pietroni 45633b841e added initial define to avoid multiple inclusions 2012-10-08 11:53:07 +00:00
Paolo Cignoni 194d9eb4d7 Removed two old useless wrong stupid functions that have been left into wrap/trimesh.h for unforgivable lazyness... 2012-10-08 05:30:34 +00:00
Paolo Cignoni 98fd61970e added missing par 2012-10-07 17:20:54 +00:00
Paolo Cignoni 1aa2c374e1 corrected useless test for an ancient opengl extension (glPointParameterfv). no more needed and creating problems to new compilers... 2012-10-05 16:45:25 +00:00
Nico Pietroni e6cc513cae minor changes in singularity drawing 2012-09-22 13:40:56 +00:00
Nico Pietroni 62b1a26ecf changes drawing of cross field to show the 2 main directions 2012-09-05 23:27:10 +00:00
Nico Pietroni a4ee21d5d7 added GLDrawSeams function 2012-09-03 15:58:38 +00:00
Nico Pietroni c469b5b948 major modifications 2012-05-25 13:22:07 +00:00
Paolo Cignoni 80363d2ff0 added to these two gl-related files the system independent inclusion of GLU.
IT is necessary since the last version of QT does not include anymore glu when including QGL stuff
2012-05-23 08:50:03 +00:00
Nico Pietroni 2413b12724 switched to the new version of tangent directions component per face 2012-03-29 16:35:15 +00:00