-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
From Wang Rui, "I've finally completed the static build support for d…
…otosg wrapper and serialization libraries. My submission mainly includes: 1. Add two new macros USE_DOTOSGWRAPPER_LIBRARY and USE_SERIALIZER_WRAPPER_LIBRARY. Applications using static OSG must include corresponding static-link libraries and use these two macros to predefine native format wrappers. Please see osgstaticviewer and present3D in the attachment for details. 2. Add a LibraryWrapper.cpp file in each osgWrappers/deprecated-dotosg/... and osgWrappers/serializers/... subfolder, which calls all USE_...WRAPPERS macros inside. The LibraryWrapper file is automatically generated by the wrapper_includer.cpp (with some slight fixes), which is also attached for your reference. The deprecated-dotosg/osgAnimation is not included because it doesn't us REGISTER_DOTOSGWRAPPER to define its wrappers. 3. Modify the ReaderWriterOSG.cpp to prevent calling loadWrappers() when static build. 4. An uncorrelated fix to Serializer and ObjectWrapper.cpp, which ensures version variables of serialziers are initialized, and serializers out-of-version are not written to model files. "
- Loading branch information
1 parent
a27e048
commit ea7eaac
Showing
29 changed files
with
724 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
#include <osgDB/Registry> | ||
|
||
USE_DOTOSGWRAPPER(AlphaFunc) | ||
USE_DOTOSGWRAPPER(AnimationPath) | ||
USE_DOTOSGWRAPPER(AnimationPathCallback_Proxy) | ||
USE_DOTOSGWRAPPER(AutoTransform) | ||
USE_DOTOSGWRAPPER(Billboard) | ||
USE_DOTOSGWRAPPER(BlendColor) | ||
USE_DOTOSGWRAPPER(BlendEquation) | ||
USE_DOTOSGWRAPPER(Transparency) | ||
USE_DOTOSGWRAPPER(BlendFunc) | ||
USE_DOTOSGWRAPPER(Box) | ||
USE_DOTOSGWRAPPER(Camera) | ||
USE_DOTOSGWRAPPER(CameraNode) | ||
USE_DOTOSGWRAPPER(CameraView) | ||
USE_DOTOSGWRAPPER(Capsule) | ||
USE_DOTOSGWRAPPER(EarthSky) | ||
USE_DOTOSGWRAPPER(ClearNode) | ||
USE_DOTOSGWRAPPER(ClipNode) | ||
USE_DOTOSGWRAPPER(ClipPlane) | ||
USE_DOTOSGWRAPPER(ClusterCullingCallback) | ||
USE_DOTOSGWRAPPER(ColorMask) | ||
USE_DOTOSGWRAPPER(ColorMatrix) | ||
USE_DOTOSGWRAPPER(CompositeShape) | ||
USE_DOTOSGWRAPPER(Cone) | ||
USE_DOTOSGWRAPPER(ConvexPlanarOccluder) | ||
USE_DOTOSGWRAPPER(CoordinateSystemNode) | ||
USE_DOTOSGWRAPPER(CullFace) | ||
USE_DOTOSGWRAPPER(Cylinder) | ||
USE_DOTOSGWRAPPER(Depth) | ||
USE_DOTOSGWRAPPER(Drawable) | ||
USE_DOTOSGWRAPPER(EllipsoidModel) | ||
USE_DOTOSGWRAPPER(Fog) | ||
USE_DOTOSGWRAPPER(FragmentProgram) | ||
USE_DOTOSGWRAPPER(FrontFace) | ||
USE_DOTOSGWRAPPER(Geode) | ||
USE_DOTOSGWRAPPER(Geometry) | ||
USE_DOTOSGWRAPPER(Group) | ||
USE_DOTOSGWRAPPER(HeightField) | ||
USE_DOTOSGWRAPPER(Grid) | ||
USE_DOTOSGWRAPPER(Image) | ||
USE_DOTOSGWRAPPER(ImageSequence) | ||
USE_DOTOSGWRAPPER(Light) | ||
USE_DOTOSGWRAPPER(LightModel) | ||
USE_DOTOSGWRAPPER(LightSource) | ||
USE_DOTOSGWRAPPER(LineStipple) | ||
USE_DOTOSGWRAPPER(LineWidth) | ||
USE_DOTOSGWRAPPER(LOD) | ||
USE_DOTOSGWRAPPER(Material) | ||
USE_DOTOSGWRAPPER(MatrixTransform) | ||
USE_DOTOSGWRAPPER(DCS) | ||
USE_DOTOSGWRAPPER(Node) | ||
USE_DOTOSGWRAPPER(NodeCallback) | ||
USE_DOTOSGWRAPPER(Object) | ||
USE_DOTOSGWRAPPER(OccluderNode) | ||
USE_DOTOSGWRAPPER(OcclusionQueryNode) | ||
USE_DOTOSGWRAPPER(PagedLOD) | ||
USE_DOTOSGWRAPPER(Point) | ||
USE_DOTOSGWRAPPER(PointSprite) | ||
USE_DOTOSGWRAPPER(PolygonMode) | ||
USE_DOTOSGWRAPPER(PolygonOffset) | ||
USE_DOTOSGWRAPPER(PositionAttitudeTransform) | ||
USE_DOTOSGWRAPPER(Program) | ||
USE_DOTOSGWRAPPER(Projection) | ||
USE_DOTOSGWRAPPER(ProxyNode) | ||
USE_DOTOSGWRAPPER(Scissor) | ||
USE_DOTOSGWRAPPER(Sequence) | ||
USE_DOTOSGWRAPPER(ShadeModel) | ||
USE_DOTOSGWRAPPER(Shader) | ||
USE_DOTOSGWRAPPER(ShapeDrawable) | ||
USE_DOTOSGWRAPPER(Sphere) | ||
USE_DOTOSGWRAPPER(StateAttribute) | ||
USE_DOTOSGWRAPPER(StateSet) | ||
USE_DOTOSGWRAPPER(GeoState) | ||
USE_DOTOSGWRAPPER(Stencil) | ||
USE_DOTOSGWRAPPER(Switch) | ||
USE_DOTOSGWRAPPER(TessellationHints) | ||
USE_DOTOSGWRAPPER(TexEnv) | ||
USE_DOTOSGWRAPPER(TexEnvCombine) | ||
USE_DOTOSGWRAPPER(TexEnvFilter) | ||
USE_DOTOSGWRAPPER(TexGen) | ||
USE_DOTOSGWRAPPER(TexGenNode) | ||
USE_DOTOSGWRAPPER(TexMat) | ||
USE_DOTOSGWRAPPER(Texture) | ||
USE_DOTOSGWRAPPER(Texture1D) | ||
USE_DOTOSGWRAPPER(OldTexture) | ||
USE_DOTOSGWRAPPER(Texture2D) | ||
USE_DOTOSGWRAPPER(Texture3D) | ||
USE_DOTOSGWRAPPER(TextureCubeMap) | ||
USE_DOTOSGWRAPPER(TextureRectangle) | ||
USE_DOTOSGWRAPPER(TransferFunction1D_Proxy) | ||
USE_DOTOSGWRAPPER(Transform) | ||
USE_DOTOSGWRAPPER(Uniform) | ||
USE_DOTOSGWRAPPER(VertexProgram) | ||
USE_DOTOSGWRAPPER(Viewport) | ||
|
||
extern "C" void dotosgwrapper_library_osg(void) {} | ||
|
13 changes: 13 additions & 0 deletions
13
src/osgWrappers/deprecated-dotosg/osgFX/LibraryWrapper.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#include <osgDB/Registry> | ||
|
||
USE_DOTOSGWRAPPER(AnisotropicLighting_Proxy) | ||
USE_DOTOSGWRAPPER(BumpMapping_Proxy) | ||
USE_DOTOSGWRAPPER(Cartoon_Proxy) | ||
USE_DOTOSGWRAPPER(Effect_Proxy) | ||
USE_DOTOSGWRAPPER(MultiTextureControl_Proxy) | ||
USE_DOTOSGWRAPPER(Outline_Proxy) | ||
USE_DOTOSGWRAPPER(Scribe_Proxy) | ||
USE_DOTOSGWRAPPER(SpecularHighlights_Proxy) | ||
|
||
extern "C" void dotosgwrapper_library_osgFX(void) {} | ||
|
42 changes: 42 additions & 0 deletions
42
src/osgWrappers/deprecated-dotosg/osgParticle/LibraryWrapper.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#include <osgDB/Registry> | ||
|
||
USE_DOTOSGWRAPPER(AccelOperator_Proxy) | ||
USE_DOTOSGWRAPPER(AngularAccelOperator_Proxy) | ||
USE_DOTOSGWRAPPER(AngularDampingOperator_Proxy) | ||
USE_DOTOSGWRAPPER(BounceOperator_Proxy) | ||
USE_DOTOSGWRAPPER(BoxPlacer_Proxy) | ||
USE_DOTOSGWRAPPER(CenteredPlacer_Proxy) | ||
USE_DOTOSGWRAPPER(ConnectedParticleSystem_Proxy) | ||
USE_DOTOSGWRAPPER(ConstantRateCounter_Proxy) | ||
USE_DOTOSGWRAPPER(DampingOperator_Proxy) | ||
USE_DOTOSGWRAPPER(DomainOperator_Proxy) | ||
USE_DOTOSGWRAPPER(Emitter_Proxy) | ||
USE_DOTOSGWRAPPER(ExplosionDebrisEffect_Proxy) | ||
USE_DOTOSGWRAPPER(ExplosionEffect_Proxy) | ||
USE_DOTOSGWRAPPER(ExplosionOperator_Proxy) | ||
USE_DOTOSGWRAPPER(FireEffect_Proxy) | ||
USE_DOTOSGWRAPPER(FluidFrictionOperator_Proxy) | ||
USE_DOTOSGWRAPPER(FluidProgram_Proxy) | ||
USE_DOTOSGWRAPPER(ForceOperator_Proxy) | ||
USE_DOTOSGWRAPPER(LinearInterpolator_Proxy) | ||
USE_DOTOSGWRAPPER(ModularEmitter_Proxy) | ||
USE_DOTOSGWRAPPER(ModularProgram_Proxy) | ||
USE_DOTOSGWRAPPER(MultiSegmentPlacer_Proxy) | ||
USE_DOTOSGWRAPPER(OrbitOperator_Proxy) | ||
USE_DOTOSGWRAPPER(ParticleEffect_Proxy) | ||
USE_DOTOSGWRAPPER(ParticleProcessor_Proxy) | ||
USE_DOTOSGWRAPPER(ParticleSystem_Proxy) | ||
USE_DOTOSGWRAPPER(PSU_Proxy) | ||
USE_DOTOSGWRAPPER(PointPlacer_Proxy) | ||
USE_DOTOSGWRAPPER(g_IOProgramProxy) | ||
USE_DOTOSGWRAPPER(RadialShooter_Proxy) | ||
USE_DOTOSGWRAPPER(RandomRateCounter_Proxy) | ||
USE_DOTOSGWRAPPER(SectorPlacer_Proxy) | ||
USE_DOTOSGWRAPPER(SegmentPlacer_Proxy) | ||
USE_DOTOSGWRAPPER(SinkOperator_Proxy) | ||
USE_DOTOSGWRAPPER(SmokeEffect_Proxy) | ||
USE_DOTOSGWRAPPER(SmokeTrailEffect_Proxy) | ||
USE_DOTOSGWRAPPER(VariableRateCounter_Proxy) | ||
|
||
extern "C" void dotosgwrapper_library_osgParticle(void) {} | ||
|
10 changes: 10 additions & 0 deletions
10
src/osgWrappers/deprecated-dotosg/osgShadow/LibraryWrapper.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include <osgDB/Registry> | ||
|
||
USE_DOTOSGWRAPPER(ShadowedScene_Proxy) | ||
USE_DOTOSGWRAPPER(ShadowMap_Proxy) | ||
USE_DOTOSGWRAPPER(ShadowTechnique_Proxy) | ||
USE_DOTOSGWRAPPER(ShadowTexture_Proxy) | ||
USE_DOTOSGWRAPPER(ShadowVolume_Proxy) | ||
|
||
extern "C" void dotosgwrapper_library_osgShadow(void) {} | ||
|
20 changes: 20 additions & 0 deletions
20
src/osgWrappers/deprecated-dotosg/osgSim/LibraryWrapper.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include <osgDB/Registry> | ||
|
||
USE_DOTOSGWRAPPER(BlinkSequence_Proxy) | ||
USE_DOTOSGWRAPPER(BlinkSequence_SequenceGroup_Proxy) | ||
USE_DOTOSGWRAPPER(g_DOFTransformProxy) | ||
USE_DOTOSGWRAPPER(g_ImpostorProxy) | ||
USE_DOTOSGWRAPPER(LightPointNode_Proxy) | ||
USE_DOTOSGWRAPPER(g_simSwitchProxy) | ||
USE_DOTOSGWRAPPER(ObjectRecordData_Proxy) | ||
USE_DOTOSGWRAPPER(g_OverlayNodeProxy) | ||
USE_DOTOSGWRAPPER(AzimSector_Proxy) | ||
USE_DOTOSGWRAPPER(ElevationSector_Proxy) | ||
USE_DOTOSGWRAPPER(AzimElevationSector_Proxy) | ||
USE_DOTOSGWRAPPER(ConeSector_Proxy) | ||
USE_DOTOSGWRAPPER(DirectionalSector_Proxy) | ||
USE_DOTOSGWRAPPER(ShapeAttributeList_Proxy) | ||
USE_DOTOSGWRAPPER(g_VisibilityGroupProxy) | ||
|
||
extern "C" void dotosgwrapper_library_osgSim(void) {} | ||
|
Oops, something went wrong.