Click here to Skip to main content
15,895,709 members
Articles / Multimedia / OpenGL

XML parser of OSG with Qt support

Rate me:
Please Sign up or sign in to vote.
4.86/5 (6 votes)
24 Dec 2012CPOL4 min read 16K   1.1K   10  
Simple XML parser for creation scenes in OSG 3D Engine
  • OSGXML.zip
    • OSGXML
      • Common
        • OpenSceneGraph-3.1.3
          • include
            • OpenThreads
              • Atomic
              • Barrier
              • Block
              • Condition
              • Config
              • Exports
              • Mutex
              • ReadWriteMutex
              • ReentrantMutex
              • ScopedLock
              • Thread
              • Version
            • osg
              • AlphaFunc
              • AnimationPath
              • ApplicationUsage
              • ArgumentParser
              • Array
              • ArrayDispatchers
              • AudioStream
              • AutoTransform
              • Billboard
              • BlendColor
              • BlendEquation
              • BlendFunc
              • BoundingBox
              • BoundingSphere
              • BoundsChecking
              • buffered_value
              • BufferIndexBinding
              • BufferObject
              • Camera
              • CameraNode
              • CameraView
              • ClampColor
              • ClearNode
              • ClipNode
              • ClipPlane
              • ClusterCullingCallback
              • CollectOccludersVisitor
              • ColorMask
              • ColorMatrix
              • ComputeBoundsVisitor
              • Config
              • ConvexPlanarOccluder
              • ConvexPlanarPolygon
              • CoordinateSystemNode
              • CopyOp
              • CullFace
              • CullingSet
              • CullSettings
              • CullStack
              • DeleteHandler
              • Depth
              • DisplaySettings
              • Drawable
              • DrawPixels
              • Endian
              • Export
              • fast_back_stack
              • Fog
              • FragmentProgram
              • FrameBufferObject
              • FrameStamp
              • FrontFace
              • Geode
              • Geometry
              • GL
              • GL2Extensions
              • GLBeginEndAdapter
              • GLExtensions
              • GLObjects
              • GLU
              • GraphicsContext
              • GraphicsCostEstimator
              • GraphicsThread
              • Group
              • Hint
              • Image
              • ImageSequence
              • ImageStream
              • ImageUtils
              • io_utils
              • KdTree
              • Light
              • LightModel
              • LightSource
              • LineSegment
              • LineStipple
              • LineWidth
              • LOD
              • LogicOp
              • Material
              • Math
              • Matrix
              • Matrixd
              • Matrixf
              • MatrixTransform
              • MixinVector
              • Multisample
              • Node
              • NodeCallback
              • NodeTrackerCallback
              • NodeVisitor
              • Notify
              • Object
              • Observer
              • observer_ptr
              • ObserverNodePath
              • OccluderNode
              • OcclusionQueryNode
              • OperationThread
              • PagedLOD
              • Plane
              • Point
              • PointSprite
              • PolygonMode
              • PolygonOffset
              • PolygonStipple
              • Polytope
              • PositionAttitudeTransform
              • PrimitiveSet
              • Program
              • Projection
              • ProxyNode
              • Quat
              • ref_ptr
              • Referenced
              • RenderInfo
              • Scissor
              • Sequence
              • ShadeModel
              • Shader
              • ShaderAttribute
              • ShaderComposer
              • ShadowVolumeOccluder
              • Shape
              • ShapeDrawable
              • State
              • StateAttribute
              • StateAttributeCallback
              • StateSet
              • Stats
              • Stencil
              • StencilTwoSided
              • Switch
              • TemplatePrimitiveFunctor
              • TexEnv
              • TexEnvCombine
              • TexEnvFilter
              • TexGen
              • TexGenNode
              • TexMat
              • Texture
              • Texture1D
              • Texture2D
              • Texture2DArray
              • Texture2DMultisample
              • Texture3D
              • TextureCubeMap
              • TextureRectangle
              • Timer
              • TransferFunction
              • Transform
              • TriangleFunctor
              • TriangleIndexFunctor
              • Uniform
              • UserDataContainer
              • ValueObject
              • Vec2
              • Vec2b
              • Vec2d
              • Vec2f
              • Vec2s
              • Vec3
              • Vec3b
              • Vec3d
              • Vec3f
              • Vec3s
              • Vec4
              • Vec4b
              • Vec4d
              • Vec4f
              • Vec4s
              • Vec4ub
              • Version
              • VertexProgram
              • View
              • Viewport
            • osgAnimation
              • Action
              • ActionAnimation
              • ActionBlendIn
              • ActionBlendOut
              • ActionCallback
              • ActionStripAnimation
              • ActionVisitor
              • Animation
              • AnimationManagerBase
              • AnimationUpdateCallback
              • BasicAnimationManager
              • Bone
              • BoneMapVisitor
              • Channel
              • CubicBezier
              • EaseMotion
              • Export
              • FrameAction
              • Interpolator
              • Keyframe
              • LinkVisitor
              • MorphGeometry
              • RigGeometry
              • RigTransform
              • RigTransformHardware
              • RigTransformSoftware
              • Sampler
              • Skeleton
              • StackedMatrixElement
              • StackedQuaternionElement
              • StackedRotateAxisElement
              • StackedScaleElement
              • StackedTransform
              • StackedTransformElement
              • StackedTranslateElement
              • StatsHandler
              • StatsVisitor
              • Target
              • Timeline
              • TimelineAnimationManager
              • UpdateBone
              • UpdateMaterial
              • UpdateMatrixTransform
              • Vec3Packed
              • VertexInfluence
            • osgDB
              • Archive
              • AuthenticationMap
              • Callbacks
              • ConvertUTF
              • DatabasePager
              • DatabaseRevisions
              • DataTypes
              • DotOsgWrapper
              • DynamicLibrary
              • Export
              • ExternalFileWriter
              • FileCache
              • FileNameUtils
              • FileUtils
              • fstream
              • ImageOptions
              • ImagePager
              • ImageProcessor
              • Input
              • InputStream
              • ObjectWrapper
              • Options
              • Output
              • OutputStream
              • ParameterOutput
              • PluginQuery
              • ReaderWriter
              • ReadFile
              • Registry
              • Serializer
              • SharedStateManager
              • StreamOperator
              • Version
              • WriteFile
              • XmlParser
            • osgFX
              • AnisotropicLighting
              • BumpMapping
              • Cartoon
              • Effect
              • Export
              • MultiTextureControl
              • Outline
              • Registry
              • Scribe
              • SpecularHighlights
              • Technique
              • Validator
              • Version
            • osgGA
              • AnimationPathManipulator
              • CameraManipulator
              • CameraViewSwitchManipulator
              • DriveManipulator
              • EventQueue
              • EventVisitor
              • Export
              • FirstPersonManipulator
              • FlightManipulator
              • GUIActionAdapter
              • GUIEventAdapter
              • GUIEventHandler
              • KeySwitchMatrixManipulator
              • MultiTouchTrackballManipulator
              • NodeTrackerManipulator
              • OrbitManipulator
              • SphericalManipulator
              • StandardManipulator
              • StateSetManipulator
              • TerrainManipulator
              • TrackballManipulator
              • UFOManipulator
              • Version
            • osgManipulator
              • AntiSquish
              • Command
              • CommandManager
              • Constraint
              • Dragger
              • Export
              • Projector
              • RotateCylinderDragger
              • RotateSphereDragger
              • Scale1DDragger
              • Scale2DDragger
              • ScaleAxisDragger
              • Selection
              • TabBoxDragger
              • TabBoxTrackballDragger
              • TabPlaneDragger
              • TabPlaneTrackballDragger
              • TrackballDragger
              • Translate1DDragger
              • Translate2DDragger
              • TranslateAxisDragger
              • TranslatePlaneDragger
              • Version
            • osgParticle
              • AccelOperator
              • AngularAccelOperator
              • AngularDampingOperator
              • BounceOperator
              • BoxPlacer
              • CenteredPlacer
              • CompositePlacer
              • ConnectedParticleSystem
              • ConstantRateCounter
              • Counter
              • DampingOperator
              • DomainOperator
              • Emitter
              • ExplosionDebrisEffect
              • ExplosionEffect
              • ExplosionOperator
              • Export
              • FireEffect
              • FluidFrictionOperator
              • FluidProgram
              • ForceOperator
              • Interpolator
              • LinearInterpolator
              • ModularEmitter
              • ModularProgram
              • MultiSegmentPlacer
              • Operator
              • OrbitOperator
              • Particle
              • ParticleEffect
              • ParticleProcessor
              • ParticleSystem
              • ParticleSystemUpdater
              • Placer
              • PointPlacer
              • PrecipitationEffect
              • Program
              • RadialShooter
              • RandomRateCounter
              • range
              • SectorPlacer
              • SegmentPlacer
              • Shooter
              • SinkOperator
              • SmokeEffect
              • SmokeTrailEffect
              • VariableRateCounter
              • Version
            • osgPresentation
              • AnimationMaterial
              • CompileSlideCallback
              • Export
              • PickEventHandler
              • SlideEventHandler
              • SlideShowConstructor
            • osgQt
              • Export
              • GraphicsWindowQt
              • QFontImplementation
              • QGraphicsViewAdapter
              • QWebViewImage
              • QWidgetImage
            • osgShadow
              • ConvexPolyhedron
              • DebugShadowMap
              • Export
              • LightSpacePerspectiveShadowMap
              • MinimalCullBoundsShadowMap
              • MinimalDrawBoundsShadowMap
              • MinimalShadowMap
              • OccluderGeometry
              • ParallelSplitShadowMap
              • ProjectionShadowMap
              • ShadowedScene
              • ShadowMap
              • ShadowSettings
              • ShadowTechnique
              • ShadowTexture
              • ShadowVolume
              • SoftShadowMap
              • StandardShadowMap
              • Version
              • ViewDependentShadowMap
              • ViewDependentShadowTechnique
            • osgSim
              • BlinkSequence
              • ColorRange
              • DOFTransform
              • ElevationSlice
              • Export
              • GeographicLocation
              • HeightAboveTerrain
              • Impostor
              • ImpostorSprite
              • InsertImpostorsVisitor
              • LightPoint
              • LightPointNode
              • LightPointSystem
              • LineOfSight
              • MultiSwitch
              • ObjectRecordData
              • OverlayNode
              • ScalarBar
              • ScalarsToColors
              • Sector
              • ShapeAttribute
              • SphereSegment
              • Version
              • VisibilityGroup
            • osgTerrain
              • Export
              • GeometryTechnique
              • Layer
              • Locator
              • Terrain
              • TerrainTechnique
              • TerrainTile
              • ValidDataOperator
              • Version
            • osgText
              • Export
              • FadeText
              • Font
              • Font3D
              • Glyph
              • KerningType
              • String
              • Style
              • Text
              • Text3D
              • TextBase
              • Version
            • osgUtil
              • ConvertVec
              • CubeMapGenerator
              • CullVisitor
              • DelaunayTriangulator
              • DisplayRequirementsVisitor
              • DrawElementTypeSimplifier
              • EdgeCollector
              • Export
              • GLObjectsVisitor
              • HalfWayMapGenerator
              • HighlightMapGenerator
              • IncrementalCompileOperation
              • IntersectionVisitor
              • IntersectVisitor
              • LineSegmentIntersector
              • MeshOptimizers
              • OperationArrayFunctor
              • Optimizer
              • PerlinNoise
              • PlaneIntersector
              • PolytopeIntersector
              • PositionalStateContainer
              • PrintVisitor
              • ReflectionMapGenerator
              • RenderBin
              • RenderLeaf
              • RenderStage
              • ReversePrimitiveFunctor
              • SceneGraphBuilder
              • SceneView
              • ShaderGen
              • Simplifier
              • SmoothingVisitor
              • StateGraph
              • Statistics
              • TangentSpaceGenerator
              • Tessellator
              • TransformAttributeFunctor
              • TransformCallback
              • TriStripVisitor
              • UpdateVisitor
              • Version
            • osgViewer
              • api
                • Win32
                  • GraphicsHandleWin32
                  • GraphicsWindowWin32
                  • PixelBufferWin32
              • CompositeViewer
              • Export
              • GraphicsWindow
              • Renderer
              • Scene
              • Version
              • View
              • Viewer
              • ViewerBase
              • ViewerEventHandlers
            • osgVolume
              • Export
              • FixedFunctionTechnique
              • Layer
              • Locator
              • Property
              • RayTracedTechnique
              • Version
              • Volume
              • VolumeTechnique
              • VolumeTile
            • osgWidget
              • Box
              • Browser
              • Canvas
              • EventInterface
              • Export
              • Frame
              • Input
              • Label
              • Lua
              • PdfReader
              • Python
              • ScriptEngine
              • StyleInterface
              • StyleManager
              • Table
              • Types
              • UIObjectParent
              • Util
              • Version
              • ViewerEventHandlers
              • VncClient
              • Widget
              • Window
              • WindowManager
          • lib
            • Debug
              • OpenThreadsd.lib
              • osgAnimationd.lib
              • osgd.lib
              • osgDBd.lib
              • osgFXd.lib
              • osgGAd.lib
              • osgManipulatord.lib
              • osgParticled.lib
              • osgPresentationd.lib
              • osgQtd.lib
              • osgShadowd.lib
              • osgSimd.lib
              • osgTerraind.lib
              • osgTextd.lib
              • osgUtild.lib
              • osgViewerd.lib
              • osgVolumed.lib
              • osgWidgetd.lib
              • pkgconfig
                • openscenegraph.pc
                • openscenegraph-osg.pc
                • openscenegraph-osgAnimation.pc
                • openscenegraph-osgDB.pc
                • openscenegraph-osgFX.pc
                • openscenegraph-osgGA.pc
                • openscenegraph-osgManipulator.pc
                • openscenegraph-osgParticle.pc
                • openscenegraph-osgQt.pc
                • openscenegraph-osgShadow.pc
                • openscenegraph-osgSim.pc
                • openscenegraph-osgTerrain.pc
                • openscenegraph-osgText.pc
                • openscenegraph-osgUtil.pc
                • openscenegraph-osgViewer.pc
                • openscenegraph-osgVolume.pc
                • openscenegraph-osgWidget.pc
                • openthreads.pc
            • Release
              • OpenThreads.lib
              • osg.lib
              • osgAnimation.lib
              • osgDB.lib
              • osgFX.lib
              • osgGA.lib
              • osgManipulator.lib
              • osgParticle.lib
              • osgPresentation.lib
              • osgQt.lib
              • osgShadow.lib
              • osgSim.lib
              • osgTerrain.lib
              • osgText.lib
              • osgUtil.lib
              • osgViewer.lib
              • osgVolume.lib
              • osgWidget.lib
              • pkgconfig
                • openscenegraph.pc
                • openscenegraph-osg.pc
                • openscenegraph-osgAnimation.pc
                • openscenegraph-osgDB.pc
                • openscenegraph-osgFX.pc
                • openscenegraph-osgGA.pc
                • openscenegraph-osgManipulator.pc
                • openscenegraph-osgParticle.pc
                • openscenegraph-osgQt.pc
                • openscenegraph-osgShadow.pc
                • openscenegraph-osgSim.pc
                • openscenegraph-osgTerrain.pc
                • openscenegraph-osgText.pc
                • openscenegraph-osgUtil.pc
                • openscenegraph-osgViewer.pc
                • openscenegraph-osgVolume.pc
                • openscenegraph-osgWidget.pc
                • openthreads.pc
      • OSGLoader
/*
    SDL - Simple DirectMedia Layer
    Copyright (C) 1997-2012 Sam Lantinga

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

    Sam Lantinga
    slouken@libsdl.org
*/

#ifndef _SDL_main_h
#define _SDL_main_h

#include "SDL_stdinc.h"

/** @file SDL_main.h
 *  Redefine main() on Win32 and MacOS so that it is called by winmain.c
 */

#if defined(__WIN32__) || \
    (defined(__MWERKS__) && !defined(__BEOS__)) || \
    defined(__MACOS__) || defined(__MACOSX__) || \
    defined(__SYMBIAN32__) || defined(QWS)

#ifdef __cplusplus
#define C_LINKAGE	"C"
#else
#define C_LINKAGE
#endif /* __cplusplus */

/** The application's main() function must be called with C linkage,
 *  and should be declared like this:
 *      @code
 *      #ifdef __cplusplus
 *      extern "C"
 *      #endif
 *	int main(int argc, char *argv[])
 *	{
 *	}
 *      @endcode
 */
#define main	SDL_main

/** The prototype for the application's main() function */
extern C_LINKAGE int SDL_main(int argc, char *argv[]);


/** @name From the SDL library code -- needed for registering the app on Win32 */
/*@{*/
#ifdef __WIN32__

#include "begin_code.h"
#ifdef __cplusplus
extern "C" {
#endif

/** This should be called from your WinMain() function, if any */
extern DECLSPEC void SDLCALL SDL_SetModuleHandle(void *hInst);
/** This can also be called, but is no longer necessary */
extern DECLSPEC int SDLCALL SDL_RegisterApp(char *name, Uint32 style, void *hInst);
/** This can also be called, but is no longer necessary (SDL_Quit calls it) */
extern DECLSPEC void SDLCALL SDL_UnregisterApp(void);
#ifdef __cplusplus
}
#endif
#include "close_code.h"
#endif
/*@}*/

/** @name From the SDL library code -- needed for registering QuickDraw on MacOS */
/*@{*/
#if defined(__MACOS__)

#include "begin_code.h"
#ifdef __cplusplus
extern "C" {
#endif

/** Forward declaration so we don't need to include QuickDraw.h */
struct QDGlobals;

/** This should be called from your main() function, if any */
extern DECLSPEC void SDLCALL SDL_InitQuickDraw(struct QDGlobals *the_qd);

#ifdef __cplusplus
}
#endif
#include "close_code.h"
#endif
/*@}*/

#endif /* Need to redefine main()? */

#endif /* _SDL_main_h */

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Australia Australia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions