Click here to Skip to main content
15,896,425 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
*/

/** @file SDL_version.h
 *  This header defines the current SDL version
 */

#ifndef _SDL_version_h
#define _SDL_version_h

#include "SDL_stdinc.h"

#include "begin_code.h"
/* Set up for C function definitions, even when using C++ */
#ifdef __cplusplus
extern "C" {
#endif

/** @name Version Number
 *  Printable format: "%d.%d.%d", MAJOR, MINOR, PATCHLEVEL
 */
/*@{*/
#define SDL_MAJOR_VERSION	1
#define SDL_MINOR_VERSION	2
#define SDL_PATCHLEVEL		15
/*@}*/

typedef struct SDL_version {
	Uint8 major;
	Uint8 minor;
	Uint8 patch;
} SDL_version;

/**
 * This macro can be used to fill a version structure with the compile-time
 * version of the SDL library.
 */
#define SDL_VERSION(X)							\
{									\
	(X)->major = SDL_MAJOR_VERSION;					\
	(X)->minor = SDL_MINOR_VERSION;					\
	(X)->patch = SDL_PATCHLEVEL;					\
}

/** This macro turns the version numbers into a numeric value:
 *  (1,2,3) -> (1203)
 *  This assumes that there will never be more than 100 patchlevels
 */
#define SDL_VERSIONNUM(X, Y, Z)						\
	((X)*1000 + (Y)*100 + (Z))

/** This is the version number macro for the current SDL version */
#define SDL_COMPILEDVERSION \
	SDL_VERSIONNUM(SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL)

/** This macro will evaluate to true if compiled with SDL at least X.Y.Z */
#define SDL_VERSION_ATLEAST(X, Y, Z) \
	(SDL_COMPILEDVERSION >= SDL_VERSIONNUM(X, Y, Z))

/** This function gets the version of the dynamically linked SDL library.
 *  it should NOT be used to fill a version structure, instead you should
 *  use the SDL_Version() macro.
 */
extern DECLSPEC const SDL_version * SDLCALL SDL_Linked_Version(void);

/* Ends C function definitions when using C++ */
#ifdef __cplusplus
}
#endif
#include "close_code.h"

#endif /* _SDL_version_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