Click here to Skip to main content
15,892,298 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_cpuinfo.h
 *  CPU feature detection for SDL
 */

#ifndef _SDL_cpuinfo_h
#define _SDL_cpuinfo_h

#include "SDL_stdinc.h"

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

/** This function returns true if the CPU has the RDTSC instruction */
extern DECLSPEC SDL_bool SDLCALL SDL_HasRDTSC(void);

/** This function returns true if the CPU has MMX features */
extern DECLSPEC SDL_bool SDLCALL SDL_HasMMX(void);

/** This function returns true if the CPU has MMX Ext. features */
extern DECLSPEC SDL_bool SDLCALL SDL_HasMMXExt(void);

/** This function returns true if the CPU has 3DNow features */
extern DECLSPEC SDL_bool SDLCALL SDL_Has3DNow(void);

/** This function returns true if the CPU has 3DNow! Ext. features */
extern DECLSPEC SDL_bool SDLCALL SDL_Has3DNowExt(void);

/** This function returns true if the CPU has SSE features */
extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE(void);

/** This function returns true if the CPU has SSE2 features */
extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE2(void);

/** This function returns true if the CPU has AltiVec features */
extern DECLSPEC SDL_bool SDLCALL SDL_HasAltiVec(void);

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

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