Commit Graph

2775 Commits

Author SHA1 Message Date
David G Yu
cb596ffb8a Added option to control building shared libraries
This adds support for the standard global option
  BUILD_SHARED_LIBS
to select whether to build shared libraries.

Note that building shared DLL libraries is still
not yet supported on Windows.
2020-03-09 17:50:49 -07:00
Pol
4c1889137f
Merge pull request #1184 from davidgyu/dev_internal_glloader
Added internal GL API loading library implementation
2020-03-06 15:12:11 -05:00
David G Yu
b5cdfe380b Disabled use of GLEW by default. 2020-03-06 11:37:55 -08:00
David G Yu
82988d04ad Updated EXT to ARB for GL direct_state_access
The ARB_direct_state_access API is more consistent with
the 4.5 and 4.6 core API and is also more widely supported.
2020-03-06 11:37:55 -08:00
David G Yu
f3f28995a5 Enabled internal GL API loader as GLEW alternative
At build time, the preprocessor symbols: OSD_USES_GLEW or
OSD_USES_INTERNAL_GLAPILOADER determine the GL API loader
that will be used by the OSD library.
2020-03-06 11:37:55 -08:00
David G Yu
720462a315 Added internal GL API loader implementation
This extends the internal glLoader library to have a fully
internally implemented GL API loader so that the OpenSubdiv
libraries can be used independent of any dependencies on an
external GL API loader like GLEW.
2020-03-06 11:37:55 -08:00
Pol
e7ef20dacd
Merge pull request #1183 from davidgyu/dev_internal_glloader_prep
Prepare to replace GLEW with internal GL API Loader
2020-03-03 20:50:05 -05:00
David G Yu
28f2574bc5 Moved GLEW dependencies to glLoader wrapper
This introduces an internal glLoader library which allows
most of the implementation to be agnostic about the
implementation of the GL loading library.  Specifically,
this removes references to the GLEW headers and libraries
from the rest of the source code and build system.
2020-03-03 17:10:30 -08:00
George ElKoura
29047e78b7
Merge pull request #1182 from davidgyu/dev_strict_aliasing_fix
Fixed strict-aliasing warnings
2020-03-03 16:26:24 -08:00
David G Yu
16a5c3993f Moved GL version check out of FindGLEW.cmake
This allows us to make use of this even when
we are not using GLEW.
2020-03-03 15:04:24 -08:00
David G Yu
b738fa1225 Removed a couple build advisory messages
This simplifies the build by restricting build
configuration commentary messages to the top-level
CMakeLists.txt instead of in leaf directories.
2020-03-03 15:03:41 -08:00
David G Yu
6dde62d48f Fixed strict-aliasing warnings
Minor update to the implementation of a few internal tagging
methods in Vtr to avoid violating strict-aliasing rules.
Specifically, switched to using std::memcpy instead of
reinterpret_cast to implement type punning.
2020-02-28 16:28:33 -08:00
Pol
6339ac5c43
Merge pull request #1180 from davidgyu/dev_cmp0054_warning_fix
Fixed CMP0054 warnings in top-level CMakeLists.txt
2020-02-24 15:11:03 -05:00
Pol
35ec5a43ea
Merge pull request #1181 from davidgyu/dev_glhud_typo_fix
Fixed a typo in examples/common/glHud.cpp
2020-02-24 15:05:47 -05:00
David G Yu
b77beb0b33 Fixed a typo in examples/common/glHud.cpp 2020-02-24 11:52:15 -08:00
David G Yu
081028ca10 Fixed CMP0054 warnings in top-level CMakeLists.txt 2020-02-24 10:59:51 -08:00
Barry Fowler
916a139a06
Merge pull request #1179 from davidgyu/dev_ptexviewer_updates
Updates to GL and DX PtexViewers
2020-02-12 17:26:17 -08:00
Barry Fowler
5347320161
Merge pull request #1178 from davidgyu/dev_glfw_dependency_fix
Looks good. Thanks, David
2020-02-12 16:51:16 -08:00
David G Yu
cff20f0c24 Fixed a typo in cmake/FindDXSDK.cmake 2020-02-12 16:25:58 -08:00
David G Yu
afc48004dd Fixed glPtexViewer crash with animObj
The result container was being reserved but not resized.
2020-02-12 16:23:26 -08:00
David G Yu
47c8622025 Updated dxPtexViewer to use common facilities
- regression/arg_utils
- common/objAnim
2020-02-12 16:22:00 -08:00
David G Yu
e0c14ddbef Fixed examples link dependency on GLFW
Split the examples/common objects into graphics API dependent object
libraries (following the pattern used for cemmon Ptex dependencies)
so that DX11 and Metal examples are no longer forced to link with GLFW.
2020-02-12 14:25:14 -08:00
David G Yu
c3a34255cd
Merge pull request #1177 from barfowl/far_tutorial_5_1
Fixed initialization oversight in far/tutorial_5_1
2020-02-10 17:37:18 -08:00
barry
673bb1e386 Fixed oversight deriving adaptive refinement options from patch options:
- added missing initialization of max level with patch options
    - added comment to discourage others from making the same mistake
2020-02-10 16:06:26 -08:00
David G Yu
1ab19ec089
Merge pull request #1176 from barfowl/far_tutorial_5_3
Added new tutorial for Far::LimitStencilTable
2020-01-25 17:16:48 -08:00
David G Yu
d002d9e840
Merge pull request #1175 from barfowl/far_tutorial_5_2
Fixed memory leak in far/tutorial_5_2 with optional .obj file
2020-01-25 11:31:38 -08:00
barry
301ae21b0a Added new tutorial for Far::LimitStencilTable:
- added new source subdirectory far/tutorial_5_3
    - updated documentation to refer to the new tutorial
2020-01-24 18:54:45 -08:00
barry
f2671f96be Formatted modified source files to adhere to 80-column standard 2020-01-21 17:10:42 -08:00
barry
9f5898d94a Update far/tutorial_5_2 to use common command line parsing 2020-01-21 14:33:26 -08:00
barry
e65a7fee5c Fixed memory leak with optional .obj file in far/tutorial_5_2 2020-01-21 14:32:11 -08:00
George ElKoura
69af58f7aa
Merge pull request #1174 from davidgyu/dev_ptex_dependency_fix
Fixed Ptex link dependencies
2020-01-15 18:10:12 -08:00
George ElKoura
2b78718b56
Merge pull request #1173 from davidgyu/dev_vs2019_fix
Updated cmake/Find* modules for VS2019
2020-01-15 16:12:29 -08:00
George ElKoura
8c86d81c2a
Merge pull request #1172 from davidgyu/dev_warnings_fix
Fixed warnings in examples and regression/common
2020-01-15 16:11:04 -08:00
David G Yu
552ebf1376 Fixed Ptex link dependencies
Removed the link dependency from libosd to
the Ptex library since Ptex is used only by the
examples. Updated examples/common to separate
the common Ptex sources from the other common
sources so that they are used only by the Ptex
examples.
2020-01-15 14:47:18 -08:00
David G Yu
f3ede96017 Fixed warnings in examples and regression/common 2020-01-15 12:52:17 -08:00
David G Yu
3c77ff74a3
Merge pull request #1171 from barfowl/examples_edgenone
Updated examples with new boundary interpolation test shapes
2020-01-15 10:36:16 -08:00
barry
b80a414361 Updated examples with new shapes for boundary interpolation "none":
- added catmark_edgenone and loop_triangle_edgenone to shape lists
2020-01-14 14:27:51 -08:00
David G Yu
f7fd2e07c2
Merge pull request #1170 from barfowl/far_boundary_none
Added selective interpolation for VtxBoundaryInterpolation case "none"
2020-01-14 12:33:47 -08:00
barry
eb48e4cfba Updated hbr_regression/baseline results for changes to test shapes:
- updated the Catmark edge-only and edge-corner cases
    - updated the Loop edge-only and edge-corner cases
2020-01-13 18:08:35 -08:00
barry
8b065abb90 Formatted the modified source file to adhere to 80-column standard 2020-01-13 18:07:23 -08:00
barry
eed095ae15 Updated documentation related to boundary interpolation case "none":
- updated user documentation describing the enum
    - updated the Doxygen comments in sdc/options.h
2020-01-10 14:26:51 -08:00
barry
eae467047b Revised existing boundary interpolation example shapes for consistency:
- all include the planar reference from documentation figures
    - all include the single polygon case (quad or tri)
    - all edge-only cases include semi-sharp boundary vertices
2020-01-10 14:24:29 -08:00
barry
e088b3aa8b Added new example shapes for boundary interpolation option "none" 2020-01-10 14:23:11 -08:00
barry
5a0e16e65d Revised tagging of boundary faces as holes if explicitly sharpened:
- tag faces containing vertices with an unsharpened incident boundary edge
2020-01-10 14:14:22 -08:00
David G Yu
a641471fca Updated cmake/Find* modules for VS2019
For Visual Studio 2019 the target architecture is specified
separately from the generator, and this updates the cmake
modules to be able to locate libraries for the correct target.

Also, make use of CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION
to be able to use the correct Windows Kit when multiple
tool sets and development kits are available.
2019-12-20 16:14:56 -08:00
David G Yu
a577b22ccc
Merge pull request #1168 from c64kernal/dev_az2
Adding Azure Pipelines support for OSD
2019-12-17 09:25:36 -08:00
David G Yu
66cd1bd1ac
Merge pull request #1167 from barfowl/args_regression_common
Moved common command line parsing to regression/common
2019-12-16 23:38:19 -08:00
George ElKoura
9b7bbc05dd Adding Azure Pipelines support for OSD
This commit adds initial Azure Pipelines CI support for OpenSubdiv.
2019-12-14 22:59:45 -08:00
barry
4a9ad51ee1 Fixed forward reference warning triggering errors with MSVC 2019-12-14 12:40:00 -08:00
barry
936aff0b8a Moved ArgOptions from examples/common to regression/common:
- updated CMakeLists to account for the moved files
    - updated references to argOptions.h in all examples
    - added method to ArgOptions to populate vector<ShapeDesc>
    - minor changes to ViewerArgUtils to use forward references
2019-12-14 12:06:55 -08:00