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

/*

Symbian version Markus Mertama

*/


#ifndef _SDL_CONFIG_SYMBIAN_H
#define _SDL_CONFIG_SYMBIAN_H

#include "SDL_platform.h"

/* This is the minimal configuration that can be used to build SDL */


#include <stdarg.h>
#include <stddef.h>


#ifdef __GCCE__
#define SYMBIAN32_GCCE
#endif

#ifndef _SIZE_T_DEFINED
typedef unsigned int size_t;
#endif

#ifndef _INTPTR_T_DECLARED
typedef unsigned int uintptr_t;
#endif 

#ifndef _INT8_T_DECLARED
typedef signed char int8_t;
#endif 

#ifndef _UINT8_T_DECLARED
typedef unsigned char uint8_t;
#endif

#ifndef _INT16_T_DECLARED
typedef signed short int16_t;
#endif

#ifndef _UINT16_T_DECLARED
typedef unsigned short uint16_t;
#endif

#ifndef _INT32_T_DECLARED
typedef signed int int32_t;
#endif

#ifndef _UINT32_T_DECLARED
typedef unsigned int uint32_t;
#endif

#ifndef _INT64_T_DECLARED
typedef signed long long int64_t;
#endif

#ifndef _UINT64_T_DECLARED
typedef unsigned long long uint64_t;
#endif

#define SDL_AUDIO_DRIVER_EPOCAUDIO	1


/* Enable the stub cdrom driver (src/cdrom/dummy/\*.c) */
#define SDL_CDROM_DISABLED	1

/* Enable the stub joystick driver (src/joystick/dummy/\*.c) */
#define SDL_JOYSTICK_DISABLED	1

/* Enable the stub shared object loader (src/loadso/dummy/\*.c) */
#define SDL_LOADSO_DISABLED	1

#define SDL_THREAD_SYMBIAN 1

#define SDL_VIDEO_DRIVER_EPOC    1

#define SDL_VIDEO_OPENGL 0

#define SDL_HAS_64BIT_TYPE	1

#define HAVE_LIBC	1
#define HAVE_STDIO_H 1
#define STDC_HEADERS 1
#define HAVE_STRING_H 1
#define HAVE_CTYPE_H 1
#define HAVE_MATH_H 1

#define HAVE_MALLOC 1
#define HAVE_CALLOC 1
#define HAVE_REALLOC 1
#define HAVE_FREE 1
/*#define HAVE_ALLOCA 1*/
#define HAVE_QSORT 1
#define HAVE_ABS 1
#define HAVE_MEMSET 1
#define HAVE_MEMCPY 1
#define HAVE_MEMMOVE 1
#define HAVE_MEMCMP 1
#define HAVE_STRLEN 1
#define HAVE__STRUPR 1
#define HAVE_STRCHR 1
#define HAVE_STRRCHR 1
#define HAVE_STRSTR 1
#define HAVE_ITOA 1
#define HAVE_STRTOL 1
#define HAVE_STRTOUL 1
#define HAVE_STRTOLL 1
#define HAVE_STRTOD 1
#define HAVE_ATOI 1
#define HAVE_ATOF 1
#define HAVE_STRCMP 1
#define HAVE_STRNCMP 1
/*#define HAVE__STRICMP 1*/
#define HAVE__STRNICMP 1
#define HAVE_SSCANF 1
#define HAVE_STDARG_H	1
#define HAVE_STDDEF_H	1



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