HGamer3D-Ogre-Binding (empty) → 0.1.0
raw patch · 571 files changed
+57864/−0 lines, 571 filesdep +HGamer3D-Datadep +basedep +haskell98setup-changed
Dependencies added: HGamer3D-Data, base, haskell98
This diff is very large; some files are shown as “too large to diff”. Download the raw patch for the complete diff.
Files
- C2HS.hs +238/−0
- HGamer3D-Ogre-Binding.cabal +35/−0
- HGamer3D/Bindings/Ogre/ClassAnimation.hs +483/−0
- HGamer3D/Bindings/Ogre/ClassAnimationState.hs +261/−0
- HGamer3D/Bindings/Ogre/ClassAnimationTrack.hs +168/−0
- HGamer3D/Bindings/Ogre/ClassArchive.hs +157/−0
- HGamer3D/Bindings/Ogre/ClassArchiveManager.hs +101/−0
- HGamer3D/Bindings/Ogre/ClassBillboard.hs +271/−0
- HGamer3D/Bindings/Ogre/ClassBillboardChain.hs +297/−0
- HGamer3D/Bindings/Ogre/ClassBillboardChainFactory.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassBillboardSet.hs +664/−0
- HGamer3D/Bindings/Ogre/ClassBillboardSetFactory.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassBone.hs +175/−0
- HGamer3D/Bindings/Ogre/ClassCamera.hs +782/−0
- HGamer3D/Bindings/Ogre/ClassCmdManualNamedConstsFile.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassCmdPose.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassCompositionPass.hs +561/−0
- HGamer3D/Bindings/Ogre/ClassCompositionTargetPass.hs +310/−0
- HGamer3D/Bindings/Ogre/ClassCompositionTechnique.hs +239/−0
- HGamer3D/Bindings/Ogre/ClassCompositor.hs +175/−0
- HGamer3D/Bindings/Ogre/ClassCompositorChain.hs +216/−0
- HGamer3D/Bindings/Ogre/ClassCompositorInstance.hs +208/−0
- HGamer3D/Bindings/Ogre/ClassCompositorManager.hs +195/−0
- HGamer3D/Bindings/Ogre/ClassCompositorPtr.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassConfigFile.hs +134/−0
- HGamer3D/Bindings/Ogre/ClassControllerManager.hs +178/−0
- HGamer3D/Bindings/Ogre/ClassDataStream.hs +223/−0
- HGamer3D/Bindings/Ogre/ClassDefaultAxisAlignedBoxSceneQuery.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassDefaultPlaneBoundedVolumeListSceneQuery.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassDefaultRaySceneQuery.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassDefaultSceneManager.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassDefaultSceneManagerFactory.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassDefaultShadowCameraSetup.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassDefaultSphereSceneQuery.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassElement.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassEntity.hs +605/−0
- HGamer3D/Bindings/Ogre/ClassEntityFactory.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassException.hs +137/−0
- HGamer3D/Bindings/Ogre/ClassFileHandleDataStream.hs +110/−0
- HGamer3D/Bindings/Ogre/ClassFileNotFoundException.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassFileStreamDataStream.hs +125/−0
- HGamer3D/Bindings/Ogre/ClassFrustum.hs +511/−0
- HGamer3D/Bindings/Ogre/ClassGeometryBucket.hs +76/−0
- HGamer3D/Bindings/Ogre/ClassGpuProgram.hs +392/−0
- HGamer3D/Bindings/Ogre/ClassGpuProgramManager.hs +78/−0
- HGamer3D/Bindings/Ogre/ClassGpuProgramPtr.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassHardwareBufferLicensee.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassHardwareBufferManager.hs +97/−0
- HGamer3D/Bindings/Ogre/ClassHardwareBufferManagerBase.hs +97/−0
- HGamer3D/Bindings/Ogre/ClassHardwareIndexBuffer.hs +115/−0
- HGamer3D/Bindings/Ogre/ClassHardwareIndexBufferSharedPtr.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassHardwareOcclusionQuery.hs +123/−0
- HGamer3D/Bindings/Ogre/ClassHardwarePixelBuffer.hs +128/−0
- HGamer3D/Bindings/Ogre/ClassHardwarePixelBufferSharedPtr.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassHighLevelGpuProgram.hs +77/−0
- HGamer3D/Bindings/Ogre/ClassHighLevelGpuProgramFactory.hs +77/−0
- HGamer3D/Bindings/Ogre/ClassHighLevelGpuProgramPtr.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassIOException.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassInternalErrorException.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassInvalidParametersException.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassInvalidStateException.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassItemIdentityException.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassKeyFrame.hs +77/−0
- HGamer3D/Bindings/Ogre/ClassLODBucket.hs +88/−0
- HGamer3D/Bindings/Ogre/ClassLiSPSMShadowCameraSetup.hs +136/−0
- HGamer3D/Bindings/Ogre/ClassLight.hs +664/−0
- HGamer3D/Bindings/Ogre/ClassLightFactory.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassLogManager.hs +117/−0
- HGamer3D/Bindings/Ogre/ClassManualObject.hs +527/−0
- HGamer3D/Bindings/Ogre/ClassManualObjectFactory.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassManualObjectSection.hs +124/−0
- HGamer3D/Bindings/Ogre/ClassManualObjectSectionShadowRenderable.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassMaterial.hs +572/−0
- HGamer3D/Bindings/Ogre/ClassMaterialBucket.hs +100/−0
- HGamer3D/Bindings/Ogre/ClassMaterialManager.hs +214/−0
- HGamer3D/Bindings/Ogre/ClassMaterialPtr.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassMaterialSerializer.hs +100/−0
- HGamer3D/Bindings/Ogre/ClassMemoryDataStream.hs +149/−0
- HGamer3D/Bindings/Ogre/ClassMesh.hs +605/−0
- HGamer3D/Bindings/Ogre/ClassMeshPtr.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassMeshSerializer.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassMovableObject.hs +503/−0
- HGamer3D/Bindings/Ogre/ClassMovableObjectFactory.hs +112/−0
- HGamer3D/Bindings/Ogre/ClassMultiRenderTarget.hs +102/−0
- HGamer3D/Bindings/Ogre/ClassNode.hs +712/−0
- HGamer3D/Bindings/Ogre/ClassNodeAnimationTrack.hs +169/−0
- HGamer3D/Bindings/Ogre/ClassNumericAnimationTrack.hs +91/−0
- HGamer3D/Bindings/Ogre/ClassNumericKeyFrame.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassOverlay.hs +318/−0
- HGamer3D/Bindings/Ogre/ClassOverlayContainer.hs +139/−0
- HGamer3D/Bindings/Ogre/ClassOverlayManager.hs +222/−0
- HGamer3D/Bindings/Ogre/ClassPSSMShadowCameraSetup.hs +138/−0
- HGamer3D/Bindings/Ogre/ClassParticleAffector.hs +77/−0
- HGamer3D/Bindings/Ogre/ClassParticleEmitter.hs +708/−0
- HGamer3D/Bindings/Ogre/ClassParticleSystemFactory.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassPass.hs +1792/−0
- HGamer3D/Bindings/Ogre/ClassPatchMesh.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassPatchMeshPtr.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassPatchSurface.hs +160/−0
- HGamer3D/Bindings/Ogre/ClassPlaneOptimalShadowCameraSetup.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassPtr.hs +462/−0
- HGamer3D/Bindings/Ogre/ClassRegion.hs +126/−0
- HGamer3D/Bindings/Ogre/ClassRenderObjectListener.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassRenderQueueInvocation.hs +123/−0
- HGamer3D/Bindings/Ogre/ClassRenderQueueInvocationSequence.hs +134/−0
- HGamer3D/Bindings/Ogre/ClassRenderSystemOperation.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassRenderTarget.hs +445/−0
- HGamer3D/Bindings/Ogre/ClassRenderTexture.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassRenderWindow.hs +219/−0
- HGamer3D/Bindings/Ogre/ClassRenderingAPIException.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassResourceGroupListener.hs +208/−0
- HGamer3D/Bindings/Ogre/ClassResourceGroupManager.hs +463/−0
- HGamer3D/Bindings/Ogre/ClassRibbonTrail.hs +286/−0
- HGamer3D/Bindings/Ogre/ClassRibbonTrailFactory.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassRoot.hs +682/−0
- HGamer3D/Bindings/Ogre/ClassRuntimeAssertionException.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassSceneManager.hs +2360/−0
- HGamer3D/Bindings/Ogre/ClassSceneManagerEnumerator.hs +162/−0
- HGamer3D/Bindings/Ogre/ClassSceneManagerFactory.hs +89/−0
- HGamer3D/Bindings/Ogre/ClassSceneMgrQueuedRenderableVisitor.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassSceneNode.hs +492/−0
- HGamer3D/Bindings/Ogre/ClassShadowCameraSetup.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassSimpleRenderable.hs +77/−0
- HGamer3D/Bindings/Ogre/ClassSkeleton.hs +377/−0
- HGamer3D/Bindings/Ogre/ClassSkeletonInstance.hs +149/−0
- HGamer3D/Bindings/Ogre/ClassSkeletonPtr.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassSkeletonSerializer.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassStaticGeometry.hs +286/−0
- HGamer3D/Bindings/Ogre/ClassStringConverter.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassStringUtil.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassSubEntity.hs +239/−0
- HGamer3D/Bindings/Ogre/ClassSubMesh.hs +203/−0
- HGamer3D/Bindings/Ogre/ClassTechnique.hs +747/−0
- HGamer3D/Bindings/Ogre/ClassTempBlendedBufferInfo.hs +91/−0
- HGamer3D/Bindings/Ogre/ClassTextureManager.hs +165/−0
- HGamer3D/Bindings/Ogre/ClassTextureUnitState.hs +1051/−0
- HGamer3D/Bindings/Ogre/ClassTimeIndex.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassTransformKeyFrame.hs +138/−0
- HGamer3D/Bindings/Ogre/ClassUnimplementedException.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassVertexAnimationTrack.hs +178/−0
- HGamer3D/Bindings/Ogre/ClassVertexMorphKeyFrame.hs +65/−0
- HGamer3D/Bindings/Ogre/ClassVertexPoseKeyFrame.hs +75/−0
- HGamer3D/Bindings/Ogre/ClassViewport.hs +528/−0
- HGamer3D/Bindings/Ogre/ClassWindowEventListener.hs +122/−0
- HGamer3D/Bindings/Ogre/ClassWindowEventUtilities.hs +65/−0
- HGamer3D/Bindings/Ogre/EnumACDataType.hs +56/−0
- HGamer3D/Bindings/Ogre/EnumAbstractNodeType.hs +60/−0
- HGamer3D/Bindings/Ogre/EnumAccessMode.hs +62/−0
- HGamer3D/Bindings/Ogre/EnumAlignment.hs +56/−0
- HGamer3D/Bindings/Ogre/EnumAngleUnit.hs +55/−0
- HGamer3D/Bindings/Ogre/EnumAutoConstantType.hs +180/−0
- HGamer3D/Bindings/Ogre/EnumBillboardOrigin.hs +62/−0
- HGamer3D/Bindings/Ogre/EnumBillboardRotationType.hs +55/−0
- HGamer3D/Bindings/Ogre/EnumBillboardType.hs +58/−0
- HGamer3D/Bindings/Ogre/EnumBindingType.hs +62/−0
- HGamer3D/Bindings/Ogre/EnumBorderCellIndex.hs +80/−0
- HGamer3D/Bindings/Ogre/EnumBoxPlane.hs +74/−0
- HGamer3D/Bindings/Ogre/EnumBufferLicenseType.hs +55/−0
- HGamer3D/Bindings/Ogre/EnumBufferType.hs +57/−0
- HGamer3D/Bindings/Ogre/EnumBuiltinHashFunction.hs +55/−0
- HGamer3D/Bindings/Ogre/EnumCacheType.hs +55/−0
- HGamer3D/Bindings/Ogre/EnumCapabilitiesCategory.hs +71/−0
- HGamer3D/Bindings/Ogre/EnumCapabilityKeywordType.hs +77/−0
- HGamer3D/Bindings/Ogre/EnumClipResult.hs +65/−0
- HGamer3D/Bindings/Ogre/EnumCompareFunction.hs +61/−0
- HGamer3D/Bindings/Ogre/EnumConcreteNodeType.hs +61/−0
- HGamer3D/Bindings/Ogre/EnumContentType.hs +65/−0
- HGamer3D/Bindings/Ogre/EnumCpuFeatures.hs +95/−0
- HGamer3D/Bindings/Ogre/EnumCullingMode.hs +65/−0
- HGamer3D/Bindings/Ogre/EnumDisplayMode.hs +55/−0
- HGamer3D/Bindings/Ogre/EnumElementType.hs +55/−0
- HGamer3D/Bindings/Ogre/EnumEndian.hs +56/−0
- HGamer3D/Bindings/Ogre/EnumEnvMapType.hs +57/−0
- HGamer3D/Bindings/Ogre/EnumExceptionCodes.hs +63/−0
- HGamer3D/Bindings/Ogre/EnumExtent.hs +56/−0
- HGamer3D/Bindings/Ogre/EnumFaceGroupType.hs +56/−0
- HGamer3D/Bindings/Ogre/EnumFilter.hs +59/−0
- HGamer3D/Bindings/Ogre/EnumFilterOptions.hs +57/−0
- HGamer3D/Bindings/Ogre/EnumFilterType.hs +56/−0
- HGamer3D/Bindings/Ogre/EnumFogMode.hs +57/−0
- HGamer3D/Bindings/Ogre/EnumFontType.hs +62/−0
- HGamer3D/Bindings/Ogre/EnumFrameBuffer.hs +56/−0
- HGamer3D/Bindings/Ogre/EnumFrameBufferType.hs +65/−0
- HGamer3D/Bindings/Ogre/EnumFrameEventTimeType.hs +71/−0
- HGamer3D/Bindings/Ogre/EnumFrustumPlane.hs +74/−0
- HGamer3D/Bindings/Ogre/EnumGPUVendor.hs +92/−0
- HGamer3D/Bindings/Ogre/EnumGpuConstantType.hs +128/−0
- HGamer3D/Bindings/Ogre/EnumGpuParamVariability.hs +71/−0
- HGamer3D/Bindings/Ogre/EnumGpuProgramType.hs +56/−0
- HGamer3D/Bindings/Ogre/EnumGuiHorizontalAlignment.hs +56/−0
- HGamer3D/Bindings/Ogre/EnumGuiMetricsMode.hs +56/−0
- HGamer3D/Bindings/Ogre/EnumGuiVerticalAlignment.hs +56/−0
- HGamer3D/Bindings/Ogre/EnumIlluminationPassesState.hs +65/−0
- HGamer3D/Bindings/Ogre/EnumIlluminationRenderStage.hs +56/−0
- HGamer3D/Bindings/Ogre/EnumIlluminationStage.hs +57/−0
- HGamer3D/Bindings/Ogre/EnumImageFlags.hs +65/−0
- HGamer3D/Bindings/Ogre/EnumIncludeOrExclude.hs +62/−0
- HGamer3D/Bindings/Ogre/EnumIndexType.hs +55/−0
- HGamer3D/Bindings/Ogre/EnumInputMode.hs +55/−0
- HGamer3D/Bindings/Ogre/EnumInterpolationMode.hs +55/−0
- HGamer3D/Bindings/Ogre/EnumLayerBlendOperation.hs +57/−0
- HGamer3D/Bindings/Ogre/EnumLayerBlendOperationEx.hs +68/−0
- HGamer3D/Bindings/Ogre/EnumLayerBlendSource.hs +58/−0
- HGamer3D/Bindings/Ogre/EnumLayerBlendType.hs +55/−0
- HGamer3D/Bindings/Ogre/EnumLightTypes.hs +65/−0
- HGamer3D/Bindings/Ogre/EnumLoadingState.hs +59/−0
- HGamer3D/Bindings/Ogre/EnumLockOptions.hs +57/−0
- HGamer3D/Bindings/Ogre/EnumLogMessageLevel.hs +65/−0
- HGamer3D/Bindings/Ogre/EnumLoggingLevel.hs +65/−0
- HGamer3D/Bindings/Ogre/EnumManualCullingMode.hs +65/−0
- HGamer3D/Bindings/Ogre/EnumMaterialScriptSection.hs +62/−0
- HGamer3D/Bindings/Ogre/EnumMemoryCategory.hs +83/−0
- HGamer3D/Bindings/Ogre/EnumMeshBuildType.hs +56/−0
- HGamer3D/Bindings/Ogre/EnumOperationType.hs +74/−0
- HGamer3D/Bindings/Ogre/EnumOrganisationMode.hs +65/−0
- HGamer3D/Bindings/Ogre/EnumOrientationMode.hs +77/−0
- HGamer3D/Bindings/Ogre/EnumParameterType.hs +67/−0
- HGamer3D/Bindings/Ogre/EnumParseAction.hs +56/−0
- HGamer3D/Bindings/Ogre/EnumParticleType.hs +55/−0
- HGamer3D/Bindings/Ogre/EnumPassType.hs +58/−0
- HGamer3D/Bindings/Ogre/EnumPatchSurfaceType.hs +54/−0
- HGamer3D/Bindings/Ogre/EnumPixelComponentType.hs +71/−0
- HGamer3D/Bindings/Ogre/EnumPixelFormat.hs +206/−0
- HGamer3D/Bindings/Ogre/EnumPixelFormatFlags.hs +74/−0
- HGamer3D/Bindings/Ogre/EnumPolygonMode.hs +65/−0
- HGamer3D/Bindings/Ogre/EnumPrefabType.hs +56/−0
- HGamer3D/Bindings/Ogre/EnumProfileGroupMask.hs +71/−0
- HGamer3D/Bindings/Ogre/EnumPrograms.hs +80/−0
- HGamer3D/Bindings/Ogre/EnumProjectionType.hs +55/−0
- HGamer3D/Bindings/Ogre/EnumRealStorageFormat.hs +55/−0
- HGamer3D/Bindings/Ogre/EnumRenderQueueGroupID.hs +104/−0
- HGamer3D/Bindings/Ogre/EnumRequestType.hs +80/−0
- HGamer3D/Bindings/Ogre/EnumResourceType.hs +57/−0
- HGamer3D/Bindings/Ogre/EnumRotationInterpolationMode.hs +55/−0
- HGamer3D/Bindings/Ogre/EnumSceneBlendFactor.hs +63/−0
- HGamer3D/Bindings/Ogre/EnumSceneBlendOperation.hs +58/−0
- HGamer3D/Bindings/Ogre/EnumSceneBlendType.hs +58/−0
- HGamer3D/Bindings/Ogre/EnumSceneType.hs +71/−0
- HGamer3D/Bindings/Ogre/EnumSerializeEvent.hs +57/−0
- HGamer3D/Bindings/Ogre/EnumShadeOptions.hs +56/−0
- HGamer3D/Bindings/Ogre/EnumShadowRenderableFlags.hs +65/−0
- HGamer3D/Bindings/Ogre/EnumShadowTechnique.hs +92/−0
- HGamer3D/Bindings/Ogre/EnumSharedPtrFreeMethod.hs +56/−0
- HGamer3D/Bindings/Ogre/EnumSide.hs +57/−0
- HGamer3D/Bindings/Ogre/EnumSkeletonAnimationBlendMode.hs +55/−0
- HGamer3D/Bindings/Ogre/EnumSkeletonChunkID.hs +77/−0
- HGamer3D/Bindings/Ogre/EnumSortMode.hs +55/−0
- HGamer3D/Bindings/Ogre/EnumSpecialCaseRenderQueueMode.hs +55/−0
- HGamer3D/Bindings/Ogre/EnumStatFlags.hs +77/−0
- HGamer3D/Bindings/Ogre/EnumStatus.hs +71/−0
- HGamer3D/Bindings/Ogre/EnumStencilOperation.hs +61/−0
- HGamer3D/Bindings/Ogre/EnumTargetMode.hs +55/−0
- HGamer3D/Bindings/Ogre/EnumTexCoordCalcMethod.hs +59/−0
- HGamer3D/Bindings/Ogre/EnumTexCoordDirection.hs +55/−0
- HGamer3D/Bindings/Ogre/EnumTextureAddressingMode.hs +57/−0
- HGamer3D/Bindings/Ogre/EnumTextureCubeFace.hs +74/−0
- HGamer3D/Bindings/Ogre/EnumTextureEffectType.hs +60/−0
- HGamer3D/Bindings/Ogre/EnumTextureFilterOptions.hs +57/−0
- HGamer3D/Bindings/Ogre/EnumTextureMipmap.hs +62/−0
- HGamer3D/Bindings/Ogre/EnumTextureScope.hs +56/−0
- HGamer3D/Bindings/Ogre/EnumTextureTransformType.hs +58/−0
- HGamer3D/Bindings/Ogre/EnumTextureType.hs +68/−0
- HGamer3D/Bindings/Ogre/EnumTrackVertexColourEnum.hs +71/−0
- HGamer3D/Bindings/Ogre/EnumTransformSpace.hs +56/−0
- HGamer3D/Bindings/Ogre/EnumUsage.hs +77/−0
- HGamer3D/Bindings/Ogre/EnumValueType.hs +62/−0
- HGamer3D/Bindings/Ogre/EnumVertexAnimationType.hs +65/−0
- HGamer3D/Bindings/Ogre/EnumVertexDataBindChoice.hs +57/−0
- HGamer3D/Bindings/Ogre/EnumVertexElementSemantic.hs +83/−0
- HGamer3D/Bindings/Ogre/EnumVertexElementType.hs +92/−0
- HGamer3D/Bindings/Ogre/EnumVertexReductionQuota.hs +55/−0
- HGamer3D/Bindings/Ogre/EnumVisibleSide.hs +56/−0
- HGamer3D/Bindings/Ogre/EnumWaveformType.hs +59/−0
- HGamer3D/Bindings/Ogre/EnumWorldFragmentType.hs +58/−0
- HGamer3D/Bindings/Ogre/EnumeTexturePlayMode.hs +65/−0
- HGamer3D/Bindings/Ogre/TypeAngle.hs +69/−0
- HGamer3D/Bindings/Ogre/TypeColourValue.hs +75/−0
- HGamer3D/Bindings/Ogre/TypeDegree.hs +69/−0
- HGamer3D/Bindings/Ogre/TypeHG3DClass.hs +59/−0
- HGamer3D/Bindings/Ogre/TypeQuaternion.hs +75/−0
- HGamer3D/Bindings/Ogre/TypeRadian.hs +69/−0
- HGamer3D/Bindings/Ogre/TypeVector2.hs +71/−0
- HGamer3D/Bindings/Ogre/TypeVector3.hs +74/−0
- HGamer3D/Bindings/Ogre/TypeVector4.hs +75/−0
- HGamer3D/Bindings/Ogre/Utils.hs +110/−0
- LICENSE +13/−0
- Setup.hs +22/−0
- include/ClassAnimation.h +109/−0
- include/ClassAnimationState.h +72/−0
- include/ClassAnimationTrack.h +56/−0
- include/ClassArchive.h +54/−0
- include/ClassArchiveManager.h +44/−0
- include/ClassBillboard.h +75/−0
- include/ClassBillboardChain.h +79/−0
- include/ClassBillboardChainFactory.h +38/−0
- include/ClassBillboardSet.h +146/−0
- include/ClassBillboardSetFactory.h +38/−0
- include/ClassBone.h +58/−0
- include/ClassCamera.h +163/−0
- include/ClassCmdManualNamedConstsFile.h +38/−0
- include/ClassCmdPose.h +38/−0
- include/ClassCompositionPass.h +126/−0
- include/ClassCompositionTargetPass.h +81/−0
- include/ClassCompositionTechnique.h +68/−0
- include/ClassCompositor.h +56/−0
- include/ClassCompositorChain.h +64/−0
- include/ClassCompositorInstance.h +62/−0
- include/ClassCompositorManager.h +60/−0
- include/ClassCompositorPtr.h +38/−0
- include/ClassConfigFile.h +48/−0
- include/ClassControllerManager.h +58/−0
- include/ClassDataStream.h +64/−0
- include/ClassDefaultAxisAlignedBoxSceneQuery.h +38/−0
- include/ClassDefaultPlaneBoundedVolumeListSceneQuery.h +38/−0
- include/ClassDefaultRaySceneQuery.h +38/−0
- include/ClassDefaultSceneManager.h +38/−0
- include/ClassDefaultSceneManagerFactory.h +38/−0
- include/ClassDefaultShadowCameraSetup.h +38/−0
- include/ClassDefaultSphereSceneQuery.h +38/−0
- include/ClassElement.h +38/−0
- include/ClassEntity.h +131/−0
- include/ClassEntityFactory.h +38/−0
- include/ClassException.h +50/−0
- include/ClassFileHandleDataStream.h +46/−0
- include/ClassFileNotFoundException.h +38/−0
- include/ClassFileStreamDataStream.h +48/−0
- include/ClassFrustum.h +119/−0
- include/ClassGeometryBucket.h +40/−0
- include/ClassGpuProgram.h +95/−0
- include/ClassGpuProgramManager.h +40/−0
- include/ClassGpuProgramPtr.h +38/−0
- include/ClassHardwareBufferLicensee.h +38/−0
- include/ClassHardwareBufferManager.h +44/−0
- include/ClassHardwareBufferManagerBase.h +44/−0
- include/ClassHardwareIndexBuffer.h +47/−0
- include/ClassHardwareIndexBufferSharedPtr.h +38/−0
- include/ClassHardwareOcclusionQuery.h +48/−0
- include/ClassHardwarePixelBuffer.h +49/−0
- include/ClassHardwarePixelBufferSharedPtr.h +38/−0
- include/ClassHighLevelGpuProgram.h +40/−0
- include/ClassHighLevelGpuProgramFactory.h +40/−0
- include/ClassHighLevelGpuProgramPtr.h +38/−0
- include/ClassIOException.h +38/−0
- include/ClassInternalErrorException.h +38/−0
- include/ClassInvalidParametersException.h +38/−0
- include/ClassInvalidStateException.h +38/−0
- include/ClassItemIdentityException.h +38/−0
- include/ClassKeyFrame.h +40/−0
- include/ClassLODBucket.h +42/−0
- include/ClassLiSPSMShadowCameraSetup.h +51/−0
- include/ClassLight.h +143/−0
- include/ClassLightFactory.h +38/−0
- include/ClassLogManager.h +48/−0
- include/ClassManualObject.h +119/−0
- include/ClassManualObjectFactory.h +38/−0
- include/ClassManualObjectSection.h +48/−0
- include/ClassManualObjectSectionShadowRenderable.h +38/−0
- include/ClassMaterial.h +129/−0
- include/ClassMaterialBucket.h +44/−0
- include/ClassMaterialManager.h +65/−0
- include/ClassMaterialPtr.h +38/−0
- include/ClassMaterialSerializer.h +44/−0
- include/ClassMemoryDataStream.h +52/−0
- include/ClassMesh.h +132/−0
- include/ClassMeshPtr.h +38/−0
- include/ClassMeshSerializer.h +38/−0
- include/ClassMovableObject.h +114/−0
- include/ClassMovableObjectFactory.h +46/−0
- include/ClassMultiRenderTarget.h +45/−0
- include/ClassNode.h +148/−0
- include/ClassNodeAnimationTrack.h +56/−0
- include/ClassNumericAnimationTrack.h +42/−0
- include/ClassNumericKeyFrame.h +38/−0
- include/ClassOverlay.h +83/−0
- include/ClassOverlayContainer.h +52/−0
- include/ClassOverlayManager.h +65/−0
- include/ClassPSSMShadowCameraSetup.h +50/−0
- include/ClassParticleAffector.h +40/−0
- include/ClassParticleEmitter.h +151/−0
- include/ClassParticleSystemFactory.h +38/−0
- include/ClassPass.h +341/−0
- include/ClassPatchMesh.h +38/−0
- include/ClassPatchMeshPtr.h +38/−0
- include/ClassPatchSurface.h +54/−0
- include/ClassPlaneOptimalShadowCameraSetup.h +38/−0
- include/ClassPtr.h +453/−0
- include/ClassRegion.h +49/−0
- include/ClassRenderObjectListener.h +38/−0
- include/ClassRenderQueueInvocation.h +48/−0
- include/ClassRenderQueueInvocationSequence.h +50/−0
- include/ClassRenderSystemOperation.h +38/−0
- include/ClassRenderTarget.h +103/−0
- include/ClassRenderTexture.h +38/−0
- include/ClassRenderWindow.h +65/−0
- include/ClassRenderingAPIException.h +38/−0
- include/ClassResourceGroupListener.h +64/−0
- include/ClassResourceGroupManager.h +104/−0
- include/ClassRibbonTrail.h +75/−0
- include/ClassRibbonTrailFactory.h +38/−0
- include/ClassRoot.h +143/−0
- include/ClassRuntimeAssertionException.h too large to diff
- include/ClassSceneManager.h too large to diff
- include/ClassSceneManagerEnumerator.h too large to diff
- include/ClassSceneManagerFactory.h too large to diff
- include/ClassSceneMgrQueuedRenderableVisitor.h too large to diff
- include/ClassSceneNode.h too large to diff
- include/ClassShadowCameraSetup.h too large to diff
- include/ClassSimpleRenderable.h too large to diff
- include/ClassSkeleton.h too large to diff
- include/ClassSkeletonInstance.h too large to diff
- include/ClassSkeletonPtr.h too large to diff
- include/ClassSkeletonSerializer.h too large to diff
- include/ClassStaticGeometry.h too large to diff
- include/ClassStringConverter.h too large to diff
- include/ClassStringUtil.h too large to diff
- include/ClassSubEntity.h too large to diff
- include/ClassSubMesh.h too large to diff
- include/ClassTechnique.h too large to diff
- include/ClassTempBlendedBufferInfo.h too large to diff
- include/ClassTextureManager.h too large to diff
- include/ClassTextureUnitState.h too large to diff
- include/ClassTimeIndex.h too large to diff
- include/ClassTransformKeyFrame.h too large to diff
- include/ClassUnimplementedException.h too large to diff
- include/ClassVertexAnimationTrack.h too large to diff
- include/ClassVertexMorphKeyFrame.h too large to diff
- include/ClassVertexPoseKeyFrame.h too large to diff
- include/ClassViewport.h too large to diff
- include/ClassWindowEventListener.h too large to diff
- include/ClassWindowEventUtilities.h too large to diff
- include/EnumACDataType.h too large to diff
- include/EnumAbstractNodeType.h too large to diff
- include/EnumAccessMode.h too large to diff
- include/EnumAlignment.h too large to diff
- include/EnumAngleUnit.h too large to diff
- include/EnumAutoConstantType.h too large to diff
- include/EnumBillboardOrigin.h too large to diff
- include/EnumBillboardRotationType.h too large to diff
- include/EnumBillboardType.h too large to diff
- include/EnumBindingType.h too large to diff
- include/EnumBorderCellIndex.h too large to diff
- include/EnumBoxPlane.h too large to diff
- include/EnumBufferLicenseType.h too large to diff
- include/EnumBufferType.h too large to diff
- include/EnumBuiltinHashFunction.h too large to diff
- include/EnumCacheType.h too large to diff
- include/EnumCapabilitiesCategory.h too large to diff
- include/EnumCapabilityKeywordType.h too large to diff
- include/EnumClipResult.h too large to diff
- include/EnumCompareFunction.h too large to diff
- include/EnumConcreteNodeType.h too large to diff
- include/EnumContentType.h too large to diff
- include/EnumCpuFeatures.h too large to diff
- include/EnumCullingMode.h too large to diff
- include/EnumDisplayMode.h too large to diff
- include/EnumElementType.h too large to diff
- include/EnumEndian.h too large to diff
- include/EnumEnvMapType.h too large to diff
- include/EnumExceptionCodes.h too large to diff
- include/EnumExtent.h too large to diff
- include/EnumFaceGroupType.h too large to diff
- include/EnumFilter.h too large to diff
- include/EnumFilterOptions.h too large to diff
- include/EnumFilterType.h too large to diff
- include/EnumFogMode.h too large to diff
- include/EnumFontType.h too large to diff
- include/EnumFrameBuffer.h too large to diff
- include/EnumFrameBufferType.h too large to diff
- include/EnumFrameEventTimeType.h too large to diff
- include/EnumFrustumPlane.h too large to diff
- include/EnumGPUVendor.h too large to diff
- include/EnumGpuConstantType.h too large to diff
- include/EnumGpuParamVariability.h too large to diff
- include/EnumGpuProgramType.h too large to diff
- include/EnumGuiHorizontalAlignment.h too large to diff
- include/EnumGuiMetricsMode.h too large to diff
- include/EnumGuiVerticalAlignment.h too large to diff
- include/EnumIlluminationPassesState.h too large to diff
- include/EnumIlluminationRenderStage.h too large to diff
- include/EnumIlluminationStage.h too large to diff
- include/EnumImageFlags.h too large to diff
- include/EnumIncludeOrExclude.h too large to diff
- include/EnumIndexType.h too large to diff
- include/EnumInputMode.h too large to diff
- include/EnumInterpolationMode.h too large to diff
- include/EnumLayerBlendOperation.h too large to diff
- include/EnumLayerBlendOperationEx.h too large to diff
- include/EnumLayerBlendSource.h too large to diff
- include/EnumLayerBlendType.h too large to diff
- include/EnumLightTypes.h too large to diff
- include/EnumLoadingState.h too large to diff
- include/EnumLockOptions.h too large to diff
- include/EnumLogMessageLevel.h too large to diff
- include/EnumLoggingLevel.h too large to diff
- include/EnumManualCullingMode.h too large to diff
- include/EnumMaterialScriptSection.h too large to diff
- include/EnumMemoryCategory.h too large to diff
- include/EnumMeshBuildType.h too large to diff
- include/EnumOperationType.h too large to diff
- include/EnumOrganisationMode.h too large to diff
- include/EnumOrientationMode.h too large to diff
- include/EnumParameterType.h too large to diff
- include/EnumParseAction.h too large to diff
- include/EnumParticleType.h too large to diff
- include/EnumPassType.h too large to diff
- include/EnumPatchSurfaceType.h too large to diff
- include/EnumPixelComponentType.h too large to diff
- include/EnumPixelFormat.h too large to diff
- include/EnumPixelFormatFlags.h too large to diff
- include/EnumPolygonMode.h too large to diff
- include/EnumPrefabType.h too large to diff
- include/EnumProfileGroupMask.h too large to diff
- include/EnumPrograms.h too large to diff
- include/EnumProjectionType.h too large to diff
- include/EnumRealStorageFormat.h too large to diff
- include/EnumRenderQueueGroupID.h too large to diff
- include/EnumRequestType.h too large to diff
- include/EnumResourceType.h too large to diff
- include/EnumRotationInterpolationMode.h too large to diff
- include/EnumSceneBlendFactor.h too large to diff
- include/EnumSceneBlendOperation.h too large to diff
- include/EnumSceneBlendType.h too large to diff
- include/EnumSceneType.h too large to diff
- include/EnumSerializeEvent.h too large to diff
- include/EnumShadeOptions.h too large to diff
- include/EnumShadowRenderableFlags.h too large to diff
- include/EnumShadowTechnique.h too large to diff
- include/EnumSharedPtrFreeMethod.h too large to diff
- include/EnumSide.h too large to diff
- include/EnumSkeletonAnimationBlendMode.h too large to diff
- include/EnumSkeletonChunkID.h too large to diff
- include/EnumSortMode.h too large to diff
- include/EnumSpecialCaseRenderQueueMode.h too large to diff
- include/EnumStatFlags.h too large to diff
- include/EnumStatus.h too large to diff
- include/EnumStencilOperation.h too large to diff
- include/EnumTargetMode.h too large to diff
- include/EnumTexCoordCalcMethod.h too large to diff
- include/EnumTexCoordDirection.h too large to diff
- include/EnumTextureAddressingMode.h too large to diff
- include/EnumTextureCubeFace.h too large to diff
- include/EnumTextureEffectType.h too large to diff
- include/EnumTextureFilterOptions.h too large to diff
- include/EnumTextureMipmap.h too large to diff
- include/EnumTextureScope.h too large to diff
- include/EnumTextureTransformType.h too large to diff
- include/EnumTextureType.h too large to diff
- include/EnumTrackVertexColourEnum.h too large to diff
- include/EnumTransformSpace.h too large to diff
- include/EnumUsage.h too large to diff
- include/EnumValueType.h too large to diff
- include/EnumVertexAnimationType.h too large to diff
- include/EnumVertexDataBindChoice.h too large to diff
- include/EnumVertexElementSemantic.h too large to diff
- include/EnumVertexElementType.h too large to diff
- include/EnumVertexReductionQuota.h too large to diff
- include/EnumVisibleSide.h too large to diff
- include/EnumWaveformType.h too large to diff
- include/EnumWorldFragmentType.h too large to diff
- include/EnumeTexturePlayMode.h too large to diff
- include/OgreDllDefines.h too large to diff
- include/TypeAngle.h too large to diff
- include/TypeColourValue.h too large to diff
- include/TypeDegree.h too large to diff
- include/TypeHG3DClass.h too large to diff
- include/TypeQuaternion.h too large to diff
- include/TypeRadian.h too large to diff
- include/TypeVector2.h too large to diff
- include/TypeVector3.h too large to diff
- include/TypeVector4.h too large to diff
- include/Utils.h too large to diff
@@ -0,0 +1,238 @@+-- C->Haskell Compiler: Marshalling library +-- +-- Copyright (c) [1999...2005] Manuel M T Chakravarty +-- +-- Redistribution and use in source and binary forms, with or without +-- modification, are permitted provided that the following conditions are met: +-- +-- 1. Redistributions of source code must retain the above copyright notice, +-- this list of conditions and the following disclaimer. +-- 2. Redistributions in binary form must reproduce the above copyright +-- notice, this list of conditions and the following disclaimer in the +-- documentation and/or other materials provided with the distribution. +-- 3. The name of the author may not be used to endorse or promote products +-- derived from this software without specific prior written permission. +-- +-- THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR +-- IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +-- OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN +-- NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED +-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +-- +--- Description --------------------------------------------------------------- +-- +-- Language: Haskell 98 +-- +-- This module provides the marshaling routines for Haskell files produced by +-- C->Haskell for binding to C library interfaces. It exports all of the +-- low-level FFI (language-independent plus the C-specific parts) together +-- with the C->HS-specific higher-level marshalling routines. +-- + +module C2HS ( + + -- * Re-export the language-independent component of the FFI + module Foreign, + + -- * Re-export the C language component of the FFI + module Foreign.C, + + -- * Composite marshalling functions + withCStringLenIntConv, peekCStringLenIntConv, withIntConv, withFloatConv, + peekIntConv, peekFloatConv, withBool, peekBool, withEnum, peekEnum, + + -- * Conditional results using 'Maybe' + nothingIf, nothingIfNull, + + -- * Bit masks + combineBitMasks, containsBitMask, extractBitMasks, + + -- * Conversion between C and Haskell types + cIntConv, cFloatConv, cToBool, cFromBool, cToEnum, cFromEnum +) where + + +import Foreign +import Foreign.C + +import Monad (liftM) + + +-- Composite marshalling functions +-- ------------------------------- + +-- Strings with explicit length +-- +withCStringLenIntConv :: Num n => String -> ((CString, n) -> IO a) -> IO a +withCStringLenIntConv s f = withCStringLen s $ \(p, n) -> f (p, fromIntegral n) + +peekCStringLenIntConv :: Integral n => (CString, n) -> IO String +peekCStringLenIntConv (s, n) = peekCStringLen (s, fromIntegral n) + +-- Marshalling of numerals +-- + +withIntConv :: (Storable b, Integral a, Integral b) + => a -> (Ptr b -> IO c) -> IO c +withIntConv = with . fromIntegral + +withFloatConv :: (Storable b, RealFloat a, RealFloat b) + => a -> (Ptr b -> IO c) -> IO c +withFloatConv = with . realToFrac + +peekIntConv :: (Storable a, Integral a, Integral b) + => Ptr a -> IO b +peekIntConv = liftM fromIntegral . peek + +peekFloatConv :: (Storable a, RealFloat a, RealFloat b) + => Ptr a -> IO b +peekFloatConv = liftM realToFrac . peek + + +-- Everything else below is deprecated. +-- These functions are not used by code generated by c2hs. + +{-# DEPRECATED withBool "The C2HS module will soon stop providing unnecessary\nutility functions. Please use standard FFI library functions instead." #-} +{-# DEPRECATED peekBool "The C2HS module will soon stop providing unnecessary\nutility functions. Please use standard FFI library functions instead." #-} +{-# DEPRECATED withEnum "The C2HS module will soon stop providing unnecessary\nutility functions. Please use standard FFI library functions instead." #-} +{-# DEPRECATED peekEnum "The C2HS module will soon stop providing unnecessary\nutility functions. Please use standard FFI library functions instead." #-} +{-# DEPRECATED nothingIf "The C2HS module will soon stop providing unnecessary\nutility functions. Please use standard FFI library functions instead." #-} +{-# DEPRECATED nothingIfNull "The C2HS module will soon stop providing unnecessary\nutility functions. Please use standard FFI library functions instead." #-} +{-# DEPRECATED combineBitMasks "The C2HS module will soon stop providing unnecessary\nutility functions. Please use standard FFI library functions instead." #-} +{-# DEPRECATED containsBitMask "The C2HS module will soon stop providing unnecessary\nutility functions. Please use standard FFI library functions instead." #-} +{-# DEPRECATED extractBitMasks "The C2HS module will soon stop providing unnecessary\nutility functions. Please use standard FFI library functions instead." #-} +{-# DEPRECATED cIntConv "The C2HS module will soon stop providing unnecessary\nutility functions. Please use standard FFI library functions instead." #-} +{-# DEPRECATED cFloatConv "The C2HS module will soon stop providing unnecessary\nutility functions. Please use standard FFI library functions instead." #-} +{-# DEPRECATED cFromBool "The C2HS module will soon stop providing unnecessary\nutility functions. Please use standard FFI library functions instead." #-} +{-# DEPRECATED cToBool "The C2HS module will soon stop providing unnecessary\nutility functions. Please use standard FFI library functions instead." #-} +{-# DEPRECATED cToEnum "The C2HS module will soon stop providing unnecessary\nutility functions. Please use standard FFI library functions instead." #-} +{-# DEPRECATED cFromEnum "The C2HS module will soon stop providing unnecessary\nutility functions. Please use standard FFI library functions instead." #-} + + +-- Passing Booleans by reference +-- + +withBool :: (Integral a, Storable a) => Bool -> (Ptr a -> IO b) -> IO b +withBool = with . fromBool + +peekBool :: (Integral a, Storable a) => Ptr a -> IO Bool +peekBool = liftM toBool . peek + + +-- Passing enums by reference +-- + +withEnum :: (Enum a, Integral b, Storable b) => a -> (Ptr b -> IO c) -> IO c +withEnum = with . cFromEnum + +peekEnum :: (Enum a, Integral b, Storable b) => Ptr b -> IO a +peekEnum = liftM cToEnum . peek + + +-- Storing of 'Maybe' values +-- ------------------------- + +--TODO: kill off this orphan instance! + +instance Storable a => Storable (Maybe a) where + sizeOf _ = sizeOf (undefined :: Ptr ()) + alignment _ = alignment (undefined :: Ptr ()) + + peek p = do + ptr <- peek (castPtr p) + if ptr == nullPtr + then return Nothing + else liftM Just $ peek ptr + + poke p v = do + ptr <- case v of + Nothing -> return nullPtr + Just v' -> new v' + poke (castPtr p) ptr + + +-- Conditional results using 'Maybe' +-- --------------------------------- + +-- Wrap the result into a 'Maybe' type. +-- +-- * the predicate determines when the result is considered to be non-existing, +-- ie, it is represented by `Nothing' +-- +-- * the second argument allows to map a result wrapped into `Just' to some +-- other domain +-- +nothingIf :: (a -> Bool) -> (a -> b) -> a -> Maybe b +nothingIf p f x = if p x then Nothing else Just $ f x + +-- |Instance for special casing null pointers. +-- +nothingIfNull :: (Ptr a -> b) -> Ptr a -> Maybe b +nothingIfNull = nothingIf (== nullPtr) + + +-- Support for bit masks +-- --------------------- + +-- Given a list of enumeration values that represent bit masks, combine these +-- masks using bitwise disjunction. +-- +combineBitMasks :: (Enum a, Bits b) => [a] -> b +combineBitMasks = foldl (.|.) 0 . map (fromIntegral . fromEnum) + +-- Tests whether the given bit mask is contained in the given bit pattern +-- (i.e., all bits set in the mask are also set in the pattern). +-- +containsBitMask :: (Bits a, Enum b) => a -> b -> Bool +bits `containsBitMask` bm = let bm' = fromIntegral . fromEnum $ bm + in + bm' .&. bits == bm' + +-- |Given a bit pattern, yield all bit masks that it contains. +-- +-- * This does *not* attempt to compute a minimal set of bit masks that when +-- combined yield the bit pattern, instead all contained bit masks are +-- produced. +-- +extractBitMasks :: (Bits a, Enum b, Bounded b) => a -> [b] +extractBitMasks bits = + [bm | bm <- [minBound..maxBound], bits `containsBitMask` bm] + + +-- Conversion routines +-- ------------------- + +-- |Integral conversion +-- +cIntConv :: (Integral a, Integral b) => a -> b +cIntConv = fromIntegral + +-- |Floating conversion +-- +cFloatConv :: (RealFloat a, RealFloat b) => a -> b +cFloatConv = realToFrac + +-- |Obtain C value from Haskell 'Bool'. +-- +cFromBool :: Num a => Bool -> a +cFromBool = fromBool + +-- |Obtain Haskell 'Bool' from C value. +-- +cToBool :: Num a => a -> Bool +cToBool = toBool + +-- |Convert a C enumeration to Haskell. +-- +cToEnum :: (Integral i, Enum e) => i -> e +cToEnum = toEnum . fromIntegral + +-- |Convert a Haskell enumeration to C. +-- +cFromEnum :: (Enum e, Integral i) => e -> i +cFromEnum = fromIntegral . fromEnum
@@ -0,0 +1,35 @@+Name: HGamer3D-Ogre-Binding +Version: 0.1.0 +Synopsis: Library to enable 3D game development for Haskell - Ogre Bindings +Description: + Library, to enable 3D game development for Haskell, + based on bindings to 3D Graphics, pyhsics engine and additional libraries. + Current implementation contains the following features: + OGRE Binding, OIS Binding (limited functionality) + Platform: Windows only + Install following packages in sequence: HGamer3D-Data, HGamer3D-Ogre-Binding, HGamer3D-OIS-Binding, HGamer3D-API + License: Apache License, Version 2.0 + +License: OtherLicense +License-file: LICENSE +Author: Dr. Peter Althainz +Maintainer: althainz@googlemail.com +Build-Type: Simple +Cabal-Version: >=1.2 +Homepage: http://www.althainz.de/HGamer3D.html +Category: Game +Extra-source-files: Setup.hs include/EnumMaterialScriptSection.h,include/EnumIncludeOrExclude.h,include/EnumGuiHorizontalAlignment.h,include/EnumSharedPtrFreeMethod.h,include/EnumFaceGroupType.h,include/EnumCapabilityKeywordType.h,include/EnumDisplayMode.h,include/EnumTextureCubeFace.h,include/EnumConcreteNodeType.h,include/EnumIlluminationPassesState.h,include/EnumMeshBuildType.h,include/EnumBuiltinHashFunction.h,include/EnumSkeletonChunkID.h,include/EnumSceneBlendOperation.h,include/EnumParticleType.h,include/EnumTextureFilterOptions.h,include/EnumLayerBlendOperationEx.h,include/EnumLayerBlendType.h,include/EnumGuiMetricsMode.h,include/EnumLayerBlendOperation.h,include/EnumVertexDataBindChoice.h,include/EnumProfileGroupMask.h,include/EnumMemoryCategory.h,include/EnumValueType.h,include/EnumTextureAddressingMode.h,include/EnumFrameBufferType.h,include/EnumTrackVertexColourEnum.h,include/EnumFontType.h,include/EnumCpuFeatures.h,include/EnumVertexReductionQuota.h,include/EnumLogMessageLevel.h,include/EnumPixelFormat.h,include/EnumSceneType.h,include/EnumBufferType.h,include/EnumOrganisationMode.h,include/EnumLoadingState.h,include/EnumEnvMapType.h,include/EnumTextureType.h,include/EnumPassType.h,include/EnumPrefabType.h,include/EnumClipResult.h,include/EnumAutoConstantType.h,include/EnumFrameBuffer.h,include/EnumUsage.h,include/EnumFrameEventTimeType.h,include/EnumShadowTechnique.h,include/EnumIlluminationRenderStage.h,include/EnumExceptionCodes.h,include/EnumVertexElementSemantic.h,include/EnumTextureMipmap.h,include/EnumBillboardOrigin.h,include/EnumSerializeEvent.h,include/EnumBillboardType.h,include/EnumManualCullingMode.h,include/EnumBorderCellIndex.h,include/EnumOrientationMode.h,include/EnumTexCoordCalcMethod.h,include/EnumShadeOptions.h,include/EnumLockOptions.h,include/EnumGPUVendor.h,include/EnumeTexturePlayMode.h,include/EnumTransformSpace.h,include/EnumFilterOptions.h,include/EnumSceneBlendFactor.h,include/EnumParseAction.h,include/EnumStatFlags.h,include/EnumResourceType.h,include/EnumStencilOperation.h,include/EnumAbstractNodeType.h,include/EnumImageFlags.h,include/EnumAlignment.h,include/EnumExtent.h,include/EnumSkeletonAnimationBlendMode.h,include/EnumGpuParamVariability.h,include/EnumTextureScope.h,include/EnumSide.h,include/EnumIlluminationStage.h,include/EnumShadowRenderableFlags.h,include/EnumBufferLicenseType.h,include/EnumLayerBlendSource.h,include/EnumBoxPlane.h,include/EnumFogMode.h,include/EnumRequestType.h,include/EnumACDataType.h,include/EnumVertexAnimationType.h,include/EnumPolygonMode.h,include/EnumTextureEffectType.h,include/EnumCullingMode.h,include/EnumSortMode.h,include/EnumGuiVerticalAlignment.h,include/EnumBindingType.h,include/EnumEndian.h,include/EnumVertexElementType.h,include/EnumTargetMode.h,include/EnumSpecialCaseRenderQueueMode.h,include/EnumFilterType.h,include/EnumGpuConstantType.h,include/EnumLoggingLevel.h,include/EnumProjectionType.h,include/EnumWorldFragmentType.h,include/EnumAngleUnit.h,include/EnumPixelFormatFlags.h,include/EnumFilter.h,include/EnumContentType.h,include/EnumBillboardRotationType.h,include/EnumRenderQueueGroupID.h,include/EnumGpuProgramType.h,include/EnumParameterType.h,include/EnumOperationType.h,include/EnumIndexType.h,include/EnumTexCoordDirection.h,include/EnumElementType.h,include/EnumPatchSurfaceType.h,include/EnumPixelComponentType.h,include/EnumSceneBlendType.h,include/EnumCapabilitiesCategory.h,include/EnumLightTypes.h,include/EnumStatus.h,include/EnumRealStorageFormat.h,include/EnumCompareFunction.h,include/EnumRotationInterpolationMode.h,include/EnumInterpolationMode.h,include/EnumCacheType.h,include/EnumTextureTransformType.h,include/EnumVisibleSide.h,include/EnumAccessMode.h,include/EnumPrograms.h,include/EnumWaveformType.h,include/EnumInputMode.h,include/EnumFrustumPlane.h,include/TypeAngle.h,include/TypeVector4.h,include/TypeVector2.h,include/TypeVector3.h,include/TypeQuaternion.h,include/TypeHG3DClass.h,include/TypeRadian.h,include/TypeColourValue.h,include/TypeDegree.h,include/ClassPtr.h,include/Utils.h,include/OgreDllDefines.h,include/ClassItemIdentityException.h,include/ClassResourceGroupManager.h,include/ClassMultiRenderTarget.h,include/ClassTempBlendedBufferInfo.h,include/ClassCompositor.h,include/ClassTransformKeyFrame.h,include/ClassSceneManager.h,include/ClassRenderTarget.h,include/ClassInvalidStateException.h,include/ClassBillboardSet.h,include/ClassSimpleRenderable.h,include/ClassMovableObjectFactory.h,include/ClassParticleSystemFactory.h,include/ClassWindowEventListener.h,include/ClassHardwareBufferLicensee.h,include/ClassGpuProgramPtr.h,include/ClassFileStreamDataStream.h,include/ClassMaterialPtr.h,include/ClassPatchMesh.h,include/ClassRenderQueueInvocation.h,include/ClassDefaultRaySceneQuery.h,include/ClassTextureManager.h,include/ClassHardwareBufferManagerBase.h,include/ClassSubMesh.h,include/ClassHardwarePixelBufferSharedPtr.h,include/ClassBillboardChain.h,include/ClassMeshPtr.h,include/ClassParticleAffector.h,include/ClassMesh.h,include/ClassHighLevelGpuProgramFactory.h,include/ClassMaterialBucket.h,include/ClassElement.h,include/ClassCompositorInstance.h,include/ClassInvalidParametersException.h,include/ClassParticleEmitter.h,include/ClassDefaultSphereSceneQuery.h,include/ClassException.h,include/ClassHardwareBufferManager.h,include/ClassKeyFrame.h,include/ClassOverlayManager.h,include/ClassDefaultSceneManagerFactory.h,include/ClassLogManager.h,include/ClassCompositionTechnique.h,include/ClassFrustum.h,include/ClassMaterial.h,include/ClassFileHandleDataStream.h,include/ClassDefaultSceneManager.h,include/ClassGpuProgram.h,include/ClassCompositorChain.h,include/ClassBillboardSetFactory.h,include/ClassMovableObject.h,include/ClassIOException.h,include/ClassLODBucket.h,include/ClassBone.h,include/ClassFileNotFoundException.h,include/ClassArchive.h,include/ClassBillboardChainFactory.h,include/ClassInternalErrorException.h,include/ClassStringConverter.h,include/ClassVertexPoseKeyFrame.h,include/ClassBillboard.h,include/ClassStringUtil.h,include/ClassResourceGroupListener.h,include/ClassPatchMeshPtr.h,include/ClassAnimation.h,include/ClassSceneNode.h,include/ClassTimeIndex.h,include/ClassAnimationTrack.h,include/ClassHighLevelGpuProgram.h,include/ClassLightFactory.h,include/ClassLiSPSMShadowCameraSetup.h,include/ClassPass.h,include/ClassTextureUnitState.h,include/ClassNumericAnimationTrack.h,include/ClassCmdManualNamedConstsFile.h,include/ClassSkeletonInstance.h,include/ClassMeshSerializer.h,include/ClassAnimationState.h,include/ClassSceneManagerEnumerator.h,include/ClassRenderingAPIException.h,include/ClassCmdPose.h,include/ClassTechnique.h,include/ClassManualObjectSectionShadowRenderable.h,include/ClassEntity.h,include/ClassSceneManagerFactory.h,include/ClassPlaneOptimalShadowCameraSetup.h,include/ClassRenderWindow.h,include/ClassShadowCameraSetup.h,include/ClassRuntimeAssertionException.h,include/ClassRibbonTrailFactory.h,include/ClassSkeletonPtr.h,include/ClassSubEntity.h,include/ClassCompositorPtr.h,include/ClassManualObject.h,include/ClassHardwareIndexBufferSharedPtr.h,include/ClassHardwareIndexBuffer.h,include/ClassGpuProgramManager.h,include/ClassOverlay.h,include/ClassStaticGeometry.h,include/ClassRibbonTrail.h,include/ClassManualObjectSection.h,include/ClassVertexAnimationTrack.h,include/ClassArchiveManager.h,include/ClassSkeleton.h,include/ClassSkeletonSerializer.h,include/ClassConfigFile.h,include/ClassRoot.h,include/ClassHardwarePixelBuffer.h,include/ClassRegion.h,include/ClassOverlayContainer.h,include/ClassWindowEventUtilities.h,include/ClassControllerManager.h,include/ClassMaterialSerializer.h,include/ClassNodeAnimationTrack.h,include/ClassLight.h,include/ClassDefaultShadowCameraSetup.h,include/ClassCompositionTargetPass.h,include/ClassRenderTexture.h,include/ClassCompositorManager.h,include/ClassEntityFactory.h,include/ClassMemoryDataStream.h,include/ClassHardwareOcclusionQuery.h,include/ClassPSSMShadowCameraSetup.h,include/ClassVertexMorphKeyFrame.h,include/ClassNode.h,include/ClassPatchSurface.h,include/ClassManualObjectFactory.h,include/ClassNumericKeyFrame.h,include/ClassDataStream.h,include/ClassRenderObjectListener.h,include/ClassGeometryBucket.h,include/ClassViewport.h,include/ClassDefaultPlaneBoundedVolumeListSceneQuery.h,include/ClassCompositionPass.h,include/ClassSceneMgrQueuedRenderableVisitor.h,include/ClassRenderSystemOperation.h,include/ClassHighLevelGpuProgramPtr.h,include/ClassUnimplementedException.h,include/ClassRenderQueueInvocationSequence.h,include/ClassDefaultAxisAlignedBoxSceneQuery.h,include/ClassMaterialManager.h,include/ClassCamera.h + +Library + Build-Depends: base >= 3 && < 5, HGamer3D-Data + + Exposed-modules: HGamer3D.Bindings.Ogre.EnumMaterialScriptSection,HGamer3D.Bindings.Ogre.EnumIncludeOrExclude,HGamer3D.Bindings.Ogre.EnumGuiHorizontalAlignment,HGamer3D.Bindings.Ogre.EnumSharedPtrFreeMethod,HGamer3D.Bindings.Ogre.EnumFaceGroupType,HGamer3D.Bindings.Ogre.EnumCapabilityKeywordType,HGamer3D.Bindings.Ogre.EnumDisplayMode,HGamer3D.Bindings.Ogre.EnumTextureCubeFace,HGamer3D.Bindings.Ogre.EnumConcreteNodeType,HGamer3D.Bindings.Ogre.EnumIlluminationPassesState,HGamer3D.Bindings.Ogre.EnumMeshBuildType,HGamer3D.Bindings.Ogre.EnumBuiltinHashFunction,HGamer3D.Bindings.Ogre.EnumSkeletonChunkID,HGamer3D.Bindings.Ogre.EnumSceneBlendOperation,HGamer3D.Bindings.Ogre.EnumParticleType,HGamer3D.Bindings.Ogre.EnumTextureFilterOptions,HGamer3D.Bindings.Ogre.EnumLayerBlendOperationEx,HGamer3D.Bindings.Ogre.EnumLayerBlendType,HGamer3D.Bindings.Ogre.EnumGuiMetricsMode,HGamer3D.Bindings.Ogre.EnumLayerBlendOperation,HGamer3D.Bindings.Ogre.EnumVertexDataBindChoice,HGamer3D.Bindings.Ogre.EnumProfileGroupMask,HGamer3D.Bindings.Ogre.EnumMemoryCategory,HGamer3D.Bindings.Ogre.EnumValueType,HGamer3D.Bindings.Ogre.EnumTextureAddressingMode,HGamer3D.Bindings.Ogre.EnumFrameBufferType,HGamer3D.Bindings.Ogre.EnumTrackVertexColourEnum,HGamer3D.Bindings.Ogre.EnumFontType,HGamer3D.Bindings.Ogre.EnumCpuFeatures,HGamer3D.Bindings.Ogre.EnumVertexReductionQuota,HGamer3D.Bindings.Ogre.EnumLogMessageLevel,HGamer3D.Bindings.Ogre.EnumPixelFormat,HGamer3D.Bindings.Ogre.EnumSceneType,HGamer3D.Bindings.Ogre.EnumBufferType,HGamer3D.Bindings.Ogre.EnumOrganisationMode,HGamer3D.Bindings.Ogre.EnumLoadingState,HGamer3D.Bindings.Ogre.EnumEnvMapType,HGamer3D.Bindings.Ogre.EnumTextureType,HGamer3D.Bindings.Ogre.EnumPassType,HGamer3D.Bindings.Ogre.EnumPrefabType,HGamer3D.Bindings.Ogre.EnumClipResult,HGamer3D.Bindings.Ogre.EnumAutoConstantType,HGamer3D.Bindings.Ogre.EnumFrameBuffer,HGamer3D.Bindings.Ogre.EnumUsage,HGamer3D.Bindings.Ogre.EnumFrameEventTimeType,HGamer3D.Bindings.Ogre.EnumShadowTechnique,HGamer3D.Bindings.Ogre.EnumIlluminationRenderStage,HGamer3D.Bindings.Ogre.EnumExceptionCodes,HGamer3D.Bindings.Ogre.EnumVertexElementSemantic,HGamer3D.Bindings.Ogre.EnumTextureMipmap,HGamer3D.Bindings.Ogre.EnumBillboardOrigin,HGamer3D.Bindings.Ogre.EnumSerializeEvent,HGamer3D.Bindings.Ogre.EnumBillboardType,HGamer3D.Bindings.Ogre.EnumManualCullingMode,HGamer3D.Bindings.Ogre.EnumBorderCellIndex,HGamer3D.Bindings.Ogre.EnumOrientationMode,HGamer3D.Bindings.Ogre.EnumTexCoordCalcMethod,HGamer3D.Bindings.Ogre.EnumShadeOptions,HGamer3D.Bindings.Ogre.EnumLockOptions,HGamer3D.Bindings.Ogre.EnumGPUVendor,HGamer3D.Bindings.Ogre.EnumeTexturePlayMode,HGamer3D.Bindings.Ogre.EnumTransformSpace,HGamer3D.Bindings.Ogre.EnumFilterOptions,HGamer3D.Bindings.Ogre.EnumSceneBlendFactor,HGamer3D.Bindings.Ogre.EnumParseAction,HGamer3D.Bindings.Ogre.EnumStatFlags,HGamer3D.Bindings.Ogre.EnumResourceType,HGamer3D.Bindings.Ogre.EnumStencilOperation,HGamer3D.Bindings.Ogre.EnumAbstractNodeType,HGamer3D.Bindings.Ogre.EnumImageFlags,HGamer3D.Bindings.Ogre.EnumAlignment,HGamer3D.Bindings.Ogre.EnumExtent,HGamer3D.Bindings.Ogre.EnumSkeletonAnimationBlendMode,HGamer3D.Bindings.Ogre.EnumGpuParamVariability,HGamer3D.Bindings.Ogre.EnumTextureScope,HGamer3D.Bindings.Ogre.EnumSide,HGamer3D.Bindings.Ogre.EnumIlluminationStage,HGamer3D.Bindings.Ogre.EnumShadowRenderableFlags,HGamer3D.Bindings.Ogre.EnumBufferLicenseType,HGamer3D.Bindings.Ogre.EnumLayerBlendSource,HGamer3D.Bindings.Ogre.EnumBoxPlane,HGamer3D.Bindings.Ogre.EnumFogMode,HGamer3D.Bindings.Ogre.EnumRequestType,HGamer3D.Bindings.Ogre.EnumACDataType,HGamer3D.Bindings.Ogre.EnumVertexAnimationType,HGamer3D.Bindings.Ogre.EnumPolygonMode,HGamer3D.Bindings.Ogre.EnumTextureEffectType,HGamer3D.Bindings.Ogre.EnumCullingMode,HGamer3D.Bindings.Ogre.EnumSortMode,HGamer3D.Bindings.Ogre.EnumGuiVerticalAlignment,HGamer3D.Bindings.Ogre.EnumBindingType,HGamer3D.Bindings.Ogre.EnumEndian,HGamer3D.Bindings.Ogre.EnumVertexElementType,HGamer3D.Bindings.Ogre.EnumTargetMode,HGamer3D.Bindings.Ogre.EnumSpecialCaseRenderQueueMode,HGamer3D.Bindings.Ogre.EnumFilterType,HGamer3D.Bindings.Ogre.EnumGpuConstantType,HGamer3D.Bindings.Ogre.EnumLoggingLevel,HGamer3D.Bindings.Ogre.EnumProjectionType,HGamer3D.Bindings.Ogre.EnumWorldFragmentType,HGamer3D.Bindings.Ogre.EnumAngleUnit,HGamer3D.Bindings.Ogre.EnumPixelFormatFlags,HGamer3D.Bindings.Ogre.EnumFilter,HGamer3D.Bindings.Ogre.EnumContentType,HGamer3D.Bindings.Ogre.EnumBillboardRotationType,HGamer3D.Bindings.Ogre.EnumRenderQueueGroupID,HGamer3D.Bindings.Ogre.EnumGpuProgramType,HGamer3D.Bindings.Ogre.EnumParameterType,HGamer3D.Bindings.Ogre.EnumOperationType,HGamer3D.Bindings.Ogre.EnumIndexType,HGamer3D.Bindings.Ogre.EnumTexCoordDirection,HGamer3D.Bindings.Ogre.EnumElementType,HGamer3D.Bindings.Ogre.EnumPatchSurfaceType,HGamer3D.Bindings.Ogre.EnumPixelComponentType,HGamer3D.Bindings.Ogre.EnumSceneBlendType,HGamer3D.Bindings.Ogre.EnumCapabilitiesCategory,HGamer3D.Bindings.Ogre.EnumLightTypes,HGamer3D.Bindings.Ogre.EnumStatus,HGamer3D.Bindings.Ogre.EnumRealStorageFormat,HGamer3D.Bindings.Ogre.EnumCompareFunction,HGamer3D.Bindings.Ogre.EnumRotationInterpolationMode,HGamer3D.Bindings.Ogre.EnumInterpolationMode,HGamer3D.Bindings.Ogre.EnumCacheType,HGamer3D.Bindings.Ogre.EnumTextureTransformType,HGamer3D.Bindings.Ogre.EnumVisibleSide,HGamer3D.Bindings.Ogre.EnumAccessMode,HGamer3D.Bindings.Ogre.EnumPrograms,HGamer3D.Bindings.Ogre.EnumWaveformType,HGamer3D.Bindings.Ogre.EnumInputMode,HGamer3D.Bindings.Ogre.EnumFrustumPlane,HGamer3D.Bindings.Ogre.TypeAngle,HGamer3D.Bindings.Ogre.TypeVector4,HGamer3D.Bindings.Ogre.TypeVector2,HGamer3D.Bindings.Ogre.TypeVector3,HGamer3D.Bindings.Ogre.TypeQuaternion,HGamer3D.Bindings.Ogre.TypeHG3DClass,HGamer3D.Bindings.Ogre.TypeRadian,HGamer3D.Bindings.Ogre.TypeColourValue,HGamer3D.Bindings.Ogre.TypeDegree,HGamer3D.Bindings.Ogre.ClassPtr,HGamer3D.Bindings.Ogre.Utils,HGamer3D.Bindings.Ogre.ClassItemIdentityException,HGamer3D.Bindings.Ogre.ClassResourceGroupManager,HGamer3D.Bindings.Ogre.ClassMultiRenderTarget,HGamer3D.Bindings.Ogre.ClassTempBlendedBufferInfo,HGamer3D.Bindings.Ogre.ClassCompositor,HGamer3D.Bindings.Ogre.ClassTransformKeyFrame,HGamer3D.Bindings.Ogre.ClassSceneManager,HGamer3D.Bindings.Ogre.ClassRenderTarget,HGamer3D.Bindings.Ogre.ClassInvalidStateException,HGamer3D.Bindings.Ogre.ClassBillboardSet,HGamer3D.Bindings.Ogre.ClassSimpleRenderable,HGamer3D.Bindings.Ogre.ClassMovableObjectFactory,HGamer3D.Bindings.Ogre.ClassParticleSystemFactory,HGamer3D.Bindings.Ogre.ClassWindowEventListener,HGamer3D.Bindings.Ogre.ClassHardwareBufferLicensee,HGamer3D.Bindings.Ogre.ClassGpuProgramPtr,HGamer3D.Bindings.Ogre.ClassFileStreamDataStream,HGamer3D.Bindings.Ogre.ClassMaterialPtr,HGamer3D.Bindings.Ogre.ClassPatchMesh,HGamer3D.Bindings.Ogre.ClassRenderQueueInvocation,HGamer3D.Bindings.Ogre.ClassDefaultRaySceneQuery,HGamer3D.Bindings.Ogre.ClassTextureManager,HGamer3D.Bindings.Ogre.ClassHardwareBufferManagerBase,HGamer3D.Bindings.Ogre.ClassSubMesh,HGamer3D.Bindings.Ogre.ClassHardwarePixelBufferSharedPtr,HGamer3D.Bindings.Ogre.ClassBillboardChain,HGamer3D.Bindings.Ogre.ClassMeshPtr,HGamer3D.Bindings.Ogre.ClassParticleAffector,HGamer3D.Bindings.Ogre.ClassMesh,HGamer3D.Bindings.Ogre.ClassHighLevelGpuProgramFactory,HGamer3D.Bindings.Ogre.ClassMaterialBucket,HGamer3D.Bindings.Ogre.ClassElement,HGamer3D.Bindings.Ogre.ClassCompositorInstance,HGamer3D.Bindings.Ogre.ClassInvalidParametersException,HGamer3D.Bindings.Ogre.ClassParticleEmitter,HGamer3D.Bindings.Ogre.ClassDefaultSphereSceneQuery,HGamer3D.Bindings.Ogre.ClassException,HGamer3D.Bindings.Ogre.ClassHardwareBufferManager,HGamer3D.Bindings.Ogre.ClassKeyFrame,HGamer3D.Bindings.Ogre.ClassOverlayManager,HGamer3D.Bindings.Ogre.ClassDefaultSceneManagerFactory,HGamer3D.Bindings.Ogre.ClassLogManager,HGamer3D.Bindings.Ogre.ClassCompositionTechnique,HGamer3D.Bindings.Ogre.ClassFrustum,HGamer3D.Bindings.Ogre.ClassMaterial,HGamer3D.Bindings.Ogre.ClassFileHandleDataStream,HGamer3D.Bindings.Ogre.ClassDefaultSceneManager,HGamer3D.Bindings.Ogre.ClassGpuProgram,HGamer3D.Bindings.Ogre.ClassCompositorChain,HGamer3D.Bindings.Ogre.ClassBillboardSetFactory,HGamer3D.Bindings.Ogre.ClassMovableObject,HGamer3D.Bindings.Ogre.ClassIOException,HGamer3D.Bindings.Ogre.ClassLODBucket,HGamer3D.Bindings.Ogre.ClassBone,HGamer3D.Bindings.Ogre.ClassFileNotFoundException,HGamer3D.Bindings.Ogre.ClassArchive,HGamer3D.Bindings.Ogre.ClassBillboardChainFactory,HGamer3D.Bindings.Ogre.ClassInternalErrorException,HGamer3D.Bindings.Ogre.ClassStringConverter,HGamer3D.Bindings.Ogre.ClassVertexPoseKeyFrame,HGamer3D.Bindings.Ogre.ClassBillboard,HGamer3D.Bindings.Ogre.ClassStringUtil,HGamer3D.Bindings.Ogre.ClassResourceGroupListener,HGamer3D.Bindings.Ogre.ClassPatchMeshPtr,HGamer3D.Bindings.Ogre.ClassAnimation,HGamer3D.Bindings.Ogre.ClassSceneNode,HGamer3D.Bindings.Ogre.ClassTimeIndex,HGamer3D.Bindings.Ogre.ClassAnimationTrack,HGamer3D.Bindings.Ogre.ClassHighLevelGpuProgram,HGamer3D.Bindings.Ogre.ClassLightFactory,HGamer3D.Bindings.Ogre.ClassLiSPSMShadowCameraSetup,HGamer3D.Bindings.Ogre.ClassPass,HGamer3D.Bindings.Ogre.ClassTextureUnitState,HGamer3D.Bindings.Ogre.ClassNumericAnimationTrack,HGamer3D.Bindings.Ogre.ClassCmdManualNamedConstsFile,HGamer3D.Bindings.Ogre.ClassSkeletonInstance,HGamer3D.Bindings.Ogre.ClassMeshSerializer,HGamer3D.Bindings.Ogre.ClassAnimationState,HGamer3D.Bindings.Ogre.ClassSceneManagerEnumerator,HGamer3D.Bindings.Ogre.ClassRenderingAPIException,HGamer3D.Bindings.Ogre.ClassCmdPose,HGamer3D.Bindings.Ogre.ClassTechnique,HGamer3D.Bindings.Ogre.ClassManualObjectSectionShadowRenderable,HGamer3D.Bindings.Ogre.ClassEntity,HGamer3D.Bindings.Ogre.ClassSceneManagerFactory,HGamer3D.Bindings.Ogre.ClassPlaneOptimalShadowCameraSetup,HGamer3D.Bindings.Ogre.ClassRenderWindow,HGamer3D.Bindings.Ogre.ClassShadowCameraSetup,HGamer3D.Bindings.Ogre.ClassRuntimeAssertionException,HGamer3D.Bindings.Ogre.ClassRibbonTrailFactory,HGamer3D.Bindings.Ogre.ClassSkeletonPtr,HGamer3D.Bindings.Ogre.ClassSubEntity,HGamer3D.Bindings.Ogre.ClassCompositorPtr,HGamer3D.Bindings.Ogre.ClassManualObject,HGamer3D.Bindings.Ogre.ClassHardwareIndexBufferSharedPtr,HGamer3D.Bindings.Ogre.ClassHardwareIndexBuffer,HGamer3D.Bindings.Ogre.ClassGpuProgramManager,HGamer3D.Bindings.Ogre.ClassOverlay,HGamer3D.Bindings.Ogre.ClassStaticGeometry,HGamer3D.Bindings.Ogre.ClassRibbonTrail,HGamer3D.Bindings.Ogre.ClassManualObjectSection,HGamer3D.Bindings.Ogre.ClassVertexAnimationTrack,HGamer3D.Bindings.Ogre.ClassArchiveManager,HGamer3D.Bindings.Ogre.ClassSkeleton,HGamer3D.Bindings.Ogre.ClassSkeletonSerializer,HGamer3D.Bindings.Ogre.ClassConfigFile,HGamer3D.Bindings.Ogre.ClassRoot,HGamer3D.Bindings.Ogre.ClassHardwarePixelBuffer,HGamer3D.Bindings.Ogre.ClassRegion,HGamer3D.Bindings.Ogre.ClassOverlayContainer,HGamer3D.Bindings.Ogre.ClassWindowEventUtilities,HGamer3D.Bindings.Ogre.ClassControllerManager,HGamer3D.Bindings.Ogre.ClassMaterialSerializer,HGamer3D.Bindings.Ogre.ClassNodeAnimationTrack,HGamer3D.Bindings.Ogre.ClassLight,HGamer3D.Bindings.Ogre.ClassDefaultShadowCameraSetup,HGamer3D.Bindings.Ogre.ClassCompositionTargetPass,HGamer3D.Bindings.Ogre.ClassRenderTexture,HGamer3D.Bindings.Ogre.ClassCompositorManager,HGamer3D.Bindings.Ogre.ClassEntityFactory,HGamer3D.Bindings.Ogre.ClassMemoryDataStream,HGamer3D.Bindings.Ogre.ClassHardwareOcclusionQuery,HGamer3D.Bindings.Ogre.ClassPSSMShadowCameraSetup,HGamer3D.Bindings.Ogre.ClassVertexMorphKeyFrame,HGamer3D.Bindings.Ogre.ClassNode,HGamer3D.Bindings.Ogre.ClassPatchSurface,HGamer3D.Bindings.Ogre.ClassManualObjectFactory,HGamer3D.Bindings.Ogre.ClassNumericKeyFrame,HGamer3D.Bindings.Ogre.ClassDataStream,HGamer3D.Bindings.Ogre.ClassRenderObjectListener,HGamer3D.Bindings.Ogre.ClassGeometryBucket,HGamer3D.Bindings.Ogre.ClassViewport,HGamer3D.Bindings.Ogre.ClassDefaultPlaneBoundedVolumeListSceneQuery,HGamer3D.Bindings.Ogre.ClassCompositionPass,HGamer3D.Bindings.Ogre.ClassSceneMgrQueuedRenderableVisitor,HGamer3D.Bindings.Ogre.ClassRenderSystemOperation,HGamer3D.Bindings.Ogre.ClassHighLevelGpuProgramPtr,HGamer3D.Bindings.Ogre.ClassUnimplementedException,HGamer3D.Bindings.Ogre.ClassRenderQueueInvocationSequence,HGamer3D.Bindings.Ogre.ClassDefaultAxisAlignedBoxSceneQuery,HGamer3D.Bindings.Ogre.ClassMaterialManager,HGamer3D.Bindings.Ogre.ClassCamera + Other-modules: C2HS + + ghc-options: + cc-options: -Wno-attributes + hs-source-dirs: . + Include-dirs: include + Build-tools: + build-depends: haskell98 + extra-libraries: stdc++.dll HGamer3DOgre
@@ -0,0 +1,483 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassAnimation.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreAnimation.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassAnimation where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +import HGamer3D.Bindings.Ogre.EnumVertexAnimationType +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +import HGamer3D.Bindings.Ogre.EnumInterpolationMode +{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +import HGamer3D.Bindings.Ogre.EnumRotationInterpolationMode +{-# LINE 59 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} + + +cAnGetName :: HG3DClass -> IO (String) +cAnGetName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cAnGetName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 65 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +; +cAnGetLength :: HG3DClass -> IO (Float) +cAnGetLength a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cAnGetLength'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 69 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +; +cAnSetLength :: HG3DClass -> Float -> IO () +cAnSetLength a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cAnSetLength'_ a1' a2' >>= \res -> + return () +{-# LINE 73 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +; +cAnCreateNodeTrack :: HG3DClass -> Int -> IO (HG3DClass) +cAnCreateNodeTrack a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cAnCreateNodeTrack'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 78 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +; +cAnCreateNumericTrack :: HG3DClass -> Int -> IO (HG3DClass) +cAnCreateNumericTrack a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cAnCreateNumericTrack'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 83 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +; +cAnCreateVertexTrack :: HG3DClass -> Int -> EnumVertexAnimationType -> IO (HG3DClass) +cAnCreateVertexTrack a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + let {a3' = cIntFromEnum a3} in + alloca $ \a4' -> + cAnCreateVertexTrack'_ a1' a2' a3' a4' >>= \res -> + peek a4'>>= \a4'' -> + return (a4'') +{-# LINE 89 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +; +cAnCreateNodeTrack2 :: HG3DClass -> Int -> HG3DClass -> IO (HG3DClass) +cAnCreateNodeTrack2 a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + withHG3DClass a3 $ \a3' -> + alloca $ \a4' -> + cAnCreateNodeTrack2'_ a1' a2' a3' a4' >>= \res -> + peek a4'>>= \a4'' -> + return (a4'') +{-# LINE 95 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +; +cAnGetNumNodeTracks :: HG3DClass -> IO (Int) +cAnGetNumNodeTracks a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cAnGetNumNodeTracks'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 99 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +; +cAnGetNodeTrack :: HG3DClass -> Int -> IO (HG3DClass) +cAnGetNodeTrack a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cAnGetNodeTrack'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 104 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +; +cAnHasNodeTrack :: HG3DClass -> Int -> IO (Bool) +cAnHasNodeTrack a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cAnHasNodeTrack'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 109 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +; +cAnGetNumNumericTracks :: HG3DClass -> IO (Int) +cAnGetNumNumericTracks a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cAnGetNumNumericTracks'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 113 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +; +cAnGetNumericTrack :: HG3DClass -> Int -> IO (HG3DClass) +cAnGetNumericTrack a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cAnGetNumericTrack'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 118 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +; +cAnHasNumericTrack :: HG3DClass -> Int -> IO (Bool) +cAnHasNumericTrack a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cAnHasNumericTrack'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 123 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +; +cAnGetNumVertexTracks :: HG3DClass -> IO (Int) +cAnGetNumVertexTracks a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cAnGetNumVertexTracks'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 127 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +; +cAnGetVertexTrack :: HG3DClass -> Int -> IO (HG3DClass) +cAnGetVertexTrack a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cAnGetVertexTrack'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 132 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +; +cAnHasVertexTrack :: HG3DClass -> Int -> IO (Bool) +cAnHasVertexTrack a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cAnHasVertexTrack'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 137 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +; +cAnDestroyNodeTrack :: HG3DClass -> Int -> IO () +cAnDestroyNodeTrack a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cAnDestroyNodeTrack'_ a1' a2' >>= \res -> + return () +{-# LINE 141 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +; +cAnDestroyNumericTrack :: HG3DClass -> Int -> IO () +cAnDestroyNumericTrack a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cAnDestroyNumericTrack'_ a1' a2' >>= \res -> + return () +{-# LINE 145 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +; +cAnDestroyVertexTrack :: HG3DClass -> Int -> IO () +cAnDestroyVertexTrack a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cAnDestroyVertexTrack'_ a1' a2' >>= \res -> + return () +{-# LINE 149 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +; +cAnDestroyAllTracks :: HG3DClass -> IO () +cAnDestroyAllTracks a1 = + withHG3DClass a1 $ \a1' -> + cAnDestroyAllTracks'_ a1' >>= \res -> + return () +{-# LINE 152 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +; +cAnDestroyAllNodeTracks :: HG3DClass -> IO () +cAnDestroyAllNodeTracks a1 = + withHG3DClass a1 $ \a1' -> + cAnDestroyAllNodeTracks'_ a1' >>= \res -> + return () +{-# LINE 155 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +; +cAnDestroyAllNumericTracks :: HG3DClass -> IO () +cAnDestroyAllNumericTracks a1 = + withHG3DClass a1 $ \a1' -> + cAnDestroyAllNumericTracks'_ a1' >>= \res -> + return () +{-# LINE 158 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +; +cAnDestroyAllVertexTracks :: HG3DClass -> IO () +cAnDestroyAllVertexTracks a1 = + withHG3DClass a1 $ \a1' -> + cAnDestroyAllVertexTracks'_ a1' >>= \res -> + return () +{-# LINE 161 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +; +cAnApply :: HG3DClass -> Float -> Float -> Float -> IO () +cAnApply a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + cAnApply'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 167 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +; +cAnApplyToNode :: HG3DClass -> HG3DClass -> Float -> Float -> Float -> IO () +cAnApplyToNode a1 a2 a3 a4 a5 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + let {a5' = realToFrac a5} in + cAnApplyToNode'_ a1' a2' a3' a4' a5' >>= \res -> + return () +{-# LINE 174 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +; +cAnApply2 :: HG3DClass -> HG3DClass -> Float -> Float -> Float -> IO () +cAnApply2 a1 a2 a3 a4 a5 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + let {a5' = realToFrac a5} in + cAnApply2'_ a1' a2' a3' a4' a5' >>= \res -> + return () +{-# LINE 181 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +; +cAnApply4 :: HG3DClass -> HG3DClass -> Float -> Float -> Bool -> Bool -> IO () +cAnApply4 a1 a2 a3 a4 a5 a6 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + let {a5' = fromBool a5} in + let {a6' = fromBool a6} in + cAnApply4'_ a1' a2' a3' a4' a5' a6' >>= \res -> + return () +{-# LINE 189 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +; +cAnSetInterpolationMode :: HG3DClass -> EnumInterpolationMode -> IO () +cAnSetInterpolationMode a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cAnSetInterpolationMode'_ a1' a2' >>= \res -> + return () +{-# LINE 193 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +; +cAnGetInterpolationMode :: HG3DClass -> IO (EnumInterpolationMode) +cAnGetInterpolationMode a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cAnGetInterpolationMode'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 197 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +; +cAnSetRotationInterpolationMode :: HG3DClass -> EnumRotationInterpolationMode -> IO () +cAnSetRotationInterpolationMode a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cAnSetRotationInterpolationMode'_ a1' a2' >>= \res -> + return () +{-# LINE 201 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +; +cAnGetRotationInterpolationMode :: HG3DClass -> IO (EnumRotationInterpolationMode) +cAnGetRotationInterpolationMode a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cAnGetRotationInterpolationMode'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 205 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +; +cAnOptimise :: HG3DClass -> Bool -> IO () +cAnOptimise a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cAnOptimise'_ a1' a2' >>= \res -> + return () +{-# LINE 209 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +; +cAnClone :: HG3DClass -> String -> IO (HG3DClass) +cAnClone a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cAnClone'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 214 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +; +cAnKeyFrameListChanged :: HG3DClass -> IO () +cAnKeyFrameListChanged a1 = + withHG3DClass a1 $ \a1' -> + cAnKeyFrameListChanged'_ a1' >>= \res -> + return () +{-# LINE 217 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_getName_c" + cAnGetName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_getLength_c" + cAnGetLength'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_setLength_c" + cAnSetLength'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_createNodeTrack_c" + cAnCreateNodeTrack'_ :: ((HG3DClassPtr) -> (CUInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_createNumericTrack_c" + cAnCreateNumericTrack'_ :: ((HG3DClassPtr) -> (CUInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_createVertexTrack_c" + cAnCreateVertexTrack'_ :: ((HG3DClassPtr) -> (CUInt -> (CInt -> ((HG3DClassPtr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_createNodeTrack2_c" + cAnCreateNodeTrack2'_ :: ((HG3DClassPtr) -> (CUInt -> ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_getNumNodeTracks_c" + cAnGetNumNodeTracks'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_getNodeTrack_c" + cAnGetNodeTrack'_ :: ((HG3DClassPtr) -> (CUInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_hasNodeTrack_c" + cAnHasNodeTrack'_ :: ((HG3DClassPtr) -> (CUInt -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_getNumNumericTracks_c" + cAnGetNumNumericTracks'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_getNumericTrack_c" + cAnGetNumericTrack'_ :: ((HG3DClassPtr) -> (CUInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_hasNumericTrack_c" + cAnHasNumericTrack'_ :: ((HG3DClassPtr) -> (CUInt -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_getNumVertexTracks_c" + cAnGetNumVertexTracks'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_getVertexTrack_c" + cAnGetVertexTrack'_ :: ((HG3DClassPtr) -> (CUInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_hasVertexTrack_c" + cAnHasVertexTrack'_ :: ((HG3DClassPtr) -> (CUInt -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_destroyNodeTrack_c" + cAnDestroyNodeTrack'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_destroyNumericTrack_c" + cAnDestroyNumericTrack'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_destroyVertexTrack_c" + cAnDestroyVertexTrack'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_destroyAllTracks_c" + cAnDestroyAllTracks'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_destroyAllNodeTracks_c" + cAnDestroyAllNodeTracks'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_destroyAllNumericTracks_c" + cAnDestroyAllNumericTracks'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_destroyAllVertexTracks_c" + cAnDestroyAllVertexTracks'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_apply_c" + cAnApply'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_applyToNode_c" + cAnApplyToNode'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_apply2_c" + cAnApply2'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_apply4_c" + cAnApply4'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CInt -> (CInt -> (IO ()))))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_setInterpolationMode_c" + cAnSetInterpolationMode'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_getInterpolationMode_c" + cAnGetInterpolationMode'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_setRotationInterpolationMode_c" + cAnSetRotationInterpolationMode'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_getRotationInterpolationMode_c" + cAnGetRotationInterpolationMode'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_optimise_c" + cAnOptimise'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_clone_c" + cAnClone'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn__keyFrameListChanged_c" + cAnKeyFrameListChanged'_ :: ((HG3DClassPtr) -> (IO ()))
@@ -0,0 +1,261 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassAnimationState.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreAnimationState.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassAnimationState where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} + + +cAnsGetAnimationName :: HG3DClass -> IO (String) +cAnsGetAnimationName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cAnsGetAnimationName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} +; +cAnsGetTimePosition :: HG3DClass -> IO (Float) +cAnsGetTimePosition a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cAnsGetTimePosition'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} +; +cAnsSetTimePosition :: HG3DClass -> Float -> IO () +cAnsSetTimePosition a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cAnsSetTimePosition'_ a1' a2' >>= \res -> + return () +{-# LINE 70 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} +; +cAnsGetLength :: HG3DClass -> IO (Float) +cAnsGetLength a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cAnsGetLength'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 74 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} +; +cAnsSetLength :: HG3DClass -> Float -> IO () +cAnsSetLength a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cAnsSetLength'_ a1' a2' >>= \res -> + return () +{-# LINE 78 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} +; +cAnsGetWeight :: HG3DClass -> IO (Float) +cAnsGetWeight a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cAnsGetWeight'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 82 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} +; +cAnsSetWeight :: HG3DClass -> Float -> IO () +cAnsSetWeight a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cAnsSetWeight'_ a1' a2' >>= \res -> + return () +{-# LINE 86 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} +; +cAnsAddTime :: HG3DClass -> Float -> IO () +cAnsAddTime a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cAnsAddTime'_ a1' a2' >>= \res -> + return () +{-# LINE 90 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} +; +cAnsHasEnded :: HG3DClass -> IO (Bool) +cAnsHasEnded a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cAnsHasEnded'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 94 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} +; +cAnsGetEnabled :: HG3DClass -> IO (Bool) +cAnsGetEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cAnsGetEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 98 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} +; +cAnsSetEnabled :: HG3DClass -> Bool -> IO () +cAnsSetEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cAnsSetEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 102 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} +; +cAnsSetLoop :: HG3DClass -> Bool -> IO () +cAnsSetLoop a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cAnsSetLoop'_ a1' a2' >>= \res -> + return () +{-# LINE 106 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} +; +cAnsGetLoop :: HG3DClass -> IO (Bool) +cAnsGetLoop a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cAnsGetLoop'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 110 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} +; +cAnsCreateBlendMask :: HG3DClass -> Int -> Float -> IO () +cAnsCreateBlendMask a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + let {a3' = realToFrac a3} in + cAnsCreateBlendMask'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 115 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} +; +cAnsDestroyBlendMask :: HG3DClass -> IO () +cAnsDestroyBlendMask a1 = + withHG3DClass a1 $ \a1' -> + cAnsDestroyBlendMask'_ a1' >>= \res -> + return () +{-# LINE 118 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} +; +cAnsHasBlendMask :: HG3DClass -> IO (Bool) +cAnsHasBlendMask a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cAnsHasBlendMask'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 122 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} +; +cAnsSetBlendMaskEntry :: HG3DClass -> Int -> Float -> IO () +cAnsSetBlendMaskEntry a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + let {a3' = realToFrac a3} in + cAnsSetBlendMaskEntry'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 127 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs.h cAns_getAnimationName_c" + cAnsGetAnimationName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs.h cAns_getTimePosition_c" + cAnsGetTimePosition'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs.h cAns_setTimePosition_c" + cAnsSetTimePosition'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs.h cAns_getLength_c" + cAnsGetLength'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs.h cAns_setLength_c" + cAnsSetLength'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs.h cAns_getWeight_c" + cAnsGetWeight'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs.h cAns_setWeight_c" + cAnsSetWeight'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs.h cAns_addTime_c" + cAnsAddTime'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs.h cAns_hasEnded_c" + cAnsHasEnded'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs.h cAns_getEnabled_c" + cAnsGetEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs.h cAns_setEnabled_c" + cAnsSetEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs.h cAns_setLoop_c" + cAnsSetLoop'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs.h cAns_getLoop_c" + cAnsGetLoop'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs.h cAns_createBlendMask_c" + cAnsCreateBlendMask'_ :: ((HG3DClassPtr) -> (CInt -> (CFloat -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs.h cAns_destroyBlendMask_c" + cAnsDestroyBlendMask'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs.h cAns_hasBlendMask_c" + cAnsHasBlendMask'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs.h cAns_setBlendMaskEntry_c" + cAnsSetBlendMaskEntry'_ :: ((HG3DClassPtr) -> (CInt -> (CFloat -> (IO ()))))
@@ -0,0 +1,168 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassAnimationTrack.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreAnimationTrack.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassAnimationTrack where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-} + + +cAntGetHandle :: HG3DClass -> IO (Int) +cAntGetHandle a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cAntGetHandle'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-} +; +cAntGetNumKeyFrames :: HG3DClass -> IO (Int) +cAntGetNumKeyFrames a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cAntGetNumKeyFrames'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-} +; +cAntGetKeyFrame :: HG3DClass -> Int -> IO (HG3DClass) +cAntGetKeyFrame a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cAntGetKeyFrame'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-} +; +cAntCreateKeyFrame :: HG3DClass -> Float -> IO (HG3DClass) +cAntCreateKeyFrame a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + alloca $ \a3' -> + cAntCreateKeyFrame'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 76 "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-} +; +cAntRemoveKeyFrame :: HG3DClass -> Int -> IO () +cAntRemoveKeyFrame a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cAntRemoveKeyFrame'_ a1' a2' >>= \res -> + return () +{-# LINE 80 "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-} +; +cAntRemoveAllKeyFrames :: HG3DClass -> IO () +cAntRemoveAllKeyFrames a1 = + withHG3DClass a1 $ \a1' -> + cAntRemoveAllKeyFrames'_ a1' >>= \res -> + return () +{-# LINE 83 "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-} +; +cAntKeyFrameDataChanged :: HG3DClass -> IO () +cAntKeyFrameDataChanged a1 = + withHG3DClass a1 $ \a1' -> + cAntKeyFrameDataChanged'_ a1' >>= \res -> + return () +{-# LINE 86 "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-} +; +cAntHasNonZeroKeyFrames :: HG3DClass -> IO (Bool) +cAntHasNonZeroKeyFrames a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cAntHasNonZeroKeyFrames'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 90 "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-} +; +cAntOptimise :: HG3DClass -> IO () +cAntOptimise a1 = + withHG3DClass a1 $ \a1' -> + cAntOptimise'_ a1' >>= \res -> + return () +{-# LINE 93 "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs.h cAnt_getHandle_c" + cAntGetHandle'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs.h cAnt_getNumKeyFrames_c" + cAntGetNumKeyFrames'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs.h cAnt_getKeyFrame_c" + cAntGetKeyFrame'_ :: ((HG3DClassPtr) -> (CUInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs.h cAnt_createKeyFrame_c" + cAntCreateKeyFrame'_ :: ((HG3DClassPtr) -> (CFloat -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs.h cAnt_removeKeyFrame_c" + cAntRemoveKeyFrame'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs.h cAnt_removeAllKeyFrames_c" + cAntRemoveAllKeyFrames'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs.h cAnt__keyFrameDataChanged_c" + cAntKeyFrameDataChanged'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs.h cAnt_hasNonZeroKeyFrames_c" + cAntHasNonZeroKeyFrames'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs.h cAnt_optimise_c" + cAntOptimise'_ :: ((HG3DClassPtr) -> (IO ()))
@@ -0,0 +1,157 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassArchive.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreArchive.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassArchive where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} + + +cArGetName :: HG3DClass -> IO (String) +cArGetName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cArGetName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} +; +cArIsCaseSensitive :: HG3DClass -> IO (Bool) +cArIsCaseSensitive a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cArIsCaseSensitive'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} +; +cArLoad :: HG3DClass -> IO () +cArLoad a1 = + withHG3DClass a1 $ \a1' -> + cArLoad'_ a1' >>= \res -> + return () +{-# LINE 69 "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} +; +cArUnload :: HG3DClass -> IO () +cArUnload a1 = + withHG3DClass a1 $ \a1' -> + cArUnload'_ a1' >>= \res -> + return () +{-# LINE 72 "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} +; +cArIsReadOnly :: HG3DClass -> IO (Bool) +cArIsReadOnly a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cArIsReadOnly'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 76 "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} +; +cArRemove :: HG3DClass -> String -> IO () +cArRemove a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cArRemove'_ a1' a2' >>= \res -> + return () +{-# LINE 80 "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} +; +cArExists :: HG3DClass -> String -> IO (Bool) +cArExists a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cArExists'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 85 "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} +; +cArGetType :: HG3DClass -> IO (String) +cArGetType a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cArGetType'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 89 "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs.h cAr_getName_c" + cArGetName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs.h cAr_isCaseSensitive_c" + cArIsCaseSensitive'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs.h cAr_load_c" + cArLoad'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs.h cAr_unload_c" + cArUnload'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs.h cAr_isReadOnly_c" + cArIsReadOnly'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs.h cAr_remove_c" + cArRemove'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs.h cAr_exists_c" + cArExists'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs.h cAr_getType_c" + cArGetType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ())))
@@ -0,0 +1,101 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassArchiveManager.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassArchiveManager.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreArchiveManager.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassArchiveManager where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassArchiveManager.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassArchiveManager.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassArchiveManager.chs" #-} + + +cArmLoad :: HG3DClass -> String -> String -> IO (HG3DClass) +cArmLoad a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + alloca $ \a4' -> + cArmLoad'_ a1' a2' a3' a4' >>= \res -> + peek a4'>>= \a4'' -> + return (a4'') +{-# LINE 64 "HGamer3D\\Bindings\\Ogre\\ClassArchiveManager.chs" #-} +; +cArmUnload :: HG3DClass -> HG3DClass -> IO () +cArmUnload a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cArmUnload'_ a1' a2' >>= \res -> + return () +{-# LINE 68 "HGamer3D\\Bindings\\Ogre\\ClassArchiveManager.chs" #-} +; +cArmUnload2 :: HG3DClass -> String -> IO () +cArmUnload2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cArmUnload2'_ a1' a2' >>= \res -> + return () +{-# LINE 72 "HGamer3D\\Bindings\\Ogre\\ClassArchiveManager.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassArchiveManager.chs.h cArm_load_c" + cArmLoad'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassArchiveManager.chs.h cArm_unload_c" + cArmUnload'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassArchiveManager.chs.h cArm_unload2_c" + cArmUnload2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ())))
@@ -0,0 +1,271 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassBillboard.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBillboard.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassBillboard where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} +import HGamer3D.Bindings.Ogre.TypeRadian +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} +import HGamer3D.Bindings.Ogre.TypeVector3 +{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} +import HGamer3D.Bindings.Ogre.TypeColourValue +{-# LINE 59 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} + + +cBbGetRotation :: HG3DClass -> IO (Radian) +cBbGetRotation a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBbGetRotation'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 65 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} +; +cBbSetRotation :: HG3DClass -> Radian -> IO () +cBbSetRotation a1 a2 = + withHG3DClass a1 $ \a1' -> + withRadian a2 $ \a2' -> + cBbSetRotation'_ a1' a2' >>= \res -> + return () +{-# LINE 69 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} +; +cBbSetPosition :: HG3DClass -> Vector3 -> IO () +cBbSetPosition a1 a2 = + withHG3DClass a1 $ \a1' -> + withVector3 a2 $ \a2' -> + cBbSetPosition'_ a1' a2' >>= \res -> + return () +{-# LINE 73 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} +; +cBbSetPosition2 :: HG3DClass -> Float -> Float -> Float -> IO () +cBbSetPosition2 a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + cBbSetPosition2'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 79 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} +; +cBbGetPosition :: HG3DClass -> IO (Vector3) +cBbGetPosition a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBbGetPosition'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 83 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} +; +cBbSetDimensions :: HG3DClass -> Float -> Float -> IO () +cBbSetDimensions a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + cBbSetDimensions'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 88 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} +; +cBbResetDimensions :: HG3DClass -> IO () +cBbResetDimensions a1 = + withHG3DClass a1 $ \a1' -> + cBbResetDimensions'_ a1' >>= \res -> + return () +{-# LINE 91 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} +; +cBbSetColour :: HG3DClass -> ColourValue -> IO () +cBbSetColour a1 a2 = + withHG3DClass a1 $ \a1' -> + withColourValue a2 $ \a2' -> + cBbSetColour'_ a1' a2' >>= \res -> + return () +{-# LINE 95 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} +; +cBbGetColour :: HG3DClass -> IO (ColourValue) +cBbGetColour a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBbGetColour'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 99 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} +; +cBbHasOwnDimensions :: HG3DClass -> IO (Bool) +cBbHasOwnDimensions a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBbHasOwnDimensions'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 103 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} +; +cBbGetOwnWidth :: HG3DClass -> IO (Float) +cBbGetOwnWidth a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBbGetOwnWidth'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 107 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} +; +cBbGetOwnHeight :: HG3DClass -> IO (Float) +cBbGetOwnHeight a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBbGetOwnHeight'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 111 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} +; +cBbNotifyOwner :: HG3DClass -> HG3DClass -> IO () +cBbNotifyOwner a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cBbNotifyOwner'_ a1' a2' >>= \res -> + return () +{-# LINE 115 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} +; +cBbIsUseTexcoordRect :: HG3DClass -> IO (Bool) +cBbIsUseTexcoordRect a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBbIsUseTexcoordRect'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 119 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} +; +cBbSetTexcoordIndex :: HG3DClass -> Int -> IO () +cBbSetTexcoordIndex a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cBbSetTexcoordIndex'_ a1' a2' >>= \res -> + return () +{-# LINE 123 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} +; +cBbGetTexcoordIndex :: HG3DClass -> IO (Int) +cBbGetTexcoordIndex a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBbGetTexcoordIndex'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 127 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} +; +cBbSetTexcoordRect2 :: HG3DClass -> Float -> Float -> Float -> Float -> IO () +cBbSetTexcoordRect2 a1 a2 a3 a4 a5 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + let {a5' = realToFrac a5} in + cBbSetTexcoordRect2'_ a1' a2' a3' a4' a5' >>= \res -> + return () +{-# LINE 134 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs.h cBb_getRotation_c" + cBbGetRotation'_ :: ((HG3DClassPtr) -> ((RadianPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs.h cBb_setRotation_c" + cBbSetRotation'_ :: ((HG3DClassPtr) -> ((RadianPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs.h cBb_setPosition_c" + cBbSetPosition'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs.h cBb_setPosition2_c" + cBbSetPosition2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs.h cBb_getPosition_c" + cBbGetPosition'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs.h cBb_setDimensions_c" + cBbSetDimensions'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs.h cBb_resetDimensions_c" + cBbResetDimensions'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs.h cBb_setColour_c" + cBbSetColour'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs.h cBb_getColour_c" + cBbGetColour'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs.h cBb_hasOwnDimensions_c" + cBbHasOwnDimensions'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs.h cBb_getOwnWidth_c" + cBbGetOwnWidth'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs.h cBb_getOwnHeight_c" + cBbGetOwnHeight'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs.h cBb__notifyOwner_c" + cBbNotifyOwner'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs.h cBb_isUseTexcoordRect_c" + cBbIsUseTexcoordRect'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs.h cBb_setTexcoordIndex_c" + cBbSetTexcoordIndex'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs.h cBb_getTexcoordIndex_c" + cBbGetTexcoordIndex'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs.h cBb_setTexcoordRect2_c" + cBbSetTexcoordRect2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))))
@@ -0,0 +1,297 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassBillboardChain.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBillboardChain.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassBillboardChain where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} +import HGamer3D.Bindings.Ogre.EnumTexCoordDirection +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} + + +cBcSetMaxChainElements :: HG3DClass -> Int -> IO () +cBcSetMaxChainElements a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cBcSetMaxChainElements'_ a1' a2' >>= \res -> + return () +{-# LINE 63 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} +; +cBcGetMaxChainElements :: HG3DClass -> IO (Int) +cBcGetMaxChainElements a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBcGetMaxChainElements'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 67 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} +; +cBcSetNumberOfChains :: HG3DClass -> Int -> IO () +cBcSetNumberOfChains a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cBcSetNumberOfChains'_ a1' a2' >>= \res -> + return () +{-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} +; +cBcGetNumberOfChains :: HG3DClass -> IO (Int) +cBcGetNumberOfChains a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBcGetNumberOfChains'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 75 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} +; +cBcSetUseTextureCoords :: HG3DClass -> Bool -> IO () +cBcSetUseTextureCoords a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cBcSetUseTextureCoords'_ a1' a2' >>= \res -> + return () +{-# LINE 79 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} +; +cBcGetUseTextureCoords :: HG3DClass -> IO (Bool) +cBcGetUseTextureCoords a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBcGetUseTextureCoords'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 83 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} +; +cBcSetTextureCoordDirection :: HG3DClass -> EnumTexCoordDirection -> IO () +cBcSetTextureCoordDirection a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cBcSetTextureCoordDirection'_ a1' a2' >>= \res -> + return () +{-# LINE 87 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} +; +cBcGetTextureCoordDirection :: HG3DClass -> IO (EnumTexCoordDirection) +cBcGetTextureCoordDirection a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBcGetTextureCoordDirection'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 91 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} +; +cBcSetOtherTextureCoordRange :: HG3DClass -> Float -> Float -> IO () +cBcSetOtherTextureCoordRange a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + cBcSetOtherTextureCoordRange'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 96 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} +; +cBcSetUseVertexColours :: HG3DClass -> Bool -> IO () +cBcSetUseVertexColours a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cBcSetUseVertexColours'_ a1' a2' >>= \res -> + return () +{-# LINE 100 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} +; +cBcGetUseVertexColours :: HG3DClass -> IO (Bool) +cBcGetUseVertexColours a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBcGetUseVertexColours'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 104 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} +; +cBcSetDynamic :: HG3DClass -> Bool -> IO () +cBcSetDynamic a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cBcSetDynamic'_ a1' a2' >>= \res -> + return () +{-# LINE 108 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} +; +cBcGetDynamic :: HG3DClass -> IO (Bool) +cBcGetDynamic a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBcGetDynamic'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 112 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} +; +cBcRemoveChainElement :: HG3DClass -> Int -> IO () +cBcRemoveChainElement a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cBcRemoveChainElement'_ a1' a2' >>= \res -> + return () +{-# LINE 116 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} +; +cBcGetNumChainElements :: HG3DClass -> Int -> IO (Int) +cBcGetNumChainElements a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cBcGetNumChainElements'_ a1' a2' a3' >>= \res -> + peekIntConv a3'>>= \a3'' -> + return (a3'') +{-# LINE 121 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} +; +cBcClearChain :: HG3DClass -> Int -> IO () +cBcClearChain a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cBcClearChain'_ a1' a2' >>= \res -> + return () +{-# LINE 125 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} +; +cBcClearAllChains :: HG3DClass -> IO () +cBcClearAllChains a1 = + withHG3DClass a1 $ \a1' -> + cBcClearAllChains'_ a1' >>= \res -> + return () +{-# LINE 128 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} +; +cBcGetMaterialName :: HG3DClass -> IO (String) +cBcGetMaterialName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cBcGetMaterialName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 132 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} +; +cBcSetMaterialName :: HG3DClass -> String -> String -> IO () +cBcSetMaterialName a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + cBcSetMaterialName'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 137 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} +; +cBcNotifyCurrentCamera :: HG3DClass -> HG3DClass -> IO () +cBcNotifyCurrentCamera a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cBcNotifyCurrentCamera'_ a1' a2' >>= \res -> + return () +{-# LINE 141 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_setMaxChainElements_c" + cBcSetMaxChainElements'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_getMaxChainElements_c" + cBcGetMaxChainElements'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_setNumberOfChains_c" + cBcSetNumberOfChains'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_getNumberOfChains_c" + cBcGetNumberOfChains'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_setUseTextureCoords_c" + cBcSetUseTextureCoords'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_getUseTextureCoords_c" + cBcGetUseTextureCoords'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_setTextureCoordDirection_c" + cBcSetTextureCoordDirection'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_getTextureCoordDirection_c" + cBcGetTextureCoordDirection'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_setOtherTextureCoordRange_c" + cBcSetOtherTextureCoordRange'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_setUseVertexColours_c" + cBcSetUseVertexColours'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_getUseVertexColours_c" + cBcGetUseVertexColours'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_setDynamic_c" + cBcSetDynamic'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_getDynamic_c" + cBcGetDynamic'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_removeChainElement_c" + cBcRemoveChainElement'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_getNumChainElements_c" + cBcGetNumChainElements'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_clearChain_c" + cBcClearChain'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_clearAllChains_c" + cBcClearAllChains'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_getMaterialName_c" + cBcGetMaterialName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_setMaterialName_c" + cBcSetMaterialName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc__notifyCurrentCamera_c" + cBcNotifyCurrentCamera'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChainFactory.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassBillboardChainFactory.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBillboardChain.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassBillboardChainFactory where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChainFactory.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChainFactory.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChainFactory.chs" #-} + +
@@ -0,0 +1,664 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassBillboardSet.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBillboardSet.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassBillboardSet where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +import HGamer3D.Bindings.Ogre.TypeVector3 +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +import HGamer3D.Bindings.Ogre.TypeColourValue +{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +import HGamer3D.Bindings.Ogre.EnumBillboardOrigin +{-# LINE 59 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +import HGamer3D.Bindings.Ogre.EnumBillboardRotationType +{-# LINE 60 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +import HGamer3D.Bindings.Ogre.EnumBillboardType +{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +import HGamer3D.Bindings.Ogre.EnumSortMode +{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + + +cBsCreateBillboard :: HG3DClass -> Vector3 -> ColourValue -> IO (HG3DClass) +cBsCreateBillboard a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withVector3 a2 $ \a2' -> + withColourValue a3 $ \a3' -> + alloca $ \a4' -> + cBsCreateBillboard'_ a1' a2' a3' a4' >>= \res -> + peek a4'>>= \a4'' -> + return (a4'') +{-# LINE 70 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsCreateBillboard2 :: HG3DClass -> Float -> Float -> Float -> ColourValue -> IO (HG3DClass) +cBsCreateBillboard2 a1 a2 a3 a4 a5 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + withColourValue a5 $ \a5' -> + alloca $ \a6' -> + cBsCreateBillboard2'_ a1' a2' a3' a4' a5' a6' >>= \res -> + peek a6'>>= \a6'' -> + return (a6'') +{-# LINE 78 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsGetNumBillboards :: HG3DClass -> IO (Int) +cBsGetNumBillboards a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBsGetNumBillboards'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 82 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsSetAutoextend :: HG3DClass -> Bool -> IO () +cBsSetAutoextend a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cBsSetAutoextend'_ a1' a2' >>= \res -> + return () +{-# LINE 86 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsGetAutoextend :: HG3DClass -> IO (Bool) +cBsGetAutoextend a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBsGetAutoextend'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 90 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsSetSortingEnabled :: HG3DClass -> Bool -> IO () +cBsSetSortingEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cBsSetSortingEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 94 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsGetSortingEnabled :: HG3DClass -> IO (Bool) +cBsGetSortingEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBsGetSortingEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 98 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsSetPoolSize :: HG3DClass -> Int -> IO () +cBsSetPoolSize a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cBsSetPoolSize'_ a1' a2' >>= \res -> + return () +{-# LINE 102 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsGetPoolSize :: HG3DClass -> IO (Int) +cBsGetPoolSize a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBsGetPoolSize'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 106 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsClear :: HG3DClass -> IO () +cBsClear a1 = + withHG3DClass a1 $ \a1' -> + cBsClear'_ a1' >>= \res -> + return () +{-# LINE 109 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsGetBillboard :: HG3DClass -> Int -> IO (HG3DClass) +cBsGetBillboard a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cBsGetBillboard'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 114 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsRemoveBillboard :: HG3DClass -> Int -> IO () +cBsRemoveBillboard a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cBsRemoveBillboard'_ a1' a2' >>= \res -> + return () +{-# LINE 118 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsRemoveBillboard2 :: HG3DClass -> HG3DClass -> IO () +cBsRemoveBillboard2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cBsRemoveBillboard2'_ a1' a2' >>= \res -> + return () +{-# LINE 122 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsSetBillboardOrigin :: HG3DClass -> EnumBillboardOrigin -> IO () +cBsSetBillboardOrigin a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cBsSetBillboardOrigin'_ a1' a2' >>= \res -> + return () +{-# LINE 126 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsGetBillboardOrigin :: HG3DClass -> IO (EnumBillboardOrigin) +cBsGetBillboardOrigin a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBsGetBillboardOrigin'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 130 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsSetBillboardRotationType :: HG3DClass -> EnumBillboardRotationType -> IO () +cBsSetBillboardRotationType a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cBsSetBillboardRotationType'_ a1' a2' >>= \res -> + return () +{-# LINE 134 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsGetBillboardRotationType :: HG3DClass -> IO (EnumBillboardRotationType) +cBsGetBillboardRotationType a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBsGetBillboardRotationType'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 138 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsSetDefaultDimensions :: HG3DClass -> Float -> Float -> IO () +cBsSetDefaultDimensions a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + cBsSetDefaultDimensions'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 143 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsSetDefaultWidth :: HG3DClass -> Float -> IO () +cBsSetDefaultWidth a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cBsSetDefaultWidth'_ a1' a2' >>= \res -> + return () +{-# LINE 147 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsGetDefaultWidth :: HG3DClass -> IO (Float) +cBsGetDefaultWidth a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBsGetDefaultWidth'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 151 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsSetDefaultHeight :: HG3DClass -> Float -> IO () +cBsSetDefaultHeight a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cBsSetDefaultHeight'_ a1' a2' >>= \res -> + return () +{-# LINE 155 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsGetDefaultHeight :: HG3DClass -> IO (Float) +cBsGetDefaultHeight a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBsGetDefaultHeight'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 159 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsSetMaterialName :: HG3DClass -> String -> String -> IO () +cBsSetMaterialName a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + cBsSetMaterialName'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 164 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsGetMaterialName :: HG3DClass -> IO (String) +cBsGetMaterialName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cBsGetMaterialName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 168 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsNotifyCurrentCamera :: HG3DClass -> HG3DClass -> IO () +cBsNotifyCurrentCamera a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cBsNotifyCurrentCamera'_ a1' a2' >>= \res -> + return () +{-# LINE 172 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsBeginBillboards :: HG3DClass -> Int -> IO () +cBsBeginBillboards a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cBsBeginBillboards'_ a1' a2' >>= \res -> + return () +{-# LINE 176 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsEndBillboards :: HG3DClass -> IO () +cBsEndBillboards a1 = + withHG3DClass a1 $ \a1' -> + cBsEndBillboards'_ a1' >>= \res -> + return () +{-# LINE 179 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsGetBoundingRadius :: HG3DClass -> IO (Float) +cBsGetBoundingRadius a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBsGetBoundingRadius'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 183 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsNotifyBillboardResized :: HG3DClass -> IO () +cBsNotifyBillboardResized a1 = + withHG3DClass a1 $ \a1' -> + cBsNotifyBillboardResized'_ a1' >>= \res -> + return () +{-# LINE 186 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsNotifyBillboardRotated :: HG3DClass -> IO () +cBsNotifyBillboardRotated a1 = + withHG3DClass a1 $ \a1' -> + cBsNotifyBillboardRotated'_ a1' >>= \res -> + return () +{-# LINE 189 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsGetCullIndividually :: HG3DClass -> IO (Bool) +cBsGetCullIndividually a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBsGetCullIndividually'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 193 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsSetCullIndividually :: HG3DClass -> Bool -> IO () +cBsSetCullIndividually a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cBsSetCullIndividually'_ a1' a2' >>= \res -> + return () +{-# LINE 197 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsSetBillboardType :: HG3DClass -> EnumBillboardType -> IO () +cBsSetBillboardType a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cBsSetBillboardType'_ a1' a2' >>= \res -> + return () +{-# LINE 201 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsGetBillboardType :: HG3DClass -> IO (EnumBillboardType) +cBsGetBillboardType a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBsGetBillboardType'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 205 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsSetCommonDirection :: HG3DClass -> Vector3 -> IO () +cBsSetCommonDirection a1 a2 = + withHG3DClass a1 $ \a1' -> + withVector3 a2 $ \a2' -> + cBsSetCommonDirection'_ a1' a2' >>= \res -> + return () +{-# LINE 209 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsGetCommonDirection :: HG3DClass -> IO (Vector3) +cBsGetCommonDirection a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBsGetCommonDirection'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 213 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsSetCommonUpVector :: HG3DClass -> Vector3 -> IO () +cBsSetCommonUpVector a1 a2 = + withHG3DClass a1 $ \a1' -> + withVector3 a2 $ \a2' -> + cBsSetCommonUpVector'_ a1' a2' >>= \res -> + return () +{-# LINE 217 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsGetCommonUpVector :: HG3DClass -> IO (Vector3) +cBsGetCommonUpVector a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBsGetCommonUpVector'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 221 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsSetUseAccurateFacing :: HG3DClass -> Bool -> IO () +cBsSetUseAccurateFacing a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cBsSetUseAccurateFacing'_ a1' a2' >>= \res -> + return () +{-# LINE 225 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsGetUseAccurateFacing :: HG3DClass -> IO (Bool) +cBsGetUseAccurateFacing a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBsGetUseAccurateFacing'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 229 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsGetMovableType :: HG3DClass -> IO (String) +cBsGetMovableType a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cBsGetMovableType'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 233 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsUpdateBounds :: HG3DClass -> IO () +cBsUpdateBounds a1 = + withHG3DClass a1 $ \a1' -> + cBsUpdateBounds'_ a1' >>= \res -> + return () +{-# LINE 236 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsSortBillboards :: HG3DClass -> HG3DClass -> IO () +cBsSortBillboards a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cBsSortBillboards'_ a1' a2' >>= \res -> + return () +{-# LINE 240 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsGetSortMode :: HG3DClass -> IO (EnumSortMode) +cBsGetSortMode a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBsGetSortMode'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 244 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsSetBillboardsInWorldSpace :: HG3DClass -> Bool -> IO () +cBsSetBillboardsInWorldSpace a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cBsSetBillboardsInWorldSpace'_ a1' a2' >>= \res -> + return () +{-# LINE 248 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsSetPointRenderingEnabled :: HG3DClass -> Bool -> IO () +cBsSetPointRenderingEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cBsSetPointRenderingEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 252 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsIsPointRenderingEnabled :: HG3DClass -> IO (Bool) +cBsIsPointRenderingEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBsIsPointRenderingEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 256 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsGetTypeFlags :: HG3DClass -> IO (Int) +cBsGetTypeFlags a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBsGetTypeFlags'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 260 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsSetAutoUpdate :: HG3DClass -> Bool -> IO () +cBsSetAutoUpdate a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cBsSetAutoUpdate'_ a1' a2' >>= \res -> + return () +{-# LINE 264 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsGetAutoUpdate :: HG3DClass -> IO (Bool) +cBsGetAutoUpdate a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBsGetAutoUpdate'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 268 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; +cBsNotifyBillboardDataChanged :: HG3DClass -> IO () +cBsNotifyBillboardDataChanged a1 = + withHG3DClass a1 $ \a1' -> + cBsNotifyBillboardDataChanged'_ a1' >>= \res -> + return () +{-# LINE 271 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_createBillboard_c" + cBsCreateBillboard'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> ((ColourValuePtr) -> ((HG3DClassPtr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_createBillboard2_c" + cBsCreateBillboard2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> ((ColourValuePtr) -> ((HG3DClassPtr) -> (IO ()))))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_getNumBillboards_c" + cBsGetNumBillboards'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_setAutoextend_c" + cBsSetAutoextend'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_getAutoextend_c" + cBsGetAutoextend'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_setSortingEnabled_c" + cBsSetSortingEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_getSortingEnabled_c" + cBsGetSortingEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_setPoolSize_c" + cBsSetPoolSize'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_getPoolSize_c" + cBsGetPoolSize'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_clear_c" + cBsClear'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_getBillboard_c" + cBsGetBillboard'_ :: ((HG3DClassPtr) -> (CUInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_removeBillboard_c" + cBsRemoveBillboard'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_removeBillboard2_c" + cBsRemoveBillboard2'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_setBillboardOrigin_c" + cBsSetBillboardOrigin'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_getBillboardOrigin_c" + cBsGetBillboardOrigin'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_setBillboardRotationType_c" + cBsSetBillboardRotationType'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_getBillboardRotationType_c" + cBsGetBillboardRotationType'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_setDefaultDimensions_c" + cBsSetDefaultDimensions'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_setDefaultWidth_c" + cBsSetDefaultWidth'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_getDefaultWidth_c" + cBsGetDefaultWidth'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_setDefaultHeight_c" + cBsSetDefaultHeight'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_getDefaultHeight_c" + cBsGetDefaultHeight'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_setMaterialName_c" + cBsSetMaterialName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_getMaterialName_c" + cBsGetMaterialName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs__notifyCurrentCamera_c" + cBsNotifyCurrentCamera'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_beginBillboards_c" + cBsBeginBillboards'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_endBillboards_c" + cBsEndBillboards'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_getBoundingRadius_c" + cBsGetBoundingRadius'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs__notifyBillboardResized_c" + cBsNotifyBillboardResized'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs__notifyBillboardRotated_c" + cBsNotifyBillboardRotated'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_getCullIndividually_c" + cBsGetCullIndividually'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_setCullIndividually_c" + cBsSetCullIndividually'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_setBillboardType_c" + cBsSetBillboardType'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_getBillboardType_c" + cBsGetBillboardType'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_setCommonDirection_c" + cBsSetCommonDirection'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_getCommonDirection_c" + cBsGetCommonDirection'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_setCommonUpVector_c" + cBsSetCommonUpVector'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_getCommonUpVector_c" + cBsGetCommonUpVector'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_setUseAccurateFacing_c" + cBsSetUseAccurateFacing'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_getUseAccurateFacing_c" + cBsGetUseAccurateFacing'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_getMovableType_c" + cBsGetMovableType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs__updateBounds_c" + cBsUpdateBounds'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs__sortBillboards_c" + cBsSortBillboards'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs__getSortMode_c" + cBsGetSortMode'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_setBillboardsInWorldSpace_c" + cBsSetBillboardsInWorldSpace'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_setPointRenderingEnabled_c" + cBsSetPointRenderingEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_isPointRenderingEnabled_c" + cBsIsPointRenderingEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_getTypeFlags_c" + cBsGetTypeFlags'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_setAutoUpdate_c" + cBsSetAutoUpdate'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_getAutoUpdate_c" + cBsGetAutoUpdate'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_notifyBillboardDataChanged_c" + cBsNotifyBillboardDataChanged'_ :: ((HG3DClassPtr) -> (IO ()))
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSetFactory.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassBillboardSetFactory.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBillboardSet.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassBillboardSetFactory where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSetFactory.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSetFactory.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSetFactory.chs" #-} + +
@@ -0,0 +1,175 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassBone.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBone.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassBone where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} +import HGamer3D.Bindings.Ogre.TypeVector3 +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} +import HGamer3D.Bindings.Ogre.TypeQuaternion +{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} + + +cBCreateChild :: HG3DClass -> Int -> Vector3 -> Quaternion -> IO (HG3DClass) +cBCreateChild a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + withVector3 a3 $ \a3' -> + withQuaternion a4 $ \a4' -> + alloca $ \a5' -> + cBCreateChild'_ a1' a2' a3' a4' a5' >>= \res -> + peek a5'>>= \a5'' -> + return (a5'') +{-# LINE 67 "HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} +; +cBGetHandle :: HG3DClass -> IO (Int) +cBGetHandle a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBGetHandle'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} +; +cBSetBindingPose :: HG3DClass -> IO () +cBSetBindingPose a1 = + withHG3DClass a1 $ \a1' -> + cBSetBindingPose'_ a1' >>= \res -> + return () +{-# LINE 74 "HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} +; +cBReset :: HG3DClass -> IO () +cBReset a1 = + withHG3DClass a1 $ \a1' -> + cBReset'_ a1' >>= \res -> + return () +{-# LINE 77 "HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} +; +cBSetManuallyControlled :: HG3DClass -> Bool -> IO () +cBSetManuallyControlled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cBSetManuallyControlled'_ a1' a2' >>= \res -> + return () +{-# LINE 81 "HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} +; +cBIsManuallyControlled :: HG3DClass -> IO (Bool) +cBIsManuallyControlled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBIsManuallyControlled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 85 "HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} +; +cBGetBindingPoseInverseScale :: HG3DClass -> IO (Vector3) +cBGetBindingPoseInverseScale a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBGetBindingPoseInverseScale'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 89 "HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} +; +cBGetBindingPoseInversePosition :: HG3DClass -> IO (Vector3) +cBGetBindingPoseInversePosition a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBGetBindingPoseInversePosition'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 93 "HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} +; +cBGetBindingPoseInverseOrientation :: HG3DClass -> IO (Quaternion) +cBGetBindingPoseInverseOrientation a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBGetBindingPoseInverseOrientation'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 97 "HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBone.chs.h cB_createChild_c" + cBCreateChild'_ :: ((HG3DClassPtr) -> (CUInt -> ((Vector3Ptr) -> ((QuaternionPtr) -> ((HG3DClassPtr) -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBone.chs.h cB_getHandle_c" + cBGetHandle'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBone.chs.h cB_setBindingPose_c" + cBSetBindingPose'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBone.chs.h cB_reset_c" + cBReset'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBone.chs.h cB_setManuallyControlled_c" + cBSetManuallyControlled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBone.chs.h cB_isManuallyControlled_c" + cBIsManuallyControlled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBone.chs.h cB__getBindingPoseInverseScale_c" + cBGetBindingPoseInverseScale'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBone.chs.h cB__getBindingPoseInversePosition_c" + cBGetBindingPoseInversePosition'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBone.chs.h cB__getBindingPoseInverseOrientation_c" + cBGetBindingPoseInverseOrientation'_ :: ((HG3DClassPtr) -> ((QuaternionPtr) -> (IO ())))
@@ -0,0 +1,782 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassCamera.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCamera.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassCamera where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +import HGamer3D.Bindings.Ogre.EnumPolygonMode +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +import HGamer3D.Bindings.Ogre.TypeVector3 +{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +import HGamer3D.Bindings.Ogre.TypeRadian +{-# LINE 59 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +import HGamer3D.Bindings.Ogre.TypeQuaternion +{-# LINE 60 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +import HGamer3D.Bindings.Ogre.EnumFrustumPlane +{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + + +cCGetSceneManager :: HG3DClass -> IO (HG3DClass) +cCGetSceneManager a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCGetSceneManager'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 67 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCSetPolygonMode :: HG3DClass -> EnumPolygonMode -> IO () +cCSetPolygonMode a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cCSetPolygonMode'_ a1' a2' >>= \res -> + return () +{-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCGetPolygonMode :: HG3DClass -> IO (EnumPolygonMode) +cCGetPolygonMode a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCGetPolygonMode'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 75 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCSetPosition :: HG3DClass -> Float -> Float -> Float -> IO () +cCSetPosition a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + cCSetPosition'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 81 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCSetPosition2 :: HG3DClass -> Vector3 -> IO () +cCSetPosition2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withVector3 a2 $ \a2' -> + cCSetPosition2'_ a1' a2' >>= \res -> + return () +{-# LINE 85 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCGetPosition :: HG3DClass -> IO (Vector3) +cCGetPosition a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCGetPosition'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 89 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCMove :: HG3DClass -> Vector3 -> IO () +cCMove a1 a2 = + withHG3DClass a1 $ \a1' -> + withVector3 a2 $ \a2' -> + cCMove'_ a1' a2' >>= \res -> + return () +{-# LINE 93 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCMoveRelative :: HG3DClass -> Vector3 -> IO () +cCMoveRelative a1 a2 = + withHG3DClass a1 $ \a1' -> + withVector3 a2 $ \a2' -> + cCMoveRelative'_ a1' a2' >>= \res -> + return () +{-# LINE 97 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCSetDirection :: HG3DClass -> Float -> Float -> Float -> IO () +cCSetDirection a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + cCSetDirection'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 103 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCSetDirection2 :: HG3DClass -> Vector3 -> IO () +cCSetDirection2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withVector3 a2 $ \a2' -> + cCSetDirection2'_ a1' a2' >>= \res -> + return () +{-# LINE 107 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCGetUp :: HG3DClass -> IO (Vector3) +cCGetUp a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCGetUp'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 111 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCGetRight :: HG3DClass -> IO (Vector3) +cCGetRight a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCGetRight'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 115 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCLookAt :: HG3DClass -> Vector3 -> IO () +cCLookAt a1 a2 = + withHG3DClass a1 $ \a1' -> + withVector3 a2 $ \a2' -> + cCLookAt'_ a1' a2' >>= \res -> + return () +{-# LINE 119 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCLookAt2 :: HG3DClass -> Float -> Float -> Float -> IO () +cCLookAt2 a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + cCLookAt2'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 125 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCRoll :: HG3DClass -> Radian -> IO () +cCRoll a1 a2 = + withHG3DClass a1 $ \a1' -> + withRadian a2 $ \a2' -> + cCRoll'_ a1' a2' >>= \res -> + return () +{-# LINE 129 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCYaw :: HG3DClass -> Radian -> IO () +cCYaw a1 a2 = + withHG3DClass a1 $ \a1' -> + withRadian a2 $ \a2' -> + cCYaw'_ a1' a2' >>= \res -> + return () +{-# LINE 133 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCPitch :: HG3DClass -> Radian -> IO () +cCPitch a1 a2 = + withHG3DClass a1 $ \a1' -> + withRadian a2 $ \a2' -> + cCPitch'_ a1' a2' >>= \res -> + return () +{-# LINE 137 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCRotate :: HG3DClass -> Vector3 -> Radian -> IO () +cCRotate a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withVector3 a2 $ \a2' -> + withRadian a3 $ \a3' -> + cCRotate'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 142 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCRotate2 :: HG3DClass -> Quaternion -> IO () +cCRotate2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withQuaternion a2 $ \a2' -> + cCRotate2'_ a1' a2' >>= \res -> + return () +{-# LINE 146 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCSetFixedYawAxis :: HG3DClass -> Bool -> Vector3 -> IO () +cCSetFixedYawAxis a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + withVector3 a3 $ \a3' -> + cCSetFixedYawAxis'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 151 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCGetOrientation :: HG3DClass -> IO (Quaternion) +cCGetOrientation a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCGetOrientation'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 155 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCSetOrientation :: HG3DClass -> Quaternion -> IO () +cCSetOrientation a1 a2 = + withHG3DClass a1 $ \a1' -> + withQuaternion a2 $ \a2' -> + cCSetOrientation'_ a1' a2' >>= \res -> + return () +{-# LINE 159 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCRenderScene :: HG3DClass -> HG3DClass -> Bool -> IO () +cCRenderScene a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + let {a3' = fromBool a3} in + cCRenderScene'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 164 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCNotifyRenderedFaces :: HG3DClass -> Int -> IO () +cCNotifyRenderedFaces a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cCNotifyRenderedFaces'_ a1' a2' >>= \res -> + return () +{-# LINE 168 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCNotifyRenderedBatches :: HG3DClass -> Int -> IO () +cCNotifyRenderedBatches a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cCNotifyRenderedBatches'_ a1' a2' >>= \res -> + return () +{-# LINE 172 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCGetNumRenderedFaces :: HG3DClass -> IO (Int) +cCGetNumRenderedFaces a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCGetNumRenderedFaces'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 176 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCGetNumRenderedBatches :: HG3DClass -> IO (Int) +cCGetNumRenderedBatches a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCGetNumRenderedBatches'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 180 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCGetDerivedOrientation :: HG3DClass -> IO (Quaternion) +cCGetDerivedOrientation a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCGetDerivedOrientation'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 184 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCGetDerivedPosition :: HG3DClass -> IO (Vector3) +cCGetDerivedPosition a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCGetDerivedPosition'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 188 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCGetDerivedDirection :: HG3DClass -> IO (Vector3) +cCGetDerivedDirection a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCGetDerivedDirection'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 192 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCGetDerivedUp :: HG3DClass -> IO (Vector3) +cCGetDerivedUp a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCGetDerivedUp'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 196 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCGetDerivedRight :: HG3DClass -> IO (Vector3) +cCGetDerivedRight a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCGetDerivedRight'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 200 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCGetRealOrientation :: HG3DClass -> IO (Quaternion) +cCGetRealOrientation a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCGetRealOrientation'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 204 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCGetRealPosition :: HG3DClass -> IO (Vector3) +cCGetRealPosition a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCGetRealPosition'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 208 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCGetRealDirection :: HG3DClass -> IO (Vector3) +cCGetRealDirection a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCGetRealDirection'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 212 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCGetRealUp :: HG3DClass -> IO (Vector3) +cCGetRealUp a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCGetRealUp'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 216 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCGetRealRight :: HG3DClass -> IO (Vector3) +cCGetRealRight a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCGetRealRight'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 220 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCGetMovableType :: HG3DClass -> IO (String) +cCGetMovableType a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cCGetMovableType'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 224 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCSetAutoTracking :: HG3DClass -> Bool -> HG3DClass -> Vector3 -> IO () +cCSetAutoTracking a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + withHG3DClass a3 $ \a3' -> + withVector3 a4 $ \a4' -> + cCSetAutoTracking'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 230 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCSetLodBias :: HG3DClass -> Float -> IO () +cCSetLodBias a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cCSetLodBias'_ a1' a2' >>= \res -> + return () +{-# LINE 234 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCGetLodBias :: HG3DClass -> IO (Float) +cCGetLodBias a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCGetLodBias'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 238 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCGetLodBiasInverse :: HG3DClass -> IO (Float) +cCGetLodBiasInverse a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCGetLodBiasInverse'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 242 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCAutoTrack :: HG3DClass -> IO () +cCAutoTrack a1 = + withHG3DClass a1 $ \a1' -> + cCAutoTrack'_ a1' >>= \res -> + return () +{-# LINE 245 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCIsWindowSet :: HG3DClass -> IO (Bool) +cCIsWindowSet a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCIsWindowSet'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 249 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCGetBoundingRadius :: HG3DClass -> IO (Float) +cCGetBoundingRadius a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCGetBoundingRadius'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 253 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCGetAutoTrackTarget :: HG3DClass -> IO (HG3DClass) +cCGetAutoTrackTarget a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCGetAutoTrackTarget'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 257 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCGetAutoTrackOffset :: HG3DClass -> IO (Vector3) +cCGetAutoTrackOffset a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCGetAutoTrackOffset'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 261 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCGetViewport :: HG3DClass -> IO (HG3DClass) +cCGetViewport a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCGetViewport'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 265 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCNotifyViewport :: HG3DClass -> HG3DClass -> IO () +cCNotifyViewport a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cCNotifyViewport'_ a1' a2' >>= \res -> + return () +{-# LINE 269 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCSetAutoAspectRatio :: HG3DClass -> Bool -> IO () +cCSetAutoAspectRatio a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cCSetAutoAspectRatio'_ a1' a2' >>= \res -> + return () +{-# LINE 273 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCGetAutoAspectRatio :: HG3DClass -> IO (Bool) +cCGetAutoAspectRatio a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCGetAutoAspectRatio'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 277 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCSetCullingFrustum :: HG3DClass -> HG3DClass -> IO () +cCSetCullingFrustum a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cCSetCullingFrustum'_ a1' a2' >>= \res -> + return () +{-# LINE 281 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCGetCullingFrustum :: HG3DClass -> IO (HG3DClass) +cCGetCullingFrustum a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCGetCullingFrustum'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 285 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCIsVisible3 :: HG3DClass -> Vector3 -> IO (EnumFrustumPlane, Bool) +cCIsVisible3 a1 a2 = + withHG3DClass a1 $ \a1' -> + withVector3 a2 $ \a2' -> + alloca $ \a3' -> + alloca $ \a4' -> + cCIsVisible3'_ a1' a2' a3' a4' >>= \res -> + peekEnumUtil a3'>>= \a3'' -> + peekBoolUtil a4'>>= \a4'' -> + return (a3'', a4'') +{-# LINE 291 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCGetNearClipDistance :: HG3DClass -> IO (Float) +cCGetNearClipDistance a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCGetNearClipDistance'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 295 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCGetFarClipDistance :: HG3DClass -> IO (Float) +cCGetFarClipDistance a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCGetFarClipDistance'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 299 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCSetUseRenderingDistance :: HG3DClass -> Bool -> IO () +cCSetUseRenderingDistance a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cCSetUseRenderingDistance'_ a1' a2' >>= \res -> + return () +{-# LINE 303 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCGetUseRenderingDistance :: HG3DClass -> IO (Bool) +cCGetUseRenderingDistance a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCGetUseRenderingDistance'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 307 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCGetPositionForViewUpdate :: HG3DClass -> IO (Vector3) +cCGetPositionForViewUpdate a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCGetPositionForViewUpdate'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 311 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; +cCGetOrientationForViewUpdate :: HG3DClass -> IO (Quaternion) +cCGetOrientationForViewUpdate a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCGetOrientationForViewUpdate'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 315 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getSceneManager_c" + cCGetSceneManager'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_setPolygonMode_c" + cCSetPolygonMode'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getPolygonMode_c" + cCGetPolygonMode'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_setPosition_c" + cCSetPosition'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_setPosition2_c" + cCSetPosition2'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getPosition_c" + cCGetPosition'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_move_c" + cCMove'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_moveRelative_c" + cCMoveRelative'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_setDirection_c" + cCSetDirection'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_setDirection2_c" + cCSetDirection2'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getUp_c" + cCGetUp'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getRight_c" + cCGetRight'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_lookAt_c" + cCLookAt'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_lookAt2_c" + cCLookAt2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_roll_c" + cCRoll'_ :: ((HG3DClassPtr) -> ((RadianPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_yaw_c" + cCYaw'_ :: ((HG3DClassPtr) -> ((RadianPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_pitch_c" + cCPitch'_ :: ((HG3DClassPtr) -> ((RadianPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_rotate_c" + cCRotate'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> ((RadianPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_rotate2_c" + cCRotate2'_ :: ((HG3DClassPtr) -> ((QuaternionPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_setFixedYawAxis_c" + cCSetFixedYawAxis'_ :: ((HG3DClassPtr) -> (CInt -> ((Vector3Ptr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getOrientation_c" + cCGetOrientation'_ :: ((HG3DClassPtr) -> ((QuaternionPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_setOrientation_c" + cCSetOrientation'_ :: ((HG3DClassPtr) -> ((QuaternionPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC__renderScene_c" + cCRenderScene'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC__notifyRenderedFaces_c" + cCNotifyRenderedFaces'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC__notifyRenderedBatches_c" + cCNotifyRenderedBatches'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC__getNumRenderedFaces_c" + cCGetNumRenderedFaces'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC__getNumRenderedBatches_c" + cCGetNumRenderedBatches'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getDerivedOrientation_c" + cCGetDerivedOrientation'_ :: ((HG3DClassPtr) -> ((QuaternionPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getDerivedPosition_c" + cCGetDerivedPosition'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getDerivedDirection_c" + cCGetDerivedDirection'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getDerivedUp_c" + cCGetDerivedUp'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getDerivedRight_c" + cCGetDerivedRight'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getRealOrientation_c" + cCGetRealOrientation'_ :: ((HG3DClassPtr) -> ((QuaternionPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getRealPosition_c" + cCGetRealPosition'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getRealDirection_c" + cCGetRealDirection'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getRealUp_c" + cCGetRealUp'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getRealRight_c" + cCGetRealRight'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getMovableType_c" + cCGetMovableType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_setAutoTracking_c" + cCSetAutoTracking'_ :: ((HG3DClassPtr) -> (CInt -> ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_setLodBias_c" + cCSetLodBias'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getLodBias_c" + cCGetLodBias'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC__getLodBiasInverse_c" + cCGetLodBiasInverse'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC__autoTrack_c" + cCAutoTrack'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_isWindowSet_c" + cCIsWindowSet'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getBoundingRadius_c" + cCGetBoundingRadius'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getAutoTrackTarget_c" + cCGetAutoTrackTarget'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getAutoTrackOffset_c" + cCGetAutoTrackOffset'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getViewport_c" + cCGetViewport'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC__notifyViewport_c" + cCNotifyViewport'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_setAutoAspectRatio_c" + cCSetAutoAspectRatio'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getAutoAspectRatio_c" + cCGetAutoAspectRatio'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_setCullingFrustum_c" + cCSetCullingFrustum'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getCullingFrustum_c" + cCGetCullingFrustum'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_isVisible3_c" + cCIsVisible3'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> ((Ptr CInt) -> ((Ptr CInt) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getNearClipDistance_c" + cCGetNearClipDistance'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getFarClipDistance_c" + cCGetFarClipDistance'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_setUseRenderingDistance_c" + cCSetUseRenderingDistance'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getUseRenderingDistance_c" + cCGetUseRenderingDistance'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getPositionForViewUpdate_c" + cCGetPositionForViewUpdate'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getOrientationForViewUpdate_c" + cCGetOrientationForViewUpdate'_ :: ((HG3DClassPtr) -> ((QuaternionPtr) -> (IO ())))
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassCmdManualNamedConstsFile.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassCmdManualNamedConstsFile.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreGpuProgram.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassCmdManualNamedConstsFile where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassCmdManualNamedConstsFile.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassCmdManualNamedConstsFile.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassCmdManualNamedConstsFile.chs" #-} + +
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassCmdPose.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassCmdPose.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreGpuProgram.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassCmdPose where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassCmdPose.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassCmdPose.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassCmdPose.chs" #-} + +
@@ -0,0 +1,561 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassCompositionPass.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCompositionPass.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassCompositionPass where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +import HGamer3D.Bindings.Ogre.EnumPassType +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +import HGamer3D.Bindings.Ogre.TypeColourValue +{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +import HGamer3D.Bindings.Ogre.EnumCompareFunction +{-# LINE 59 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +import HGamer3D.Bindings.Ogre.EnumStencilOperation +{-# LINE 60 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} + + +cCopSetType :: HG3DClass -> EnumPassType -> IO () +cCopSetType a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cCopSetType'_ a1' a2' >>= \res -> + return () +{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopGetType :: HG3DClass -> IO (EnumPassType) +cCopGetType a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCopGetType'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 70 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopSetIdentifier :: HG3DClass -> Int -> IO () +cCopSetIdentifier a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cCopSetIdentifier'_ a1' a2' >>= \res -> + return () +{-# LINE 74 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopGetIdentifier :: HG3DClass -> IO (Int) +cCopGetIdentifier a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCopGetIdentifier'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 78 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopSetMaterialName :: HG3DClass -> String -> IO () +cCopSetMaterialName a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cCopSetMaterialName'_ a1' a2' >>= \res -> + return () +{-# LINE 82 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopSetMaterialScheme :: HG3DClass -> String -> IO () +cCopSetMaterialScheme a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cCopSetMaterialScheme'_ a1' a2' >>= \res -> + return () +{-# LINE 86 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopGetMaterialScheme :: HG3DClass -> IO (String) +cCopGetMaterialScheme a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cCopGetMaterialScheme'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 90 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopSetClearBuffers :: HG3DClass -> Int -> IO () +cCopSetClearBuffers a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cCopSetClearBuffers'_ a1' a2' >>= \res -> + return () +{-# LINE 94 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopGetClearBuffers :: HG3DClass -> IO (Int) +cCopGetClearBuffers a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCopGetClearBuffers'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 98 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopSetClearColour :: HG3DClass -> ColourValue -> IO () +cCopSetClearColour a1 a2 = + withHG3DClass a1 $ \a1' -> + withColourValue a2 $ \a2' -> + cCopSetClearColour'_ a1' a2' >>= \res -> + return () +{-# LINE 102 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopGetClearColour :: HG3DClass -> IO (ColourValue) +cCopGetClearColour a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCopGetClearColour'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 106 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopSetClearDepth :: HG3DClass -> Float -> IO () +cCopSetClearDepth a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cCopSetClearDepth'_ a1' a2' >>= \res -> + return () +{-# LINE 110 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopGetClearDepth :: HG3DClass -> IO (Float) +cCopGetClearDepth a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCopGetClearDepth'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 114 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopSetClearStencil :: HG3DClass -> Int -> IO () +cCopSetClearStencil a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cCopSetClearStencil'_ a1' a2' >>= \res -> + return () +{-# LINE 118 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopGetClearStencil :: HG3DClass -> IO (Int) +cCopGetClearStencil a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCopGetClearStencil'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 122 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopSetStencilCheck :: HG3DClass -> Bool -> IO () +cCopSetStencilCheck a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cCopSetStencilCheck'_ a1' a2' >>= \res -> + return () +{-# LINE 126 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopGetStencilCheck :: HG3DClass -> IO (Bool) +cCopGetStencilCheck a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCopGetStencilCheck'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 130 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopSetStencilFunc :: HG3DClass -> EnumCompareFunction -> IO () +cCopSetStencilFunc a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cCopSetStencilFunc'_ a1' a2' >>= \res -> + return () +{-# LINE 134 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopGetStencilFunc :: HG3DClass -> IO (EnumCompareFunction) +cCopGetStencilFunc a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCopGetStencilFunc'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 138 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopSetStencilRefValue :: HG3DClass -> Int -> IO () +cCopSetStencilRefValue a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cCopSetStencilRefValue'_ a1' a2' >>= \res -> + return () +{-# LINE 142 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopGetStencilRefValue :: HG3DClass -> IO (Int) +cCopGetStencilRefValue a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCopGetStencilRefValue'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 146 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopSetStencilMask :: HG3DClass -> Int -> IO () +cCopSetStencilMask a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cCopSetStencilMask'_ a1' a2' >>= \res -> + return () +{-# LINE 150 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopGetStencilMask :: HG3DClass -> IO (Int) +cCopGetStencilMask a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCopGetStencilMask'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 154 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopSetStencilFailOp :: HG3DClass -> EnumStencilOperation -> IO () +cCopSetStencilFailOp a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cCopSetStencilFailOp'_ a1' a2' >>= \res -> + return () +{-# LINE 158 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopGetStencilFailOp :: HG3DClass -> IO (EnumStencilOperation) +cCopGetStencilFailOp a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCopGetStencilFailOp'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 162 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopSetStencilDepthFailOp :: HG3DClass -> EnumStencilOperation -> IO () +cCopSetStencilDepthFailOp a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cCopSetStencilDepthFailOp'_ a1' a2' >>= \res -> + return () +{-# LINE 166 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopGetStencilDepthFailOp :: HG3DClass -> IO (EnumStencilOperation) +cCopGetStencilDepthFailOp a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCopGetStencilDepthFailOp'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 170 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopSetStencilPassOp :: HG3DClass -> EnumStencilOperation -> IO () +cCopSetStencilPassOp a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cCopSetStencilPassOp'_ a1' a2' >>= \res -> + return () +{-# LINE 174 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopGetStencilPassOp :: HG3DClass -> IO (EnumStencilOperation) +cCopGetStencilPassOp a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCopGetStencilPassOp'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 178 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopSetStencilTwoSidedOperation :: HG3DClass -> Bool -> IO () +cCopSetStencilTwoSidedOperation a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cCopSetStencilTwoSidedOperation'_ a1' a2' >>= \res -> + return () +{-# LINE 182 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopGetStencilTwoSidedOperation :: HG3DClass -> IO (Bool) +cCopGetStencilTwoSidedOperation a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCopGetStencilTwoSidedOperation'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 186 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopSetInput :: HG3DClass -> Int -> String -> Int -> IO () +cCopSetInput a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + withCString a3 $ \a3' -> + let {a4' = fromIntegral a4} in + cCopSetInput'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 192 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopGetNumInputs :: HG3DClass -> IO (Int) +cCopGetNumInputs a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCopGetNumInputs'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 196 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopClearAllInputs :: HG3DClass -> IO () +cCopClearAllInputs a1 = + withHG3DClass a1 $ \a1' -> + cCopClearAllInputs'_ a1' >>= \res -> + return () +{-# LINE 199 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopGetParent :: HG3DClass -> IO (HG3DClass) +cCopGetParent a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCopGetParent'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 203 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopIsSupported :: HG3DClass -> IO (Bool) +cCopIsSupported a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCopIsSupported'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 207 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopSetQuadCorners :: HG3DClass -> Float -> Float -> Float -> Float -> IO () +cCopSetQuadCorners a1 a2 a3 a4 a5 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + let {a5' = realToFrac a5} in + cCopSetQuadCorners'_ a1' a2' a3' a4' a5' >>= \res -> + return () +{-# LINE 214 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopSetQuadFarCorners :: HG3DClass -> Bool -> Bool -> IO () +cCopSetQuadFarCorners a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + let {a3' = fromBool a3} in + cCopSetQuadFarCorners'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 219 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopGetQuadFarCorners :: HG3DClass -> IO (Bool) +cCopGetQuadFarCorners a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCopGetQuadFarCorners'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 223 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopGetQuadFarCornersViewSpace :: HG3DClass -> IO (Bool) +cCopGetQuadFarCornersViewSpace a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCopGetQuadFarCornersViewSpace'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 227 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopSetCustomType :: HG3DClass -> String -> IO () +cCopSetCustomType a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cCopSetCustomType'_ a1' a2' >>= \res -> + return () +{-# LINE 231 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; +cCopGetCustomType :: HG3DClass -> IO (String) +cCopGetCustomType a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cCopGetCustomType'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 235 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_setType_c" + cCopSetType'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_getType_c" + cCopGetType'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_setIdentifier_c" + cCopSetIdentifier'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_getIdentifier_c" + cCopGetIdentifier'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_setMaterialName_c" + cCopSetMaterialName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_setMaterialScheme_c" + cCopSetMaterialScheme'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_getMaterialScheme_c" + cCopGetMaterialScheme'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_setClearBuffers_c" + cCopSetClearBuffers'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_getClearBuffers_c" + cCopGetClearBuffers'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_setClearColour_c" + cCopSetClearColour'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_getClearColour_c" + cCopGetClearColour'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_setClearDepth_c" + cCopSetClearDepth'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_getClearDepth_c" + cCopGetClearDepth'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_setClearStencil_c" + cCopSetClearStencil'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_getClearStencil_c" + cCopGetClearStencil'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_setStencilCheck_c" + cCopSetStencilCheck'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_getStencilCheck_c" + cCopGetStencilCheck'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_setStencilFunc_c" + cCopSetStencilFunc'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_getStencilFunc_c" + cCopGetStencilFunc'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_setStencilRefValue_c" + cCopSetStencilRefValue'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_getStencilRefValue_c" + cCopGetStencilRefValue'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_setStencilMask_c" + cCopSetStencilMask'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_getStencilMask_c" + cCopGetStencilMask'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_setStencilFailOp_c" + cCopSetStencilFailOp'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_getStencilFailOp_c" + cCopGetStencilFailOp'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_setStencilDepthFailOp_c" + cCopSetStencilDepthFailOp'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_getStencilDepthFailOp_c" + cCopGetStencilDepthFailOp'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_setStencilPassOp_c" + cCopSetStencilPassOp'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_getStencilPassOp_c" + cCopGetStencilPassOp'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_setStencilTwoSidedOperation_c" + cCopSetStencilTwoSidedOperation'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_getStencilTwoSidedOperation_c" + cCopGetStencilTwoSidedOperation'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_setInput_c" + cCopSetInput'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CChar) -> (CInt -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_getNumInputs_c" + cCopGetNumInputs'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_clearAllInputs_c" + cCopClearAllInputs'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_getParent_c" + cCopGetParent'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop__isSupported_c" + cCopIsSupported'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_setQuadCorners_c" + cCopSetQuadCorners'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (CFloat -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_setQuadFarCorners_c" + cCopSetQuadFarCorners'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_getQuadFarCorners_c" + cCopGetQuadFarCorners'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_getQuadFarCornersViewSpace_c" + cCopGetQuadFarCornersViewSpace'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_setCustomType_c" + cCopSetCustomType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_getCustomType_c" + cCopGetCustomType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ())))
@@ -0,0 +1,310 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassCompositionTargetPass.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCompositionTargetPass.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassCompositionTargetPass where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} +import HGamer3D.Bindings.Ogre.EnumInputMode +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} + + +cCotpSetInputMode :: HG3DClass -> EnumInputMode -> IO () +cCotpSetInputMode a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cCotpSetInputMode'_ a1' a2' >>= \res -> + return () +{-# LINE 63 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} +; +cCotpGetInputMode :: HG3DClass -> IO (EnumInputMode) +cCotpGetInputMode a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCotpGetInputMode'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 67 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} +; +cCotpSetOutputName :: HG3DClass -> String -> IO () +cCotpSetOutputName a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cCotpSetOutputName'_ a1' a2' >>= \res -> + return () +{-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} +; +cCotpGetOutputName :: HG3DClass -> IO (String) +cCotpGetOutputName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cCotpGetOutputName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 75 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} +; +cCotpSetOnlyInitial :: HG3DClass -> Bool -> IO () +cCotpSetOnlyInitial a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cCotpSetOnlyInitial'_ a1' a2' >>= \res -> + return () +{-# LINE 79 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} +; +cCotpGetOnlyInitial :: HG3DClass -> IO (Bool) +cCotpGetOnlyInitial a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCotpGetOnlyInitial'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 83 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} +; +cCotpSetVisibilityMask :: HG3DClass -> Int -> IO () +cCotpSetVisibilityMask a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cCotpSetVisibilityMask'_ a1' a2' >>= \res -> + return () +{-# LINE 87 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} +; +cCotpGetVisibilityMask :: HG3DClass -> IO (Int) +cCotpGetVisibilityMask a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCotpGetVisibilityMask'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 91 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} +; +cCotpSetMaterialScheme :: HG3DClass -> String -> IO () +cCotpSetMaterialScheme a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cCotpSetMaterialScheme'_ a1' a2' >>= \res -> + return () +{-# LINE 95 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} +; +cCotpGetMaterialScheme :: HG3DClass -> IO (String) +cCotpGetMaterialScheme a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cCotpGetMaterialScheme'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 99 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} +; +cCotpSetShadowsEnabled :: HG3DClass -> Bool -> IO () +cCotpSetShadowsEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cCotpSetShadowsEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 103 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} +; +cCotpGetShadowsEnabled :: HG3DClass -> IO (Bool) +cCotpGetShadowsEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCotpGetShadowsEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 107 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} +; +cCotpSetLodBias :: HG3DClass -> Float -> IO () +cCotpSetLodBias a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cCotpSetLodBias'_ a1' a2' >>= \res -> + return () +{-# LINE 111 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} +; +cCotpGetLodBias :: HG3DClass -> IO (Float) +cCotpGetLodBias a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCotpGetLodBias'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 115 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} +; +cCotpCreatePass :: HG3DClass -> IO (HG3DClass) +cCotpCreatePass a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCotpCreatePass'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 119 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} +; +cCotpRemovePass :: HG3DClass -> Int -> IO () +cCotpRemovePass a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cCotpRemovePass'_ a1' a2' >>= \res -> + return () +{-# LINE 123 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} +; +cCotpGetPass :: HG3DClass -> Int -> IO (HG3DClass) +cCotpGetPass a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cCotpGetPass'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 128 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} +; +cCotpGetNumPasses :: HG3DClass -> IO (Int) +cCotpGetNumPasses a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCotpGetNumPasses'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 132 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} +; +cCotpRemoveAllPasses :: HG3DClass -> IO () +cCotpRemoveAllPasses a1 = + withHG3DClass a1 $ \a1' -> + cCotpRemoveAllPasses'_ a1' >>= \res -> + return () +{-# LINE 135 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} +; +cCotpGetParent :: HG3DClass -> IO (HG3DClass) +cCotpGetParent a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCotpGetParent'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 139 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} +; +cCotpIsSupported :: HG3DClass -> IO (Bool) +cCotpIsSupported a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCotpIsSupported'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 143 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_setInputMode_c" + cCotpSetInputMode'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_getInputMode_c" + cCotpGetInputMode'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_setOutputName_c" + cCotpSetOutputName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_getOutputName_c" + cCotpGetOutputName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_setOnlyInitial_c" + cCotpSetOnlyInitial'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_getOnlyInitial_c" + cCotpGetOnlyInitial'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_setVisibilityMask_c" + cCotpSetVisibilityMask'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_getVisibilityMask_c" + cCotpGetVisibilityMask'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_setMaterialScheme_c" + cCotpSetMaterialScheme'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_getMaterialScheme_c" + cCotpGetMaterialScheme'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_setShadowsEnabled_c" + cCotpSetShadowsEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_getShadowsEnabled_c" + cCotpGetShadowsEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_setLodBias_c" + cCotpSetLodBias'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_getLodBias_c" + cCotpGetLodBias'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_createPass_c" + cCotpCreatePass'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_removePass_c" + cCotpRemovePass'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_getPass_c" + cCotpGetPass'_ :: ((HG3DClassPtr) -> (CInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_getNumPasses_c" + cCotpGetNumPasses'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_removeAllPasses_c" + cCotpRemoveAllPasses'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_getParent_c" + cCotpGetParent'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp__isSupported_c" + cCotpIsSupported'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
@@ -0,0 +1,239 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassCompositionTechnique.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCompositionTechnique.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassCompositionTechnique where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs" #-} + + +cCotRemoveTextureDefinition :: HG3DClass -> Int -> IO () +cCotRemoveTextureDefinition a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cCotRemoveTextureDefinition'_ a1' a2' >>= \res -> + return () +{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs" #-} +; +cCotGetNumTextureDefinitions :: HG3DClass -> IO (Int) +cCotGetNumTextureDefinitions a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCotGetNumTextureDefinitions'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs" #-} +; +cCotRemoveAllTextureDefinitions :: HG3DClass -> IO () +cCotRemoveAllTextureDefinitions a1 = + withHG3DClass a1 $ \a1' -> + cCotRemoveAllTextureDefinitions'_ a1' >>= \res -> + return () +{-# LINE 69 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs" #-} +; +cCotCreateTargetPass :: HG3DClass -> IO (HG3DClass) +cCotCreateTargetPass a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCotCreateTargetPass'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 73 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs" #-} +; +cCotRemoveTargetPass :: HG3DClass -> Int -> IO () +cCotRemoveTargetPass a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cCotRemoveTargetPass'_ a1' a2' >>= \res -> + return () +{-# LINE 77 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs" #-} +; +cCotGetTargetPass :: HG3DClass -> Int -> IO (HG3DClass) +cCotGetTargetPass a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cCotGetTargetPass'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 82 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs" #-} +; +cCotGetNumTargetPasses :: HG3DClass -> IO (Int) +cCotGetNumTargetPasses a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCotGetNumTargetPasses'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 86 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs" #-} +; +cCotRemoveAllTargetPasses :: HG3DClass -> IO () +cCotRemoveAllTargetPasses a1 = + withHG3DClass a1 $ \a1' -> + cCotRemoveAllTargetPasses'_ a1' >>= \res -> + return () +{-# LINE 89 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs" #-} +; +cCotGetOutputTargetPass :: HG3DClass -> IO (HG3DClass) +cCotGetOutputTargetPass a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCotGetOutputTargetPass'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 93 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs" #-} +; +cCotIsSupported :: HG3DClass -> Bool -> IO (Bool) +cCotIsSupported a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + alloca $ \a3' -> + cCotIsSupported'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 98 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs" #-} +; +cCotSetSchemeName :: HG3DClass -> String -> IO () +cCotSetSchemeName a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cCotSetSchemeName'_ a1' a2' >>= \res -> + return () +{-# LINE 102 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs" #-} +; +cCotGetSchemeName :: HG3DClass -> IO (String) +cCotGetSchemeName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cCotGetSchemeName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 106 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs" #-} +; +cCotSetCompositorLogicName :: HG3DClass -> String -> IO () +cCotSetCompositorLogicName a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cCotSetCompositorLogicName'_ a1' a2' >>= \res -> + return () +{-# LINE 110 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs" #-} +; +cCotGetCompositorLogicName :: HG3DClass -> IO (String) +cCotGetCompositorLogicName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cCotGetCompositorLogicName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 114 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs" #-} +; +cCotGetParent :: HG3DClass -> IO (HG3DClass) +cCotGetParent a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCotGetParent'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 118 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs.h cCot_removeTextureDefinition_c" + cCotRemoveTextureDefinition'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs.h cCot_getNumTextureDefinitions_c" + cCotGetNumTextureDefinitions'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs.h cCot_removeAllTextureDefinitions_c" + cCotRemoveAllTextureDefinitions'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs.h cCot_createTargetPass_c" + cCotCreateTargetPass'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs.h cCot_removeTargetPass_c" + cCotRemoveTargetPass'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs.h cCot_getTargetPass_c" + cCotGetTargetPass'_ :: ((HG3DClassPtr) -> (CInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs.h cCot_getNumTargetPasses_c" + cCotGetNumTargetPasses'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs.h cCot_removeAllTargetPasses_c" + cCotRemoveAllTargetPasses'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs.h cCot_getOutputTargetPass_c" + cCotGetOutputTargetPass'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs.h cCot_isSupported_c" + cCotIsSupported'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs.h cCot_setSchemeName_c" + cCotSetSchemeName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs.h cCot_getSchemeName_c" + cCotGetSchemeName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs.h cCot_setCompositorLogicName_c" + cCotSetCompositorLogicName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs.h cCot_getCompositorLogicName_c" + cCotGetCompositorLogicName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs.h cCot_getParent_c" + cCotGetParent'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
@@ -0,0 +1,175 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassCompositor.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassCompositor.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCompositor.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassCompositor where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassCompositor.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassCompositor.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassCompositor.chs" #-} + + +cCoCreateTechnique :: HG3DClass -> IO (HG3DClass) +cCoCreateTechnique a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCoCreateTechnique'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassCompositor.chs" #-} +; +cCoRemoveTechnique :: HG3DClass -> Int -> IO () +cCoRemoveTechnique a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cCoRemoveTechnique'_ a1' a2' >>= \res -> + return () +{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassCompositor.chs" #-} +; +cCoGetTechnique :: HG3DClass -> Int -> IO (HG3DClass) +cCoGetTechnique a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cCoGetTechnique'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassCompositor.chs" #-} +; +cCoGetNumTechniques :: HG3DClass -> IO (Int) +cCoGetNumTechniques a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCoGetNumTechniques'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 75 "HGamer3D\\Bindings\\Ogre\\ClassCompositor.chs" #-} +; +cCoRemoveAllTechniques :: HG3DClass -> IO () +cCoRemoveAllTechniques a1 = + withHG3DClass a1 $ \a1' -> + cCoRemoveAllTechniques'_ a1' >>= \res -> + return () +{-# LINE 78 "HGamer3D\\Bindings\\Ogre\\ClassCompositor.chs" #-} +; +cCoGetSupportedTechnique :: HG3DClass -> Int -> IO (HG3DClass) +cCoGetSupportedTechnique a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cCoGetSupportedTechnique'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 83 "HGamer3D\\Bindings\\Ogre\\ClassCompositor.chs" #-} +; +cCoGetNumSupportedTechniques :: HG3DClass -> IO (Int) +cCoGetNumSupportedTechniques a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCoGetNumSupportedTechniques'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 87 "HGamer3D\\Bindings\\Ogre\\ClassCompositor.chs" #-} +; +cCoGetSupportedTechnique2 :: HG3DClass -> String -> IO (HG3DClass) +cCoGetSupportedTechnique2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cCoGetSupportedTechnique2'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 92 "HGamer3D\\Bindings\\Ogre\\ClassCompositor.chs" #-} +; +cCoGetTextureInstanceName :: HG3DClass -> String -> Int -> IO (String) +cCoGetTextureInstanceName a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = fromIntegral a3} in + alloc64k $ \a4' -> + cCoGetTextureInstanceName'_ a1' a2' a3' a4' >>= \res -> + peekCString a4'>>= \a4'' -> + return (a4'') +{-# LINE 98 "HGamer3D\\Bindings\\Ogre\\ClassCompositor.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositor.chs.h cCo_createTechnique_c" + cCoCreateTechnique'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositor.chs.h cCo_removeTechnique_c" + cCoRemoveTechnique'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositor.chs.h cCo_getTechnique_c" + cCoGetTechnique'_ :: ((HG3DClassPtr) -> (CInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositor.chs.h cCo_getNumTechniques_c" + cCoGetNumTechniques'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositor.chs.h cCo_removeAllTechniques_c" + cCoRemoveAllTechniques'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositor.chs.h cCo_getSupportedTechnique_c" + cCoGetSupportedTechnique'_ :: ((HG3DClassPtr) -> (CInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositor.chs.h cCo_getNumSupportedTechniques_c" + cCoGetNumSupportedTechniques'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositor.chs.h cCo_getSupportedTechnique2_c" + cCoGetSupportedTechnique2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositor.chs.h cCo_getTextureInstanceName_c" + cCoGetTextureInstanceName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> ((Ptr CChar) -> (IO ())))))
@@ -0,0 +1,216 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassCompositorChain.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCompositorChain.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassCompositorChain where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} + + +cCocRemoveCompositor :: HG3DClass -> Int -> IO () +cCocRemoveCompositor a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cCocRemoveCompositor'_ a1' a2' >>= \res -> + return () +{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} +; +cCocGetNumCompositors :: HG3DClass -> IO (Int) +cCocGetNumCompositors a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCocGetNumCompositors'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} +; +cCocRemoveAllCompositors :: HG3DClass -> IO () +cCocRemoveAllCompositors a1 = + withHG3DClass a1 $ \a1' -> + cCocRemoveAllCompositors'_ a1' >>= \res -> + return () +{-# LINE 69 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} +; +cCocGetCompositor :: HG3DClass -> Int -> IO (HG3DClass) +cCocGetCompositor a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cCocGetCompositor'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 74 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} +; +cCocGetCompositor2 :: HG3DClass -> String -> IO (HG3DClass) +cCocGetCompositor2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cCocGetCompositor2'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 79 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} +; +cCocGetOriginalSceneCompositor :: HG3DClass -> IO (HG3DClass) +cCocGetOriginalSceneCompositor a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCocGetOriginalSceneCompositor'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 83 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} +; +cCocSetCompositorEnabled :: HG3DClass -> Int -> Bool -> IO () +cCocSetCompositorEnabled a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + let {a3' = fromBool a3} in + cCocSetCompositorEnabled'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 88 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} +; +cCocMarkDirty :: HG3DClass -> IO () +cCocMarkDirty a1 = + withHG3DClass a1 $ \a1' -> + cCocMarkDirty'_ a1' >>= \res -> + return () +{-# LINE 91 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} +; +cCocGetViewport :: HG3DClass -> IO (HG3DClass) +cCocGetViewport a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCocGetViewport'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 95 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} +; +cCocNotifyViewport :: HG3DClass -> HG3DClass -> IO () +cCocNotifyViewport a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cCocNotifyViewport'_ a1' a2' >>= \res -> + return () +{-# LINE 99 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} +; +cCocRemoveInstance :: HG3DClass -> HG3DClass -> IO () +cCocRemoveInstance a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cCocRemoveInstance'_ a1' a2' >>= \res -> + return () +{-# LINE 103 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} +; +cCocCompile :: HG3DClass -> IO () +cCocCompile a1 = + withHG3DClass a1 $ \a1' -> + cCocCompile'_ a1' >>= \res -> + return () +{-# LINE 106 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} +; +cCocGetPreviousInstance :: HG3DClass -> HG3DClass -> Bool -> IO (HG3DClass) +cCocGetPreviousInstance a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + let {a3' = fromBool a3} in + alloca $ \a4' -> + cCocGetPreviousInstance'_ a1' a2' a3' a4' >>= \res -> + peek a4'>>= \a4'' -> + return (a4'') +{-# LINE 112 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs.h cCoc_removeCompositor_c" + cCocRemoveCompositor'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs.h cCoc_getNumCompositors_c" + cCocGetNumCompositors'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs.h cCoc_removeAllCompositors_c" + cCocRemoveAllCompositors'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs.h cCoc_getCompositor_c" + cCocGetCompositor'_ :: ((HG3DClassPtr) -> (CInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs.h cCoc_getCompositor2_c" + cCocGetCompositor2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs.h cCoc__getOriginalSceneCompositor_c" + cCocGetOriginalSceneCompositor'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs.h cCoc_setCompositorEnabled_c" + cCocSetCompositorEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs.h cCoc__markDirty_c" + cCocMarkDirty'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs.h cCoc_getViewport_c" + cCocGetViewport'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs.h cCoc__notifyViewport_c" + cCocNotifyViewport'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs.h cCoc__removeInstance_c" + cCocRemoveInstance'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs.h cCoc__compile_c" + cCocCompile'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs.h cCoc_getPreviousInstance_c" + cCocGetPreviousInstance'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (CInt -> ((HG3DClassPtr) -> (IO ())))))
@@ -0,0 +1,208 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassCompositorInstance.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCompositorInstance.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassCompositorInstance where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} + + +cCoiSetEnabled :: HG3DClass -> Bool -> IO () +cCoiSetEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cCoiSetEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} +; +cCoiGetEnabled :: HG3DClass -> IO (Bool) +cCoiGetEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCoiGetEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} +; +cCoiGetTextureInstanceName :: HG3DClass -> String -> Int -> IO (String) +cCoiGetTextureInstanceName a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = fromIntegral a3} in + alloc64k $ \a4' -> + cCoiGetTextureInstanceName'_ a1' a2' a3' a4' >>= \res -> + peekCString a4'>>= \a4'' -> + return (a4'') +{-# LINE 72 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} +; +cCoiGetRenderTarget :: HG3DClass -> String -> IO (HG3DClass) +cCoiGetRenderTarget a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cCoiGetRenderTarget'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 77 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} +; +cCoiGetCompositor :: HG3DClass -> IO (HG3DClass) +cCoiGetCompositor a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCoiGetCompositor'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 81 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} +; +cCoiGetTechnique :: HG3DClass -> IO (HG3DClass) +cCoiGetTechnique a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCoiGetTechnique'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 85 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} +; +cCoiSetTechnique :: HG3DClass -> HG3DClass -> Bool -> IO () +cCoiSetTechnique a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + let {a3' = fromBool a3} in + cCoiSetTechnique'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 90 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} +; +cCoiSetScheme :: HG3DClass -> String -> Bool -> IO () +cCoiSetScheme a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = fromBool a3} in + cCoiSetScheme'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 95 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} +; +cCoiGetScheme :: HG3DClass -> IO (String) +cCoiGetScheme a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cCoiGetScheme'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 99 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} +; +cCoiNotifyResized :: HG3DClass -> IO () +cCoiNotifyResized a1 = + withHG3DClass a1 $ \a1' -> + cCoiNotifyResized'_ a1' >>= \res -> + return () +{-# LINE 102 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} +; +cCoiGetChain :: HG3DClass -> IO (HG3DClass) +cCoiGetChain a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCoiGetChain'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 106 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} +; +cCoiFireNotifyResourcesCreated :: HG3DClass -> Bool -> IO () +cCoiFireNotifyResourcesCreated a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cCoiFireNotifyResourcesCreated'_ a1' a2' >>= \res -> + return () +{-# LINE 110 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs.h cCoi_setEnabled_c" + cCoiSetEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs.h cCoi_getEnabled_c" + cCoiGetEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs.h cCoi_getTextureInstanceName_c" + cCoiGetTextureInstanceName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> ((Ptr CChar) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs.h cCoi_getRenderTarget_c" + cCoiGetRenderTarget'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs.h cCoi_getCompositor_c" + cCoiGetCompositor'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs.h cCoi_getTechnique_c" + cCoiGetTechnique'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs.h cCoi_setTechnique_c" + cCoiSetTechnique'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs.h cCoi_setScheme_c" + cCoiSetScheme'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs.h cCoi_getScheme_c" + cCoiGetScheme'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs.h cCoi_notifyResized_c" + cCoiNotifyResized'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs.h cCoi_getChain_c" + cCoiGetChain'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs.h cCoi__fireNotifyResourcesCreated_c" + cCoiFireNotifyResourcesCreated'_ :: ((HG3DClassPtr) -> (CInt -> (IO ())))
@@ -0,0 +1,195 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassCompositorManager.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCompositorManager.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassCompositorManager where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-} + + +cComInitialise :: HG3DClass -> IO () +cComInitialise a1 = + withHG3DClass a1 $ \a1' -> + cComInitialise'_ a1' >>= \res -> + return () +{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-} +; +cComGetCompositorChain :: HG3DClass -> HG3DClass -> IO (HG3DClass) +cComGetCompositorChain a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + alloca $ \a3' -> + cComGetCompositorChain'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-} +; +cComHasCompositorChain :: HG3DClass -> HG3DClass -> IO (Bool) +cComHasCompositorChain a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + alloca $ \a3' -> + cComHasCompositorChain'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-} +; +cComRemoveCompositorChain :: HG3DClass -> HG3DClass -> IO () +cComRemoveCompositorChain a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cComRemoveCompositorChain'_ a1' a2' >>= \res -> + return () +{-# LINE 75 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-} +; +cComAddCompositor :: HG3DClass -> HG3DClass -> String -> Int -> IO (HG3DClass) +cComAddCompositor a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + withCString a3 $ \a3' -> + let {a4' = fromIntegral a4} in + alloca $ \a5' -> + cComAddCompositor'_ a1' a2' a3' a4' a5' >>= \res -> + peek a5'>>= \a5'' -> + return (a5'') +{-# LINE 82 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-} +; +cComRemoveCompositor :: HG3DClass -> HG3DClass -> String -> IO () +cComRemoveCompositor a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + withCString a3 $ \a3' -> + cComRemoveCompositor'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 87 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-} +; +cComSetCompositorEnabled :: HG3DClass -> HG3DClass -> String -> Bool -> IO () +cComSetCompositorEnabled a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + withCString a3 $ \a3' -> + let {a4' = fromBool a4} in + cComSetCompositorEnabled'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 93 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-} +; +cComRemoveAll :: HG3DClass -> IO () +cComRemoveAll a1 = + withHG3DClass a1 $ \a1' -> + cComRemoveAll'_ a1' >>= \res -> + return () +{-# LINE 96 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-} +; +cComReconstructAllCompositorResources :: HG3DClass -> IO () +cComReconstructAllCompositorResources a1 = + withHG3DClass a1 $ \a1' -> + cComReconstructAllCompositorResources'_ a1' >>= \res -> + return () +{-# LINE 99 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-} +; +cComFreePooledTextures :: HG3DClass -> Bool -> IO () +cComFreePooledTextures a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cComFreePooledTextures'_ a1' a2' >>= \res -> + return () +{-# LINE 103 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-} +; +cComRelocateChain :: HG3DClass -> HG3DClass -> HG3DClass -> IO () +cComRelocateChain a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + withHG3DClass a3 $ \a3' -> + cComRelocateChain'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 108 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs.h cCom_initialise_c" + cComInitialise'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs.h cCom_getCompositorChain_c" + cComGetCompositorChain'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs.h cCom_hasCompositorChain_c" + cComHasCompositorChain'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs.h cCom_removeCompositorChain_c" + cComRemoveCompositorChain'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs.h cCom_addCompositor_c" + cComAddCompositor'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> ((HG3DClassPtr) -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs.h cCom_removeCompositor_c" + cComRemoveCompositor'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs.h cCom_setCompositorEnabled_c" + cComSetCompositorEnabled'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs.h cCom_removeAll_c" + cComRemoveAll'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs.h cCom__reconstructAllCompositorResources_c" + cComReconstructAllCompositorResources'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs.h cCom_freePooledTextures_c" + cComFreePooledTextures'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs.h cCom__relocateChain_c" + cComRelocateChain'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))))
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassCompositorPtr.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassCompositorPtr.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCompositor.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassCompositorPtr where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassCompositorPtr.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassCompositorPtr.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassCompositorPtr.chs" #-} + +
@@ -0,0 +1,134 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassConfigFile.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreConfigFile.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassConfigFile where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs" #-} + + +cCfLoad :: HG3DClass -> String -> String -> Bool -> IO () +cCfLoad a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + let {a4' = fromBool a4} in + cCfLoad'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 64 "HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs" #-} +; +cCfLoad2 :: HG3DClass -> String -> String -> String -> Bool -> IO () +cCfLoad2 a1 a2 a3 a4 a5 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + withCString a4 $ \a4' -> + let {a5' = fromBool a5} in + cCfLoad2'_ a1' a2' a3' a4' a5' >>= \res -> + return () +{-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs" #-} +; +cCfLoadDirect :: HG3DClass -> String -> String -> Bool -> IO () +cCfLoadDirect a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + let {a4' = fromBool a4} in + cCfLoadDirect'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 77 "HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs" #-} +; +cCfLoadFromResourceSystem :: HG3DClass -> String -> String -> String -> Bool -> IO () +cCfLoadFromResourceSystem a1 a2 a3 a4 a5 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + withCString a4 $ \a4' -> + let {a5' = fromBool a5} in + cCfLoadFromResourceSystem'_ a1' a2' a3' a4' a5' >>= \res -> + return () +{-# LINE 84 "HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs" #-} +; +cCfGetSetting :: HG3DClass -> String -> String -> String -> IO (String) +cCfGetSetting a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + withCString a4 $ \a4' -> + alloc64k $ \a5' -> + cCfGetSetting'_ a1' a2' a3' a4' a5' >>= \res -> + peekCString a5'>>= \a5'' -> + return (a5'') +{-# LINE 91 "HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs.h cCf_load_c" + cCfLoad'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (CInt -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs.h cCf_load2_c" + cCfLoad2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CChar) -> (CInt -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs.h cCf_loadDirect_c" + cCfLoadDirect'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (CInt -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs.h cCf_loadFromResourceSystem_c" + cCfLoadFromResourceSystem'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CChar) -> (CInt -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs.h cCf_getSetting_c" + cCfGetSetting'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO ()))))))
@@ -0,0 +1,178 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassControllerManager.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreControllerManager.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassControllerManager where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} + + +cCmClearControllers :: HG3DClass -> IO () +cCmClearControllers a1 = + withHG3DClass a1 $ \a1' -> + cCmClearControllers'_ a1' >>= \res -> + return () +{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} +; +cCmUpdateAllControllers :: HG3DClass -> IO () +cCmUpdateAllControllers a1 = + withHG3DClass a1 $ \a1' -> + cCmUpdateAllControllers'_ a1' >>= \res -> + return () +{-# LINE 64 "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} +; +cCmGetTimeFactor :: HG3DClass -> IO (Float) +cCmGetTimeFactor a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCmGetTimeFactor'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 68 "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} +; +cCmSetTimeFactor :: HG3DClass -> Float -> IO () +cCmSetTimeFactor a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cCmSetTimeFactor'_ a1' a2' >>= \res -> + return () +{-# LINE 72 "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} +; +cCmGetFrameDelay :: HG3DClass -> IO (Float) +cCmGetFrameDelay a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCmGetFrameDelay'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 76 "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} +; +cCmSetFrameDelay :: HG3DClass -> Float -> IO () +cCmSetFrameDelay a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cCmSetFrameDelay'_ a1' a2' >>= \res -> + return () +{-# LINE 80 "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} +; +cCmGetElapsedTime :: HG3DClass -> IO (Float) +cCmGetElapsedTime a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cCmGetElapsedTime'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 84 "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} +; +cCmSetElapsedTime :: HG3DClass -> Float -> IO () +cCmSetElapsedTime a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cCmSetElapsedTime'_ a1' a2' >>= \res -> + return () +{-# LINE 88 "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} +; +-- created constructor function from default constructor +cCmNew :: IO (HG3DClass) +cCmNew = + alloca $ \a1' -> + cCmNew'_ a1' >>= \res -> + peek a1'>>= \a1'' -> + return (a1'') +{-# LINE 92 "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} +; +-- created constructor function from default constructor +cCmGetSingletonPtr :: IO (HG3DClass) +cCmGetSingletonPtr = + alloca $ \a1' -> + cCmGetSingletonPtr'_ a1' >>= \res -> + peek a1'>>= \a1'' -> + return (a1'') +{-# LINE 96 "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs.h cCm_clearControllers_c" + cCmClearControllers'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs.h cCm_updateAllControllers_c" + cCmUpdateAllControllers'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs.h cCm_getTimeFactor_c" + cCmGetTimeFactor'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs.h cCm_setTimeFactor_c" + cCmSetTimeFactor'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs.h cCm_getFrameDelay_c" + cCmGetFrameDelay'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs.h cCm_setFrameDelay_c" + cCmSetFrameDelay'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs.h cCm_getElapsedTime_c" + cCmGetElapsedTime'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs.h cCm_setElapsedTime_c" + cCmSetElapsedTime'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs.h cCm_newControllerManager_c" + cCmNew'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs.h cCm_getSingletonPtr_c" + cCmGetSingletonPtr'_ :: ((HG3DClassPtr) -> (IO ()))
@@ -0,0 +1,223 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassDataStream.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassDataStream.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreDataStream.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassDataStream where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassDataStream.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassDataStream.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassDataStream.chs" #-} + + +cDsGetName :: HG3DClass -> IO (String) +cDsGetName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cDsGetName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassDataStream.chs" #-} +; +cDsGetAccessMode :: HG3DClass -> IO (Int) +cDsGetAccessMode a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cDsGetAccessMode'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassDataStream.chs" #-} +; +cDsIsReadable :: HG3DClass -> IO (Bool) +cDsIsReadable a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cDsIsReadable'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 70 "HGamer3D\\Bindings\\Ogre\\ClassDataStream.chs" #-} +; +cDsIsWriteable :: HG3DClass -> IO (Bool) +cDsIsWriteable a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cDsIsWriteable'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 74 "HGamer3D\\Bindings\\Ogre\\ClassDataStream.chs" #-} +; +cDsReadLine :: HG3DClass -> String -> Int -> String -> IO (Int) +cDsReadLine a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = fromIntegral a3} in + withCString a4 $ \a4' -> + alloca $ \a5' -> + cDsReadLine'_ a1' a2' a3' a4' a5' >>= \res -> + peekIntConv a5'>>= \a5'' -> + return (a5'') +{-# LINE 81 "HGamer3D\\Bindings\\Ogre\\ClassDataStream.chs" #-} +; +cDsGetLine :: HG3DClass -> Bool -> IO (String) +cDsGetLine a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + alloc64k $ \a3' -> + cDsGetLine'_ a1' a2' a3' >>= \res -> + peekCString a3'>>= \a3'' -> + return (a3'') +{-# LINE 86 "HGamer3D\\Bindings\\Ogre\\ClassDataStream.chs" #-} +; +cDsGetAsString :: HG3DClass -> IO (String) +cDsGetAsString a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cDsGetAsString'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 90 "HGamer3D\\Bindings\\Ogre\\ClassDataStream.chs" #-} +; +cDsSkipLine :: HG3DClass -> String -> IO (Int) +cDsSkipLine a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cDsSkipLine'_ a1' a2' a3' >>= \res -> + peekIntConv a3'>>= \a3'' -> + return (a3'') +{-# LINE 95 "HGamer3D\\Bindings\\Ogre\\ClassDataStream.chs" #-} +; +cDsSeek :: HG3DClass -> Int -> IO () +cDsSeek a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cDsSeek'_ a1' a2' >>= \res -> + return () +{-# LINE 99 "HGamer3D\\Bindings\\Ogre\\ClassDataStream.chs" #-} +; +cDsTell :: HG3DClass -> IO (Int) +cDsTell a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cDsTell'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 103 "HGamer3D\\Bindings\\Ogre\\ClassDataStream.chs" #-} +; +cDsEof :: HG3DClass -> IO (Bool) +cDsEof a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cDsEof'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 107 "HGamer3D\\Bindings\\Ogre\\ClassDataStream.chs" #-} +; +cDsSize :: HG3DClass -> IO (Int) +cDsSize a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cDsSize'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 111 "HGamer3D\\Bindings\\Ogre\\ClassDataStream.chs" #-} +; +cDsClose :: HG3DClass -> IO () +cDsClose a1 = + withHG3DClass a1 $ \a1' -> + cDsClose'_ a1' >>= \res -> + return () +{-# LINE 114 "HGamer3D\\Bindings\\Ogre\\ClassDataStream.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassDataStream.chs.h cDs_getName_c" + cDsGetName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassDataStream.chs.h cDs_getAccessMode_c" + cDsGetAccessMode'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassDataStream.chs.h cDs_isReadable_c" + cDsIsReadable'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassDataStream.chs.h cDs_isWriteable_c" + cDsIsWriteable'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassDataStream.chs.h cDs_readLine_c" + cDsReadLine'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassDataStream.chs.h cDs_getLine_c" + cDsGetLine'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CChar) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassDataStream.chs.h cDs_getAsString_c" + cDsGetAsString'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassDataStream.chs.h cDs_skipLine_c" + cDsSkipLine'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassDataStream.chs.h cDs_seek_c" + cDsSeek'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassDataStream.chs.h cDs_tell_c" + cDsTell'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassDataStream.chs.h cDs_eof_c" + cDsEof'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassDataStream.chs.h cDs_size_c" + cDsSize'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassDataStream.chs.h cDs_close_c" + cDsClose'_ :: ((HG3DClassPtr) -> (IO ()))
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassDefaultAxisAlignedBoxSceneQuery.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassDefaultAxisAlignedBoxSceneQuery.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSceneManager.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassDefaultAxisAlignedBoxSceneQuery where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassDefaultAxisAlignedBoxSceneQuery.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassDefaultAxisAlignedBoxSceneQuery.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassDefaultAxisAlignedBoxSceneQuery.chs" #-} + +
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassDefaultPlaneBoundedVolumeListSceneQuery.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassDefaultPlaneBoundedVolumeListSceneQuery.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSceneManager.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassDefaultPlaneBoundedVolumeListSceneQuery where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassDefaultPlaneBoundedVolumeListSceneQuery.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassDefaultPlaneBoundedVolumeListSceneQuery.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassDefaultPlaneBoundedVolumeListSceneQuery.chs" #-} + +
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassDefaultRaySceneQuery.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassDefaultRaySceneQuery.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSceneManager.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassDefaultRaySceneQuery where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassDefaultRaySceneQuery.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassDefaultRaySceneQuery.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassDefaultRaySceneQuery.chs" #-} + +
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassDefaultSceneManager.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassDefaultSceneManager.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSceneManagerEnumerator.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassDefaultSceneManager where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassDefaultSceneManager.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassDefaultSceneManager.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassDefaultSceneManager.chs" #-} + +
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassDefaultSceneManagerFactory.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassDefaultSceneManagerFactory.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSceneManagerEnumerator.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassDefaultSceneManagerFactory where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassDefaultSceneManagerFactory.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassDefaultSceneManagerFactory.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassDefaultSceneManagerFactory.chs" #-} + +
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassDefaultShadowCameraSetup.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassDefaultShadowCameraSetup.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreShadowCameraSetup.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassDefaultShadowCameraSetup where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassDefaultShadowCameraSetup.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassDefaultShadowCameraSetup.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassDefaultShadowCameraSetup.chs" #-} + +
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassDefaultSphereSceneQuery.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassDefaultSphereSceneQuery.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSceneManager.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassDefaultSphereSceneQuery where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassDefaultSphereSceneQuery.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassDefaultSphereSceneQuery.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassDefaultSphereSceneQuery.chs" #-} + +
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassElement.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassElement.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBillboardChain.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassElement where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassElement.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassElement.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassElement.chs" #-} + +
@@ -0,0 +1,605 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassEntity.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreEntity.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassEntity where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +import HGamer3D.Bindings.Ogre.EnumVertexDataBindChoice +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} + + +cEGetSubEntity :: HG3DClass -> Int -> IO (HG3DClass) +cEGetSubEntity a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cEGetSubEntity'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 64 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cEGetSubEntity2 :: HG3DClass -> String -> IO (HG3DClass) +cEGetSubEntity2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cEGetSubEntity2'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 69 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cEGetNumSubEntities :: HG3DClass -> IO (Int) +cEGetNumSubEntities a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cEGetNumSubEntities'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 73 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cEClone :: HG3DClass -> String -> IO (HG3DClass) +cEClone a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cEClone'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 78 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cESetMaterialName :: HG3DClass -> String -> String -> IO () +cESetMaterialName a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + cESetMaterialName'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 83 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cENotifyCurrentCamera :: HG3DClass -> HG3DClass -> IO () +cENotifyCurrentCamera a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cENotifyCurrentCamera'_ a1' a2' >>= \res -> + return () +{-# LINE 87 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cEGetMovableType :: HG3DClass -> IO (String) +cEGetMovableType a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cEGetMovableType'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 91 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cEGetAnimationState :: HG3DClass -> String -> IO (HG3DClass) +cEGetAnimationState a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cEGetAnimationState'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 96 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cESetDisplaySkeleton :: HG3DClass -> Bool -> IO () +cESetDisplaySkeleton a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cESetDisplaySkeleton'_ a1' a2' >>= \res -> + return () +{-# LINE 100 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cEGetDisplaySkeleton :: HG3DClass -> IO (Bool) +cEGetDisplaySkeleton a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cEGetDisplaySkeleton'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 104 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cEGetManualLodLevel :: HG3DClass -> Int -> IO (HG3DClass) +cEGetManualLodLevel a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cEGetManualLodLevel'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 109 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cEGetNumManualLodLevels :: HG3DClass -> IO (Int) +cEGetNumManualLodLevels a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cEGetNumManualLodLevels'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 113 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cESetPolygonModeOverrideable :: HG3DClass -> Bool -> IO () +cESetPolygonModeOverrideable a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cESetPolygonModeOverrideable'_ a1' a2' >>= \res -> + return () +{-# LINE 117 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cEDetachObjectFromBone :: HG3DClass -> String -> IO (HG3DClass) +cEDetachObjectFromBone a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cEDetachObjectFromBone'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 122 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cEDetachObjectFromBone2 :: HG3DClass -> HG3DClass -> IO () +cEDetachObjectFromBone2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cEDetachObjectFromBone2'_ a1' a2' >>= \res -> + return () +{-# LINE 126 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cEDetachAllObjectsFromBone :: HG3DClass -> IO () +cEDetachAllObjectsFromBone a1 = + withHG3DClass a1 $ \a1' -> + cEDetachAllObjectsFromBone'_ a1' >>= \res -> + return () +{-# LINE 129 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cEGetBoundingRadius :: HG3DClass -> IO (Float) +cEGetBoundingRadius a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cEGetBoundingRadius'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 133 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cEHasEdgeList :: HG3DClass -> IO (Bool) +cEHasEdgeList a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cEHasEdgeList'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 137 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cEGetNumBoneMatrices :: HG3DClass -> IO (Int) +cEGetNumBoneMatrices a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cEGetNumBoneMatrices'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 141 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cEHasSkeleton :: HG3DClass -> IO (Bool) +cEHasSkeleton a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cEHasSkeleton'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 145 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cEGetSkeleton :: HG3DClass -> IO (HG3DClass) +cEGetSkeleton a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cEGetSkeleton'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 149 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cEIsHardwareAnimationEnabled :: HG3DClass -> IO (Bool) +cEIsHardwareAnimationEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cEIsHardwareAnimationEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 153 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cENotifyAttached :: HG3DClass -> HG3DClass -> Bool -> IO () +cENotifyAttached a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + let {a3' = fromBool a3} in + cENotifyAttached'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 158 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cEGetSoftwareAnimationRequests :: HG3DClass -> IO (Int) +cEGetSoftwareAnimationRequests a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cEGetSoftwareAnimationRequests'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 162 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cEGetSoftwareAnimationNormalsRequests :: HG3DClass -> IO (Int) +cEGetSoftwareAnimationNormalsRequests a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cEGetSoftwareAnimationNormalsRequests'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 166 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cEAddSoftwareAnimationRequest :: HG3DClass -> Bool -> IO () +cEAddSoftwareAnimationRequest a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cEAddSoftwareAnimationRequest'_ a1' a2' >>= \res -> + return () +{-# LINE 170 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cERemoveSoftwareAnimationRequest :: HG3DClass -> Bool -> IO () +cERemoveSoftwareAnimationRequest a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cERemoveSoftwareAnimationRequest'_ a1' a2' >>= \res -> + return () +{-# LINE 174 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cEShareSkeletonInstanceWith :: HG3DClass -> HG3DClass -> IO () +cEShareSkeletonInstanceWith a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cEShareSkeletonInstanceWith'_ a1' a2' >>= \res -> + return () +{-# LINE 178 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cEHasVertexAnimation :: HG3DClass -> IO (Bool) +cEHasVertexAnimation a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cEHasVertexAnimation'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 182 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cEStopSharingSkeletonInstance :: HG3DClass -> IO () +cEStopSharingSkeletonInstance a1 = + withHG3DClass a1 $ \a1' -> + cEStopSharingSkeletonInstance'_ a1' >>= \res -> + return () +{-# LINE 185 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cERefreshAvailableAnimationState :: HG3DClass -> IO () +cERefreshAvailableAnimationState a1 = + withHG3DClass a1 $ \a1' -> + cERefreshAvailableAnimationState'_ a1' >>= \res -> + return () +{-# LINE 188 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cEUpdateAnimation :: HG3DClass -> IO () +cEUpdateAnimation a1 = + withHG3DClass a1 $ \a1' -> + cEUpdateAnimation'_ a1' >>= \res -> + return () +{-# LINE 191 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cEIsAnimated :: HG3DClass -> IO (Bool) +cEIsAnimated a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cEIsAnimated'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 195 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cEIsSkeletonAnimated :: HG3DClass -> IO (Bool) +cEIsSkeletonAnimated a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cEIsSkeletonAnimated'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 199 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cEGetSkelAnimTempBufferInfo :: HG3DClass -> IO (HG3DClass) +cEGetSkelAnimTempBufferInfo a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cEGetSkelAnimTempBufferInfo'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 203 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cEGetVertexAnimTempBufferInfo :: HG3DClass -> IO (HG3DClass) +cEGetVertexAnimTempBufferInfo a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cEGetVertexAnimTempBufferInfo'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 207 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cEGetTypeFlags :: HG3DClass -> IO (Int) +cEGetTypeFlags a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cEGetTypeFlags'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 211 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cEChooseVertexDataForBinding :: HG3DClass -> Bool -> IO (EnumVertexDataBindChoice) +cEChooseVertexDataForBinding a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + alloca $ \a3' -> + cEChooseVertexDataForBinding'_ a1' a2' a3' >>= \res -> + peekEnumUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 216 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cEGetBuffersMarkedForAnimation :: HG3DClass -> IO (Bool) +cEGetBuffersMarkedForAnimation a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cEGetBuffersMarkedForAnimation'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 220 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cEMarkBuffersUsedForAnimation :: HG3DClass -> IO () +cEMarkBuffersUsedForAnimation a1 = + withHG3DClass a1 $ \a1' -> + cEMarkBuffersUsedForAnimation'_ a1' >>= \res -> + return () +{-# LINE 223 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cEIsInitialised :: HG3DClass -> IO (Bool) +cEIsInitialised a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cEIsInitialised'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 227 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cEInitialise :: HG3DClass -> Bool -> IO () +cEInitialise a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cEInitialise'_ a1' a2' >>= \res -> + return () +{-# LINE 231 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cEDeinitialise :: HG3DClass -> IO () +cEDeinitialise a1 = + withHG3DClass a1 $ \a1' -> + cEDeinitialise'_ a1' >>= \res -> + return () +{-# LINE 234 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cEGetMeshLodFactorTransformed :: HG3DClass -> IO (Float) +cEGetMeshLodFactorTransformed a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cEGetMeshLodFactorTransformed'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 238 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cESetSkipAnimationStateUpdate :: HG3DClass -> Bool -> IO () +cESetSkipAnimationStateUpdate a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cESetSkipAnimationStateUpdate'_ a1' a2' >>= \res -> + return () +{-# LINE 242 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; +cEGetSkipAnimationStateUpdate :: HG3DClass -> IO (Bool) +cEGetSkipAnimationStateUpdate a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cEGetSkipAnimationStateUpdate'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 246 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE_getSubEntity_c" + cEGetSubEntity'_ :: ((HG3DClassPtr) -> (CUInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE_getSubEntity2_c" + cEGetSubEntity2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE_getNumSubEntities_c" + cEGetNumSubEntities'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE_clone_c" + cEClone'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE_setMaterialName_c" + cESetMaterialName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE__notifyCurrentCamera_c" + cENotifyCurrentCamera'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE_getMovableType_c" + cEGetMovableType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE_getAnimationState_c" + cEGetAnimationState'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE_setDisplaySkeleton_c" + cESetDisplaySkeleton'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE_getDisplaySkeleton_c" + cEGetDisplaySkeleton'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE_getManualLodLevel_c" + cEGetManualLodLevel'_ :: ((HG3DClassPtr) -> (CInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE_getNumManualLodLevels_c" + cEGetNumManualLodLevels'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE_setPolygonModeOverrideable_c" + cESetPolygonModeOverrideable'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE_detachObjectFromBone_c" + cEDetachObjectFromBone'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE_detachObjectFromBone2_c" + cEDetachObjectFromBone2'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE_detachAllObjectsFromBone_c" + cEDetachAllObjectsFromBone'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE_getBoundingRadius_c" + cEGetBoundingRadius'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE_hasEdgeList_c" + cEHasEdgeList'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE__getNumBoneMatrices_c" + cEGetNumBoneMatrices'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE_hasSkeleton_c" + cEHasSkeleton'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE_getSkeleton_c" + cEGetSkeleton'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE_isHardwareAnimationEnabled_c" + cEIsHardwareAnimationEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE__notifyAttached_c" + cENotifyAttached'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE_getSoftwareAnimationRequests_c" + cEGetSoftwareAnimationRequests'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE_getSoftwareAnimationNormalsRequests_c" + cEGetSoftwareAnimationNormalsRequests'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE_addSoftwareAnimationRequest_c" + cEAddSoftwareAnimationRequest'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE_removeSoftwareAnimationRequest_c" + cERemoveSoftwareAnimationRequest'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE_shareSkeletonInstanceWith_c" + cEShareSkeletonInstanceWith'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE_hasVertexAnimation_c" + cEHasVertexAnimation'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE_stopSharingSkeletonInstance_c" + cEStopSharingSkeletonInstance'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE_refreshAvailableAnimationState_c" + cERefreshAvailableAnimationState'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE__updateAnimation_c" + cEUpdateAnimation'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE__isAnimated_c" + cEIsAnimated'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE__isSkeletonAnimated_c" + cEIsSkeletonAnimated'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE__getSkelAnimTempBufferInfo_c" + cEGetSkelAnimTempBufferInfo'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE__getVertexAnimTempBufferInfo_c" + cEGetVertexAnimTempBufferInfo'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE_getTypeFlags_c" + cEGetTypeFlags'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE_chooseVertexDataForBinding_c" + cEChooseVertexDataForBinding'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE__getBuffersMarkedForAnimation_c" + cEGetBuffersMarkedForAnimation'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE__markBuffersUsedForAnimation_c" + cEMarkBuffersUsedForAnimation'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE_isInitialised_c" + cEIsInitialised'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE__initialise_c" + cEInitialise'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE__deinitialise_c" + cEDeinitialise'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE__getMeshLodFactorTransformed_c" + cEGetMeshLodFactorTransformed'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE_setSkipAnimationStateUpdate_c" + cESetSkipAnimationStateUpdate'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE_getSkipAnimationStateUpdate_c" + cEGetSkipAnimationStateUpdate'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassEntityFactory.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassEntityFactory.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreEntity.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassEntityFactory where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassEntityFactory.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassEntityFactory.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassEntityFactory.chs" #-} + +
@@ -0,0 +1,137 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassException.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassException.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreException.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassException where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassException.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassException.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassException.chs" #-} + + +cExGetFullDescription :: HG3DClass -> IO (String) +cExGetFullDescription a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cExGetFullDescription'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassException.chs" #-} +; +cExGetNumber :: HG3DClass -> IO (Int) +cExGetNumber a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cExGetNumber'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassException.chs" #-} +; +cExGetSource :: HG3DClass -> IO (String) +cExGetSource a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cExGetSource'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 70 "HGamer3D\\Bindings\\Ogre\\ClassException.chs" #-} +; +cExGetFile :: HG3DClass -> IO (String) +cExGetFile a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cExGetFile'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 74 "HGamer3D\\Bindings\\Ogre\\ClassException.chs" #-} +; +cExGetDescription :: HG3DClass -> IO (String) +cExGetDescription a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cExGetDescription'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 78 "HGamer3D\\Bindings\\Ogre\\ClassException.chs" #-} +; +cExWhat :: HG3DClass -> IO (String) +cExWhat a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cExWhat'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 82 "HGamer3D\\Bindings\\Ogre\\ClassException.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassException.chs.h cEx_getFullDescription_c" + cExGetFullDescription'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassException.chs.h cEx_getNumber_c" + cExGetNumber'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassException.chs.h cEx_getSource_c" + cExGetSource'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassException.chs.h cEx_getFile_c" + cExGetFile'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassException.chs.h cEx_getDescription_c" + cExGetDescription'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassException.chs.h cEx_what_c" + cExWhat'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ())))
@@ -0,0 +1,110 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassFileHandleDataStream.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassFileHandleDataStream.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreDataStream.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassFileHandleDataStream where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassFileHandleDataStream.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassFileHandleDataStream.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassFileHandleDataStream.chs" #-} + + +cFhdsSeek :: HG3DClass -> Int -> IO () +cFhdsSeek a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cFhdsSeek'_ a1' a2' >>= \res -> + return () +{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassFileHandleDataStream.chs" #-} +; +cFhdsTell :: HG3DClass -> IO (Int) +cFhdsTell a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cFhdsTell'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassFileHandleDataStream.chs" #-} +; +cFhdsEof :: HG3DClass -> IO (Bool) +cFhdsEof a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cFhdsEof'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 70 "HGamer3D\\Bindings\\Ogre\\ClassFileHandleDataStream.chs" #-} +; +cFhdsClose :: HG3DClass -> IO () +cFhdsClose a1 = + withHG3DClass a1 $ \a1' -> + cFhdsClose'_ a1' >>= \res -> + return () +{-# LINE 73 "HGamer3D\\Bindings\\Ogre\\ClassFileHandleDataStream.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFileHandleDataStream.chs.h cFhds_seek_c" + cFhdsSeek'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFileHandleDataStream.chs.h cFhds_tell_c" + cFhdsTell'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFileHandleDataStream.chs.h cFhds_eof_c" + cFhdsEof'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFileHandleDataStream.chs.h cFhds_close_c" + cFhdsClose'_ :: ((HG3DClassPtr) -> (IO ()))
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassFileNotFoundException.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassFileNotFoundException.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreException.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassFileNotFoundException where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassFileNotFoundException.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassFileNotFoundException.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassFileNotFoundException.chs" #-} + +
@@ -0,0 +1,125 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassFileStreamDataStream.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassFileStreamDataStream.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreDataStream.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassFileStreamDataStream where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassFileStreamDataStream.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassFileStreamDataStream.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassFileStreamDataStream.chs" #-} + + +cFsdsReadLine :: HG3DClass -> String -> Int -> String -> IO (Int) +cFsdsReadLine a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = fromIntegral a3} in + withCString a4 $ \a4' -> + alloca $ \a5' -> + cFsdsReadLine'_ a1' a2' a3' a4' a5' >>= \res -> + peekIntConv a5'>>= \a5'' -> + return (a5'') +{-# LINE 65 "HGamer3D\\Bindings\\Ogre\\ClassFileStreamDataStream.chs" #-} +; +cFsdsSeek :: HG3DClass -> Int -> IO () +cFsdsSeek a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cFsdsSeek'_ a1' a2' >>= \res -> + return () +{-# LINE 69 "HGamer3D\\Bindings\\Ogre\\ClassFileStreamDataStream.chs" #-} +; +cFsdsTell :: HG3DClass -> IO (Int) +cFsdsTell a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cFsdsTell'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 73 "HGamer3D\\Bindings\\Ogre\\ClassFileStreamDataStream.chs" #-} +; +cFsdsEof :: HG3DClass -> IO (Bool) +cFsdsEof a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cFsdsEof'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 77 "HGamer3D\\Bindings\\Ogre\\ClassFileStreamDataStream.chs" #-} +; +cFsdsClose :: HG3DClass -> IO () +cFsdsClose a1 = + withHG3DClass a1 $ \a1' -> + cFsdsClose'_ a1' >>= \res -> + return () +{-# LINE 80 "HGamer3D\\Bindings\\Ogre\\ClassFileStreamDataStream.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFileStreamDataStream.chs.h cFsds_readLine_c" + cFsdsReadLine'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFileStreamDataStream.chs.h cFsds_seek_c" + cFsdsSeek'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFileStreamDataStream.chs.h cFsds_tell_c" + cFsdsTell'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFileStreamDataStream.chs.h cFsds_eof_c" + cFsdsEof'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFileStreamDataStream.chs.h cFsds_close_c" + cFsdsClose'_ :: ((HG3DClassPtr) -> (IO ()))
@@ -0,0 +1,511 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassFrustum.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreFrustum.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassFrustum where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +import HGamer3D.Bindings.Ogre.TypeRadian +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +import HGamer3D.Bindings.Ogre.TypeVector2 +{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +import HGamer3D.Bindings.Ogre.TypeVector3 +{-# LINE 59 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +import HGamer3D.Bindings.Ogre.EnumFrustumPlane +{-# LINE 60 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +import HGamer3D.Bindings.Ogre.EnumProjectionType +{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +import HGamer3D.Bindings.Ogre.TypeQuaternion +{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +import HGamer3D.Bindings.Ogre.EnumOrientationMode +{-# LINE 63 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + + +cFSetFOVy :: HG3DClass -> Radian -> IO () +cFSetFOVy a1 a2 = + withHG3DClass a1 $ \a1' -> + withRadian a2 $ \a2' -> + cFSetFOVy'_ a1' a2' >>= \res -> + return () +{-# LINE 69 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +; +cFGetFOVy :: HG3DClass -> IO (Radian) +cFGetFOVy a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cFGetFOVy'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 73 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +; +cFSetNearClipDistance :: HG3DClass -> Float -> IO () +cFSetNearClipDistance a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cFSetNearClipDistance'_ a1' a2' >>= \res -> + return () +{-# LINE 77 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +; +cFGetNearClipDistance :: HG3DClass -> IO (Float) +cFGetNearClipDistance a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cFGetNearClipDistance'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 81 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +; +cFSetFarClipDistance :: HG3DClass -> Float -> IO () +cFSetFarClipDistance a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cFSetFarClipDistance'_ a1' a2' >>= \res -> + return () +{-# LINE 85 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +; +cFGetFarClipDistance :: HG3DClass -> IO (Float) +cFGetFarClipDistance a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cFGetFarClipDistance'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 89 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +; +cFSetAspectRatio :: HG3DClass -> Float -> IO () +cFSetAspectRatio a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cFSetAspectRatio'_ a1' a2' >>= \res -> + return () +{-# LINE 93 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +; +cFGetAspectRatio :: HG3DClass -> IO (Float) +cFGetAspectRatio a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cFGetAspectRatio'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 97 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +; +cFSetFrustumOffset :: HG3DClass -> Vector2 -> IO () +cFSetFrustumOffset a1 a2 = + withHG3DClass a1 $ \a1' -> + withVector2 a2 $ \a2' -> + cFSetFrustumOffset'_ a1' a2' >>= \res -> + return () +{-# LINE 101 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +; +cFSetFrustumOffset2 :: HG3DClass -> Float -> Float -> IO () +cFSetFrustumOffset2 a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + cFSetFrustumOffset2'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 106 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +; +cFGetFrustumOffset :: HG3DClass -> IO (Vector2) +cFGetFrustumOffset a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cFGetFrustumOffset'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 110 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +; +cFSetFocalLength :: HG3DClass -> Float -> IO () +cFSetFocalLength a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cFSetFocalLength'_ a1' a2' >>= \res -> + return () +{-# LINE 114 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +; +cFGetFocalLength :: HG3DClass -> IO (Float) +cFGetFocalLength a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cFGetFocalLength'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 118 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +; +cFSetFrustumExtents :: HG3DClass -> Float -> Float -> Float -> Float -> IO () +cFSetFrustumExtents a1 a2 a3 a4 a5 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + let {a5' = realToFrac a5} in + cFSetFrustumExtents'_ a1' a2' a3' a4' a5' >>= \res -> + return () +{-# LINE 125 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +; +cFResetFrustumExtents :: HG3DClass -> IO () +cFResetFrustumExtents a1 = + withHG3DClass a1 $ \a1' -> + cFResetFrustumExtents'_ a1' >>= \res -> + return () +{-# LINE 128 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +; +cFIsCustomViewMatrixEnabled :: HG3DClass -> IO (Bool) +cFIsCustomViewMatrixEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cFIsCustomViewMatrixEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 132 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +; +cFIsCustomProjectionMatrixEnabled :: HG3DClass -> IO (Bool) +cFIsCustomProjectionMatrixEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cFIsCustomProjectionMatrixEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 136 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +; +cFIsVisible3 :: HG3DClass -> Vector3 -> IO (EnumFrustumPlane, Bool) +cFIsVisible3 a1 a2 = + withHG3DClass a1 $ \a1' -> + withVector3 a2 $ \a2' -> + alloca $ \a3' -> + alloca $ \a4' -> + cFIsVisible3'_ a1' a2' a3' a4' >>= \res -> + peekEnumUtil a3'>>= \a3'' -> + peekBoolUtil a4'>>= \a4'' -> + return (a3'', a4'') +{-# LINE 142 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +; +cFGetTypeFlags :: HG3DClass -> IO (Int) +cFGetTypeFlags a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cFGetTypeFlags'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 146 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +; +cFGetBoundingRadius :: HG3DClass -> IO (Float) +cFGetBoundingRadius a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cFGetBoundingRadius'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 150 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +; +cFGetMovableType :: HG3DClass -> IO (String) +cFGetMovableType a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cFGetMovableType'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 154 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +; +cFNotifyCurrentCamera :: HG3DClass -> HG3DClass -> IO () +cFNotifyCurrentCamera a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cFNotifyCurrentCamera'_ a1' a2' >>= \res -> + return () +{-# LINE 158 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +; +cFSetProjectionType :: HG3DClass -> EnumProjectionType -> IO () +cFSetProjectionType a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cFSetProjectionType'_ a1' a2' >>= \res -> + return () +{-# LINE 162 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +; +cFGetProjectionType :: HG3DClass -> IO (EnumProjectionType) +cFGetProjectionType a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cFGetProjectionType'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 166 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +; +cFSetOrthoWindow :: HG3DClass -> Float -> Float -> IO () +cFSetOrthoWindow a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + cFSetOrthoWindow'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 171 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +; +cFSetOrthoWindowHeight :: HG3DClass -> Float -> IO () +cFSetOrthoWindowHeight a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cFSetOrthoWindowHeight'_ a1' a2' >>= \res -> + return () +{-# LINE 175 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +; +cFSetOrthoWindowWidth :: HG3DClass -> Float -> IO () +cFSetOrthoWindowWidth a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cFSetOrthoWindowWidth'_ a1' a2' >>= \res -> + return () +{-# LINE 179 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +; +cFGetOrthoWindowHeight :: HG3DClass -> IO (Float) +cFGetOrthoWindowHeight a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cFGetOrthoWindowHeight'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 183 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +; +cFGetOrthoWindowWidth :: HG3DClass -> IO (Float) +cFGetOrthoWindowWidth a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cFGetOrthoWindowWidth'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 187 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +; +cFDisableReflection :: HG3DClass -> IO () +cFDisableReflection a1 = + withHG3DClass a1 $ \a1' -> + cFDisableReflection'_ a1' >>= \res -> + return () +{-# LINE 190 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +; +cFIsReflected :: HG3DClass -> IO (Bool) +cFIsReflected a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cFIsReflected'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 194 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +; +cFDisableCustomNearClipPlane :: HG3DClass -> IO () +cFDisableCustomNearClipPlane a1 = + withHG3DClass a1 $ \a1' -> + cFDisableCustomNearClipPlane'_ a1' >>= \res -> + return () +{-# LINE 197 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +; +cFIsCustomNearClipPlaneEnabled :: HG3DClass -> IO (Bool) +cFIsCustomNearClipPlaneEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cFIsCustomNearClipPlaneEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 201 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +; +cFGetPositionForViewUpdate :: HG3DClass -> IO (Vector3) +cFGetPositionForViewUpdate a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cFGetPositionForViewUpdate'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 205 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +; +cFGetOrientationForViewUpdate :: HG3DClass -> IO (Quaternion) +cFGetOrientationForViewUpdate a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cFGetOrientationForViewUpdate'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 209 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +; +cFSetOrientationMode :: HG3DClass -> EnumOrientationMode -> IO () +cFSetOrientationMode a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cFSetOrientationMode'_ a1' a2' >>= \res -> + return () +{-# LINE 213 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +; +cFGetOrientationMode :: HG3DClass -> IO (EnumOrientationMode) +cFGetOrientationMode a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cFGetOrientationMode'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 217 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_setFOVy_c" + cFSetFOVy'_ :: ((HG3DClassPtr) -> ((RadianPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_getFOVy_c" + cFGetFOVy'_ :: ((HG3DClassPtr) -> ((RadianPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_setNearClipDistance_c" + cFSetNearClipDistance'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_getNearClipDistance_c" + cFGetNearClipDistance'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_setFarClipDistance_c" + cFSetFarClipDistance'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_getFarClipDistance_c" + cFGetFarClipDistance'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_setAspectRatio_c" + cFSetAspectRatio'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_getAspectRatio_c" + cFGetAspectRatio'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_setFrustumOffset_c" + cFSetFrustumOffset'_ :: ((HG3DClassPtr) -> ((Vector2Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_setFrustumOffset2_c" + cFSetFrustumOffset2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_getFrustumOffset_c" + cFGetFrustumOffset'_ :: ((HG3DClassPtr) -> ((Vector2Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_setFocalLength_c" + cFSetFocalLength'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_getFocalLength_c" + cFGetFocalLength'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_setFrustumExtents_c" + cFSetFrustumExtents'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (CFloat -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_resetFrustumExtents_c" + cFResetFrustumExtents'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_isCustomViewMatrixEnabled_c" + cFIsCustomViewMatrixEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_isCustomProjectionMatrixEnabled_c" + cFIsCustomProjectionMatrixEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_isVisible3_c" + cFIsVisible3'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> ((Ptr CInt) -> ((Ptr CInt) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_getTypeFlags_c" + cFGetTypeFlags'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_getBoundingRadius_c" + cFGetBoundingRadius'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_getMovableType_c" + cFGetMovableType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF__notifyCurrentCamera_c" + cFNotifyCurrentCamera'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_setProjectionType_c" + cFSetProjectionType'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_getProjectionType_c" + cFGetProjectionType'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_setOrthoWindow_c" + cFSetOrthoWindow'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_setOrthoWindowHeight_c" + cFSetOrthoWindowHeight'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_setOrthoWindowWidth_c" + cFSetOrthoWindowWidth'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_getOrthoWindowHeight_c" + cFGetOrthoWindowHeight'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_getOrthoWindowWidth_c" + cFGetOrthoWindowWidth'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_disableReflection_c" + cFDisableReflection'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_isReflected_c" + cFIsReflected'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_disableCustomNearClipPlane_c" + cFDisableCustomNearClipPlane'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_isCustomNearClipPlaneEnabled_c" + cFIsCustomNearClipPlaneEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_getPositionForViewUpdate_c" + cFGetPositionForViewUpdate'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_getOrientationForViewUpdate_c" + cFGetOrientationForViewUpdate'_ :: ((HG3DClassPtr) -> ((QuaternionPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_setOrientationMode_c" + cFSetOrientationMode'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_getOrientationMode_c" + cFGetOrientationMode'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
@@ -0,0 +1,76 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassGeometryBucket.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassGeometryBucket.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreStaticGeometry.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassGeometryBucket where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassGeometryBucket.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassGeometryBucket.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassGeometryBucket.chs" #-} + + +cGbBuild :: HG3DClass -> Bool -> IO () +cGbBuild a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cGbBuild'_ a1' a2' >>= \res -> + return () +{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassGeometryBucket.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGeometryBucket.chs.h cGb_build_c" + cGbBuild'_ :: ((HG3DClassPtr) -> (CInt -> (IO ())))
@@ -0,0 +1,392 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassGpuProgram.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreGpuProgram.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassGpuProgram where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} +import HGamer3D.Bindings.Ogre.EnumGpuProgramType +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} + + +cGpSetSourceFile :: HG3DClass -> String -> IO () +cGpSetSourceFile a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cGpSetSourceFile'_ a1' a2' >>= \res -> + return () +{-# LINE 63 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} +; +cGpSetSource :: HG3DClass -> String -> IO () +cGpSetSource a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cGpSetSource'_ a1' a2' >>= \res -> + return () +{-# LINE 67 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} +; +cGpGetSyntaxCode :: HG3DClass -> IO (String) +cGpGetSyntaxCode a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cGpGetSyntaxCode'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} +; +cGpSetSyntaxCode :: HG3DClass -> String -> IO () +cGpSetSyntaxCode a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cGpSetSyntaxCode'_ a1' a2' >>= \res -> + return () +{-# LINE 75 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} +; +cGpGetSourceFile :: HG3DClass -> IO (String) +cGpGetSourceFile a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cGpGetSourceFile'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 79 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} +; +cGpGetSource :: HG3DClass -> IO (String) +cGpGetSource a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cGpGetSource'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 83 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} +; +cGpSetType :: HG3DClass -> EnumGpuProgramType -> IO () +cGpSetType a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cGpSetType'_ a1' a2' >>= \res -> + return () +{-# LINE 87 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} +; +cGpGetType :: HG3DClass -> IO (EnumGpuProgramType) +cGpGetType a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cGpGetType'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 91 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} +; +cGpGetBindingDelegate :: HG3DClass -> IO (HG3DClass) +cGpGetBindingDelegate a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cGpGetBindingDelegate'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 95 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} +; +cGpIsSupported :: HG3DClass -> IO (Bool) +cGpIsSupported a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cGpIsSupported'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 99 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} +; +cGpSetSkeletalAnimationIncluded :: HG3DClass -> Bool -> IO () +cGpSetSkeletalAnimationIncluded a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cGpSetSkeletalAnimationIncluded'_ a1' a2' >>= \res -> + return () +{-# LINE 103 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} +; +cGpIsSkeletalAnimationIncluded :: HG3DClass -> IO (Bool) +cGpIsSkeletalAnimationIncluded a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cGpIsSkeletalAnimationIncluded'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 107 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} +; +cGpSetMorphAnimationIncluded :: HG3DClass -> Bool -> IO () +cGpSetMorphAnimationIncluded a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cGpSetMorphAnimationIncluded'_ a1' a2' >>= \res -> + return () +{-# LINE 111 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} +; +cGpIsMorphAnimationIncluded :: HG3DClass -> IO (Bool) +cGpIsMorphAnimationIncluded a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cGpIsMorphAnimationIncluded'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 115 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} +; +cGpIsPoseAnimationIncluded :: HG3DClass -> IO (Bool) +cGpIsPoseAnimationIncluded a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cGpIsPoseAnimationIncluded'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 119 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} +; +cGpSetVertexTextureFetchRequired :: HG3DClass -> Bool -> IO () +cGpSetVertexTextureFetchRequired a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cGpSetVertexTextureFetchRequired'_ a1' a2' >>= \res -> + return () +{-# LINE 123 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} +; +cGpIsVertexTextureFetchRequired :: HG3DClass -> IO (Bool) +cGpIsVertexTextureFetchRequired a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cGpIsVertexTextureFetchRequired'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 127 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} +; +cGpSetAdjacencyInfoRequired :: HG3DClass -> Bool -> IO () +cGpSetAdjacencyInfoRequired a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cGpSetAdjacencyInfoRequired'_ a1' a2' >>= \res -> + return () +{-# LINE 131 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} +; +cGpIsAdjacencyInfoRequired :: HG3DClass -> IO (Bool) +cGpIsAdjacencyInfoRequired a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cGpIsAdjacencyInfoRequired'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 135 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} +; +cGpHasDefaultParameters :: HG3DClass -> IO (Bool) +cGpHasDefaultParameters a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cGpHasDefaultParameters'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 139 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} +; +cGpGetPassSurfaceAndLightStates :: HG3DClass -> IO (Bool) +cGpGetPassSurfaceAndLightStates a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cGpGetPassSurfaceAndLightStates'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 143 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} +; +cGpGetPassFogStates :: HG3DClass -> IO (Bool) +cGpGetPassFogStates a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cGpGetPassFogStates'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 147 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} +; +cGpGetPassTransformStates :: HG3DClass -> IO (Bool) +cGpGetPassTransformStates a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cGpGetPassTransformStates'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 151 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} +; +cGpGetLanguage :: HG3DClass -> IO (String) +cGpGetLanguage a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cGpGetLanguage'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 155 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} +; +cGpHasCompileError :: HG3DClass -> IO (Bool) +cGpHasCompileError a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cGpHasCompileError'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 159 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} +; +cGpResetCompileError :: HG3DClass -> IO () +cGpResetCompileError a1 = + withHG3DClass a1 $ \a1' -> + cGpResetCompileError'_ a1' >>= \res -> + return () +{-# LINE 162 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} +; +cGpSetManualNamedConstantsFile :: HG3DClass -> String -> IO () +cGpSetManualNamedConstantsFile a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cGpSetManualNamedConstantsFile'_ a1' a2' >>= \res -> + return () +{-# LINE 166 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} +; +cGpGetManualNamedConstantsFile :: HG3DClass -> IO (String) +cGpGetManualNamedConstantsFile a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cGpGetManualNamedConstantsFile'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 170 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_setSourceFile_c" + cGpSetSourceFile'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_setSource_c" + cGpSetSource'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_getSyntaxCode_c" + cGpGetSyntaxCode'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_setSyntaxCode_c" + cGpSetSyntaxCode'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_getSourceFile_c" + cGpGetSourceFile'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_getSource_c" + cGpGetSource'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_setType_c" + cGpSetType'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_getType_c" + cGpGetType'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp__getBindingDelegate_c" + cGpGetBindingDelegate'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_isSupported_c" + cGpIsSupported'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_setSkeletalAnimationIncluded_c" + cGpSetSkeletalAnimationIncluded'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_isSkeletalAnimationIncluded_c" + cGpIsSkeletalAnimationIncluded'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_setMorphAnimationIncluded_c" + cGpSetMorphAnimationIncluded'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_isMorphAnimationIncluded_c" + cGpIsMorphAnimationIncluded'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_isPoseAnimationIncluded_c" + cGpIsPoseAnimationIncluded'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_setVertexTextureFetchRequired_c" + cGpSetVertexTextureFetchRequired'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_isVertexTextureFetchRequired_c" + cGpIsVertexTextureFetchRequired'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_setAdjacencyInfoRequired_c" + cGpSetAdjacencyInfoRequired'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_isAdjacencyInfoRequired_c" + cGpIsAdjacencyInfoRequired'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_hasDefaultParameters_c" + cGpHasDefaultParameters'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_getPassSurfaceAndLightStates_c" + cGpGetPassSurfaceAndLightStates'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_getPassFogStates_c" + cGpGetPassFogStates'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_getPassTransformStates_c" + cGpGetPassTransformStates'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_getLanguage_c" + cGpGetLanguage'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_hasCompileError_c" + cGpHasCompileError'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_resetCompileError_c" + cGpResetCompileError'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_setManualNamedConstantsFile_c" + cGpSetManualNamedConstantsFile'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_getManualNamedConstantsFile_c" + cGpGetManualNamedConstantsFile'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ())))
@@ -0,0 +1,78 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassGpuProgramManager.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreGpuProgramManager.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassGpuProgramManager where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs" #-} + + +cGpmIsSyntaxSupported :: HG3DClass -> String -> IO (Bool) +cGpmIsSyntaxSupported a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cGpmIsSyntaxSupported'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 63 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs.h cGpm_isSyntaxSupported_c" + cGpmIsSyntaxSupported'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ()))))
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramPtr.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassGpuProgramPtr.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreGpuProgram.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassGpuProgramPtr where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramPtr.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramPtr.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramPtr.chs" #-} + +
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassHardwareBufferLicensee.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassHardwareBufferLicensee.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreHardwareBufferManager.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassHardwareBufferLicensee where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassHardwareBufferLicensee.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassHardwareBufferLicensee.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassHardwareBufferLicensee.chs" #-} + +
@@ -0,0 +1,97 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassHardwareBufferManager.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassHardwareBufferManager.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreHardwareBufferManager.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassHardwareBufferManager where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassHardwareBufferManager.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassHardwareBufferManager.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassHardwareBufferManager.chs" #-} + + +cHbmFreeUnusedBufferCopies :: HG3DClass -> IO () +cHbmFreeUnusedBufferCopies a1 = + withHG3DClass a1 $ \a1' -> + cHbmFreeUnusedBufferCopies'_ a1' >>= \res -> + return () +{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassHardwareBufferManager.chs" #-} +; +cHbmReleaseBufferCopies :: HG3DClass -> Bool -> IO () +cHbmReleaseBufferCopies a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cHbmReleaseBufferCopies'_ a1' a2' >>= \res -> + return () +{-# LINE 65 "HGamer3D\\Bindings\\Ogre\\ClassHardwareBufferManager.chs" #-} +; +cHbmNotifyIndexBufferDestroyed :: HG3DClass -> HG3DClass -> IO () +cHbmNotifyIndexBufferDestroyed a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cHbmNotifyIndexBufferDestroyed'_ a1' a2' >>= \res -> + return () +{-# LINE 69 "HGamer3D\\Bindings\\Ogre\\ClassHardwareBufferManager.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassHardwareBufferManager.chs.h cHbm__freeUnusedBufferCopies_c" + cHbmFreeUnusedBufferCopies'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassHardwareBufferManager.chs.h cHbm__releaseBufferCopies_c" + cHbmReleaseBufferCopies'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassHardwareBufferManager.chs.h cHbm__notifyIndexBufferDestroyed_c" + cHbmNotifyIndexBufferDestroyed'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
@@ -0,0 +1,97 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassHardwareBufferManagerBase.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassHardwareBufferManagerBase.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreHardwareBufferManager.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassHardwareBufferManagerBase where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassHardwareBufferManagerBase.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassHardwareBufferManagerBase.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassHardwareBufferManagerBase.chs" #-} + + +cHbmbFreeUnusedBufferCopies :: HG3DClass -> IO () +cHbmbFreeUnusedBufferCopies a1 = + withHG3DClass a1 $ \a1' -> + cHbmbFreeUnusedBufferCopies'_ a1' >>= \res -> + return () +{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassHardwareBufferManagerBase.chs" #-} +; +cHbmbReleaseBufferCopies :: HG3DClass -> Bool -> IO () +cHbmbReleaseBufferCopies a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cHbmbReleaseBufferCopies'_ a1' a2' >>= \res -> + return () +{-# LINE 65 "HGamer3D\\Bindings\\Ogre\\ClassHardwareBufferManagerBase.chs" #-} +; +cHbmbNotifyIndexBufferDestroyed :: HG3DClass -> HG3DClass -> IO () +cHbmbNotifyIndexBufferDestroyed a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cHbmbNotifyIndexBufferDestroyed'_ a1' a2' >>= \res -> + return () +{-# LINE 69 "HGamer3D\\Bindings\\Ogre\\ClassHardwareBufferManagerBase.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassHardwareBufferManagerBase.chs.h cHbmb__freeUnusedBufferCopies_c" + cHbmbFreeUnusedBufferCopies'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassHardwareBufferManagerBase.chs.h cHbmb__releaseBufferCopies_c" + cHbmbReleaseBufferCopies'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassHardwareBufferManagerBase.chs.h cHbmb__notifyIndexBufferDestroyed_c" + cHbmbNotifyIndexBufferDestroyed'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
@@ -0,0 +1,115 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassHardwareIndexBuffer.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassHardwareIndexBuffer.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreHardwareIndexBuffer.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassHardwareIndexBuffer where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassHardwareIndexBuffer.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassHardwareIndexBuffer.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassHardwareIndexBuffer.chs" #-} +import HGamer3D.Bindings.Ogre.EnumIndexType +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassHardwareIndexBuffer.chs" #-} + + +cHibGetManager :: HG3DClass -> IO (HG3DClass) +cHibGetManager a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cHibGetManager'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 63 "HGamer3D\\Bindings\\Ogre\\ClassHardwareIndexBuffer.chs" #-} +; +cHibGetType :: HG3DClass -> IO (EnumIndexType) +cHibGetType a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cHibGetType'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 67 "HGamer3D\\Bindings\\Ogre\\ClassHardwareIndexBuffer.chs" #-} +; +cHibGetNumIndexes :: HG3DClass -> IO (Int) +cHibGetNumIndexes a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cHibGetNumIndexes'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassHardwareIndexBuffer.chs" #-} +; +cHibGetIndexSize :: HG3DClass -> IO (Int) +cHibGetIndexSize a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cHibGetIndexSize'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 75 "HGamer3D\\Bindings\\Ogre\\ClassHardwareIndexBuffer.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassHardwareIndexBuffer.chs.h cHib_getManager_c" + cHibGetManager'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassHardwareIndexBuffer.chs.h cHib_getType_c" + cHibGetType'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassHardwareIndexBuffer.chs.h cHib_getNumIndexes_c" + cHibGetNumIndexes'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassHardwareIndexBuffer.chs.h cHib_getIndexSize_c" + cHibGetIndexSize'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassHardwareIndexBufferSharedPtr.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassHardwareIndexBufferSharedPtr.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreHardwareIndexBuffer.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassHardwareIndexBufferSharedPtr where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassHardwareIndexBufferSharedPtr.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassHardwareIndexBufferSharedPtr.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassHardwareIndexBufferSharedPtr.chs" #-} + +
@@ -0,0 +1,123 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassHardwareOcclusionQuery.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassHardwareOcclusionQuery.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreHardwareOcclusionQuery.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassHardwareOcclusionQuery where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassHardwareOcclusionQuery.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassHardwareOcclusionQuery.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassHardwareOcclusionQuery.chs" #-} + + +cHoqBeginOcclusionQuery :: HG3DClass -> IO () +cHoqBeginOcclusionQuery a1 = + withHG3DClass a1 $ \a1' -> + cHoqBeginOcclusionQuery'_ a1' >>= \res -> + return () +{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassHardwareOcclusionQuery.chs" #-} +; +cHoqEndOcclusionQuery :: HG3DClass -> IO () +cHoqEndOcclusionQuery a1 = + withHG3DClass a1 $ \a1' -> + cHoqEndOcclusionQuery'_ a1' >>= \res -> + return () +{-# LINE 64 "HGamer3D\\Bindings\\Ogre\\ClassHardwareOcclusionQuery.chs" #-} +; +cHoqPullOcclusionQuery :: HG3DClass -> IO (Int, Bool) +cHoqPullOcclusionQuery a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + alloca $ \a3' -> + cHoqPullOcclusionQuery'_ a1' a2' a3' >>= \res -> + peekIntConv a2'>>= \a2'' -> + peekBoolUtil a3'>>= \a3'' -> + return (a2'', a3'') +{-# LINE 69 "HGamer3D\\Bindings\\Ogre\\ClassHardwareOcclusionQuery.chs" #-} +; +cHoqGetLastQuerysPixelcount :: HG3DClass -> IO (Int) +cHoqGetLastQuerysPixelcount a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cHoqGetLastQuerysPixelcount'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 73 "HGamer3D\\Bindings\\Ogre\\ClassHardwareOcclusionQuery.chs" #-} +; +cHoqIsStillOutstanding :: HG3DClass -> IO (Bool) +cHoqIsStillOutstanding a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cHoqIsStillOutstanding'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 77 "HGamer3D\\Bindings\\Ogre\\ClassHardwareOcclusionQuery.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassHardwareOcclusionQuery.chs.h cHoq_beginOcclusionQuery_c" + cHoqBeginOcclusionQuery'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassHardwareOcclusionQuery.chs.h cHoq_endOcclusionQuery_c" + cHoqEndOcclusionQuery'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassHardwareOcclusionQuery.chs.h cHoq_pullOcclusionQuery_c" + cHoqPullOcclusionQuery'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassHardwareOcclusionQuery.chs.h cHoq_getLastQuerysPixelcount_c" + cHoqGetLastQuerysPixelcount'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassHardwareOcclusionQuery.chs.h cHoq_isStillOutstanding_c" + cHoqIsStillOutstanding'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
@@ -0,0 +1,128 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassHardwarePixelBuffer.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassHardwarePixelBuffer.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreHardwarePixelBuffer.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassHardwarePixelBuffer where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassHardwarePixelBuffer.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassHardwarePixelBuffer.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassHardwarePixelBuffer.chs" #-} +import HGamer3D.Bindings.Ogre.EnumPixelFormat +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassHardwarePixelBuffer.chs" #-} + + +cHpbGetRenderTarget :: HG3DClass -> Int -> IO (HG3DClass) +cHpbGetRenderTarget a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cHpbGetRenderTarget'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 64 "HGamer3D\\Bindings\\Ogre\\ClassHardwarePixelBuffer.chs" #-} +; +cHpbGetWidth :: HG3DClass -> IO (Int) +cHpbGetWidth a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cHpbGetWidth'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 68 "HGamer3D\\Bindings\\Ogre\\ClassHardwarePixelBuffer.chs" #-} +; +cHpbGetHeight :: HG3DClass -> IO (Int) +cHpbGetHeight a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cHpbGetHeight'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 72 "HGamer3D\\Bindings\\Ogre\\ClassHardwarePixelBuffer.chs" #-} +; +cHpbGetDepth :: HG3DClass -> IO (Int) +cHpbGetDepth a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cHpbGetDepth'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 76 "HGamer3D\\Bindings\\Ogre\\ClassHardwarePixelBuffer.chs" #-} +; +cHpbGetFormat :: HG3DClass -> IO (EnumPixelFormat) +cHpbGetFormat a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cHpbGetFormat'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 80 "HGamer3D\\Bindings\\Ogre\\ClassHardwarePixelBuffer.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassHardwarePixelBuffer.chs.h cHpb_getRenderTarget_c" + cHpbGetRenderTarget'_ :: ((HG3DClassPtr) -> (CInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassHardwarePixelBuffer.chs.h cHpb_getWidth_c" + cHpbGetWidth'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassHardwarePixelBuffer.chs.h cHpb_getHeight_c" + cHpbGetHeight'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassHardwarePixelBuffer.chs.h cHpb_getDepth_c" + cHpbGetDepth'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassHardwarePixelBuffer.chs.h cHpb_getFormat_c" + cHpbGetFormat'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassHardwarePixelBufferSharedPtr.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassHardwarePixelBufferSharedPtr.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreHardwarePixelBuffer.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassHardwarePixelBufferSharedPtr where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassHardwarePixelBufferSharedPtr.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassHardwarePixelBufferSharedPtr.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassHardwarePixelBufferSharedPtr.chs" #-} + +
@@ -0,0 +1,77 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassHighLevelGpuProgram.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassHighLevelGpuProgram.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreHighLevelGpuProgram.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassHighLevelGpuProgram where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassHighLevelGpuProgram.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassHighLevelGpuProgram.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassHighLevelGpuProgram.chs" #-} + + +cHlgpGetBindingDelegate :: HG3DClass -> IO (HG3DClass) +cHlgpGetBindingDelegate a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cHlgpGetBindingDelegate'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassHighLevelGpuProgram.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassHighLevelGpuProgram.chs.h cHlgp__getBindingDelegate_c" + cHlgpGetBindingDelegate'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
@@ -0,0 +1,77 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassHighLevelGpuProgramFactory.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassHighLevelGpuProgramFactory.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreHighLevelGpuProgramManager.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassHighLevelGpuProgramFactory where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassHighLevelGpuProgramFactory.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassHighLevelGpuProgramFactory.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassHighLevelGpuProgramFactory.chs" #-} + + +cHlgpfGetLanguage :: HG3DClass -> IO (String) +cHlgpfGetLanguage a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cHlgpfGetLanguage'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassHighLevelGpuProgramFactory.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassHighLevelGpuProgramFactory.chs.h cHlgpf_getLanguage_c" + cHlgpfGetLanguage'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ())))
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassHighLevelGpuProgramPtr.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassHighLevelGpuProgramPtr.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreHighLevelGpuProgram.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassHighLevelGpuProgramPtr where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassHighLevelGpuProgramPtr.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassHighLevelGpuProgramPtr.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassHighLevelGpuProgramPtr.chs" #-} + +
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassIOException.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassIOException.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreException.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassIOException where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassIOException.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassIOException.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassIOException.chs" #-} + +
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassInternalErrorException.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassInternalErrorException.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreException.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassInternalErrorException where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassInternalErrorException.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassInternalErrorException.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassInternalErrorException.chs" #-} + +
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassInvalidParametersException.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassInvalidParametersException.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreException.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassInvalidParametersException where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassInvalidParametersException.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassInvalidParametersException.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassInvalidParametersException.chs" #-} + +
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassInvalidStateException.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassInvalidStateException.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreException.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassInvalidStateException where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassInvalidStateException.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassInvalidStateException.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassInvalidStateException.chs" #-} + +
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassItemIdentityException.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassItemIdentityException.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreException.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassItemIdentityException where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassItemIdentityException.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassItemIdentityException.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassItemIdentityException.chs" #-} + +
@@ -0,0 +1,77 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassKeyFrame.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassKeyFrame.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreKeyFrame.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassKeyFrame where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassKeyFrame.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassKeyFrame.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassKeyFrame.chs" #-} + + +cKfGetTime :: HG3DClass -> IO (Float) +cKfGetTime a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cKfGetTime'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassKeyFrame.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassKeyFrame.chs.h cKf_getTime_c" + cKfGetTime'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ())))
@@ -0,0 +1,88 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassLODBucket.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassLODBucket.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreStaticGeometry.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassLODBucket where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassLODBucket.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassLODBucket.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassLODBucket.chs" #-} + + +cLodbGetLodValue :: HG3DClass -> IO (Float) +cLodbGetLodValue a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cLodbGetLodValue'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassLODBucket.chs" #-} +; +cLodbBuild :: HG3DClass -> Bool -> IO () +cLodbBuild a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cLodbBuild'_ a1' a2' >>= \res -> + return () +{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassLODBucket.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLODBucket.chs.h cLodb_getLodValue_c" + cLodbGetLodValue'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLODBucket.chs.h cLodb_build_c" + cLodbBuild'_ :: ((HG3DClassPtr) -> (CInt -> (IO ())))
@@ -0,0 +1,136 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassLiSPSMShadowCameraSetup.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassLiSPSMShadowCameraSetup.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreShadowCameraSetupLiSPSM.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassLiSPSMShadowCameraSetup where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassLiSPSMShadowCameraSetup.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassLiSPSMShadowCameraSetup.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassLiSPSMShadowCameraSetup.chs" #-} +import HGamer3D.Bindings.Ogre.TypeDegree +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassLiSPSMShadowCameraSetup.chs" #-} + + +cLspsmscsSetOptimalAdjustFactor :: HG3DClass -> Float -> IO () +cLspsmscsSetOptimalAdjustFactor a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cLspsmscsSetOptimalAdjustFactor'_ a1' a2' >>= \res -> + return () +{-# LINE 63 "HGamer3D\\Bindings\\Ogre\\ClassLiSPSMShadowCameraSetup.chs" #-} +; +cLspsmscsGetOptimalAdjustFactor :: HG3DClass -> IO (Float) +cLspsmscsGetOptimalAdjustFactor a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cLspsmscsGetOptimalAdjustFactor'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 67 "HGamer3D\\Bindings\\Ogre\\ClassLiSPSMShadowCameraSetup.chs" #-} +; +cLspsmscsSetUseSimpleOptimalAdjust :: HG3DClass -> Bool -> IO () +cLspsmscsSetUseSimpleOptimalAdjust a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cLspsmscsSetUseSimpleOptimalAdjust'_ a1' a2' >>= \res -> + return () +{-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassLiSPSMShadowCameraSetup.chs" #-} +; +cLspsmscsGetUseSimpleOptimalAdjust :: HG3DClass -> IO (Bool) +cLspsmscsGetUseSimpleOptimalAdjust a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cLspsmscsGetUseSimpleOptimalAdjust'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 75 "HGamer3D\\Bindings\\Ogre\\ClassLiSPSMShadowCameraSetup.chs" #-} +; +cLspsmscsSetCameraLightDirectionThreshold :: HG3DClass -> Degree -> IO () +cLspsmscsSetCameraLightDirectionThreshold a1 a2 = + withHG3DClass a1 $ \a1' -> + withDegree a2 $ \a2' -> + cLspsmscsSetCameraLightDirectionThreshold'_ a1' a2' >>= \res -> + return () +{-# LINE 79 "HGamer3D\\Bindings\\Ogre\\ClassLiSPSMShadowCameraSetup.chs" #-} +; +cLspsmscsGetCameraLightDirectionThreshold :: HG3DClass -> IO (Degree) +cLspsmscsGetCameraLightDirectionThreshold a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cLspsmscsGetCameraLightDirectionThreshold'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 83 "HGamer3D\\Bindings\\Ogre\\ClassLiSPSMShadowCameraSetup.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLiSPSMShadowCameraSetup.chs.h cLspsmscs_setOptimalAdjustFactor_c" + cLspsmscsSetOptimalAdjustFactor'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLiSPSMShadowCameraSetup.chs.h cLspsmscs_getOptimalAdjustFactor_c" + cLspsmscsGetOptimalAdjustFactor'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLiSPSMShadowCameraSetup.chs.h cLspsmscs_setUseSimpleOptimalAdjust_c" + cLspsmscsSetUseSimpleOptimalAdjust'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLiSPSMShadowCameraSetup.chs.h cLspsmscs_getUseSimpleOptimalAdjust_c" + cLspsmscsGetUseSimpleOptimalAdjust'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLiSPSMShadowCameraSetup.chs.h cLspsmscs_setCameraLightDirectionThreshold_c" + cLspsmscsSetCameraLightDirectionThreshold'_ :: ((HG3DClassPtr) -> ((DegreePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLiSPSMShadowCameraSetup.chs.h cLspsmscs_getCameraLightDirectionThreshold_c" + cLspsmscsGetCameraLightDirectionThreshold'_ :: ((HG3DClassPtr) -> ((DegreePtr) -> (IO ())))
@@ -0,0 +1,664 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassLight.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreLight.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassLight where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +import HGamer3D.Bindings.Ogre.TypeVector3 +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +import HGamer3D.Bindings.Ogre.EnumLightTypes +{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +import HGamer3D.Bindings.Ogre.TypeColourValue +{-# LINE 59 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +import HGamer3D.Bindings.Ogre.TypeRadian +{-# LINE 60 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +import HGamer3D.Bindings.Ogre.TypeVector4 +{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + + +cLCalcTempSquareDist :: HG3DClass -> Vector3 -> IO () +cLCalcTempSquareDist a1 a2 = + withHG3DClass a1 $ \a1' -> + withVector3 a2 $ \a2' -> + cLCalcTempSquareDist'_ a1' a2' >>= \res -> + return () +{-# LINE 67 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLSetType :: HG3DClass -> EnumLightTypes -> IO () +cLSetType a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cLSetType'_ a1' a2' >>= \res -> + return () +{-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLGetType :: HG3DClass -> IO (EnumLightTypes) +cLGetType a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cLGetType'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 75 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLSetDiffuseColour :: HG3DClass -> Float -> Float -> Float -> IO () +cLSetDiffuseColour a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + cLSetDiffuseColour'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 81 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLSetDiffuseColour2 :: HG3DClass -> ColourValue -> IO () +cLSetDiffuseColour2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withColourValue a2 $ \a2' -> + cLSetDiffuseColour2'_ a1' a2' >>= \res -> + return () +{-# LINE 85 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLGetDiffuseColour :: HG3DClass -> IO (ColourValue) +cLGetDiffuseColour a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cLGetDiffuseColour'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 89 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLSetSpecularColour :: HG3DClass -> Float -> Float -> Float -> IO () +cLSetSpecularColour a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + cLSetSpecularColour'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 95 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLSetSpecularColour2 :: HG3DClass -> ColourValue -> IO () +cLSetSpecularColour2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withColourValue a2 $ \a2' -> + cLSetSpecularColour2'_ a1' a2' >>= \res -> + return () +{-# LINE 99 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLGetSpecularColour :: HG3DClass -> IO (ColourValue) +cLGetSpecularColour a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cLGetSpecularColour'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 103 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLSetAttenuation :: HG3DClass -> Float -> Float -> Float -> Float -> IO () +cLSetAttenuation a1 a2 a3 a4 a5 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + let {a5' = realToFrac a5} in + cLSetAttenuation'_ a1' a2' a3' a4' a5' >>= \res -> + return () +{-# LINE 110 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLGetAttenuationRange :: HG3DClass -> IO (Float) +cLGetAttenuationRange a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cLGetAttenuationRange'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 114 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLGetAttenuationConstant :: HG3DClass -> IO (Float) +cLGetAttenuationConstant a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cLGetAttenuationConstant'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 118 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLGetAttenuationLinear :: HG3DClass -> IO (Float) +cLGetAttenuationLinear a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cLGetAttenuationLinear'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 122 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLGetAttenuationQuadric :: HG3DClass -> IO (Float) +cLGetAttenuationQuadric a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cLGetAttenuationQuadric'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 126 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLSetPosition :: HG3DClass -> Float -> Float -> Float -> IO () +cLSetPosition a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + cLSetPosition'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 132 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLSetPosition2 :: HG3DClass -> Vector3 -> IO () +cLSetPosition2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withVector3 a2 $ \a2' -> + cLSetPosition2'_ a1' a2' >>= \res -> + return () +{-# LINE 136 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLGetPosition :: HG3DClass -> IO (Vector3) +cLGetPosition a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cLGetPosition'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 140 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLSetDirection :: HG3DClass -> Float -> Float -> Float -> IO () +cLSetDirection a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + cLSetDirection'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 146 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLSetDirection2 :: HG3DClass -> Vector3 -> IO () +cLSetDirection2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withVector3 a2 $ \a2' -> + cLSetDirection2'_ a1' a2' >>= \res -> + return () +{-# LINE 150 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLGetDirection :: HG3DClass -> IO (Vector3) +cLGetDirection a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cLGetDirection'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 154 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLSetSpotlightRange :: HG3DClass -> Radian -> Radian -> Float -> IO () +cLSetSpotlightRange a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + withRadian a2 $ \a2' -> + withRadian a3 $ \a3' -> + let {a4' = realToFrac a4} in + cLSetSpotlightRange'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 160 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLGetSpotlightInnerAngle :: HG3DClass -> IO (Radian) +cLGetSpotlightInnerAngle a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cLGetSpotlightInnerAngle'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 164 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLGetSpotlightOuterAngle :: HG3DClass -> IO (Radian) +cLGetSpotlightOuterAngle a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cLGetSpotlightOuterAngle'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 168 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLGetSpotlightFalloff :: HG3DClass -> IO (Float) +cLGetSpotlightFalloff a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cLGetSpotlightFalloff'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 172 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLSetSpotlightInnerAngle :: HG3DClass -> Radian -> IO () +cLSetSpotlightInnerAngle a1 a2 = + withHG3DClass a1 $ \a1' -> + withRadian a2 $ \a2' -> + cLSetSpotlightInnerAngle'_ a1' a2' >>= \res -> + return () +{-# LINE 176 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLSetSpotlightOuterAngle :: HG3DClass -> Radian -> IO () +cLSetSpotlightOuterAngle a1 a2 = + withHG3DClass a1 $ \a1' -> + withRadian a2 $ \a2' -> + cLSetSpotlightOuterAngle'_ a1' a2' >>= \res -> + return () +{-# LINE 180 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLSetSpotlightFalloff :: HG3DClass -> Float -> IO () +cLSetSpotlightFalloff a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cLSetSpotlightFalloff'_ a1' a2' >>= \res -> + return () +{-# LINE 184 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLSetPowerScale :: HG3DClass -> Float -> IO () +cLSetPowerScale a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cLSetPowerScale'_ a1' a2' >>= \res -> + return () +{-# LINE 188 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLGetPowerScale :: HG3DClass -> IO (Float) +cLGetPowerScale a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cLGetPowerScale'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 192 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLNotifyAttached :: HG3DClass -> HG3DClass -> Bool -> IO () +cLNotifyAttached a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + let {a3' = fromBool a3} in + cLNotifyAttached'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 197 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLNotifyMoved :: HG3DClass -> IO () +cLNotifyMoved a1 = + withHG3DClass a1 $ \a1' -> + cLNotifyMoved'_ a1' >>= \res -> + return () +{-# LINE 200 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLGetMovableType :: HG3DClass -> IO (String) +cLGetMovableType a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cLGetMovableType'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 204 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLGetDerivedPosition :: HG3DClass -> Bool -> IO (Vector3) +cLGetDerivedPosition a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + alloca $ \a3' -> + cLGetDerivedPosition'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 209 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLGetDerivedDirection :: HG3DClass -> IO (Vector3) +cLGetDerivedDirection a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cLGetDerivedDirection'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 213 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLSetVisible :: HG3DClass -> Bool -> IO () +cLSetVisible a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cLSetVisible'_ a1' a2' >>= \res -> + return () +{-# LINE 217 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLGetBoundingRadius :: HG3DClass -> IO (Float) +cLGetBoundingRadius a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cLGetBoundingRadius'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 221 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLGetAs4DVector :: HG3DClass -> Bool -> IO (Vector4) +cLGetAs4DVector a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + alloca $ \a3' -> + cLGetAs4DVector'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 226 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLGetTypeFlags :: HG3DClass -> IO (Int) +cLGetTypeFlags a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cLGetTypeFlags'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 230 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLResetCustomShadowCameraSetup :: HG3DClass -> IO () +cLResetCustomShadowCameraSetup a1 = + withHG3DClass a1 $ \a1' -> + cLResetCustomShadowCameraSetup'_ a1' >>= \res -> + return () +{-# LINE 233 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLGetIndexInFrame :: HG3DClass -> IO (Int) +cLGetIndexInFrame a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cLGetIndexInFrame'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 237 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLSetShadowFarDistance :: HG3DClass -> Float -> IO () +cLSetShadowFarDistance a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cLSetShadowFarDistance'_ a1' a2' >>= \res -> + return () +{-# LINE 241 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLResetShadowFarDistance :: HG3DClass -> IO () +cLResetShadowFarDistance a1 = + withHG3DClass a1 $ \a1' -> + cLResetShadowFarDistance'_ a1' >>= \res -> + return () +{-# LINE 244 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLGetShadowFarDistance :: HG3DClass -> IO (Float) +cLGetShadowFarDistance a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cLGetShadowFarDistance'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 248 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLSetShadowNearClipDistance :: HG3DClass -> Float -> IO () +cLSetShadowNearClipDistance a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cLSetShadowNearClipDistance'_ a1' a2' >>= \res -> + return () +{-# LINE 252 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLGetShadowNearClipDistance :: HG3DClass -> IO (Float) +cLGetShadowNearClipDistance a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cLGetShadowNearClipDistance'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 256 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLSetShadowFarClipDistance :: HG3DClass -> Float -> IO () +cLSetShadowFarClipDistance a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cLSetShadowFarClipDistance'_ a1' a2' >>= \res -> + return () +{-# LINE 260 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLGetShadowFarClipDistance :: HG3DClass -> IO (Float) +cLGetShadowFarClipDistance a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cLGetShadowFarClipDistance'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 264 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLSetCameraRelative :: HG3DClass -> HG3DClass -> IO () +cLSetCameraRelative a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cLSetCameraRelative'_ a1' a2' >>= \res -> + return () +{-# LINE 268 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLSetCustomParameter :: HG3DClass -> Int -> Vector4 -> IO () +cLSetCustomParameter a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + withVector4 a3 $ \a3' -> + cLSetCustomParameter'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 273 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; +cLGetCustomParameter :: HG3DClass -> Int -> IO (Vector4) +cLGetCustomParameter a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cLGetCustomParameter'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 278 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL__calcTempSquareDist_c" + cLCalcTempSquareDist'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_setType_c" + cLSetType'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_getType_c" + cLGetType'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_setDiffuseColour_c" + cLSetDiffuseColour'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_setDiffuseColour2_c" + cLSetDiffuseColour2'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_getDiffuseColour_c" + cLGetDiffuseColour'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_setSpecularColour_c" + cLSetSpecularColour'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_setSpecularColour2_c" + cLSetSpecularColour2'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_getSpecularColour_c" + cLGetSpecularColour'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_setAttenuation_c" + cLSetAttenuation'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (CFloat -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_getAttenuationRange_c" + cLGetAttenuationRange'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_getAttenuationConstant_c" + cLGetAttenuationConstant'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_getAttenuationLinear_c" + cLGetAttenuationLinear'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_getAttenuationQuadric_c" + cLGetAttenuationQuadric'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_setPosition_c" + cLSetPosition'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_setPosition2_c" + cLSetPosition2'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_getPosition_c" + cLGetPosition'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_setDirection_c" + cLSetDirection'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_setDirection2_c" + cLSetDirection2'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_getDirection_c" + cLGetDirection'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_setSpotlightRange_c" + cLSetSpotlightRange'_ :: ((HG3DClassPtr) -> ((RadianPtr) -> ((RadianPtr) -> (CFloat -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_getSpotlightInnerAngle_c" + cLGetSpotlightInnerAngle'_ :: ((HG3DClassPtr) -> ((RadianPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_getSpotlightOuterAngle_c" + cLGetSpotlightOuterAngle'_ :: ((HG3DClassPtr) -> ((RadianPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_getSpotlightFalloff_c" + cLGetSpotlightFalloff'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_setSpotlightInnerAngle_c" + cLSetSpotlightInnerAngle'_ :: ((HG3DClassPtr) -> ((RadianPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_setSpotlightOuterAngle_c" + cLSetSpotlightOuterAngle'_ :: ((HG3DClassPtr) -> ((RadianPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_setSpotlightFalloff_c" + cLSetSpotlightFalloff'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_setPowerScale_c" + cLSetPowerScale'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_getPowerScale_c" + cLGetPowerScale'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL__notifyAttached_c" + cLNotifyAttached'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL__notifyMoved_c" + cLNotifyMoved'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_getMovableType_c" + cLGetMovableType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_getDerivedPosition_c" + cLGetDerivedPosition'_ :: ((HG3DClassPtr) -> (CInt -> ((Vector3Ptr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_getDerivedDirection_c" + cLGetDerivedDirection'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_setVisible_c" + cLSetVisible'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_getBoundingRadius_c" + cLGetBoundingRadius'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_getAs4DVector_c" + cLGetAs4DVector'_ :: ((HG3DClassPtr) -> (CInt -> ((Vector4Ptr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_getTypeFlags_c" + cLGetTypeFlags'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_resetCustomShadowCameraSetup_c" + cLResetCustomShadowCameraSetup'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL__getIndexInFrame_c" + cLGetIndexInFrame'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_setShadowFarDistance_c" + cLSetShadowFarDistance'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_resetShadowFarDistance_c" + cLResetShadowFarDistance'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_getShadowFarDistance_c" + cLGetShadowFarDistance'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_setShadowNearClipDistance_c" + cLSetShadowNearClipDistance'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_getShadowNearClipDistance_c" + cLGetShadowNearClipDistance'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_setShadowFarClipDistance_c" + cLSetShadowFarClipDistance'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_getShadowFarClipDistance_c" + cLGetShadowFarClipDistance'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL__setCameraRelative_c" + cLSetCameraRelative'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_setCustomParameter_c" + cLSetCustomParameter'_ :: ((HG3DClassPtr) -> (CUInt -> ((Vector4Ptr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_getCustomParameter_c" + cLGetCustomParameter'_ :: ((HG3DClassPtr) -> (CUInt -> ((Vector4Ptr) -> (IO ()))))
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassLightFactory.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassLightFactory.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreLight.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassLightFactory where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassLightFactory.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassLightFactory.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassLightFactory.chs" #-} + +
@@ -0,0 +1,117 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassLogManager.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreLogManager.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassLogManager where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-} +import HGamer3D.Bindings.Ogre.EnumLogMessageLevel +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-} +import HGamer3D.Bindings.Ogre.EnumLoggingLevel +{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-} + + +cLmDestroyLog :: HG3DClass -> String -> IO () +cLmDestroyLog a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cLmDestroyLog'_ a1' a2' >>= \res -> + return () +{-# LINE 64 "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-} +; +cLmLogMessage :: HG3DClass -> String -> EnumLogMessageLevel -> Bool -> IO () +cLmLogMessage a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = cIntFromEnum a3} in + let {a4' = fromBool a4} in + cLmLogMessage'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 70 "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-} +; +cLmLogMessage2 :: HG3DClass -> EnumLogMessageLevel -> String -> Bool -> IO () +cLmLogMessage2 a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + withCString a3 $ \a3' -> + let {a4' = fromBool a4} in + cLmLogMessage2'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 76 "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-} +; +cLmSetLogDetail :: HG3DClass -> EnumLoggingLevel -> IO () +cLmSetLogDetail a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cLmSetLogDetail'_ a1' a2' >>= \res -> + return () +{-# LINE 80 "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs.h cLm_destroyLog_c" + cLmDestroyLog'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs.h cLm_logMessage_c" + cLmLogMessage'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> (CInt -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs.h cLm_logMessage2_c" + cLmLogMessage2'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CChar) -> (CInt -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs.h cLm_setLogDetail_c" + cLmSetLogDetail'_ :: ((HG3DClassPtr) -> (CInt -> (IO ())))
@@ -0,0 +1,527 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassManualObject.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreManualObject.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassManualObject where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +import HGamer3D.Bindings.Ogre.EnumOperationType +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +import HGamer3D.Bindings.Ogre.TypeVector3 +{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +import HGamer3D.Bindings.Ogre.TypeVector2 +{-# LINE 59 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +import HGamer3D.Bindings.Ogre.TypeVector4 +{-# LINE 60 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +import HGamer3D.Bindings.Ogre.TypeColourValue +{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + + +cMnoClear :: HG3DClass -> IO () +cMnoClear a1 = + withHG3DClass a1 $ \a1' -> + cMnoClear'_ a1' >>= \res -> + return () +{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; +cMnoEstimateVertexCount :: HG3DClass -> Int -> IO () +cMnoEstimateVertexCount a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cMnoEstimateVertexCount'_ a1' a2' >>= \res -> + return () +{-# LINE 70 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; +cMnoEstimateIndexCount :: HG3DClass -> Int -> IO () +cMnoEstimateIndexCount a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cMnoEstimateIndexCount'_ a1' a2' >>= \res -> + return () +{-# LINE 74 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; +cMnoBegin :: HG3DClass -> String -> EnumOperationType -> String -> IO () +cMnoBegin a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = cIntFromEnum a3} in + withCString a4 $ \a4' -> + cMnoBegin'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 80 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; +cMnoSetDynamic :: HG3DClass -> Bool -> IO () +cMnoSetDynamic a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cMnoSetDynamic'_ a1' a2' >>= \res -> + return () +{-# LINE 84 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; +cMnoGetDynamic :: HG3DClass -> IO (Bool) +cMnoGetDynamic a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMnoGetDynamic'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 88 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; +cMnoBeginUpdate :: HG3DClass -> Int -> IO () +cMnoBeginUpdate a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cMnoBeginUpdate'_ a1' a2' >>= \res -> + return () +{-# LINE 92 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; +cMnoPosition :: HG3DClass -> Vector3 -> IO () +cMnoPosition a1 a2 = + withHG3DClass a1 $ \a1' -> + withVector3 a2 $ \a2' -> + cMnoPosition'_ a1' a2' >>= \res -> + return () +{-# LINE 96 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; +cMnoPosition2 :: HG3DClass -> Float -> Float -> Float -> IO () +cMnoPosition2 a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + cMnoPosition2'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 102 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; +cMnoNormal :: HG3DClass -> Vector3 -> IO () +cMnoNormal a1 a2 = + withHG3DClass a1 $ \a1' -> + withVector3 a2 $ \a2' -> + cMnoNormal'_ a1' a2' >>= \res -> + return () +{-# LINE 106 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; +cMnoNormal2 :: HG3DClass -> Float -> Float -> Float -> IO () +cMnoNormal2 a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + cMnoNormal2'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 112 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; +cMnoTangent :: HG3DClass -> Vector3 -> IO () +cMnoTangent a1 a2 = + withHG3DClass a1 $ \a1' -> + withVector3 a2 $ \a2' -> + cMnoTangent'_ a1' a2' >>= \res -> + return () +{-# LINE 116 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; +cMnoTangent2 :: HG3DClass -> Float -> Float -> Float -> IO () +cMnoTangent2 a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + cMnoTangent2'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 122 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; +cMnoTextureCoord :: HG3DClass -> Float -> IO () +cMnoTextureCoord a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cMnoTextureCoord'_ a1' a2' >>= \res -> + return () +{-# LINE 126 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; +cMnoTextureCoord2 :: HG3DClass -> Float -> Float -> IO () +cMnoTextureCoord2 a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + cMnoTextureCoord2'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 131 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; +cMnoTextureCoord3 :: HG3DClass -> Float -> Float -> Float -> IO () +cMnoTextureCoord3 a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + cMnoTextureCoord3'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 137 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; +cMnoTextureCoord4 :: HG3DClass -> Float -> Float -> Float -> Float -> IO () +cMnoTextureCoord4 a1 a2 a3 a4 a5 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + let {a5' = realToFrac a5} in + cMnoTextureCoord4'_ a1' a2' a3' a4' a5' >>= \res -> + return () +{-# LINE 144 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; +cMnoTextureCoord5 :: HG3DClass -> Vector2 -> IO () +cMnoTextureCoord5 a1 a2 = + withHG3DClass a1 $ \a1' -> + withVector2 a2 $ \a2' -> + cMnoTextureCoord5'_ a1' a2' >>= \res -> + return () +{-# LINE 148 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; +cMnoTextureCoord6 :: HG3DClass -> Vector3 -> IO () +cMnoTextureCoord6 a1 a2 = + withHG3DClass a1 $ \a1' -> + withVector3 a2 $ \a2' -> + cMnoTextureCoord6'_ a1' a2' >>= \res -> + return () +{-# LINE 152 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; +cMnoTextureCoord7 :: HG3DClass -> Vector4 -> IO () +cMnoTextureCoord7 a1 a2 = + withHG3DClass a1 $ \a1' -> + withVector4 a2 $ \a2' -> + cMnoTextureCoord7'_ a1' a2' >>= \res -> + return () +{-# LINE 156 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; +cMnoColour :: HG3DClass -> ColourValue -> IO () +cMnoColour a1 a2 = + withHG3DClass a1 $ \a1' -> + withColourValue a2 $ \a2' -> + cMnoColour'_ a1' a2' >>= \res -> + return () +{-# LINE 160 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; +cMnoColour2 :: HG3DClass -> Float -> Float -> Float -> Float -> IO () +cMnoColour2 a1 a2 a3 a4 a5 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + let {a5' = realToFrac a5} in + cMnoColour2'_ a1' a2' a3' a4' a5' >>= \res -> + return () +{-# LINE 167 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; +cMnoIndex :: HG3DClass -> Int -> IO () +cMnoIndex a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cMnoIndex'_ a1' a2' >>= \res -> + return () +{-# LINE 171 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; +cMnoTriangle :: HG3DClass -> Int -> Int -> Int -> IO () +cMnoTriangle a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + let {a3' = fromIntegral a3} in + let {a4' = fromIntegral a4} in + cMnoTriangle'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 177 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; +cMnoQuad :: HG3DClass -> Int -> Int -> Int -> Int -> IO () +cMnoQuad a1 a2 a3 a4 a5 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + let {a3' = fromIntegral a3} in + let {a4' = fromIntegral a4} in + let {a5' = fromIntegral a5} in + cMnoQuad'_ a1' a2' a3' a4' a5' >>= \res -> + return () +{-# LINE 184 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; +cMnoEnd :: HG3DClass -> IO (HG3DClass) +cMnoEnd a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMnoEnd'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 188 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; +cMnoSetMaterialName :: HG3DClass -> Int -> String -> String -> IO () +cMnoSetMaterialName a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + withCString a3 $ \a3' -> + withCString a4 $ \a4' -> + cMnoSetMaterialName'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 194 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; +cMnoSetUseIdentityProjection :: HG3DClass -> Bool -> IO () +cMnoSetUseIdentityProjection a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cMnoSetUseIdentityProjection'_ a1' a2' >>= \res -> + return () +{-# LINE 198 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; +cMnoGetUseIdentityProjection :: HG3DClass -> IO (Bool) +cMnoGetUseIdentityProjection a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMnoGetUseIdentityProjection'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 202 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; +cMnoSetUseIdentityView :: HG3DClass -> Bool -> IO () +cMnoSetUseIdentityView a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cMnoSetUseIdentityView'_ a1' a2' >>= \res -> + return () +{-# LINE 206 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; +cMnoGetUseIdentityView :: HG3DClass -> IO (Bool) +cMnoGetUseIdentityView a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMnoGetUseIdentityView'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 210 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; +cMnoGetSection :: HG3DClass -> Int -> IO (HG3DClass) +cMnoGetSection a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cMnoGetSection'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 215 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; +cMnoGetNumSections :: HG3DClass -> IO (Int) +cMnoGetNumSections a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMnoGetNumSections'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 219 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; +cMnoSetKeepDeclarationOrder :: HG3DClass -> Bool -> IO () +cMnoSetKeepDeclarationOrder a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cMnoSetKeepDeclarationOrder'_ a1' a2' >>= \res -> + return () +{-# LINE 223 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; +cMnoGetKeepDeclarationOrder :: HG3DClass -> IO (Bool) +cMnoGetKeepDeclarationOrder a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMnoGetKeepDeclarationOrder'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 227 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; +cMnoGetMovableType :: HG3DClass -> IO (String) +cMnoGetMovableType a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cMnoGetMovableType'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 231 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; +cMnoGetBoundingRadius :: HG3DClass -> IO (Float) +cMnoGetBoundingRadius a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMnoGetBoundingRadius'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 235 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; +cMnoHasEdgeList :: HG3DClass -> IO (Bool) +cMnoHasEdgeList a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMnoHasEdgeList'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 239 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_clear_c" + cMnoClear'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_estimateVertexCount_c" + cMnoEstimateVertexCount'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_estimateIndexCount_c" + cMnoEstimateIndexCount'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_begin_c" + cMnoBegin'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> ((Ptr CChar) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_setDynamic_c" + cMnoSetDynamic'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_getDynamic_c" + cMnoGetDynamic'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_beginUpdate_c" + cMnoBeginUpdate'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_position_c" + cMnoPosition'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_position2_c" + cMnoPosition2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_normal_c" + cMnoNormal'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_normal2_c" + cMnoNormal2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_tangent_c" + cMnoTangent'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_tangent2_c" + cMnoTangent2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_textureCoord_c" + cMnoTextureCoord'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_textureCoord2_c" + cMnoTextureCoord2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_textureCoord3_c" + cMnoTextureCoord3'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_textureCoord4_c" + cMnoTextureCoord4'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (CFloat -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_textureCoord5_c" + cMnoTextureCoord5'_ :: ((HG3DClassPtr) -> ((Vector2Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_textureCoord6_c" + cMnoTextureCoord6'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_textureCoord7_c" + cMnoTextureCoord7'_ :: ((HG3DClassPtr) -> ((Vector4Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_colour_c" + cMnoColour'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_colour2_c" + cMnoColour2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (CFloat -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_index_c" + cMnoIndex'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_triangle_c" + cMnoTriangle'_ :: ((HG3DClassPtr) -> (CUInt -> (CUInt -> (CUInt -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_quad_c" + cMnoQuad'_ :: ((HG3DClassPtr) -> (CUInt -> (CUInt -> (CUInt -> (CUInt -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_end_c" + cMnoEnd'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_setMaterialName_c" + cMnoSetMaterialName'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CChar) -> ((Ptr CChar) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_setUseIdentityProjection_c" + cMnoSetUseIdentityProjection'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_getUseIdentityProjection_c" + cMnoGetUseIdentityProjection'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_setUseIdentityView_c" + cMnoSetUseIdentityView'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_getUseIdentityView_c" + cMnoGetUseIdentityView'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_getSection_c" + cMnoGetSection'_ :: ((HG3DClassPtr) -> (CUInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_getNumSections_c" + cMnoGetNumSections'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_setKeepDeclarationOrder_c" + cMnoSetKeepDeclarationOrder'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_getKeepDeclarationOrder_c" + cMnoGetKeepDeclarationOrder'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_getMovableType_c" + cMnoGetMovableType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_getBoundingRadius_c" + cMnoGetBoundingRadius'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_hasEdgeList_c" + cMnoHasEdgeList'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassManualObjectFactory.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassManualObjectFactory.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreManualObject.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassManualObjectFactory where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassManualObjectFactory.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassManualObjectFactory.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassManualObjectFactory.chs" #-} + +
@@ -0,0 +1,124 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassManualObjectSection.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreManualObject.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassManualObjectSection where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs" #-} + + +cMosGetMaterialName :: HG3DClass -> IO (String) +cMosGetMaterialName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cMosGetMaterialName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs" #-} +; +cMosGetMaterialGroup :: HG3DClass -> IO (String) +cMosGetMaterialGroup a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cMosGetMaterialGroup'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs" #-} +; +cMosSetMaterialName :: HG3DClass -> String -> String -> IO () +cMosSetMaterialName a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + cMosSetMaterialName'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs" #-} +; +cMosSet32BitIndices :: HG3DClass -> Bool -> IO () +cMosSet32BitIndices a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cMosSet32BitIndices'_ a1' a2' >>= \res -> + return () +{-# LINE 75 "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs" #-} +; +cMosGet32BitIndices :: HG3DClass -> IO (Bool) +cMosGet32BitIndices a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMosGet32BitIndices'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 79 "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs.h cMos_getMaterialName_c" + cMosGetMaterialName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs.h cMos_getMaterialGroup_c" + cMosGetMaterialGroup'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs.h cMos_setMaterialName_c" + cMosSetMaterialName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs.h cMos_set32BitIndices_c" + cMosSet32BitIndices'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs.h cMos_get32BitIndices_c" + cMosGet32BitIndices'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSectionShadowRenderable.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassManualObjectSectionShadowRenderable.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreManualObject.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassManualObjectSectionShadowRenderable where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSectionShadowRenderable.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSectionShadowRenderable.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSectionShadowRenderable.chs" #-} + +
@@ -0,0 +1,572 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassMaterial.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreMaterial.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassMaterial where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +import HGamer3D.Bindings.Ogre.TypeColourValue +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +import HGamer3D.Bindings.Ogre.EnumCompareFunction +{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +import HGamer3D.Bindings.Ogre.EnumCullingMode +{-# LINE 59 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +import HGamer3D.Bindings.Ogre.EnumManualCullingMode +{-# LINE 60 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +import HGamer3D.Bindings.Ogre.EnumShadeOptions +{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +import HGamer3D.Bindings.Ogre.EnumFogMode +{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +import HGamer3D.Bindings.Ogre.EnumTextureFilterOptions +{-# LINE 63 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} + + +cMtIsTransparent :: HG3DClass -> IO (Bool) +cMtIsTransparent a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMtIsTransparent'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 69 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtSetReceiveShadows :: HG3DClass -> Bool -> IO () +cMtSetReceiveShadows a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cMtSetReceiveShadows'_ a1' a2' >>= \res -> + return () +{-# LINE 73 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtGetReceiveShadows :: HG3DClass -> IO (Bool) +cMtGetReceiveShadows a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMtGetReceiveShadows'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 77 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtSetTransparencyCastsShadows :: HG3DClass -> Bool -> IO () +cMtSetTransparencyCastsShadows a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cMtSetTransparencyCastsShadows'_ a1' a2' >>= \res -> + return () +{-# LINE 81 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtGetTransparencyCastsShadows :: HG3DClass -> IO (Bool) +cMtGetTransparencyCastsShadows a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMtGetTransparencyCastsShadows'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 85 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtCreateTechnique :: HG3DClass -> IO (HG3DClass) +cMtCreateTechnique a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMtCreateTechnique'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 89 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtGetTechnique :: HG3DClass -> Int -> IO (HG3DClass) +cMtGetTechnique a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cMtGetTechnique'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 94 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtGetTechnique2 :: HG3DClass -> String -> IO (HG3DClass) +cMtGetTechnique2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cMtGetTechnique2'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 99 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtGetNumTechniques :: HG3DClass -> IO (Int) +cMtGetNumTechniques a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMtGetNumTechniques'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 103 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtRemoveTechnique :: HG3DClass -> Int -> IO () +cMtRemoveTechnique a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cMtRemoveTechnique'_ a1' a2' >>= \res -> + return () +{-# LINE 107 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtRemoveAllTechniques :: HG3DClass -> IO () +cMtRemoveAllTechniques a1 = + withHG3DClass a1 $ \a1' -> + cMtRemoveAllTechniques'_ a1' >>= \res -> + return () +{-# LINE 110 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtGetSupportedTechnique :: HG3DClass -> Int -> IO (HG3DClass) +cMtGetSupportedTechnique a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cMtGetSupportedTechnique'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 115 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtGetNumSupportedTechniques :: HG3DClass -> IO (Int) +cMtGetNumSupportedTechniques a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMtGetNumSupportedTechniques'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 119 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtGetUnsupportedTechniquesExplanation :: HG3DClass -> IO (String) +cMtGetUnsupportedTechniquesExplanation a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cMtGetUnsupportedTechniquesExplanation'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 123 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtGetNumLodLevels :: HG3DClass -> Int -> IO (Int) +cMtGetNumLodLevels a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cMtGetNumLodLevels'_ a1' a2' a3' >>= \res -> + peekIntConv a3'>>= \a3'' -> + return (a3'') +{-# LINE 128 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtGetNumLodLevels2 :: HG3DClass -> String -> IO (Int) +cMtGetNumLodLevels2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cMtGetNumLodLevels2'_ a1' a2' a3' >>= \res -> + peekIntConv a3'>>= \a3'' -> + return (a3'') +{-# LINE 133 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtCompile :: HG3DClass -> Bool -> IO () +cMtCompile a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cMtCompile'_ a1' a2' >>= \res -> + return () +{-# LINE 137 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtSetPointSize :: HG3DClass -> Float -> IO () +cMtSetPointSize a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cMtSetPointSize'_ a1' a2' >>= \res -> + return () +{-# LINE 141 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtSetAmbient :: HG3DClass -> Float -> Float -> Float -> IO () +cMtSetAmbient a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + cMtSetAmbient'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 147 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtSetAmbient2 :: HG3DClass -> ColourValue -> IO () +cMtSetAmbient2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withColourValue a2 $ \a2' -> + cMtSetAmbient2'_ a1' a2' >>= \res -> + return () +{-# LINE 151 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtSetDiffuse :: HG3DClass -> Float -> Float -> Float -> Float -> IO () +cMtSetDiffuse a1 a2 a3 a4 a5 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + let {a5' = realToFrac a5} in + cMtSetDiffuse'_ a1' a2' a3' a4' a5' >>= \res -> + return () +{-# LINE 158 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtSetDiffuse2 :: HG3DClass -> ColourValue -> IO () +cMtSetDiffuse2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withColourValue a2 $ \a2' -> + cMtSetDiffuse2'_ a1' a2' >>= \res -> + return () +{-# LINE 162 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtSetSpecular :: HG3DClass -> Float -> Float -> Float -> Float -> IO () +cMtSetSpecular a1 a2 a3 a4 a5 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + let {a5' = realToFrac a5} in + cMtSetSpecular'_ a1' a2' a3' a4' a5' >>= \res -> + return () +{-# LINE 169 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtSetSpecular2 :: HG3DClass -> ColourValue -> IO () +cMtSetSpecular2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withColourValue a2 $ \a2' -> + cMtSetSpecular2'_ a1' a2' >>= \res -> + return () +{-# LINE 173 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtSetShininess :: HG3DClass -> Float -> IO () +cMtSetShininess a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cMtSetShininess'_ a1' a2' >>= \res -> + return () +{-# LINE 177 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtSetSelfIllumination :: HG3DClass -> Float -> Float -> Float -> IO () +cMtSetSelfIllumination a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + cMtSetSelfIllumination'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 183 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtSetSelfIllumination2 :: HG3DClass -> ColourValue -> IO () +cMtSetSelfIllumination2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withColourValue a2 $ \a2' -> + cMtSetSelfIllumination2'_ a1' a2' >>= \res -> + return () +{-# LINE 187 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtSetDepthCheckEnabled :: HG3DClass -> Bool -> IO () +cMtSetDepthCheckEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cMtSetDepthCheckEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 191 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtSetDepthWriteEnabled :: HG3DClass -> Bool -> IO () +cMtSetDepthWriteEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cMtSetDepthWriteEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 195 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtSetDepthFunction :: HG3DClass -> EnumCompareFunction -> IO () +cMtSetDepthFunction a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cMtSetDepthFunction'_ a1' a2' >>= \res -> + return () +{-# LINE 199 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtSetColourWriteEnabled :: HG3DClass -> Bool -> IO () +cMtSetColourWriteEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cMtSetColourWriteEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 203 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtSetCullingMode :: HG3DClass -> EnumCullingMode -> IO () +cMtSetCullingMode a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cMtSetCullingMode'_ a1' a2' >>= \res -> + return () +{-# LINE 207 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtSetManualCullingMode :: HG3DClass -> EnumManualCullingMode -> IO () +cMtSetManualCullingMode a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cMtSetManualCullingMode'_ a1' a2' >>= \res -> + return () +{-# LINE 211 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtSetLightingEnabled :: HG3DClass -> Bool -> IO () +cMtSetLightingEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cMtSetLightingEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 215 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtSetShadingMode :: HG3DClass -> EnumShadeOptions -> IO () +cMtSetShadingMode a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cMtSetShadingMode'_ a1' a2' >>= \res -> + return () +{-# LINE 219 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtSetFog :: HG3DClass -> Bool -> EnumFogMode -> ColourValue -> Float -> Float -> Float -> IO () +cMtSetFog a1 a2 a3 a4 a5 a6 a7 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + let {a3' = cIntFromEnum a3} in + withColourValue a4 $ \a4' -> + let {a5' = realToFrac a5} in + let {a6' = realToFrac a6} in + let {a7' = realToFrac a7} in + cMtSetFog'_ a1' a2' a3' a4' a5' a6' a7' >>= \res -> + return () +{-# LINE 228 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtSetDepthBias :: HG3DClass -> Float -> Float -> IO () +cMtSetDepthBias a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + cMtSetDepthBias'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 233 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtSetTextureFiltering :: HG3DClass -> EnumTextureFilterOptions -> IO () +cMtSetTextureFiltering a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cMtSetTextureFiltering'_ a1' a2' >>= \res -> + return () +{-# LINE 237 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtSetTextureAnisotropy :: HG3DClass -> Int -> IO () +cMtSetTextureAnisotropy a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cMtSetTextureAnisotropy'_ a1' a2' >>= \res -> + return () +{-# LINE 241 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtNotifyNeedsRecompile :: HG3DClass -> IO () +cMtNotifyNeedsRecompile a1 = + withHG3DClass a1 $ \a1' -> + cMtNotifyNeedsRecompile'_ a1' >>= \res -> + return () +{-# LINE 244 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtTouch :: HG3DClass -> IO () +cMtTouch a1 = + withHG3DClass a1 $ \a1' -> + cMtTouch'_ a1' >>= \res -> + return () +{-# LINE 247 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; +cMtGetCompilationRequired :: HG3DClass -> IO (Bool) +cMtGetCompilationRequired a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMtGetCompilationRequired'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 251 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_isTransparent_c" + cMtIsTransparent'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_setReceiveShadows_c" + cMtSetReceiveShadows'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_getReceiveShadows_c" + cMtGetReceiveShadows'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_setTransparencyCastsShadows_c" + cMtSetTransparencyCastsShadows'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_getTransparencyCastsShadows_c" + cMtGetTransparencyCastsShadows'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_createTechnique_c" + cMtCreateTechnique'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_getTechnique_c" + cMtGetTechnique'_ :: ((HG3DClassPtr) -> (CUInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_getTechnique2_c" + cMtGetTechnique2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_getNumTechniques_c" + cMtGetNumTechniques'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_removeTechnique_c" + cMtRemoveTechnique'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_removeAllTechniques_c" + cMtRemoveAllTechniques'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_getSupportedTechnique_c" + cMtGetSupportedTechnique'_ :: ((HG3DClassPtr) -> (CUInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_getNumSupportedTechniques_c" + cMtGetNumSupportedTechniques'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_getUnsupportedTechniquesExplanation_c" + cMtGetUnsupportedTechniquesExplanation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_getNumLodLevels_c" + cMtGetNumLodLevels'_ :: ((HG3DClassPtr) -> (CUInt -> ((Ptr CUInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_getNumLodLevels2_c" + cMtGetNumLodLevels2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CUInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_compile_c" + cMtCompile'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_setPointSize_c" + cMtSetPointSize'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_setAmbient_c" + cMtSetAmbient'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_setAmbient2_c" + cMtSetAmbient2'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_setDiffuse_c" + cMtSetDiffuse'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (CFloat -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_setDiffuse2_c" + cMtSetDiffuse2'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_setSpecular_c" + cMtSetSpecular'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (CFloat -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_setSpecular2_c" + cMtSetSpecular2'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_setShininess_c" + cMtSetShininess'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_setSelfIllumination_c" + cMtSetSelfIllumination'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_setSelfIllumination2_c" + cMtSetSelfIllumination2'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_setDepthCheckEnabled_c" + cMtSetDepthCheckEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_setDepthWriteEnabled_c" + cMtSetDepthWriteEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_setDepthFunction_c" + cMtSetDepthFunction'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_setColourWriteEnabled_c" + cMtSetColourWriteEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_setCullingMode_c" + cMtSetCullingMode'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_setManualCullingMode_c" + cMtSetManualCullingMode'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_setLightingEnabled_c" + cMtSetLightingEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_setShadingMode_c" + cMtSetShadingMode'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_setFog_c" + cMtSetFog'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> ((ColourValuePtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ())))))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_setDepthBias_c" + cMtSetDepthBias'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_setTextureFiltering_c" + cMtSetTextureFiltering'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_setTextureAnisotropy_c" + cMtSetTextureAnisotropy'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt__notifyNeedsRecompile_c" + cMtNotifyNeedsRecompile'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_touch_c" + cMtTouch'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_getCompilationRequired_c" + cMtGetCompilationRequired'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
@@ -0,0 +1,100 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassMaterialBucket.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassMaterialBucket.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreStaticGeometry.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassMaterialBucket where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassMaterialBucket.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassMaterialBucket.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassMaterialBucket.chs" #-} + + +cMbGetMaterialName :: HG3DClass -> IO (String) +cMbGetMaterialName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cMbGetMaterialName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassMaterialBucket.chs" #-} +; +cMbBuild :: HG3DClass -> Bool -> IO () +cMbBuild a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cMbBuild'_ a1' a2' >>= \res -> + return () +{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassMaterialBucket.chs" #-} +; +cMbGetCurrentTechnique :: HG3DClass -> IO (HG3DClass) +cMbGetCurrentTechnique a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMbGetCurrentTechnique'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 70 "HGamer3D\\Bindings\\Ogre\\ClassMaterialBucket.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialBucket.chs.h cMb_getMaterialName_c" + cMbGetMaterialName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialBucket.chs.h cMb_build_c" + cMbBuild'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialBucket.chs.h cMb_getCurrentTechnique_c" + cMbGetCurrentTechnique'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
@@ -0,0 +1,214 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassMaterialManager.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreMaterialManager.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassMaterialManager where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} +import HGamer3D.Bindings.Ogre.EnumTextureFilterOptions +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} +import HGamer3D.Bindings.Ogre.EnumFilterType +{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} +import HGamer3D.Bindings.Ogre.EnumFilterOptions +{-# LINE 59 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} + + +cMtmInitialise :: HG3DClass -> IO () +cMtmInitialise a1 = + withHG3DClass a1 $ \a1' -> + cMtmInitialise'_ a1' >>= \res -> + return () +{-# LINE 64 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} +; +cMtmSetDefaultTextureFiltering :: HG3DClass -> EnumTextureFilterOptions -> IO () +cMtmSetDefaultTextureFiltering a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cMtmSetDefaultTextureFiltering'_ a1' a2' >>= \res -> + return () +{-# LINE 68 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} +; +cMtmSetDefaultTextureFiltering2 :: HG3DClass -> EnumFilterType -> EnumFilterOptions -> IO () +cMtmSetDefaultTextureFiltering2 a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + let {a3' = cIntFromEnum a3} in + cMtmSetDefaultTextureFiltering2'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 73 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} +; +cMtmSetDefaultTextureFiltering3 :: HG3DClass -> EnumFilterOptions -> EnumFilterOptions -> EnumFilterOptions -> IO () +cMtmSetDefaultTextureFiltering3 a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + let {a3' = cIntFromEnum a3} in + let {a4' = cIntFromEnum a4} in + cMtmSetDefaultTextureFiltering3'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 79 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} +; +cMtmGetDefaultTextureFiltering :: HG3DClass -> EnumFilterType -> IO (EnumFilterOptions) +cMtmGetDefaultTextureFiltering a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + alloca $ \a3' -> + cMtmGetDefaultTextureFiltering'_ a1' a2' a3' >>= \res -> + peekEnumUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 84 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} +; +cMtmSetDefaultAnisotropy :: HG3DClass -> Int -> IO () +cMtmSetDefaultAnisotropy a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cMtmSetDefaultAnisotropy'_ a1' a2' >>= \res -> + return () +{-# LINE 88 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} +; +cMtmGetDefaultAnisotropy :: HG3DClass -> IO (Int) +cMtmGetDefaultAnisotropy a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMtmGetDefaultAnisotropy'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 92 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} +; +cMtmGetSchemeIndex :: HG3DClass -> String -> IO (Int) +cMtmGetSchemeIndex a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cMtmGetSchemeIndex'_ a1' a2' a3' >>= \res -> + peekIntConv a3'>>= \a3'' -> + return (a3'') +{-# LINE 97 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} +; +cMtmGetSchemeName :: HG3DClass -> Int -> IO (String) +cMtmGetSchemeName a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloc64k $ \a3' -> + cMtmGetSchemeName'_ a1' a2' a3' >>= \res -> + peekCString a3'>>= \a3'' -> + return (a3'') +{-# LINE 102 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} +; +cMtmGetActiveSchemeIndex :: HG3DClass -> IO (Int) +cMtmGetActiveSchemeIndex a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMtmGetActiveSchemeIndex'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 106 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} +; +cMtmGetActiveScheme :: HG3DClass -> IO (String) +cMtmGetActiveScheme a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cMtmGetActiveScheme'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 110 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} +; +cMtmSetActiveScheme :: HG3DClass -> String -> IO () +cMtmSetActiveScheme a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cMtmSetActiveScheme'_ a1' a2' >>= \res -> + return () +{-# LINE 114 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs.h cMtm_initialise_c" + cMtmInitialise'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs.h cMtm_setDefaultTextureFiltering_c" + cMtmSetDefaultTextureFiltering'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs.h cMtm_setDefaultTextureFiltering2_c" + cMtmSetDefaultTextureFiltering2'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs.h cMtm_setDefaultTextureFiltering3_c" + cMtmSetDefaultTextureFiltering3'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (CInt -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs.h cMtm_getDefaultTextureFiltering_c" + cMtmGetDefaultTextureFiltering'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs.h cMtm_setDefaultAnisotropy_c" + cMtmSetDefaultAnisotropy'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs.h cMtm_getDefaultAnisotropy_c" + cMtmGetDefaultAnisotropy'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs.h cMtm__getSchemeIndex_c" + cMtmGetSchemeIndex'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CUInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs.h cMtm__getSchemeName_c" + cMtmGetSchemeName'_ :: ((HG3DClassPtr) -> (CUInt -> ((Ptr CChar) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs.h cMtm__getActiveSchemeIndex_c" + cMtmGetActiveSchemeIndex'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs.h cMtm_getActiveScheme_c" + cMtmGetActiveScheme'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs.h cMtm_setActiveScheme_c" + cMtmSetActiveScheme'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ())))
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassMaterialPtr.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassMaterialPtr.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreMaterial.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassMaterialPtr where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassMaterialPtr.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassMaterialPtr.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassMaterialPtr.chs" #-} + +
@@ -0,0 +1,100 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassMaterialSerializer.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassMaterialSerializer.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreMaterialSerializer.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassMaterialSerializer where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassMaterialSerializer.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassMaterialSerializer.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassMaterialSerializer.chs" #-} + + +cMtsExportQueued :: HG3DClass -> String -> Bool -> String -> IO () +cMtsExportQueued a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = fromBool a3} in + withCString a4 $ \a4' -> + cMtsExportQueued'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 64 "HGamer3D\\Bindings\\Ogre\\ClassMaterialSerializer.chs" #-} +; +cMtsGetQueuedAsString :: HG3DClass -> IO (String) +cMtsGetQueuedAsString a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cMtsGetQueuedAsString'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 68 "HGamer3D\\Bindings\\Ogre\\ClassMaterialSerializer.chs" #-} +; +cMtsClearQueue :: HG3DClass -> IO () +cMtsClearQueue a1 = + withHG3DClass a1 $ \a1' -> + cMtsClearQueue'_ a1' >>= \res -> + return () +{-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassMaterialSerializer.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialSerializer.chs.h cMts_exportQueued_c" + cMtsExportQueued'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> ((Ptr CChar) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialSerializer.chs.h cMts_getQueuedAsString_c" + cMtsGetQueuedAsString'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialSerializer.chs.h cMts_clearQueue_c" + cMtsClearQueue'_ :: ((HG3DClassPtr) -> (IO ()))
@@ -0,0 +1,149 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassMemoryDataStream.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassMemoryDataStream.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreDataStream.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassMemoryDataStream where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassMemoryDataStream.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassMemoryDataStream.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassMemoryDataStream.chs" #-} + + +cMdsReadLine :: HG3DClass -> String -> Int -> String -> IO (Int) +cMdsReadLine a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = fromIntegral a3} in + withCString a4 $ \a4' -> + alloca $ \a5' -> + cMdsReadLine'_ a1' a2' a3' a4' a5' >>= \res -> + peekIntConv a5'>>= \a5'' -> + return (a5'') +{-# LINE 65 "HGamer3D\\Bindings\\Ogre\\ClassMemoryDataStream.chs" #-} +; +cMdsSkipLine :: HG3DClass -> String -> IO (Int) +cMdsSkipLine a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cMdsSkipLine'_ a1' a2' a3' >>= \res -> + peekIntConv a3'>>= \a3'' -> + return (a3'') +{-# LINE 70 "HGamer3D\\Bindings\\Ogre\\ClassMemoryDataStream.chs" #-} +; +cMdsSeek :: HG3DClass -> Int -> IO () +cMdsSeek a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cMdsSeek'_ a1' a2' >>= \res -> + return () +{-# LINE 74 "HGamer3D\\Bindings\\Ogre\\ClassMemoryDataStream.chs" #-} +; +cMdsTell :: HG3DClass -> IO (Int) +cMdsTell a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMdsTell'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 78 "HGamer3D\\Bindings\\Ogre\\ClassMemoryDataStream.chs" #-} +; +cMdsEof :: HG3DClass -> IO (Bool) +cMdsEof a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMdsEof'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 82 "HGamer3D\\Bindings\\Ogre\\ClassMemoryDataStream.chs" #-} +; +cMdsClose :: HG3DClass -> IO () +cMdsClose a1 = + withHG3DClass a1 $ \a1' -> + cMdsClose'_ a1' >>= \res -> + return () +{-# LINE 85 "HGamer3D\\Bindings\\Ogre\\ClassMemoryDataStream.chs" #-} +; +cMdsSetFreeOnClose :: HG3DClass -> Bool -> IO () +cMdsSetFreeOnClose a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cMdsSetFreeOnClose'_ a1' a2' >>= \res -> + return () +{-# LINE 89 "HGamer3D\\Bindings\\Ogre\\ClassMemoryDataStream.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMemoryDataStream.chs.h cMds_readLine_c" + cMdsReadLine'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMemoryDataStream.chs.h cMds_skipLine_c" + cMdsSkipLine'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMemoryDataStream.chs.h cMds_seek_c" + cMdsSeek'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMemoryDataStream.chs.h cMds_tell_c" + cMdsTell'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMemoryDataStream.chs.h cMds_eof_c" + cMdsEof'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMemoryDataStream.chs.h cMds_close_c" + cMdsClose'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMemoryDataStream.chs.h cMds_setFreeOnClose_c" + cMdsSetFreeOnClose'_ :: ((HG3DClassPtr) -> (CInt -> (IO ())))
@@ -0,0 +1,605 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassMesh.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreMesh.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassMesh where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +import HGamer3D.Bindings.Ogre.EnumVertexElementSemantic +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +import HGamer3D.Bindings.Ogre.EnumVertexAnimationType +{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} + + +cMCreateSubMesh :: HG3DClass -> IO (HG3DClass) +cMCreateSubMesh a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMCreateSubMesh'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 64 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMCreateSubMesh2 :: HG3DClass -> String -> IO (HG3DClass) +cMCreateSubMesh2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cMCreateSubMesh2'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 69 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMUnnameSubMesh :: HG3DClass -> String -> IO () +cMUnnameSubMesh a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cMUnnameSubMesh'_ a1' a2' >>= \res -> + return () +{-# LINE 73 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMGetNumSubMeshes :: HG3DClass -> IO (Int) +cMGetNumSubMeshes a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMGetNumSubMeshes'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 77 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMGetSubMesh :: HG3DClass -> Int -> IO (HG3DClass) +cMGetSubMesh a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cMGetSubMesh'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 82 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMGetSubMesh2 :: HG3DClass -> String -> IO (HG3DClass) +cMGetSubMesh2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cMGetSubMesh2'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 87 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMDestroySubMesh :: HG3DClass -> Int -> IO () +cMDestroySubMesh a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cMDestroySubMesh'_ a1' a2' >>= \res -> + return () +{-# LINE 91 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMDestroySubMesh2 :: HG3DClass -> String -> IO () +cMDestroySubMesh2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cMDestroySubMesh2'_ a1' a2' >>= \res -> + return () +{-# LINE 95 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMGetBoundingSphereRadius :: HG3DClass -> IO (Float) +cMGetBoundingSphereRadius a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMGetBoundingSphereRadius'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 99 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMSetBoundingSphereRadius :: HG3DClass -> Float -> IO () +cMSetBoundingSphereRadius a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cMSetBoundingSphereRadius'_ a1' a2' >>= \res -> + return () +{-# LINE 103 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMSetSkeletonName :: HG3DClass -> String -> IO () +cMSetSkeletonName a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cMSetSkeletonName'_ a1' a2' >>= \res -> + return () +{-# LINE 107 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMHasSkeleton :: HG3DClass -> IO (Bool) +cMHasSkeleton a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMHasSkeleton'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 111 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMHasVertexAnimation :: HG3DClass -> IO (Bool) +cMHasVertexAnimation a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMHasVertexAnimation'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 115 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMGetSkeletonName :: HG3DClass -> IO (String) +cMGetSkeletonName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cMGetSkeletonName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 119 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMClearBoneAssignments :: HG3DClass -> IO () +cMClearBoneAssignments a1 = + withHG3DClass a1 $ \a1' -> + cMClearBoneAssignments'_ a1' >>= \res -> + return () +{-# LINE 122 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMCreateManualLodLevel :: HG3DClass -> Float -> String -> String -> IO () +cMCreateManualLodLevel a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + withCString a3 $ \a3' -> + withCString a4 $ \a4' -> + cMCreateManualLodLevel'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 128 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMIsLodManual :: HG3DClass -> IO (Bool) +cMIsLodManual a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMIsLodManual'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 132 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMSetLodInfo :: HG3DClass -> Int -> Bool -> IO () +cMSetLodInfo a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + let {a3' = fromBool a3} in + cMSetLodInfo'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 137 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMRemoveLodLevels :: HG3DClass -> IO () +cMRemoveLodLevels a1 = + withHG3DClass a1 $ \a1' -> + cMRemoveLodLevels'_ a1' >>= \res -> + return () +{-# LINE 140 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMIsVertexBufferShadowed :: HG3DClass -> IO (Bool) +cMIsVertexBufferShadowed a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMIsVertexBufferShadowed'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 144 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMIsIndexBufferShadowed :: HG3DClass -> IO (Bool) +cMIsIndexBufferShadowed a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMIsIndexBufferShadowed'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 148 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMCompileBoneAssignments :: HG3DClass -> IO () +cMCompileBoneAssignments a1 = + withHG3DClass a1 $ \a1' -> + cMCompileBoneAssignments'_ a1' >>= \res -> + return () +{-# LINE 151 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMUpdateCompiledBoneAssignments :: HG3DClass -> IO () +cMUpdateCompiledBoneAssignments a1 = + withHG3DClass a1 $ \a1' -> + cMUpdateCompiledBoneAssignments'_ a1' >>= \res -> + return () +{-# LINE 154 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMBuildTangentVectors :: HG3DClass -> EnumVertexElementSemantic -> Int -> Int -> Bool -> Bool -> Bool -> IO () +cMBuildTangentVectors a1 a2 a3 a4 a5 a6 a7 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + let {a3' = fromIntegral a3} in + let {a4' = fromIntegral a4} in + let {a5' = fromBool a5} in + let {a6' = fromBool a6} in + let {a7' = fromBool a7} in + cMBuildTangentVectors'_ a1' a2' a3' a4' a5' a6' a7' >>= \res -> + return () +{-# LINE 163 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMBuildEdgeList :: HG3DClass -> IO () +cMBuildEdgeList a1 = + withHG3DClass a1 $ \a1' -> + cMBuildEdgeList'_ a1' >>= \res -> + return () +{-# LINE 166 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMFreeEdgeList :: HG3DClass -> IO () +cMFreeEdgeList a1 = + withHG3DClass a1 $ \a1' -> + cMFreeEdgeList'_ a1' >>= \res -> + return () +{-# LINE 169 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMPrepareForShadowVolume :: HG3DClass -> IO () +cMPrepareForShadowVolume a1 = + withHG3DClass a1 $ \a1' -> + cMPrepareForShadowVolume'_ a1' >>= \res -> + return () +{-# LINE 172 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMIsPreparedForShadowVolumes :: HG3DClass -> IO (Bool) +cMIsPreparedForShadowVolumes a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMIsPreparedForShadowVolumes'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 176 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMIsEdgeListBuilt :: HG3DClass -> IO (Bool) +cMIsEdgeListBuilt a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMIsEdgeListBuilt'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 180 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMSetAutoBuildEdgeLists :: HG3DClass -> Bool -> IO () +cMSetAutoBuildEdgeLists a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cMSetAutoBuildEdgeLists'_ a1' a2' >>= \res -> + return () +{-# LINE 184 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMGetAutoBuildEdgeLists :: HG3DClass -> IO (Bool) +cMGetAutoBuildEdgeLists a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMGetAutoBuildEdgeLists'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 188 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMGetSharedVertexDataAnimationType :: HG3DClass -> IO (EnumVertexAnimationType) +cMGetSharedVertexDataAnimationType a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMGetSharedVertexDataAnimationType'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 192 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMCreateAnimation :: HG3DClass -> String -> Float -> IO (HG3DClass) +cMCreateAnimation a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = realToFrac a3} in + alloca $ \a4' -> + cMCreateAnimation'_ a1' a2' a3' a4' >>= \res -> + peek a4'>>= \a4'' -> + return (a4'') +{-# LINE 198 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMGetAnimation :: HG3DClass -> String -> IO (HG3DClass) +cMGetAnimation a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cMGetAnimation'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 203 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMGetAnimationImpl :: HG3DClass -> String -> IO (HG3DClass) +cMGetAnimationImpl a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cMGetAnimationImpl'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 208 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMHasAnimation :: HG3DClass -> String -> IO (Bool) +cMHasAnimation a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cMHasAnimation'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 213 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMRemoveAnimation :: HG3DClass -> String -> IO () +cMRemoveAnimation a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cMRemoveAnimation'_ a1' a2' >>= \res -> + return () +{-# LINE 217 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMGetNumAnimations :: HG3DClass -> IO (Int) +cMGetNumAnimations a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMGetNumAnimations'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 221 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMGetAnimation2 :: HG3DClass -> Int -> IO (HG3DClass) +cMGetAnimation2 a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cMGetAnimation2'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 226 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMRemoveAllAnimations :: HG3DClass -> IO () +cMRemoveAllAnimations a1 = + withHG3DClass a1 $ \a1' -> + cMRemoveAllAnimations'_ a1' >>= \res -> + return () +{-# LINE 229 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMUpdateMaterialForAllSubMeshes :: HG3DClass -> IO () +cMUpdateMaterialForAllSubMeshes a1 = + withHG3DClass a1 $ \a1' -> + cMUpdateMaterialForAllSubMeshes'_ a1' >>= \res -> + return () +{-# LINE 232 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMDetermineAnimationTypes :: HG3DClass -> IO () +cMDetermineAnimationTypes a1 = + withHG3DClass a1 $ \a1' -> + cMDetermineAnimationTypes'_ a1' >>= \res -> + return () +{-# LINE 235 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMGetAnimationTypesDirty :: HG3DClass -> IO (Bool) +cMGetAnimationTypesDirty a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMGetAnimationTypesDirty'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 239 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMGetPoseCount :: HG3DClass -> IO (Int) +cMGetPoseCount a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMGetPoseCount'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 243 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMRemovePose2 :: HG3DClass -> String -> IO () +cMRemovePose2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cMRemovePose2'_ a1' a2' >>= \res -> + return () +{-# LINE 247 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; +cMRemoveAllPoses :: HG3DClass -> IO () +cMRemoveAllPoses a1 = + withHG3DClass a1 $ \a1' -> + cMRemoveAllPoses'_ a1' >>= \res -> + return () +{-# LINE 250 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_createSubMesh_c" + cMCreateSubMesh'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_createSubMesh2_c" + cMCreateSubMesh2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_unnameSubMesh_c" + cMUnnameSubMesh'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_getNumSubMeshes_c" + cMGetNumSubMeshes'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_getSubMesh_c" + cMGetSubMesh'_ :: ((HG3DClassPtr) -> (CUInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_getSubMesh2_c" + cMGetSubMesh2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_destroySubMesh_c" + cMDestroySubMesh'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_destroySubMesh2_c" + cMDestroySubMesh2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_getBoundingSphereRadius_c" + cMGetBoundingSphereRadius'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM__setBoundingSphereRadius_c" + cMSetBoundingSphereRadius'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_setSkeletonName_c" + cMSetSkeletonName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_hasSkeleton_c" + cMHasSkeleton'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_hasVertexAnimation_c" + cMHasVertexAnimation'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_getSkeletonName_c" + cMGetSkeletonName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_clearBoneAssignments_c" + cMClearBoneAssignments'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_createManualLodLevel_c" + cMCreateManualLodLevel'_ :: ((HG3DClassPtr) -> (CFloat -> ((Ptr CChar) -> ((Ptr CChar) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_isLodManual_c" + cMIsLodManual'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM__setLodInfo_c" + cMSetLodInfo'_ :: ((HG3DClassPtr) -> (CUInt -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_removeLodLevels_c" + cMRemoveLodLevels'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_isVertexBufferShadowed_c" + cMIsVertexBufferShadowed'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_isIndexBufferShadowed_c" + cMIsIndexBufferShadowed'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM__compileBoneAssignments_c" + cMCompileBoneAssignments'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM__updateCompiledBoneAssignments_c" + cMUpdateCompiledBoneAssignments'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_buildTangentVectors_c" + cMBuildTangentVectors'_ :: ((HG3DClassPtr) -> (CInt -> (CUInt -> (CUInt -> (CInt -> (CInt -> (CInt -> (IO ())))))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_buildEdgeList_c" + cMBuildEdgeList'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_freeEdgeList_c" + cMFreeEdgeList'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_prepareForShadowVolume_c" + cMPrepareForShadowVolume'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_isPreparedForShadowVolumes_c" + cMIsPreparedForShadowVolumes'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_isEdgeListBuilt_c" + cMIsEdgeListBuilt'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_setAutoBuildEdgeLists_c" + cMSetAutoBuildEdgeLists'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_getAutoBuildEdgeLists_c" + cMGetAutoBuildEdgeLists'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_getSharedVertexDataAnimationType_c" + cMGetSharedVertexDataAnimationType'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_createAnimation_c" + cMCreateAnimation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CFloat -> ((HG3DClassPtr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_getAnimation_c" + cMGetAnimation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM__getAnimationImpl_c" + cMGetAnimationImpl'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_hasAnimation_c" + cMHasAnimation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_removeAnimation_c" + cMRemoveAnimation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_getNumAnimations_c" + cMGetNumAnimations'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_getAnimation2_c" + cMGetAnimation2'_ :: ((HG3DClassPtr) -> (CUInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_removeAllAnimations_c" + cMRemoveAllAnimations'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_updateMaterialForAllSubMeshes_c" + cMUpdateMaterialForAllSubMeshes'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM__determineAnimationTypes_c" + cMDetermineAnimationTypes'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM__getAnimationTypesDirty_c" + cMGetAnimationTypesDirty'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_getPoseCount_c" + cMGetPoseCount'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_removePose2_c" + cMRemovePose2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_removeAllPoses_c" + cMRemoveAllPoses'_ :: ((HG3DClassPtr) -> (IO ()))
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassMeshPtr.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassMeshPtr.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreMesh.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassMeshPtr where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassMeshPtr.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassMeshPtr.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassMeshPtr.chs" #-} + +
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassMeshSerializer.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassMeshSerializer.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreMeshSerializer.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassMeshSerializer where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassMeshSerializer.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassMeshSerializer.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassMeshSerializer.chs" #-} + +
@@ -0,0 +1,503 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassMovableObject.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreMovableObject.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassMovableObject where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} + + +cMoNotifyCreator :: HG3DClass -> HG3DClass -> IO () +cMoNotifyCreator a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cMoNotifyCreator'_ a1' a2' >>= \res -> + return () +{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; +cMoGetCreator :: HG3DClass -> IO (HG3DClass) +cMoGetCreator a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMoGetCreator'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; +cMoNotifyManager :: HG3DClass -> HG3DClass -> IO () +cMoNotifyManager a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cMoNotifyManager'_ a1' a2' >>= \res -> + return () +{-# LINE 70 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; +cMoGetManager :: HG3DClass -> IO (HG3DClass) +cMoGetManager a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMoGetManager'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 74 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; +cMoGetName :: HG3DClass -> IO (String) +cMoGetName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cMoGetName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 78 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; +cMoGetMovableType :: HG3DClass -> IO (String) +cMoGetMovableType a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cMoGetMovableType'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 82 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; +cMoGetParentNode :: HG3DClass -> IO (HG3DClass) +cMoGetParentNode a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMoGetParentNode'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 86 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; +cMoGetParentSceneNode :: HG3DClass -> IO (HG3DClass) +cMoGetParentSceneNode a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMoGetParentSceneNode'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 90 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; +cMoIsParentTagPoint :: HG3DClass -> IO (Bool) +cMoIsParentTagPoint a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMoIsParentTagPoint'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 94 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; +cMoNotifyAttached :: HG3DClass -> HG3DClass -> Bool -> IO () +cMoNotifyAttached a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + let {a3' = fromBool a3} in + cMoNotifyAttached'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 99 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; +cMoIsAttached :: HG3DClass -> IO (Bool) +cMoIsAttached a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMoIsAttached'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 103 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; +cMoDetachFromParent :: HG3DClass -> IO () +cMoDetachFromParent a1 = + withHG3DClass a1 $ \a1' -> + cMoDetachFromParent'_ a1' >>= \res -> + return () +{-# LINE 106 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; +cMoIsInScene :: HG3DClass -> IO (Bool) +cMoIsInScene a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMoIsInScene'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 110 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; +cMoNotifyMoved :: HG3DClass -> IO () +cMoNotifyMoved a1 = + withHG3DClass a1 $ \a1' -> + cMoNotifyMoved'_ a1' >>= \res -> + return () +{-# LINE 113 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; +cMoNotifyCurrentCamera :: HG3DClass -> HG3DClass -> IO () +cMoNotifyCurrentCamera a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cMoNotifyCurrentCamera'_ a1' a2' >>= \res -> + return () +{-# LINE 117 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; +cMoGetBoundingRadius :: HG3DClass -> IO (Float) +cMoGetBoundingRadius a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMoGetBoundingRadius'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 121 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; +cMoSetVisible :: HG3DClass -> Bool -> IO () +cMoSetVisible a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cMoSetVisible'_ a1' a2' >>= \res -> + return () +{-# LINE 125 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; +cMoGetVisible :: HG3DClass -> IO (Bool) +cMoGetVisible a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMoGetVisible'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 129 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; +cMoIsVisible :: HG3DClass -> IO (Bool) +cMoIsVisible a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMoIsVisible'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 133 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; +cMoSetRenderingDistance :: HG3DClass -> Float -> IO () +cMoSetRenderingDistance a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cMoSetRenderingDistance'_ a1' a2' >>= \res -> + return () +{-# LINE 137 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; +cMoGetRenderingDistance :: HG3DClass -> IO (Float) +cMoGetRenderingDistance a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMoGetRenderingDistance'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 141 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; +cMoSetQueryFlags :: HG3DClass -> Int -> IO () +cMoSetQueryFlags a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cMoSetQueryFlags'_ a1' a2' >>= \res -> + return () +{-# LINE 145 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; +cMoAddQueryFlags :: HG3DClass -> Int -> IO () +cMoAddQueryFlags a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cMoAddQueryFlags'_ a1' a2' >>= \res -> + return () +{-# LINE 149 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; +cMoRemoveQueryFlags :: HG3DClass -> Int -> IO () +cMoRemoveQueryFlags a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cMoRemoveQueryFlags'_ a1' a2' >>= \res -> + return () +{-# LINE 153 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; +cMoGetQueryFlags :: HG3DClass -> IO (Int) +cMoGetQueryFlags a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMoGetQueryFlags'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 157 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; +cMoSetVisibilityFlags :: HG3DClass -> Int -> IO () +cMoSetVisibilityFlags a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cMoSetVisibilityFlags'_ a1' a2' >>= \res -> + return () +{-# LINE 161 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; +cMoAddVisibilityFlags :: HG3DClass -> Int -> IO () +cMoAddVisibilityFlags a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cMoAddVisibilityFlags'_ a1' a2' >>= \res -> + return () +{-# LINE 165 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; +cMoRemoveVisibilityFlags :: HG3DClass -> Int -> IO () +cMoRemoveVisibilityFlags a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cMoRemoveVisibilityFlags'_ a1' a2' >>= \res -> + return () +{-# LINE 169 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; +cMoGetVisibilityFlags :: HG3DClass -> IO (Int) +cMoGetVisibilityFlags a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMoGetVisibilityFlags'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 173 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; +cMoGetLightMask :: HG3DClass -> IO (Int) +cMoGetLightMask a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMoGetLightMask'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 177 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; +cMoSetLightMask :: HG3DClass -> Int -> IO () +cMoSetLightMask a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cMoSetLightMask'_ a1' a2' >>= \res -> + return () +{-# LINE 181 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; +cMoHasEdgeList :: HG3DClass -> IO (Bool) +cMoHasEdgeList a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMoHasEdgeList'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 185 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; +cMoSetCastShadows :: HG3DClass -> Bool -> IO () +cMoSetCastShadows a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cMoSetCastShadows'_ a1' a2' >>= \res -> + return () +{-# LINE 189 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; +cMoGetCastShadows :: HG3DClass -> IO (Bool) +cMoGetCastShadows a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMoGetCastShadows'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 193 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; +cMoGetReceivesShadows :: HG3DClass -> IO (Bool) +cMoGetReceivesShadows a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMoGetReceivesShadows'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 197 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; +cMoGetTypeFlags :: HG3DClass -> IO (Int) +cMoGetTypeFlags a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMoGetTypeFlags'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 201 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; +cMoSetDebugDisplayEnabled :: HG3DClass -> Bool -> IO () +cMoSetDebugDisplayEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cMoSetDebugDisplayEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 205 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; +cMoIsDebugDisplayEnabled :: HG3DClass -> IO (Bool) +cMoIsDebugDisplayEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMoIsDebugDisplayEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 209 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo__notifyCreator_c" + cMoNotifyCreator'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo__getCreator_c" + cMoGetCreator'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo__notifyManager_c" + cMoNotifyManager'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo__getManager_c" + cMoGetManager'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo_getName_c" + cMoGetName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo_getMovableType_c" + cMoGetMovableType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo_getParentNode_c" + cMoGetParentNode'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo_getParentSceneNode_c" + cMoGetParentSceneNode'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo_isParentTagPoint_c" + cMoIsParentTagPoint'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo__notifyAttached_c" + cMoNotifyAttached'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo_isAttached_c" + cMoIsAttached'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo_detachFromParent_c" + cMoDetachFromParent'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo_isInScene_c" + cMoIsInScene'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo__notifyMoved_c" + cMoNotifyMoved'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo__notifyCurrentCamera_c" + cMoNotifyCurrentCamera'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo_getBoundingRadius_c" + cMoGetBoundingRadius'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo_setVisible_c" + cMoSetVisible'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo_getVisible_c" + cMoGetVisible'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo_isVisible_c" + cMoIsVisible'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo_setRenderingDistance_c" + cMoSetRenderingDistance'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo_getRenderingDistance_c" + cMoGetRenderingDistance'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo_setQueryFlags_c" + cMoSetQueryFlags'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo_addQueryFlags_c" + cMoAddQueryFlags'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo_removeQueryFlags_c" + cMoRemoveQueryFlags'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo_getQueryFlags_c" + cMoGetQueryFlags'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo_setVisibilityFlags_c" + cMoSetVisibilityFlags'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo_addVisibilityFlags_c" + cMoAddVisibilityFlags'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo_removeVisibilityFlags_c" + cMoRemoveVisibilityFlags'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo_getVisibilityFlags_c" + cMoGetVisibilityFlags'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo_getLightMask_c" + cMoGetLightMask'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo_setLightMask_c" + cMoSetLightMask'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo_hasEdgeList_c" + cMoHasEdgeList'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo_setCastShadows_c" + cMoSetCastShadows'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo_getCastShadows_c" + cMoGetCastShadows'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo_getReceivesShadows_c" + cMoGetReceivesShadows'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo_getTypeFlags_c" + cMoGetTypeFlags'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo_setDebugDisplayEnabled_c" + cMoSetDebugDisplayEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo_isDebugDisplayEnabled_c" + cMoIsDebugDisplayEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
@@ -0,0 +1,112 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassMovableObjectFactory.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassMovableObjectFactory.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreMovableObject.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassMovableObjectFactory where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassMovableObjectFactory.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassMovableObjectFactory.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassMovableObjectFactory.chs" #-} + + +cMofGetType :: HG3DClass -> IO (String) +cMofGetType a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cMofGetType'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassMovableObjectFactory.chs" #-} +; +cMofDestroyInstance :: HG3DClass -> HG3DClass -> IO () +cMofDestroyInstance a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cMofDestroyInstance'_ a1' a2' >>= \res -> + return () +{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassMovableObjectFactory.chs" #-} +; +cMofRequestTypeFlags :: HG3DClass -> IO (Bool) +cMofRequestTypeFlags a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMofRequestTypeFlags'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 70 "HGamer3D\\Bindings\\Ogre\\ClassMovableObjectFactory.chs" #-} +; +cMofGetTypeFlags :: HG3DClass -> IO (Int) +cMofGetTypeFlags a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMofGetTypeFlags'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 74 "HGamer3D\\Bindings\\Ogre\\ClassMovableObjectFactory.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObjectFactory.chs.h cMof_getType_c" + cMofGetType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObjectFactory.chs.h cMof_destroyInstance_c" + cMofDestroyInstance'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObjectFactory.chs.h cMof_requestTypeFlags_c" + cMofRequestTypeFlags'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObjectFactory.chs.h cMof_getTypeFlags_c" + cMofGetTypeFlags'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ())))
@@ -0,0 +1,102 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassMultiRenderTarget.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassMultiRenderTarget.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRenderTexture.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassMultiRenderTarget where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassMultiRenderTarget.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassMultiRenderTarget.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassMultiRenderTarget.chs" #-} +import HGamer3D.Bindings.Ogre.EnumPixelFormat +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassMultiRenderTarget.chs" #-} + + +cMrtBindSurface :: HG3DClass -> Int -> HG3DClass -> IO () +cMrtBindSurface a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + withHG3DClass a3 $ \a3' -> + cMrtBindSurface'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 64 "HGamer3D\\Bindings\\Ogre\\ClassMultiRenderTarget.chs" #-} +; +cMrtUnbindSurface :: HG3DClass -> Int -> IO () +cMrtUnbindSurface a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cMrtUnbindSurface'_ a1' a2' >>= \res -> + return () +{-# LINE 68 "HGamer3D\\Bindings\\Ogre\\ClassMultiRenderTarget.chs" #-} +; +cMrtSuggestPixelFormat :: HG3DClass -> IO (EnumPixelFormat) +cMrtSuggestPixelFormat a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cMrtSuggestPixelFormat'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 72 "HGamer3D\\Bindings\\Ogre\\ClassMultiRenderTarget.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMultiRenderTarget.chs.h cMrt_bindSurface_c" + cMrtBindSurface'_ :: ((HG3DClassPtr) -> (CInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMultiRenderTarget.chs.h cMrt_unbindSurface_c" + cMrtUnbindSurface'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMultiRenderTarget.chs.h cMrt_suggestPixelFormat_c" + cMrtSuggestPixelFormat'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
@@ -0,0 +1,712 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassNode.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreNode.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassNode where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +import HGamer3D.Bindings.Ogre.TypeQuaternion +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +import HGamer3D.Bindings.Ogre.TypeVector3 +{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +import HGamer3D.Bindings.Ogre.EnumTransformSpace +{-# LINE 59 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +import HGamer3D.Bindings.Ogre.TypeRadian +{-# LINE 60 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + + +cNGetName :: HG3DClass -> IO (String) +cNGetName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cNGetName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNGetParent :: HG3DClass -> IO (HG3DClass) +cNGetParent a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cNGetParent'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 70 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNGetOrientation :: HG3DClass -> IO (Quaternion) +cNGetOrientation a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cNGetOrientation'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 74 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNSetOrientation :: HG3DClass -> Quaternion -> IO () +cNSetOrientation a1 a2 = + withHG3DClass a1 $ \a1' -> + withQuaternion a2 $ \a2' -> + cNSetOrientation'_ a1' a2' >>= \res -> + return () +{-# LINE 78 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNSetOrientation2 :: HG3DClass -> Float -> Float -> Float -> Float -> IO () +cNSetOrientation2 a1 a2 a3 a4 a5 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + let {a5' = realToFrac a5} in + cNSetOrientation2'_ a1' a2' a3' a4' a5' >>= \res -> + return () +{-# LINE 85 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNResetOrientation :: HG3DClass -> IO () +cNResetOrientation a1 = + withHG3DClass a1 $ \a1' -> + cNResetOrientation'_ a1' >>= \res -> + return () +{-# LINE 88 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNSetPosition :: HG3DClass -> Vector3 -> IO () +cNSetPosition a1 a2 = + withHG3DClass a1 $ \a1' -> + withVector3 a2 $ \a2' -> + cNSetPosition'_ a1' a2' >>= \res -> + return () +{-# LINE 92 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNSetPosition2 :: HG3DClass -> Float -> Float -> Float -> IO () +cNSetPosition2 a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + cNSetPosition2'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 98 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNGetPosition :: HG3DClass -> IO (Vector3) +cNGetPosition a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cNGetPosition'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 102 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNSetScale :: HG3DClass -> Vector3 -> IO () +cNSetScale a1 a2 = + withHG3DClass a1 $ \a1' -> + withVector3 a2 $ \a2' -> + cNSetScale'_ a1' a2' >>= \res -> + return () +{-# LINE 106 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNSetScale2 :: HG3DClass -> Float -> Float -> Float -> IO () +cNSetScale2 a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + cNSetScale2'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 112 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNGetScale :: HG3DClass -> IO (Vector3) +cNGetScale a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cNGetScale'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 116 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNSetInheritOrientation :: HG3DClass -> Bool -> IO () +cNSetInheritOrientation a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cNSetInheritOrientation'_ a1' a2' >>= \res -> + return () +{-# LINE 120 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNGetInheritOrientation :: HG3DClass -> IO (Bool) +cNGetInheritOrientation a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cNGetInheritOrientation'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 124 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNSetInheritScale :: HG3DClass -> Bool -> IO () +cNSetInheritScale a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cNSetInheritScale'_ a1' a2' >>= \res -> + return () +{-# LINE 128 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNGetInheritScale :: HG3DClass -> IO (Bool) +cNGetInheritScale a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cNGetInheritScale'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 132 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNScale :: HG3DClass -> Vector3 -> IO () +cNScale a1 a2 = + withHG3DClass a1 $ \a1' -> + withVector3 a2 $ \a2' -> + cNScale'_ a1' a2' >>= \res -> + return () +{-# LINE 136 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNScale2 :: HG3DClass -> Float -> Float -> Float -> IO () +cNScale2 a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + cNScale2'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 142 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNTranslate :: HG3DClass -> Vector3 -> EnumTransformSpace -> IO () +cNTranslate a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withVector3 a2 $ \a2' -> + let {a3' = cIntFromEnum a3} in + cNTranslate'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 147 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNTranslate2 :: HG3DClass -> Float -> Float -> Float -> EnumTransformSpace -> IO () +cNTranslate2 a1 a2 a3 a4 a5 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + let {a5' = cIntFromEnum a5} in + cNTranslate2'_ a1' a2' a3' a4' a5' >>= \res -> + return () +{-# LINE 154 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNRoll :: HG3DClass -> Radian -> EnumTransformSpace -> IO () +cNRoll a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withRadian a2 $ \a2' -> + let {a3' = cIntFromEnum a3} in + cNRoll'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 159 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNPitch :: HG3DClass -> Radian -> EnumTransformSpace -> IO () +cNPitch a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withRadian a2 $ \a2' -> + let {a3' = cIntFromEnum a3} in + cNPitch'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 164 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNYaw :: HG3DClass -> Radian -> EnumTransformSpace -> IO () +cNYaw a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withRadian a2 $ \a2' -> + let {a3' = cIntFromEnum a3} in + cNYaw'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 169 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNRotate :: HG3DClass -> Vector3 -> Radian -> EnumTransformSpace -> IO () +cNRotate a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + withVector3 a2 $ \a2' -> + withRadian a3 $ \a3' -> + let {a4' = cIntFromEnum a4} in + cNRotate'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 175 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNRotate2 :: HG3DClass -> Quaternion -> EnumTransformSpace -> IO () +cNRotate2 a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withQuaternion a2 $ \a2' -> + let {a3' = cIntFromEnum a3} in + cNRotate2'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 180 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNCreateChild :: HG3DClass -> Vector3 -> Quaternion -> IO (HG3DClass) +cNCreateChild a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withVector3 a2 $ \a2' -> + withQuaternion a3 $ \a3' -> + alloca $ \a4' -> + cNCreateChild'_ a1' a2' a3' a4' >>= \res -> + peek a4'>>= \a4'' -> + return (a4'') +{-# LINE 186 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNCreateChild2 :: HG3DClass -> String -> Vector3 -> Quaternion -> IO (HG3DClass) +cNCreateChild2 a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withVector3 a3 $ \a3' -> + withQuaternion a4 $ \a4' -> + alloca $ \a5' -> + cNCreateChild2'_ a1' a2' a3' a4' a5' >>= \res -> + peek a5'>>= \a5'' -> + return (a5'') +{-# LINE 193 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNAddChild :: HG3DClass -> HG3DClass -> IO () +cNAddChild a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cNAddChild'_ a1' a2' >>= \res -> + return () +{-# LINE 197 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNNumChildren :: HG3DClass -> IO (Int) +cNNumChildren a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cNNumChildren'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 201 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNGetChild :: HG3DClass -> Int -> IO (HG3DClass) +cNGetChild a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cNGetChild'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 206 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNGetChild2 :: HG3DClass -> String -> IO (HG3DClass) +cNGetChild2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cNGetChild2'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 211 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNRemoveChild :: HG3DClass -> Int -> IO (HG3DClass) +cNRemoveChild a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cNRemoveChild'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 216 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNRemoveChild2 :: HG3DClass -> HG3DClass -> IO (HG3DClass) +cNRemoveChild2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + alloca $ \a3' -> + cNRemoveChild2'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 221 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNRemoveChild3 :: HG3DClass -> String -> IO (HG3DClass) +cNRemoveChild3 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cNRemoveChild3'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 226 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNRemoveAllChildren :: HG3DClass -> IO () +cNRemoveAllChildren a1 = + withHG3DClass a1 $ \a1' -> + cNRemoveAllChildren'_ a1' >>= \res -> + return () +{-# LINE 229 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNSetDerivedPosition :: HG3DClass -> Vector3 -> IO () +cNSetDerivedPosition a1 a2 = + withHG3DClass a1 $ \a1' -> + withVector3 a2 $ \a2' -> + cNSetDerivedPosition'_ a1' a2' >>= \res -> + return () +{-# LINE 233 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNSetDerivedOrientation :: HG3DClass -> Quaternion -> IO () +cNSetDerivedOrientation a1 a2 = + withHG3DClass a1 $ \a1' -> + withQuaternion a2 $ \a2' -> + cNSetDerivedOrientation'_ a1' a2' >>= \res -> + return () +{-# LINE 237 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNGetDerivedOrientation :: HG3DClass -> IO (Quaternion) +cNGetDerivedOrientation a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cNGetDerivedOrientation'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 241 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNGetDerivedPosition :: HG3DClass -> IO (Vector3) +cNGetDerivedPosition a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cNGetDerivedPosition'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 245 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNGetDerivedScale :: HG3DClass -> IO (Vector3) +cNGetDerivedScale a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cNGetDerivedScale'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 249 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNUpdate :: HG3DClass -> Bool -> Bool -> IO () +cNUpdate a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + let {a3' = fromBool a3} in + cNUpdate'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 254 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNSetInitialState :: HG3DClass -> IO () +cNSetInitialState a1 = + withHG3DClass a1 $ \a1' -> + cNSetInitialState'_ a1' >>= \res -> + return () +{-# LINE 257 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNResetToInitialState :: HG3DClass -> IO () +cNResetToInitialState a1 = + withHG3DClass a1 $ \a1' -> + cNResetToInitialState'_ a1' >>= \res -> + return () +{-# LINE 260 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNGetInitialPosition :: HG3DClass -> IO (Vector3) +cNGetInitialPosition a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cNGetInitialPosition'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 264 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNConvertWorldToLocalPosition :: HG3DClass -> Vector3 -> IO (Vector3) +cNConvertWorldToLocalPosition a1 a2 = + withHG3DClass a1 $ \a1' -> + withVector3 a2 $ \a2' -> + alloca $ \a3' -> + cNConvertWorldToLocalPosition'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 269 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNConvertLocalToWorldPosition :: HG3DClass -> Vector3 -> IO (Vector3) +cNConvertLocalToWorldPosition a1 a2 = + withHG3DClass a1 $ \a1' -> + withVector3 a2 $ \a2' -> + alloca $ \a3' -> + cNConvertLocalToWorldPosition'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 274 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNConvertWorldToLocalOrientation :: HG3DClass -> Quaternion -> IO (Quaternion) +cNConvertWorldToLocalOrientation a1 a2 = + withHG3DClass a1 $ \a1' -> + withQuaternion a2 $ \a2' -> + alloca $ \a3' -> + cNConvertWorldToLocalOrientation'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 279 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNConvertLocalToWorldOrientation :: HG3DClass -> Quaternion -> IO (Quaternion) +cNConvertLocalToWorldOrientation a1 a2 = + withHG3DClass a1 $ \a1' -> + withQuaternion a2 $ \a2' -> + alloca $ \a3' -> + cNConvertLocalToWorldOrientation'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 284 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNGetInitialOrientation :: HG3DClass -> IO (Quaternion) +cNGetInitialOrientation a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cNGetInitialOrientation'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 288 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNGetInitialScale :: HG3DClass -> IO (Vector3) +cNGetInitialScale a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cNGetInitialScale'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 292 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNNeedUpdate :: HG3DClass -> Bool -> IO () +cNNeedUpdate a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cNNeedUpdate'_ a1' a2' >>= \res -> + return () +{-# LINE 296 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNRequestUpdate :: HG3DClass -> HG3DClass -> Bool -> IO () +cNRequestUpdate a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + let {a3' = fromBool a3} in + cNRequestUpdate'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 301 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; +cNCancelUpdate :: HG3DClass -> HG3DClass -> IO () +cNCancelUpdate a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cNCancelUpdate'_ a1' a2' >>= \res -> + return () +{-# LINE 305 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_getName_c" + cNGetName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_getParent_c" + cNGetParent'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_getOrientation_c" + cNGetOrientation'_ :: ((HG3DClassPtr) -> ((QuaternionPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_setOrientation_c" + cNSetOrientation'_ :: ((HG3DClassPtr) -> ((QuaternionPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_setOrientation2_c" + cNSetOrientation2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (CFloat -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_resetOrientation_c" + cNResetOrientation'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_setPosition_c" + cNSetPosition'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_setPosition2_c" + cNSetPosition2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_getPosition_c" + cNGetPosition'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_setScale_c" + cNSetScale'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_setScale2_c" + cNSetScale2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_getScale_c" + cNGetScale'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_setInheritOrientation_c" + cNSetInheritOrientation'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_getInheritOrientation_c" + cNGetInheritOrientation'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_setInheritScale_c" + cNSetInheritScale'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_getInheritScale_c" + cNGetInheritScale'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_scale_c" + cNScale'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_scale2_c" + cNScale2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_translate_c" + cNTranslate'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_translate2_c" + cNTranslate2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (CInt -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_roll_c" + cNRoll'_ :: ((HG3DClassPtr) -> ((RadianPtr) -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_pitch_c" + cNPitch'_ :: ((HG3DClassPtr) -> ((RadianPtr) -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_yaw_c" + cNYaw'_ :: ((HG3DClassPtr) -> ((RadianPtr) -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_rotate_c" + cNRotate'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> ((RadianPtr) -> (CInt -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_rotate2_c" + cNRotate2'_ :: ((HG3DClassPtr) -> ((QuaternionPtr) -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_createChild_c" + cNCreateChild'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> ((QuaternionPtr) -> ((HG3DClassPtr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_createChild2_c" + cNCreateChild2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Vector3Ptr) -> ((QuaternionPtr) -> ((HG3DClassPtr) -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_addChild_c" + cNAddChild'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_numChildren_c" + cNNumChildren'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_getChild_c" + cNGetChild'_ :: ((HG3DClassPtr) -> (CUInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_getChild2_c" + cNGetChild2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_removeChild_c" + cNRemoveChild'_ :: ((HG3DClassPtr) -> (CUInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_removeChild2_c" + cNRemoveChild2'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_removeChild3_c" + cNRemoveChild3'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_removeAllChildren_c" + cNRemoveAllChildren'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN__setDerivedPosition_c" + cNSetDerivedPosition'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN__setDerivedOrientation_c" + cNSetDerivedOrientation'_ :: ((HG3DClassPtr) -> ((QuaternionPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN__getDerivedOrientation_c" + cNGetDerivedOrientation'_ :: ((HG3DClassPtr) -> ((QuaternionPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN__getDerivedPosition_c" + cNGetDerivedPosition'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN__getDerivedScale_c" + cNGetDerivedScale'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN__update_c" + cNUpdate'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_setInitialState_c" + cNSetInitialState'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_resetToInitialState_c" + cNResetToInitialState'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_getInitialPosition_c" + cNGetInitialPosition'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_convertWorldToLocalPosition_c" + cNConvertWorldToLocalPosition'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> ((Vector3Ptr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_convertLocalToWorldPosition_c" + cNConvertLocalToWorldPosition'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> ((Vector3Ptr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_convertWorldToLocalOrientation_c" + cNConvertWorldToLocalOrientation'_ :: ((HG3DClassPtr) -> ((QuaternionPtr) -> ((QuaternionPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_convertLocalToWorldOrientation_c" + cNConvertLocalToWorldOrientation'_ :: ((HG3DClassPtr) -> ((QuaternionPtr) -> ((QuaternionPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_getInitialOrientation_c" + cNGetInitialOrientation'_ :: ((HG3DClassPtr) -> ((QuaternionPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_getInitialScale_c" + cNGetInitialScale'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_needUpdate_c" + cNNeedUpdate'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_requestUpdate_c" + cNRequestUpdate'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_cancelUpdate_c" + cNCancelUpdate'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
@@ -0,0 +1,169 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassNodeAnimationTrack.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreAnimationTrack.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassNodeAnimationTrack where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-} + + +cNoantCreateNodeKeyFrame :: HG3DClass -> Float -> IO (HG3DClass) +cNoantCreateNodeKeyFrame a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + alloca $ \a3' -> + cNoantCreateNodeKeyFrame'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 63 "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-} +; +cNoantGetAssociatedNode :: HG3DClass -> IO (HG3DClass) +cNoantGetAssociatedNode a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cNoantGetAssociatedNode'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 67 "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-} +; +cNoantSetAssociatedNode :: HG3DClass -> HG3DClass -> IO () +cNoantSetAssociatedNode a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cNoantSetAssociatedNode'_ a1' a2' >>= \res -> + return () +{-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-} +; +cNoantSetUseShortestRotationPath :: HG3DClass -> Bool -> IO () +cNoantSetUseShortestRotationPath a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cNoantSetUseShortestRotationPath'_ a1' a2' >>= \res -> + return () +{-# LINE 75 "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-} +; +cNoantGetUseShortestRotationPath :: HG3DClass -> IO (Bool) +cNoantGetUseShortestRotationPath a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cNoantGetUseShortestRotationPath'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 79 "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-} +; +cNoantKeyFrameDataChanged :: HG3DClass -> IO () +cNoantKeyFrameDataChanged a1 = + withHG3DClass a1 $ \a1' -> + cNoantKeyFrameDataChanged'_ a1' >>= \res -> + return () +{-# LINE 82 "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-} +; +cNoantGetNodeKeyFrame :: HG3DClass -> Int -> IO (HG3DClass) +cNoantGetNodeKeyFrame a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cNoantGetNodeKeyFrame'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 87 "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-} +; +cNoantHasNonZeroKeyFrames :: HG3DClass -> IO (Bool) +cNoantHasNonZeroKeyFrames a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cNoantHasNonZeroKeyFrames'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 91 "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-} +; +cNoantOptimise :: HG3DClass -> IO () +cNoantOptimise a1 = + withHG3DClass a1 $ \a1' -> + cNoantOptimise'_ a1' >>= \res -> + return () +{-# LINE 94 "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs.h cNoant_createNodeKeyFrame_c" + cNoantCreateNodeKeyFrame'_ :: ((HG3DClassPtr) -> (CFloat -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs.h cNoant_getAssociatedNode_c" + cNoantGetAssociatedNode'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs.h cNoant_setAssociatedNode_c" + cNoantSetAssociatedNode'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs.h cNoant_setUseShortestRotationPath_c" + cNoantSetUseShortestRotationPath'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs.h cNoant_getUseShortestRotationPath_c" + cNoantGetUseShortestRotationPath'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs.h cNoant__keyFrameDataChanged_c" + cNoantKeyFrameDataChanged'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs.h cNoant_getNodeKeyFrame_c" + cNoantGetNodeKeyFrame'_ :: ((HG3DClassPtr) -> (CUInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs.h cNoant_hasNonZeroKeyFrames_c" + cNoantHasNonZeroKeyFrames'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs.h cNoant_optimise_c" + cNoantOptimise'_ :: ((HG3DClassPtr) -> (IO ()))
@@ -0,0 +1,91 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassNumericAnimationTrack.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassNumericAnimationTrack.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreAnimationTrack.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassNumericAnimationTrack where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassNumericAnimationTrack.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassNumericAnimationTrack.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassNumericAnimationTrack.chs" #-} + + +cNuantCreateNumericKeyFrame :: HG3DClass -> Float -> IO (HG3DClass) +cNuantCreateNumericKeyFrame a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + alloca $ \a3' -> + cNuantCreateNumericKeyFrame'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 63 "HGamer3D\\Bindings\\Ogre\\ClassNumericAnimationTrack.chs" #-} +; +cNuantGetNumericKeyFrame :: HG3DClass -> Int -> IO (HG3DClass) +cNuantGetNumericKeyFrame a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cNuantGetNumericKeyFrame'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 68 "HGamer3D\\Bindings\\Ogre\\ClassNumericAnimationTrack.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNumericAnimationTrack.chs.h cNuant_createNumericKeyFrame_c" + cNuantCreateNumericKeyFrame'_ :: ((HG3DClassPtr) -> (CFloat -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNumericAnimationTrack.chs.h cNuant_getNumericKeyFrame_c" + cNuantGetNumericKeyFrame'_ :: ((HG3DClassPtr) -> (CUInt -> ((HG3DClassPtr) -> (IO ()))))
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassNumericKeyFrame.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassNumericKeyFrame.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreKeyFrame.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassNumericKeyFrame where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassNumericKeyFrame.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassNumericKeyFrame.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassNumericKeyFrame.chs" #-} + +
@@ -0,0 +1,318 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassOverlay.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreOverlay.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassOverlay where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} +import HGamer3D.Bindings.Ogre.TypeRadian +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} + + +cOGetName :: HG3DClass -> IO (String) +cOGetName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cOGetName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 63 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} +; +cOIsVisible :: HG3DClass -> IO (Bool) +cOIsVisible a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cOIsVisible'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 67 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} +; +cOIsInitialised :: HG3DClass -> IO (Bool) +cOIsInitialised a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cOIsInitialised'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} +; +cOShow :: HG3DClass -> IO () +cOShow a1 = + withHG3DClass a1 $ \a1' -> + cOShow'_ a1' >>= \res -> + return () +{-# LINE 74 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} +; +cOHide :: HG3DClass -> IO () +cOHide a1 = + withHG3DClass a1 $ \a1' -> + cOHide'_ a1' >>= \res -> + return () +{-# LINE 77 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} +; +cOAdd2D :: HG3DClass -> HG3DClass -> IO () +cOAdd2D a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cOAdd2D'_ a1' a2' >>= \res -> + return () +{-# LINE 81 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} +; +cORemove2D :: HG3DClass -> HG3DClass -> IO () +cORemove2D a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cORemove2D'_ a1' a2' >>= \res -> + return () +{-# LINE 85 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} +; +cOAdd3D :: HG3DClass -> HG3DClass -> IO () +cOAdd3D a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cOAdd3D'_ a1' a2' >>= \res -> + return () +{-# LINE 89 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} +; +cORemove3D :: HG3DClass -> HG3DClass -> IO () +cORemove3D a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cORemove3D'_ a1' a2' >>= \res -> + return () +{-# LINE 93 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} +; +cOClear :: HG3DClass -> IO () +cOClear a1 = + withHG3DClass a1 $ \a1' -> + cOClear'_ a1' >>= \res -> + return () +{-# LINE 96 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} +; +cOSetScroll :: HG3DClass -> Float -> Float -> IO () +cOSetScroll a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + cOSetScroll'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 101 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} +; +cOGetScrollX :: HG3DClass -> IO (Float) +cOGetScrollX a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cOGetScrollX'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 105 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} +; +cOGetScrollY :: HG3DClass -> IO (Float) +cOGetScrollY a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cOGetScrollY'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 109 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} +; +cOScroll :: HG3DClass -> Float -> Float -> IO () +cOScroll a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + cOScroll'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 114 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} +; +cOSetRotate :: HG3DClass -> Radian -> IO () +cOSetRotate a1 a2 = + withHG3DClass a1 $ \a1' -> + withRadian a2 $ \a2' -> + cOSetRotate'_ a1' a2' >>= \res -> + return () +{-# LINE 118 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} +; +cOGetRotate :: HG3DClass -> IO (Radian) +cOGetRotate a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cOGetRotate'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 122 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} +; +cORotate :: HG3DClass -> Radian -> IO () +cORotate a1 a2 = + withHG3DClass a1 $ \a1' -> + withRadian a2 $ \a2' -> + cORotate'_ a1' a2' >>= \res -> + return () +{-# LINE 126 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} +; +cOSetScale :: HG3DClass -> Float -> Float -> IO () +cOSetScale a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + cOSetScale'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 131 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} +; +cOGetScaleX :: HG3DClass -> IO (Float) +cOGetScaleX a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cOGetScaleX'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 135 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} +; +cOGetScaleY :: HG3DClass -> IO (Float) +cOGetScaleY a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cOGetScaleY'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 139 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} +; +cOGetOrigin :: HG3DClass -> IO (String) +cOGetOrigin a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cOGetOrigin'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 143 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} +; +cONotifyOrigin :: HG3DClass -> String -> IO () +cONotifyOrigin a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cONotifyOrigin'_ a1' a2' >>= \res -> + return () +{-# LINE 147 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs.h cO_getName_c" + cOGetName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs.h cO_isVisible_c" + cOIsVisible'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs.h cO_isInitialised_c" + cOIsInitialised'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs.h cO_show_c" + cOShow'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs.h cO_hide_c" + cOHide'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs.h cO_add2D_c" + cOAdd2D'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs.h cO_remove2D_c" + cORemove2D'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs.h cO_add3D_c" + cOAdd3D'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs.h cO_remove3D_c" + cORemove3D'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs.h cO_clear_c" + cOClear'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs.h cO_setScroll_c" + cOSetScroll'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs.h cO_getScrollX_c" + cOGetScrollX'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs.h cO_getScrollY_c" + cOGetScrollY'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs.h cO_scroll_c" + cOScroll'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs.h cO_setRotate_c" + cOSetRotate'_ :: ((HG3DClassPtr) -> ((RadianPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs.h cO_getRotate_c" + cOGetRotate'_ :: ((HG3DClassPtr) -> ((RadianPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs.h cO_rotate_c" + cORotate'_ :: ((HG3DClassPtr) -> ((RadianPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs.h cO_setScale_c" + cOSetScale'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs.h cO_getScaleX_c" + cOGetScaleX'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs.h cO_getScaleY_c" + cOGetScaleY'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs.h cO_getOrigin_c" + cOGetOrigin'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs.h cO__notifyOrigin_c" + cONotifyOrigin'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ())))
@@ -0,0 +1,139 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassOverlayContainer.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassOverlayContainer.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreOverlayContainer.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassOverlayContainer where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassOverlayContainer.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassOverlayContainer.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassOverlayContainer.chs" #-} + + +cOcAddChildImpl2 :: HG3DClass -> HG3DClass -> IO () +cOcAddChildImpl2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cOcAddChildImpl2'_ a1' a2' >>= \res -> + return () +{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassOverlayContainer.chs" #-} +; +cOcRemoveChild :: HG3DClass -> String -> IO () +cOcRemoveChild a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cOcRemoveChild'_ a1' a2' >>= \res -> + return () +{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassOverlayContainer.chs" #-} +; +cOcInitialise :: HG3DClass -> IO () +cOcInitialise a1 = + withHG3DClass a1 $ \a1' -> + cOcInitialise'_ a1' >>= \res -> + return () +{-# LINE 69 "HGamer3D\\Bindings\\Ogre\\ClassOverlayContainer.chs" #-} +; +cOcPositionsOutOfDate :: HG3DClass -> IO () +cOcPositionsOutOfDate a1 = + withHG3DClass a1 $ \a1' -> + cOcPositionsOutOfDate'_ a1' >>= \res -> + return () +{-# LINE 72 "HGamer3D\\Bindings\\Ogre\\ClassOverlayContainer.chs" #-} +; +cOcUpdate :: HG3DClass -> IO () +cOcUpdate a1 = + withHG3DClass a1 $ \a1' -> + cOcUpdate'_ a1' >>= \res -> + return () +{-# LINE 75 "HGamer3D\\Bindings\\Ogre\\ClassOverlayContainer.chs" #-} +; +cOcNotifyViewport :: HG3DClass -> IO () +cOcNotifyViewport a1 = + withHG3DClass a1 $ \a1' -> + cOcNotifyViewport'_ a1' >>= \res -> + return () +{-# LINE 78 "HGamer3D\\Bindings\\Ogre\\ClassOverlayContainer.chs" #-} +; +cOcNotifyParent :: HG3DClass -> HG3DClass -> HG3DClass -> IO () +cOcNotifyParent a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + withHG3DClass a3 $ \a3' -> + cOcNotifyParent'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 83 "HGamer3D\\Bindings\\Ogre\\ClassOverlayContainer.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlayContainer.chs.h cOc_addChildImpl2_c" + cOcAddChildImpl2'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlayContainer.chs.h cOc_removeChild_c" + cOcRemoveChild'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlayContainer.chs.h cOc_initialise_c" + cOcInitialise'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlayContainer.chs.h cOc__positionsOutOfDate_c" + cOcPositionsOutOfDate'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlayContainer.chs.h cOc__update_c" + cOcUpdate'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlayContainer.chs.h cOc__notifyViewport_c" + cOcNotifyViewport'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlayContainer.chs.h cOc__notifyParent_c" + cOcNotifyParent'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))))
@@ -0,0 +1,222 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassOverlayManager.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreOverlayManager.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassOverlayManager where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs" #-} +import HGamer3D.Bindings.Ogre.EnumOrientationMode +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs" #-} + + +cOmGetLoadingOrder :: HG3DClass -> IO (Float) +cOmGetLoadingOrder a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cOmGetLoadingOrder'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 63 "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs" #-} +; +cOmCreate :: HG3DClass -> String -> IO (HG3DClass) +cOmCreate a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cOmCreate'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 68 "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs" #-} +; +cOmGetByName :: HG3DClass -> String -> IO (HG3DClass) +cOmGetByName a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cOmGetByName'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 73 "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs" #-} +; +cOmDestroy :: HG3DClass -> String -> IO () +cOmDestroy a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cOmDestroy'_ a1' a2' >>= \res -> + return () +{-# LINE 77 "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs" #-} +; +cOmDestroy2 :: HG3DClass -> HG3DClass -> IO () +cOmDestroy2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cOmDestroy2'_ a1' a2' >>= \res -> + return () +{-# LINE 81 "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs" #-} +; +cOmDestroyAll :: HG3DClass -> IO () +cOmDestroyAll a1 = + withHG3DClass a1 $ \a1' -> + cOmDestroyAll'_ a1' >>= \res -> + return () +{-# LINE 84 "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs" #-} +; +cOmHasViewportChanged :: HG3DClass -> IO (Bool) +cOmHasViewportChanged a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cOmHasViewportChanged'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 88 "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs" #-} +; +cOmGetViewportHeight :: HG3DClass -> IO (Int) +cOmGetViewportHeight a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cOmGetViewportHeight'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 92 "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs" #-} +; +cOmGetViewportWidth :: HG3DClass -> IO (Int) +cOmGetViewportWidth a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cOmGetViewportWidth'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 96 "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs" #-} +; +cOmGetViewportOrientationMode :: HG3DClass -> IO (EnumOrientationMode) +cOmGetViewportOrientationMode a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cOmGetViewportOrientationMode'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 100 "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs" #-} +; +cOmHasOverlayElement :: HG3DClass -> String -> Bool -> IO (Bool) +cOmHasOverlayElement a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = fromBool a3} in + alloca $ \a4' -> + cOmHasOverlayElement'_ a1' a2' a3' a4' >>= \res -> + peekBoolUtil a4'>>= \a4'' -> + return (a4'') +{-# LINE 106 "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs" #-} +; +cOmDestroyOverlayElement :: HG3DClass -> String -> Bool -> IO () +cOmDestroyOverlayElement a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = fromBool a3} in + cOmDestroyOverlayElement'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 111 "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs" #-} +; +cOmDestroyAllOverlayElements :: HG3DClass -> Bool -> IO () +cOmDestroyAllOverlayElements a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cOmDestroyAllOverlayElements'_ a1' a2' >>= \res -> + return () +{-# LINE 115 "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs.h cOm_getLoadingOrder_c" + cOmGetLoadingOrder'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs.h cOm_create_c" + cOmCreate'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs.h cOm_getByName_c" + cOmGetByName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs.h cOm_destroy_c" + cOmDestroy'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs.h cOm_destroy2_c" + cOmDestroy2'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs.h cOm_destroyAll_c" + cOmDestroyAll'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs.h cOm_hasViewportChanged_c" + cOmHasViewportChanged'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs.h cOm_getViewportHeight_c" + cOmGetViewportHeight'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs.h cOm_getViewportWidth_c" + cOmGetViewportWidth'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs.h cOm_getViewportOrientationMode_c" + cOmGetViewportOrientationMode'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs.h cOm_hasOverlayElement_c" + cOmHasOverlayElement'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> ((Ptr CInt) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs.h cOm_destroyOverlayElement_c" + cOmDestroyOverlayElement'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs.h cOm_destroyAllOverlayElements_c" + cOmDestroyAllOverlayElements'_ :: ((HG3DClassPtr) -> (CInt -> (IO ())))
@@ -0,0 +1,138 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassPSSMShadowCameraSetup.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassPSSMShadowCameraSetup.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreShadowCameraSetupPSSM.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassPSSMShadowCameraSetup where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassPSSMShadowCameraSetup.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassPSSMShadowCameraSetup.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassPSSMShadowCameraSetup.chs" #-} + + +cPssmscsCalculateSplitPoints :: HG3DClass -> Int -> Float -> Float -> Float -> IO () +cPssmscsCalculateSplitPoints a1 a2 a3 a4 a5 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + let {a5' = realToFrac a5} in + cPssmscsCalculateSplitPoints'_ a1' a2' a3' a4' a5' >>= \res -> + return () +{-# LINE 65 "HGamer3D\\Bindings\\Ogre\\ClassPSSMShadowCameraSetup.chs" #-} +; +cPssmscsSetOptimalAdjustFactor :: HG3DClass -> Int -> Float -> IO () +cPssmscsSetOptimalAdjustFactor a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + let {a3' = realToFrac a3} in + cPssmscsSetOptimalAdjustFactor'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 70 "HGamer3D\\Bindings\\Ogre\\ClassPSSMShadowCameraSetup.chs" #-} +; +cPssmscsSetSplitPadding :: HG3DClass -> Float -> IO () +cPssmscsSetSplitPadding a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cPssmscsSetSplitPadding'_ a1' a2' >>= \res -> + return () +{-# LINE 74 "HGamer3D\\Bindings\\Ogre\\ClassPSSMShadowCameraSetup.chs" #-} +; +cPssmscsGetSplitPadding :: HG3DClass -> IO (Float) +cPssmscsGetSplitPadding a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPssmscsGetSplitPadding'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 78 "HGamer3D\\Bindings\\Ogre\\ClassPSSMShadowCameraSetup.chs" #-} +; +cPssmscsGetSplitCount :: HG3DClass -> IO (Int) +cPssmscsGetSplitCount a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPssmscsGetSplitCount'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 82 "HGamer3D\\Bindings\\Ogre\\ClassPSSMShadowCameraSetup.chs" #-} +; +cPssmscsGetOptimalAdjustFactor2 :: HG3DClass -> IO (Float) +cPssmscsGetOptimalAdjustFactor2 a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPssmscsGetOptimalAdjustFactor2'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 86 "HGamer3D\\Bindings\\Ogre\\ClassPSSMShadowCameraSetup.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPSSMShadowCameraSetup.chs.h cPssmscs_calculateSplitPoints_c" + cPssmscsCalculateSplitPoints'_ :: ((HG3DClassPtr) -> (CInt -> (CFloat -> (CFloat -> (CFloat -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPSSMShadowCameraSetup.chs.h cPssmscs_setOptimalAdjustFactor_c" + cPssmscsSetOptimalAdjustFactor'_ :: ((HG3DClassPtr) -> (CInt -> (CFloat -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPSSMShadowCameraSetup.chs.h cPssmscs_setSplitPadding_c" + cPssmscsSetSplitPadding'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPSSMShadowCameraSetup.chs.h cPssmscs_getSplitPadding_c" + cPssmscsGetSplitPadding'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPSSMShadowCameraSetup.chs.h cPssmscs_getSplitCount_c" + cPssmscsGetSplitCount'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPSSMShadowCameraSetup.chs.h cPssmscs_getOptimalAdjustFactor2_c" + cPssmscsGetOptimalAdjustFactor2'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ())))
@@ -0,0 +1,77 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassParticleAffector.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassParticleAffector.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreParticleAffector.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassParticleAffector where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassParticleAffector.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassParticleAffector.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassParticleAffector.chs" #-} + + +cPaGetType :: HG3DClass -> IO (String) +cPaGetType a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cPaGetType'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassParticleAffector.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleAffector.chs.h cPa_getType_c" + cPaGetType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ())))
@@ -0,0 +1,708 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassParticleEmitter.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreParticleEmitter.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassParticleEmitter where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +import HGamer3D.Bindings.Ogre.TypeVector3 +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +import HGamer3D.Bindings.Ogre.TypeRadian +{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +import HGamer3D.Bindings.Ogre.TypeColourValue +{-# LINE 59 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} + + +cPeSetPosition :: HG3DClass -> Vector3 -> IO () +cPeSetPosition a1 a2 = + withHG3DClass a1 $ \a1' -> + withVector3 a2 $ \a2' -> + cPeSetPosition'_ a1' a2' >>= \res -> + return () +{-# LINE 65 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeGetPosition :: HG3DClass -> IO (Vector3) +cPeGetPosition a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPeGetPosition'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 69 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeSetDirection :: HG3DClass -> Vector3 -> IO () +cPeSetDirection a1 a2 = + withHG3DClass a1 $ \a1' -> + withVector3 a2 $ \a2' -> + cPeSetDirection'_ a1' a2' >>= \res -> + return () +{-# LINE 73 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeGetDirection :: HG3DClass -> IO (Vector3) +cPeGetDirection a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPeGetDirection'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 77 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeSetAngle :: HG3DClass -> Radian -> IO () +cPeSetAngle a1 a2 = + withHG3DClass a1 $ \a1' -> + withRadian a2 $ \a2' -> + cPeSetAngle'_ a1' a2' >>= \res -> + return () +{-# LINE 81 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeGetAngle :: HG3DClass -> IO (Radian) +cPeGetAngle a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPeGetAngle'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 85 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeSetParticleVelocity :: HG3DClass -> Float -> IO () +cPeSetParticleVelocity a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cPeSetParticleVelocity'_ a1' a2' >>= \res -> + return () +{-# LINE 89 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeSetParticleVelocity2 :: HG3DClass -> Float -> Float -> IO () +cPeSetParticleVelocity2 a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + cPeSetParticleVelocity2'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 94 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeSetMinParticleVelocity :: HG3DClass -> Float -> IO () +cPeSetMinParticleVelocity a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cPeSetMinParticleVelocity'_ a1' a2' >>= \res -> + return () +{-# LINE 98 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeSetMaxParticleVelocity :: HG3DClass -> Float -> IO () +cPeSetMaxParticleVelocity a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cPeSetMaxParticleVelocity'_ a1' a2' >>= \res -> + return () +{-# LINE 102 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeGetParticleVelocity :: HG3DClass -> IO (Float) +cPeGetParticleVelocity a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPeGetParticleVelocity'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 106 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeGetMinParticleVelocity :: HG3DClass -> IO (Float) +cPeGetMinParticleVelocity a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPeGetMinParticleVelocity'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 110 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeGetMaxParticleVelocity :: HG3DClass -> IO (Float) +cPeGetMaxParticleVelocity a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPeGetMaxParticleVelocity'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 114 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeSetEmissionRate :: HG3DClass -> Float -> IO () +cPeSetEmissionRate a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cPeSetEmissionRate'_ a1' a2' >>= \res -> + return () +{-# LINE 118 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeGetEmissionRate :: HG3DClass -> IO (Float) +cPeGetEmissionRate a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPeGetEmissionRate'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 122 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeSetTimeToLive :: HG3DClass -> Float -> IO () +cPeSetTimeToLive a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cPeSetTimeToLive'_ a1' a2' >>= \res -> + return () +{-# LINE 126 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeSetTimeToLive2 :: HG3DClass -> Float -> Float -> IO () +cPeSetTimeToLive2 a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + cPeSetTimeToLive2'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 131 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeSetMinTimeToLive :: HG3DClass -> Float -> IO () +cPeSetMinTimeToLive a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cPeSetMinTimeToLive'_ a1' a2' >>= \res -> + return () +{-# LINE 135 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeSetMaxTimeToLive :: HG3DClass -> Float -> IO () +cPeSetMaxTimeToLive a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cPeSetMaxTimeToLive'_ a1' a2' >>= \res -> + return () +{-# LINE 139 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeGetTimeToLive :: HG3DClass -> IO (Float) +cPeGetTimeToLive a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPeGetTimeToLive'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 143 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeGetMinTimeToLive :: HG3DClass -> IO (Float) +cPeGetMinTimeToLive a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPeGetMinTimeToLive'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 147 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeGetMaxTimeToLive :: HG3DClass -> IO (Float) +cPeGetMaxTimeToLive a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPeGetMaxTimeToLive'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 151 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeSetColour :: HG3DClass -> ColourValue -> IO () +cPeSetColour a1 a2 = + withHG3DClass a1 $ \a1' -> + withColourValue a2 $ \a2' -> + cPeSetColour'_ a1' a2' >>= \res -> + return () +{-# LINE 155 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeSetColour2 :: HG3DClass -> ColourValue -> ColourValue -> IO () +cPeSetColour2 a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withColourValue a2 $ \a2' -> + withColourValue a3 $ \a3' -> + cPeSetColour2'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 160 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeSetColourRangeStart :: HG3DClass -> ColourValue -> IO () +cPeSetColourRangeStart a1 a2 = + withHG3DClass a1 $ \a1' -> + withColourValue a2 $ \a2' -> + cPeSetColourRangeStart'_ a1' a2' >>= \res -> + return () +{-# LINE 164 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeSetColourRangeEnd :: HG3DClass -> ColourValue -> IO () +cPeSetColourRangeEnd a1 a2 = + withHG3DClass a1 $ \a1' -> + withColourValue a2 $ \a2' -> + cPeSetColourRangeEnd'_ a1' a2' >>= \res -> + return () +{-# LINE 168 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeGetColour :: HG3DClass -> IO (ColourValue) +cPeGetColour a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPeGetColour'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 172 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeGetColourRangeStart :: HG3DClass -> IO (ColourValue) +cPeGetColourRangeStart a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPeGetColourRangeStart'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 176 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeGetColourRangeEnd :: HG3DClass -> IO (ColourValue) +cPeGetColourRangeEnd a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPeGetColourRangeEnd'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 180 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeGetEmissionCount :: HG3DClass -> Float -> IO (Int) +cPeGetEmissionCount a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + alloca $ \a3' -> + cPeGetEmissionCount'_ a1' a2' a3' >>= \res -> + peekIntConv a3'>>= \a3'' -> + return (a3'') +{-# LINE 185 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeGetType :: HG3DClass -> IO (String) +cPeGetType a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cPeGetType'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 189 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeSetEnabled :: HG3DClass -> Bool -> IO () +cPeSetEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cPeSetEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 193 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeGetEnabled :: HG3DClass -> IO (Bool) +cPeGetEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPeGetEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 197 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeSetStartTime :: HG3DClass -> Float -> IO () +cPeSetStartTime a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cPeSetStartTime'_ a1' a2' >>= \res -> + return () +{-# LINE 201 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeGetStartTime :: HG3DClass -> IO (Float) +cPeGetStartTime a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPeGetStartTime'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 205 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeSetDuration :: HG3DClass -> Float -> IO () +cPeSetDuration a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cPeSetDuration'_ a1' a2' >>= \res -> + return () +{-# LINE 209 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeGetDuration :: HG3DClass -> IO (Float) +cPeGetDuration a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPeGetDuration'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 213 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeSetDuration2 :: HG3DClass -> Float -> Float -> IO () +cPeSetDuration2 a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + cPeSetDuration2'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 218 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeSetMinDuration :: HG3DClass -> Float -> IO () +cPeSetMinDuration a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cPeSetMinDuration'_ a1' a2' >>= \res -> + return () +{-# LINE 222 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeSetMaxDuration :: HG3DClass -> Float -> IO () +cPeSetMaxDuration a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cPeSetMaxDuration'_ a1' a2' >>= \res -> + return () +{-# LINE 226 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeGetMinDuration :: HG3DClass -> IO (Float) +cPeGetMinDuration a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPeGetMinDuration'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 230 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeGetMaxDuration :: HG3DClass -> IO (Float) +cPeGetMaxDuration a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPeGetMaxDuration'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 234 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeSetRepeatDelay :: HG3DClass -> Float -> IO () +cPeSetRepeatDelay a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cPeSetRepeatDelay'_ a1' a2' >>= \res -> + return () +{-# LINE 238 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeGetRepeatDelay :: HG3DClass -> IO (Float) +cPeGetRepeatDelay a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPeGetRepeatDelay'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 242 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeSetRepeatDelay2 :: HG3DClass -> Float -> Float -> IO () +cPeSetRepeatDelay2 a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + cPeSetRepeatDelay2'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 247 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeSetMinRepeatDelay :: HG3DClass -> Float -> IO () +cPeSetMinRepeatDelay a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cPeSetMinRepeatDelay'_ a1' a2' >>= \res -> + return () +{-# LINE 251 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeSetMaxRepeatDelay :: HG3DClass -> Float -> IO () +cPeSetMaxRepeatDelay a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cPeSetMaxRepeatDelay'_ a1' a2' >>= \res -> + return () +{-# LINE 255 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeGetMinRepeatDelay :: HG3DClass -> IO (Float) +cPeGetMinRepeatDelay a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPeGetMinRepeatDelay'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 259 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeGetMaxRepeatDelay :: HG3DClass -> IO (Float) +cPeGetMaxRepeatDelay a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPeGetMaxRepeatDelay'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 263 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeGetName :: HG3DClass -> IO (String) +cPeGetName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cPeGetName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 267 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeSetName :: HG3DClass -> String -> IO () +cPeSetName a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cPeSetName'_ a1' a2' >>= \res -> + return () +{-# LINE 271 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeGetEmittedEmitter :: HG3DClass -> IO (String) +cPeGetEmittedEmitter a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cPeGetEmittedEmitter'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 275 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeSetEmittedEmitter :: HG3DClass -> String -> IO () +cPeSetEmittedEmitter a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cPeSetEmittedEmitter'_ a1' a2' >>= \res -> + return () +{-# LINE 279 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeIsEmitted :: HG3DClass -> IO (Bool) +cPeIsEmitted a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPeIsEmitted'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 283 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; +cPeSetEmitted :: HG3DClass -> Bool -> IO () +cPeSetEmitted a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cPeSetEmitted'_ a1' a2' >>= \res -> + return () +{-# LINE 287 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_setPosition_c" + cPeSetPosition'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_getPosition_c" + cPeGetPosition'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_setDirection_c" + cPeSetDirection'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_getDirection_c" + cPeGetDirection'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_setAngle_c" + cPeSetAngle'_ :: ((HG3DClassPtr) -> ((RadianPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_getAngle_c" + cPeGetAngle'_ :: ((HG3DClassPtr) -> ((RadianPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_setParticleVelocity_c" + cPeSetParticleVelocity'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_setParticleVelocity2_c" + cPeSetParticleVelocity2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_setMinParticleVelocity_c" + cPeSetMinParticleVelocity'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_setMaxParticleVelocity_c" + cPeSetMaxParticleVelocity'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_getParticleVelocity_c" + cPeGetParticleVelocity'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_getMinParticleVelocity_c" + cPeGetMinParticleVelocity'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_getMaxParticleVelocity_c" + cPeGetMaxParticleVelocity'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_setEmissionRate_c" + cPeSetEmissionRate'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_getEmissionRate_c" + cPeGetEmissionRate'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_setTimeToLive_c" + cPeSetTimeToLive'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_setTimeToLive2_c" + cPeSetTimeToLive2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_setMinTimeToLive_c" + cPeSetMinTimeToLive'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_setMaxTimeToLive_c" + cPeSetMaxTimeToLive'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_getTimeToLive_c" + cPeGetTimeToLive'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_getMinTimeToLive_c" + cPeGetMinTimeToLive'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_getMaxTimeToLive_c" + cPeGetMaxTimeToLive'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_setColour_c" + cPeSetColour'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_setColour2_c" + cPeSetColour2'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> ((ColourValuePtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_setColourRangeStart_c" + cPeSetColourRangeStart'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_setColourRangeEnd_c" + cPeSetColourRangeEnd'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_getColour_c" + cPeGetColour'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_getColourRangeStart_c" + cPeGetColourRangeStart'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_getColourRangeEnd_c" + cPeGetColourRangeEnd'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe__getEmissionCount_c" + cPeGetEmissionCount'_ :: ((HG3DClassPtr) -> (CFloat -> ((Ptr CUInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_getType_c" + cPeGetType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_setEnabled_c" + cPeSetEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_getEnabled_c" + cPeGetEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_setStartTime_c" + cPeSetStartTime'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_getStartTime_c" + cPeGetStartTime'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_setDuration_c" + cPeSetDuration'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_getDuration_c" + cPeGetDuration'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_setDuration2_c" + cPeSetDuration2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_setMinDuration_c" + cPeSetMinDuration'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_setMaxDuration_c" + cPeSetMaxDuration'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_getMinDuration_c" + cPeGetMinDuration'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_getMaxDuration_c" + cPeGetMaxDuration'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_setRepeatDelay_c" + cPeSetRepeatDelay'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_getRepeatDelay_c" + cPeGetRepeatDelay'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_setRepeatDelay2_c" + cPeSetRepeatDelay2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_setMinRepeatDelay_c" + cPeSetMinRepeatDelay'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_setMaxRepeatDelay_c" + cPeSetMaxRepeatDelay'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_getMinRepeatDelay_c" + cPeGetMinRepeatDelay'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_getMaxRepeatDelay_c" + cPeGetMaxRepeatDelay'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_getName_c" + cPeGetName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_setName_c" + cPeSetName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_getEmittedEmitter_c" + cPeGetEmittedEmitter'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_setEmittedEmitter_c" + cPeSetEmittedEmitter'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_isEmitted_c" + cPeIsEmitted'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_setEmitted_c" + cPeSetEmitted'_ :: ((HG3DClassPtr) -> (CInt -> (IO ())))
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassParticleSystemFactory.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassParticleSystemFactory.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreParticleSystemManager.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassParticleSystemFactory where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassParticleSystemFactory.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassParticleSystemFactory.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassParticleSystemFactory.chs" #-} + +
@@ -0,0 +1,1792 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassPass.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgrePass.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassPass where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +import HGamer3D.Bindings.Ogre.TypeColourValue +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +import HGamer3D.Bindings.Ogre.EnumSceneBlendFactor +{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +import HGamer3D.Bindings.Ogre.EnumSceneBlendOperation +{-# LINE 59 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +import HGamer3D.Bindings.Ogre.EnumCompareFunction +{-# LINE 60 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +import HGamer3D.Bindings.Ogre.EnumCullingMode +{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +import HGamer3D.Bindings.Ogre.EnumManualCullingMode +{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +import HGamer3D.Bindings.Ogre.EnumShadeOptions +{-# LINE 63 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +import HGamer3D.Bindings.Ogre.EnumPolygonMode +{-# LINE 64 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +import HGamer3D.Bindings.Ogre.EnumFogMode +{-# LINE 65 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +import HGamer3D.Bindings.Ogre.EnumLightTypes +{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +import HGamer3D.Bindings.Ogre.EnumContentType +{-# LINE 67 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +import HGamer3D.Bindings.Ogre.EnumTextureFilterOptions +{-# LINE 68 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +import HGamer3D.Bindings.Ogre.EnumIlluminationStage +{-# LINE 69 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} + + +cPIsProgrammable :: HG3DClass -> IO (Bool) +cPIsProgrammable a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPIsProgrammable'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 75 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPHasVertexProgram :: HG3DClass -> IO (Bool) +cPHasVertexProgram a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPHasVertexProgram'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 79 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPHasFragmentProgram :: HG3DClass -> IO (Bool) +cPHasFragmentProgram a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPHasFragmentProgram'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 83 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPHasGeometryProgram :: HG3DClass -> IO (Bool) +cPHasGeometryProgram a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPHasGeometryProgram'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 87 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPHasShadowCasterVertexProgram :: HG3DClass -> IO (Bool) +cPHasShadowCasterVertexProgram a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPHasShadowCasterVertexProgram'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 91 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPHasShadowReceiverVertexProgram :: HG3DClass -> IO (Bool) +cPHasShadowReceiverVertexProgram a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPHasShadowReceiverVertexProgram'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 95 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPHasShadowReceiverFragmentProgram :: HG3DClass -> IO (Bool) +cPHasShadowReceiverFragmentProgram a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPHasShadowReceiverFragmentProgram'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 99 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetIndex :: HG3DClass -> IO (Int) +cPGetIndex a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetIndex'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 103 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetName :: HG3DClass -> IO (String) +cPGetName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cPGetName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 107 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetAmbient :: HG3DClass -> Float -> Float -> Float -> IO () +cPSetAmbient a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + cPSetAmbient'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 113 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetAmbient2 :: HG3DClass -> ColourValue -> IO () +cPSetAmbient2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withColourValue a2 $ \a2' -> + cPSetAmbient2'_ a1' a2' >>= \res -> + return () +{-# LINE 117 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetDiffuse :: HG3DClass -> Float -> Float -> Float -> Float -> IO () +cPSetDiffuse a1 a2 a3 a4 a5 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + let {a5' = realToFrac a5} in + cPSetDiffuse'_ a1' a2' a3' a4' a5' >>= \res -> + return () +{-# LINE 124 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetDiffuse2 :: HG3DClass -> ColourValue -> IO () +cPSetDiffuse2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withColourValue a2 $ \a2' -> + cPSetDiffuse2'_ a1' a2' >>= \res -> + return () +{-# LINE 128 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetSpecular :: HG3DClass -> Float -> Float -> Float -> Float -> IO () +cPSetSpecular a1 a2 a3 a4 a5 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + let {a5' = realToFrac a5} in + cPSetSpecular'_ a1' a2' a3' a4' a5' >>= \res -> + return () +{-# LINE 135 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetSpecular2 :: HG3DClass -> ColourValue -> IO () +cPSetSpecular2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withColourValue a2 $ \a2' -> + cPSetSpecular2'_ a1' a2' >>= \res -> + return () +{-# LINE 139 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetShininess :: HG3DClass -> Float -> IO () +cPSetShininess a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cPSetShininess'_ a1' a2' >>= \res -> + return () +{-# LINE 143 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetSelfIllumination :: HG3DClass -> Float -> Float -> Float -> IO () +cPSetSelfIllumination a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + cPSetSelfIllumination'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 149 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetSelfIllumination2 :: HG3DClass -> ColourValue -> IO () +cPSetSelfIllumination2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withColourValue a2 $ \a2' -> + cPSetSelfIllumination2'_ a1' a2' >>= \res -> + return () +{-# LINE 153 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetPointSize :: HG3DClass -> IO (Float) +cPGetPointSize a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetPointSize'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 157 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetPointSize :: HG3DClass -> Float -> IO () +cPSetPointSize a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cPSetPointSize'_ a1' a2' >>= \res -> + return () +{-# LINE 161 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetPointSpritesEnabled :: HG3DClass -> Bool -> IO () +cPSetPointSpritesEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cPSetPointSpritesEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 165 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetPointSpritesEnabled :: HG3DClass -> IO (Bool) +cPGetPointSpritesEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetPointSpritesEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 169 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetPointAttenuation :: HG3DClass -> Bool -> Float -> Float -> Float -> IO () +cPSetPointAttenuation a1 a2 a3 a4 a5 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + let {a5' = realToFrac a5} in + cPSetPointAttenuation'_ a1' a2' a3' a4' a5' >>= \res -> + return () +{-# LINE 176 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPIsPointAttenuationEnabled :: HG3DClass -> IO (Bool) +cPIsPointAttenuationEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPIsPointAttenuationEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 180 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetPointAttenuationConstant :: HG3DClass -> IO (Float) +cPGetPointAttenuationConstant a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetPointAttenuationConstant'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 184 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetPointAttenuationLinear :: HG3DClass -> IO (Float) +cPGetPointAttenuationLinear a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetPointAttenuationLinear'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 188 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetPointAttenuationQuadratic :: HG3DClass -> IO (Float) +cPGetPointAttenuationQuadratic a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetPointAttenuationQuadratic'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 192 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetPointMinSize :: HG3DClass -> Float -> IO () +cPSetPointMinSize a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cPSetPointMinSize'_ a1' a2' >>= \res -> + return () +{-# LINE 196 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetPointMinSize :: HG3DClass -> IO (Float) +cPGetPointMinSize a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetPointMinSize'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 200 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetPointMaxSize :: HG3DClass -> Float -> IO () +cPSetPointMaxSize a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cPSetPointMaxSize'_ a1' a2' >>= \res -> + return () +{-# LINE 204 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetPointMaxSize :: HG3DClass -> IO (Float) +cPGetPointMaxSize a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetPointMaxSize'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 208 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetAmbient :: HG3DClass -> IO (ColourValue) +cPGetAmbient a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetAmbient'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 212 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetDiffuse :: HG3DClass -> IO (ColourValue) +cPGetDiffuse a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetDiffuse'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 216 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetSpecular :: HG3DClass -> IO (ColourValue) +cPGetSpecular a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetSpecular'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 220 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetSelfIllumination :: HG3DClass -> IO (ColourValue) +cPGetSelfIllumination a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetSelfIllumination'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 224 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetShininess :: HG3DClass -> IO (Float) +cPGetShininess a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetShininess'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 228 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPCreateTextureUnitState :: HG3DClass -> IO (HG3DClass) +cPCreateTextureUnitState a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPCreateTextureUnitState'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 232 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPCreateTextureUnitState2 :: HG3DClass -> String -> Int -> IO (HG3DClass) +cPCreateTextureUnitState2 a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = fromIntegral a3} in + alloca $ \a4' -> + cPCreateTextureUnitState2'_ a1' a2' a3' a4' >>= \res -> + peek a4'>>= \a4'' -> + return (a4'') +{-# LINE 238 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPAddTextureUnitState :: HG3DClass -> HG3DClass -> IO () +cPAddTextureUnitState a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cPAddTextureUnitState'_ a1' a2' >>= \res -> + return () +{-# LINE 242 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetTextureUnitState :: HG3DClass -> Int -> IO (HG3DClass) +cPGetTextureUnitState a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cPGetTextureUnitState'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 247 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetTextureUnitState2 :: HG3DClass -> String -> IO (HG3DClass) +cPGetTextureUnitState2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cPGetTextureUnitState2'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 252 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPRemoveTextureUnitState :: HG3DClass -> Int -> IO () +cPRemoveTextureUnitState a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cPRemoveTextureUnitState'_ a1' a2' >>= \res -> + return () +{-# LINE 256 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPRemoveAllTextureUnitStates :: HG3DClass -> IO () +cPRemoveAllTextureUnitStates a1 = + withHG3DClass a1 $ \a1' -> + cPRemoveAllTextureUnitStates'_ a1' >>= \res -> + return () +{-# LINE 259 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetNumTextureUnitStates :: HG3DClass -> IO (Int) +cPGetNumTextureUnitStates a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetNumTextureUnitStates'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 263 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPHasSeparateSceneBlending :: HG3DClass -> IO (Bool) +cPHasSeparateSceneBlending a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPHasSeparateSceneBlending'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 267 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetSourceBlendFactor :: HG3DClass -> IO (EnumSceneBlendFactor) +cPGetSourceBlendFactor a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetSourceBlendFactor'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 271 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetDestBlendFactor :: HG3DClass -> IO (EnumSceneBlendFactor) +cPGetDestBlendFactor a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetDestBlendFactor'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 275 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetSourceBlendFactorAlpha :: HG3DClass -> IO (EnumSceneBlendFactor) +cPGetSourceBlendFactorAlpha a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetSourceBlendFactorAlpha'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 279 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetDestBlendFactorAlpha :: HG3DClass -> IO (EnumSceneBlendFactor) +cPGetDestBlendFactorAlpha a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetDestBlendFactorAlpha'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 283 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetSceneBlendingOperation :: HG3DClass -> EnumSceneBlendOperation -> IO () +cPSetSceneBlendingOperation a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cPSetSceneBlendingOperation'_ a1' a2' >>= \res -> + return () +{-# LINE 287 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetSeparateSceneBlendingOperation :: HG3DClass -> EnumSceneBlendOperation -> EnumSceneBlendOperation -> IO () +cPSetSeparateSceneBlendingOperation a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + let {a3' = cIntFromEnum a3} in + cPSetSeparateSceneBlendingOperation'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 292 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPHasSeparateSceneBlendingOperations :: HG3DClass -> IO (Bool) +cPHasSeparateSceneBlendingOperations a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPHasSeparateSceneBlendingOperations'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 296 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetSceneBlendingOperation :: HG3DClass -> IO (EnumSceneBlendOperation) +cPGetSceneBlendingOperation a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetSceneBlendingOperation'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 300 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetSceneBlendingOperationAlpha :: HG3DClass -> IO (EnumSceneBlendOperation) +cPGetSceneBlendingOperationAlpha a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetSceneBlendingOperationAlpha'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 304 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPIsTransparent :: HG3DClass -> IO (Bool) +cPIsTransparent a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPIsTransparent'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 308 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetDepthCheckEnabled :: HG3DClass -> Bool -> IO () +cPSetDepthCheckEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cPSetDepthCheckEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 312 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetDepthCheckEnabled :: HG3DClass -> IO (Bool) +cPGetDepthCheckEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetDepthCheckEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 316 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetDepthWriteEnabled :: HG3DClass -> Bool -> IO () +cPSetDepthWriteEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cPSetDepthWriteEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 320 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetDepthWriteEnabled :: HG3DClass -> IO (Bool) +cPGetDepthWriteEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetDepthWriteEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 324 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetDepthFunction :: HG3DClass -> EnumCompareFunction -> IO () +cPSetDepthFunction a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cPSetDepthFunction'_ a1' a2' >>= \res -> + return () +{-# LINE 328 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetDepthFunction :: HG3DClass -> IO (EnumCompareFunction) +cPGetDepthFunction a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetDepthFunction'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 332 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetColourWriteEnabled :: HG3DClass -> Bool -> IO () +cPSetColourWriteEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cPSetColourWriteEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 336 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetColourWriteEnabled :: HG3DClass -> IO (Bool) +cPGetColourWriteEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetColourWriteEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 340 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetCullingMode :: HG3DClass -> EnumCullingMode -> IO () +cPSetCullingMode a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cPSetCullingMode'_ a1' a2' >>= \res -> + return () +{-# LINE 344 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetCullingMode :: HG3DClass -> IO (EnumCullingMode) +cPGetCullingMode a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetCullingMode'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 348 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetManualCullingMode :: HG3DClass -> EnumManualCullingMode -> IO () +cPSetManualCullingMode a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cPSetManualCullingMode'_ a1' a2' >>= \res -> + return () +{-# LINE 352 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetManualCullingMode :: HG3DClass -> IO (EnumManualCullingMode) +cPGetManualCullingMode a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetManualCullingMode'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 356 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetLightingEnabled :: HG3DClass -> Bool -> IO () +cPSetLightingEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cPSetLightingEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 360 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetLightingEnabled :: HG3DClass -> IO (Bool) +cPGetLightingEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetLightingEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 364 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetMaxSimultaneousLights :: HG3DClass -> Int -> IO () +cPSetMaxSimultaneousLights a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cPSetMaxSimultaneousLights'_ a1' a2' >>= \res -> + return () +{-# LINE 368 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetMaxSimultaneousLights :: HG3DClass -> IO (Int) +cPGetMaxSimultaneousLights a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetMaxSimultaneousLights'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 372 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetStartLight :: HG3DClass -> Int -> IO () +cPSetStartLight a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cPSetStartLight'_ a1' a2' >>= \res -> + return () +{-# LINE 376 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetStartLight :: HG3DClass -> IO (Int) +cPGetStartLight a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetStartLight'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 380 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetShadingMode :: HG3DClass -> EnumShadeOptions -> IO () +cPSetShadingMode a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cPSetShadingMode'_ a1' a2' >>= \res -> + return () +{-# LINE 384 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetShadingMode :: HG3DClass -> IO (EnumShadeOptions) +cPGetShadingMode a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetShadingMode'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 388 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetPolygonMode :: HG3DClass -> EnumPolygonMode -> IO () +cPSetPolygonMode a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cPSetPolygonMode'_ a1' a2' >>= \res -> + return () +{-# LINE 392 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetPolygonMode :: HG3DClass -> IO (EnumPolygonMode) +cPGetPolygonMode a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetPolygonMode'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 396 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetPolygonModeOverrideable :: HG3DClass -> Bool -> IO () +cPSetPolygonModeOverrideable a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cPSetPolygonModeOverrideable'_ a1' a2' >>= \res -> + return () +{-# LINE 400 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetPolygonModeOverrideable :: HG3DClass -> IO (Bool) +cPGetPolygonModeOverrideable a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetPolygonModeOverrideable'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 404 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetFog :: HG3DClass -> Bool -> EnumFogMode -> ColourValue -> Float -> Float -> Float -> IO () +cPSetFog a1 a2 a3 a4 a5 a6 a7 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + let {a3' = cIntFromEnum a3} in + withColourValue a4 $ \a4' -> + let {a5' = realToFrac a5} in + let {a6' = realToFrac a6} in + let {a7' = realToFrac a7} in + cPSetFog'_ a1' a2' a3' a4' a5' a6' a7' >>= \res -> + return () +{-# LINE 413 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetFogOverride :: HG3DClass -> IO (Bool) +cPGetFogOverride a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetFogOverride'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 417 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetFogMode :: HG3DClass -> IO (EnumFogMode) +cPGetFogMode a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetFogMode'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 421 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetFogColour :: HG3DClass -> IO (ColourValue) +cPGetFogColour a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetFogColour'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 425 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetFogStart :: HG3DClass -> IO (Float) +cPGetFogStart a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetFogStart'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 429 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetFogEnd :: HG3DClass -> IO (Float) +cPGetFogEnd a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetFogEnd'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 433 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetFogDensity :: HG3DClass -> IO (Float) +cPGetFogDensity a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetFogDensity'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 437 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetDepthBias :: HG3DClass -> Float -> Float -> IO () +cPSetDepthBias a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + cPSetDepthBias'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 442 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetDepthBiasConstant :: HG3DClass -> IO (Float) +cPGetDepthBiasConstant a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetDepthBiasConstant'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 446 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetDepthBiasSlopeScale :: HG3DClass -> IO (Float) +cPGetDepthBiasSlopeScale a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetDepthBiasSlopeScale'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 450 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetIterationDepthBias :: HG3DClass -> Float -> IO () +cPSetIterationDepthBias a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cPSetIterationDepthBias'_ a1' a2' >>= \res -> + return () +{-# LINE 454 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetIterationDepthBias :: HG3DClass -> IO (Float) +cPGetIterationDepthBias a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetIterationDepthBias'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 458 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetAlphaRejectFunction :: HG3DClass -> EnumCompareFunction -> IO () +cPSetAlphaRejectFunction a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cPSetAlphaRejectFunction'_ a1' a2' >>= \res -> + return () +{-# LINE 462 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetAlphaRejectFunction :: HG3DClass -> IO (EnumCompareFunction) +cPGetAlphaRejectFunction a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetAlphaRejectFunction'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 466 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetAlphaToCoverageEnabled :: HG3DClass -> Bool -> IO () +cPSetAlphaToCoverageEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cPSetAlphaToCoverageEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 470 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPIsAlphaToCoverageEnabled :: HG3DClass -> IO (Bool) +cPIsAlphaToCoverageEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPIsAlphaToCoverageEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 474 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetTransparentSortingEnabled :: HG3DClass -> Bool -> IO () +cPSetTransparentSortingEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cPSetTransparentSortingEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 478 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetTransparentSortingEnabled :: HG3DClass -> IO (Bool) +cPGetTransparentSortingEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetTransparentSortingEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 482 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetTransparentSortingForced :: HG3DClass -> Bool -> IO () +cPSetTransparentSortingForced a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cPSetTransparentSortingForced'_ a1' a2' >>= \res -> + return () +{-# LINE 486 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetTransparentSortingForced :: HG3DClass -> IO (Bool) +cPGetTransparentSortingForced a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetTransparentSortingForced'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 490 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetIteratePerLight :: HG3DClass -> Bool -> Bool -> EnumLightTypes -> IO () +cPSetIteratePerLight a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + let {a3' = fromBool a3} in + let {a4' = cIntFromEnum a4} in + cPSetIteratePerLight'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 496 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetIteratePerLight :: HG3DClass -> IO (Bool) +cPGetIteratePerLight a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetIteratePerLight'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 500 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetRunOnlyForOneLightType :: HG3DClass -> IO (Bool) +cPGetRunOnlyForOneLightType a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetRunOnlyForOneLightType'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 504 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetOnlyLightType :: HG3DClass -> IO (EnumLightTypes) +cPGetOnlyLightType a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetOnlyLightType'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 508 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetLightCountPerIteration :: HG3DClass -> Int -> IO () +cPSetLightCountPerIteration a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cPSetLightCountPerIteration'_ a1' a2' >>= \res -> + return () +{-# LINE 512 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetLightCountPerIteration :: HG3DClass -> IO (Int) +cPGetLightCountPerIteration a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetLightCountPerIteration'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 516 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetParent :: HG3DClass -> IO (HG3DClass) +cPGetParent a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetParent'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 520 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetResourceGroup :: HG3DClass -> IO (String) +cPGetResourceGroup a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cPGetResourceGroup'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 524 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetVertexProgram :: HG3DClass -> String -> Bool -> IO () +cPSetVertexProgram a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = fromBool a3} in + cPSetVertexProgram'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 529 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetVertexProgramName :: HG3DClass -> IO (String) +cPGetVertexProgramName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cPGetVertexProgramName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 533 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetShadowCasterVertexProgram :: HG3DClass -> String -> IO () +cPSetShadowCasterVertexProgram a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cPSetShadowCasterVertexProgram'_ a1' a2' >>= \res -> + return () +{-# LINE 537 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetShadowCasterVertexProgramName :: HG3DClass -> IO (String) +cPGetShadowCasterVertexProgramName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cPGetShadowCasterVertexProgramName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 541 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetShadowReceiverVertexProgram :: HG3DClass -> String -> IO () +cPSetShadowReceiverVertexProgram a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cPSetShadowReceiverVertexProgram'_ a1' a2' >>= \res -> + return () +{-# LINE 545 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetShadowReceiverFragmentProgram :: HG3DClass -> String -> IO () +cPSetShadowReceiverFragmentProgram a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cPSetShadowReceiverFragmentProgram'_ a1' a2' >>= \res -> + return () +{-# LINE 549 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetShadowReceiverVertexProgramName :: HG3DClass -> IO (String) +cPGetShadowReceiverVertexProgramName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cPGetShadowReceiverVertexProgramName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 553 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetShadowReceiverFragmentProgramName :: HG3DClass -> IO (String) +cPGetShadowReceiverFragmentProgramName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cPGetShadowReceiverFragmentProgramName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 557 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetFragmentProgram :: HG3DClass -> String -> Bool -> IO () +cPSetFragmentProgram a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = fromBool a3} in + cPSetFragmentProgram'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 562 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetFragmentProgramName :: HG3DClass -> IO (String) +cPGetFragmentProgramName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cPGetFragmentProgramName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 566 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetGeometryProgram :: HG3DClass -> String -> Bool -> IO () +cPSetGeometryProgram a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = fromBool a3} in + cPSetGeometryProgram'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 571 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetGeometryProgramName :: HG3DClass -> IO (String) +cPGetGeometryProgramName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cPGetGeometryProgramName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 575 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSplit :: HG3DClass -> Int -> IO (HG3DClass) +cPSplit a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cPSplit'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 580 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPNotifyIndex :: HG3DClass -> Int -> IO () +cPNotifyIndex a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cPNotifyIndex'_ a1' a2' >>= \res -> + return () +{-# LINE 584 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPPrepare :: HG3DClass -> IO () +cPPrepare a1 = + withHG3DClass a1 $ \a1' -> + cPPrepare'_ a1' >>= \res -> + return () +{-# LINE 587 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPUnprepare :: HG3DClass -> IO () +cPUnprepare a1 = + withHG3DClass a1 $ \a1' -> + cPUnprepare'_ a1' >>= \res -> + return () +{-# LINE 590 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPLoad :: HG3DClass -> IO () +cPLoad a1 = + withHG3DClass a1 $ \a1' -> + cPLoad'_ a1' >>= \res -> + return () +{-# LINE 593 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPUnload :: HG3DClass -> IO () +cPUnload a1 = + withHG3DClass a1 $ \a1' -> + cPUnload'_ a1' >>= \res -> + return () +{-# LINE 596 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPIsLoaded :: HG3DClass -> IO (Bool) +cPIsLoaded a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPIsLoaded'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 600 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetHash :: HG3DClass -> IO (Int) +cPGetHash a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetHash'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 604 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPDirtyHash :: HG3DClass -> IO () +cPDirtyHash a1 = + withHG3DClass a1 $ \a1' -> + cPDirtyHash'_ a1' >>= \res -> + return () +{-# LINE 607 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPRecalculateHash :: HG3DClass -> IO () +cPRecalculateHash a1 = + withHG3DClass a1 $ \a1' -> + cPRecalculateHash'_ a1' >>= \res -> + return () +{-# LINE 610 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPNotifyNeedsRecompile :: HG3DClass -> IO () +cPNotifyNeedsRecompile a1 = + withHG3DClass a1 $ \a1' -> + cPNotifyNeedsRecompile'_ a1' >>= \res -> + return () +{-# LINE 613 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetTextureUnitWithContentTypeIndex :: HG3DClass -> EnumContentType -> Int -> IO (Int) +cPGetTextureUnitWithContentTypeIndex a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + let {a3' = fromIntegral a3} in + alloca $ \a4' -> + cPGetTextureUnitWithContentTypeIndex'_ a1' a2' a3' a4' >>= \res -> + peekIntConv a4'>>= \a4'' -> + return (a4'') +{-# LINE 619 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetTextureFiltering :: HG3DClass -> EnumTextureFilterOptions -> IO () +cPSetTextureFiltering a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cPSetTextureFiltering'_ a1' a2' >>= \res -> + return () +{-# LINE 623 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetTextureAnisotropy :: HG3DClass -> Int -> IO () +cPSetTextureAnisotropy a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cPSetTextureAnisotropy'_ a1' a2' >>= \res -> + return () +{-# LINE 627 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetNormaliseNormals :: HG3DClass -> Bool -> IO () +cPSetNormaliseNormals a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cPSetNormaliseNormals'_ a1' a2' >>= \res -> + return () +{-# LINE 631 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetNormaliseNormals :: HG3DClass -> IO (Bool) +cPGetNormaliseNormals a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetNormaliseNormals'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 635 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPQueueForDeletion :: HG3DClass -> IO () +cPQueueForDeletion a1 = + withHG3DClass a1 $ \a1' -> + cPQueueForDeletion'_ a1' >>= \res -> + return () +{-# LINE 638 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPIsAmbientOnly :: HG3DClass -> IO (Bool) +cPIsAmbientOnly a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPIsAmbientOnly'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 642 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetPassIterationCount :: HG3DClass -> Int -> IO () +cPSetPassIterationCount a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cPSetPassIterationCount'_ a1' a2' >>= \res -> + return () +{-# LINE 646 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetPassIterationCount :: HG3DClass -> IO (Int) +cPGetPassIterationCount a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetPassIterationCount'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 650 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetLightScissoringEnabled :: HG3DClass -> Bool -> IO () +cPSetLightScissoringEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cPSetLightScissoringEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 654 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetLightScissoringEnabled :: HG3DClass -> IO (Bool) +cPGetLightScissoringEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetLightScissoringEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 658 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetLightClipPlanesEnabled :: HG3DClass -> Bool -> IO () +cPSetLightClipPlanesEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cPSetLightClipPlanesEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 662 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetLightClipPlanesEnabled :: HG3DClass -> IO (Bool) +cPGetLightClipPlanesEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetLightClipPlanesEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 666 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPSetIlluminationStage :: HG3DClass -> EnumIlluminationStage -> IO () +cPSetIlluminationStage a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cPSetIlluminationStage'_ a1' a2' >>= \res -> + return () +{-# LINE 670 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; +cPGetIlluminationStage :: HG3DClass -> IO (EnumIlluminationStage) +cPGetIlluminationStage a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPGetIlluminationStage'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 674 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_isProgrammable_c" + cPIsProgrammable'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_hasVertexProgram_c" + cPHasVertexProgram'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_hasFragmentProgram_c" + cPHasFragmentProgram'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_hasGeometryProgram_c" + cPHasGeometryProgram'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_hasShadowCasterVertexProgram_c" + cPHasShadowCasterVertexProgram'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_hasShadowReceiverVertexProgram_c" + cPHasShadowReceiverVertexProgram'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_hasShadowReceiverFragmentProgram_c" + cPHasShadowReceiverFragmentProgram'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getIndex_c" + cPGetIndex'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getName_c" + cPGetName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setAmbient_c" + cPSetAmbient'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setAmbient2_c" + cPSetAmbient2'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setDiffuse_c" + cPSetDiffuse'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (CFloat -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setDiffuse2_c" + cPSetDiffuse2'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setSpecular_c" + cPSetSpecular'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (CFloat -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setSpecular2_c" + cPSetSpecular2'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setShininess_c" + cPSetShininess'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setSelfIllumination_c" + cPSetSelfIllumination'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setSelfIllumination2_c" + cPSetSelfIllumination2'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getPointSize_c" + cPGetPointSize'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setPointSize_c" + cPSetPointSize'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setPointSpritesEnabled_c" + cPSetPointSpritesEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getPointSpritesEnabled_c" + cPGetPointSpritesEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setPointAttenuation_c" + cPSetPointAttenuation'_ :: ((HG3DClassPtr) -> (CInt -> (CFloat -> (CFloat -> (CFloat -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_isPointAttenuationEnabled_c" + cPIsPointAttenuationEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getPointAttenuationConstant_c" + cPGetPointAttenuationConstant'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getPointAttenuationLinear_c" + cPGetPointAttenuationLinear'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getPointAttenuationQuadratic_c" + cPGetPointAttenuationQuadratic'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setPointMinSize_c" + cPSetPointMinSize'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getPointMinSize_c" + cPGetPointMinSize'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setPointMaxSize_c" + cPSetPointMaxSize'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getPointMaxSize_c" + cPGetPointMaxSize'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getAmbient_c" + cPGetAmbient'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getDiffuse_c" + cPGetDiffuse'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getSpecular_c" + cPGetSpecular'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getSelfIllumination_c" + cPGetSelfIllumination'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getShininess_c" + cPGetShininess'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_createTextureUnitState_c" + cPCreateTextureUnitState'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_createTextureUnitState2_c" + cPCreateTextureUnitState2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CUInt -> ((HG3DClassPtr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_addTextureUnitState_c" + cPAddTextureUnitState'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getTextureUnitState_c" + cPGetTextureUnitState'_ :: ((HG3DClassPtr) -> (CUInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getTextureUnitState2_c" + cPGetTextureUnitState2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_removeTextureUnitState_c" + cPRemoveTextureUnitState'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_removeAllTextureUnitStates_c" + cPRemoveAllTextureUnitStates'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getNumTextureUnitStates_c" + cPGetNumTextureUnitStates'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_hasSeparateSceneBlending_c" + cPHasSeparateSceneBlending'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getSourceBlendFactor_c" + cPGetSourceBlendFactor'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getDestBlendFactor_c" + cPGetDestBlendFactor'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getSourceBlendFactorAlpha_c" + cPGetSourceBlendFactorAlpha'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getDestBlendFactorAlpha_c" + cPGetDestBlendFactorAlpha'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setSceneBlendingOperation_c" + cPSetSceneBlendingOperation'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setSeparateSceneBlendingOperation_c" + cPSetSeparateSceneBlendingOperation'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_hasSeparateSceneBlendingOperations_c" + cPHasSeparateSceneBlendingOperations'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getSceneBlendingOperation_c" + cPGetSceneBlendingOperation'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getSceneBlendingOperationAlpha_c" + cPGetSceneBlendingOperationAlpha'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_isTransparent_c" + cPIsTransparent'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setDepthCheckEnabled_c" + cPSetDepthCheckEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getDepthCheckEnabled_c" + cPGetDepthCheckEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setDepthWriteEnabled_c" + cPSetDepthWriteEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getDepthWriteEnabled_c" + cPGetDepthWriteEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setDepthFunction_c" + cPSetDepthFunction'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getDepthFunction_c" + cPGetDepthFunction'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setColourWriteEnabled_c" + cPSetColourWriteEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getColourWriteEnabled_c" + cPGetColourWriteEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setCullingMode_c" + cPSetCullingMode'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getCullingMode_c" + cPGetCullingMode'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setManualCullingMode_c" + cPSetManualCullingMode'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getManualCullingMode_c" + cPGetManualCullingMode'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setLightingEnabled_c" + cPSetLightingEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getLightingEnabled_c" + cPGetLightingEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setMaxSimultaneousLights_c" + cPSetMaxSimultaneousLights'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getMaxSimultaneousLights_c" + cPGetMaxSimultaneousLights'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setStartLight_c" + cPSetStartLight'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getStartLight_c" + cPGetStartLight'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setShadingMode_c" + cPSetShadingMode'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getShadingMode_c" + cPGetShadingMode'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setPolygonMode_c" + cPSetPolygonMode'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getPolygonMode_c" + cPGetPolygonMode'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setPolygonModeOverrideable_c" + cPSetPolygonModeOverrideable'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getPolygonModeOverrideable_c" + cPGetPolygonModeOverrideable'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setFog_c" + cPSetFog'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> ((ColourValuePtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ())))))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getFogOverride_c" + cPGetFogOverride'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getFogMode_c" + cPGetFogMode'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getFogColour_c" + cPGetFogColour'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getFogStart_c" + cPGetFogStart'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getFogEnd_c" + cPGetFogEnd'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getFogDensity_c" + cPGetFogDensity'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setDepthBias_c" + cPSetDepthBias'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getDepthBiasConstant_c" + cPGetDepthBiasConstant'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getDepthBiasSlopeScale_c" + cPGetDepthBiasSlopeScale'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setIterationDepthBias_c" + cPSetIterationDepthBias'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getIterationDepthBias_c" + cPGetIterationDepthBias'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setAlphaRejectFunction_c" + cPSetAlphaRejectFunction'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getAlphaRejectFunction_c" + cPGetAlphaRejectFunction'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setAlphaToCoverageEnabled_c" + cPSetAlphaToCoverageEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_isAlphaToCoverageEnabled_c" + cPIsAlphaToCoverageEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setTransparentSortingEnabled_c" + cPSetTransparentSortingEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getTransparentSortingEnabled_c" + cPGetTransparentSortingEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setTransparentSortingForced_c" + cPSetTransparentSortingForced'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getTransparentSortingForced_c" + cPGetTransparentSortingForced'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setIteratePerLight_c" + cPSetIteratePerLight'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (CInt -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getIteratePerLight_c" + cPGetIteratePerLight'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getRunOnlyForOneLightType_c" + cPGetRunOnlyForOneLightType'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getOnlyLightType_c" + cPGetOnlyLightType'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setLightCountPerIteration_c" + cPSetLightCountPerIteration'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getLightCountPerIteration_c" + cPGetLightCountPerIteration'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getParent_c" + cPGetParent'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getResourceGroup_c" + cPGetResourceGroup'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setVertexProgram_c" + cPSetVertexProgram'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getVertexProgramName_c" + cPGetVertexProgramName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setShadowCasterVertexProgram_c" + cPSetShadowCasterVertexProgram'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getShadowCasterVertexProgramName_c" + cPGetShadowCasterVertexProgramName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setShadowReceiverVertexProgram_c" + cPSetShadowReceiverVertexProgram'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setShadowReceiverFragmentProgram_c" + cPSetShadowReceiverFragmentProgram'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getShadowReceiverVertexProgramName_c" + cPGetShadowReceiverVertexProgramName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getShadowReceiverFragmentProgramName_c" + cPGetShadowReceiverFragmentProgramName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setFragmentProgram_c" + cPSetFragmentProgram'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getFragmentProgramName_c" + cPGetFragmentProgramName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setGeometryProgram_c" + cPSetGeometryProgram'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getGeometryProgramName_c" + cPGetGeometryProgramName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP__split_c" + cPSplit'_ :: ((HG3DClassPtr) -> (CUInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP__notifyIndex_c" + cPNotifyIndex'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP__prepare_c" + cPPrepare'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP__unprepare_c" + cPUnprepare'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP__load_c" + cPLoad'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP__unload_c" + cPUnload'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_isLoaded_c" + cPIsLoaded'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getHash_c" + cPGetHash'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP__dirtyHash_c" + cPDirtyHash'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP__recalculateHash_c" + cPRecalculateHash'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP__notifyNeedsRecompile_c" + cPNotifyNeedsRecompile'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP__getTextureUnitWithContentTypeIndex_c" + cPGetTextureUnitWithContentTypeIndex'_ :: ((HG3DClassPtr) -> (CInt -> (CUInt -> ((Ptr CUInt) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setTextureFiltering_c" + cPSetTextureFiltering'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setTextureAnisotropy_c" + cPSetTextureAnisotropy'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setNormaliseNormals_c" + cPSetNormaliseNormals'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getNormaliseNormals_c" + cPGetNormaliseNormals'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_queueForDeletion_c" + cPQueueForDeletion'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_isAmbientOnly_c" + cPIsAmbientOnly'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setPassIterationCount_c" + cPSetPassIterationCount'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getPassIterationCount_c" + cPGetPassIterationCount'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setLightScissoringEnabled_c" + cPSetLightScissoringEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getLightScissoringEnabled_c" + cPGetLightScissoringEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setLightClipPlanesEnabled_c" + cPSetLightClipPlanesEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getLightClipPlanesEnabled_c" + cPGetLightClipPlanesEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setIlluminationStage_c" + cPSetIlluminationStage'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getIlluminationStage_c" + cPGetIlluminationStage'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassPatchMesh.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassPatchMesh.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgrePatchMesh.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassPatchMesh where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassPatchMesh.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassPatchMesh.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassPatchMesh.chs" #-} + +
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassPatchMeshPtr.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassPatchMeshPtr.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgrePatchMesh.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassPatchMeshPtr where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassPatchMeshPtr.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassPatchMeshPtr.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassPatchMeshPtr.chs" #-} + +
@@ -0,0 +1,160 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassPatchSurface.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassPatchSurface.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgrePatchSurface.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassPatchSurface where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassPatchSurface.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassPatchSurface.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassPatchSurface.chs" #-} + + +cPsGetRequiredVertexCount :: HG3DClass -> IO (Int) +cPsGetRequiredVertexCount a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPsGetRequiredVertexCount'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassPatchSurface.chs" #-} +; +cPsGetRequiredIndexCount :: HG3DClass -> IO (Int) +cPsGetRequiredIndexCount a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPsGetRequiredIndexCount'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassPatchSurface.chs" #-} +; +cPsGetCurrentIndexCount :: HG3DClass -> IO (Int) +cPsGetCurrentIndexCount a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPsGetCurrentIndexCount'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 70 "HGamer3D\\Bindings\\Ogre\\ClassPatchSurface.chs" #-} +; +cPsGetIndexOffset :: HG3DClass -> IO (Int) +cPsGetIndexOffset a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPsGetIndexOffset'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 74 "HGamer3D\\Bindings\\Ogre\\ClassPatchSurface.chs" #-} +; +cPsGetVertexOffset :: HG3DClass -> IO (Int) +cPsGetVertexOffset a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPsGetVertexOffset'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 78 "HGamer3D\\Bindings\\Ogre\\ClassPatchSurface.chs" #-} +; +cPsGetBoundingSphereRadius :: HG3DClass -> IO (Float) +cPsGetBoundingSphereRadius a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPsGetBoundingSphereRadius'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 82 "HGamer3D\\Bindings\\Ogre\\ClassPatchSurface.chs" #-} +; +cPsSetSubdivisionFactor :: HG3DClass -> Float -> IO () +cPsSetSubdivisionFactor a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cPsSetSubdivisionFactor'_ a1' a2' >>= \res -> + return () +{-# LINE 86 "HGamer3D\\Bindings\\Ogre\\ClassPatchSurface.chs" #-} +; +cPsGetSubdivisionFactor :: HG3DClass -> IO (Float) +cPsGetSubdivisionFactor a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cPsGetSubdivisionFactor'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 90 "HGamer3D\\Bindings\\Ogre\\ClassPatchSurface.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPatchSurface.chs.h cPs_getRequiredVertexCount_c" + cPsGetRequiredVertexCount'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPatchSurface.chs.h cPs_getRequiredIndexCount_c" + cPsGetRequiredIndexCount'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPatchSurface.chs.h cPs_getCurrentIndexCount_c" + cPsGetCurrentIndexCount'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPatchSurface.chs.h cPs_getIndexOffset_c" + cPsGetIndexOffset'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPatchSurface.chs.h cPs_getVertexOffset_c" + cPsGetVertexOffset'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPatchSurface.chs.h cPs_getBoundingSphereRadius_c" + cPsGetBoundingSphereRadius'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPatchSurface.chs.h cPs_setSubdivisionFactor_c" + cPsSetSubdivisionFactor'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPatchSurface.chs.h cPs_getSubdivisionFactor_c" + cPsGetSubdivisionFactor'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ())))
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassPlaneOptimalShadowCameraSetup.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassPlaneOptimalShadowCameraSetup.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreShadowCameraSetupPlaneOptimal.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassPlaneOptimalShadowCameraSetup where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassPlaneOptimalShadowCameraSetup.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassPlaneOptimalShadowCameraSetup.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassPlaneOptimalShadowCameraSetup.chs" #-} + +
@@ -0,0 +1,462 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. + +-- ClassPtr.chs + +module HGamer3D.Bindings.Ogre.ClassPtr where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + +{- class ClassItemIdentityException -} +type ClassItemIdentityException = Ptr (()) +{-# LINE 35 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassResourceGroupManager -} +type ClassResourceGroupManager = Ptr (()) +{-# LINE 37 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassMultiRenderTarget -} +type ClassMultiRenderTarget = Ptr (()) +{-# LINE 39 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassTempBlendedBufferInfo -} +type ClassTempBlendedBufferInfo = Ptr (()) +{-# LINE 41 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassCompositor -} +type ClassCompositor = Ptr (()) +{-# LINE 43 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassTransformKeyFrame -} +type ClassTransformKeyFrame = Ptr (()) +{-# LINE 45 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassSceneManager -} +type ClassSceneManager = Ptr (()) +{-# LINE 47 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassRenderTarget -} +type ClassRenderTarget = Ptr (()) +{-# LINE 49 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassInvalidStateException -} +type ClassInvalidStateException = Ptr (()) +{-# LINE 51 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassBillboardSet -} +type ClassBillboardSet = Ptr (()) +{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassSimpleRenderable -} +type ClassSimpleRenderable = Ptr (()) +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassMovableObjectFactory -} +type ClassMovableObjectFactory = Ptr (()) +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassParticleSystemFactory -} +type ClassParticleSystemFactory = Ptr (()) +{-# LINE 59 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassWindowEventListener -} +type ClassWindowEventListener = Ptr (()) +{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassHardwareBufferLicensee -} +type ClassHardwareBufferLicensee = Ptr (()) +{-# LINE 63 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassGpuProgramPtr -} +type ClassGpuProgramPtr = Ptr (()) +{-# LINE 65 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassFileStreamDataStream -} +type ClassFileStreamDataStream = Ptr (()) +{-# LINE 67 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassMaterialPtr -} +type ClassMaterialPtr = Ptr (()) +{-# LINE 69 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassPatchMesh -} +type ClassPatchMesh = Ptr (()) +{-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassRenderQueueInvocation -} +type ClassRenderQueueInvocation = Ptr (()) +{-# LINE 73 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassDefaultRaySceneQuery -} +type ClassDefaultRaySceneQuery = Ptr (()) +{-# LINE 75 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassTextureManager -} +type ClassTextureManager = Ptr (()) +{-# LINE 77 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassHardwareBufferManagerBase -} +type ClassHardwareBufferManagerBase = Ptr (()) +{-# LINE 79 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassSubMesh -} +type ClassSubMesh = Ptr (()) +{-# LINE 81 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassHardwarePixelBufferSharedPtr -} +type ClassHardwarePixelBufferSharedPtr = Ptr (()) +{-# LINE 83 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassBillboardChain -} +type ClassBillboardChain = Ptr (()) +{-# LINE 85 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassMeshPtr -} +type ClassMeshPtr = Ptr (()) +{-# LINE 87 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassParticleAffector -} +type ClassParticleAffector = Ptr (()) +{-# LINE 89 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassMesh -} +type ClassMesh = Ptr (()) +{-# LINE 91 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassHighLevelGpuProgramFactory -} +type ClassHighLevelGpuProgramFactory = Ptr (()) +{-# LINE 93 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassMaterialBucket -} +type ClassMaterialBucket = Ptr (()) +{-# LINE 95 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassElement -} +type ClassElement = Ptr (()) +{-# LINE 97 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassCompositorInstance -} +type ClassCompositorInstance = Ptr (()) +{-# LINE 99 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassInvalidParametersException -} +type ClassInvalidParametersException = Ptr (()) +{-# LINE 101 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassParticleEmitter -} +type ClassParticleEmitter = Ptr (()) +{-# LINE 103 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassDefaultSphereSceneQuery -} +type ClassDefaultSphereSceneQuery = Ptr (()) +{-# LINE 105 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassException -} +type ClassException = Ptr (()) +{-# LINE 107 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassHardwareBufferManager -} +type ClassHardwareBufferManager = Ptr (()) +{-# LINE 109 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassKeyFrame -} +type ClassKeyFrame = Ptr (()) +{-# LINE 111 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassOverlayManager -} +type ClassOverlayManager = Ptr (()) +{-# LINE 113 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassDefaultSceneManagerFactory -} +type ClassDefaultSceneManagerFactory = Ptr (()) +{-# LINE 115 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassLogManager -} +type ClassLogManager = Ptr (()) +{-# LINE 117 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassCompositionTechnique -} +type ClassCompositionTechnique = Ptr (()) +{-# LINE 119 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassFrustum -} +type ClassFrustum = Ptr (()) +{-# LINE 121 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassMaterial -} +type ClassMaterial = Ptr (()) +{-# LINE 123 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassFileHandleDataStream -} +type ClassFileHandleDataStream = Ptr (()) +{-# LINE 125 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassDefaultSceneManager -} +type ClassDefaultSceneManager = Ptr (()) +{-# LINE 127 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassGpuProgram -} +type ClassGpuProgram = Ptr (()) +{-# LINE 129 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassCompositorChain -} +type ClassCompositorChain = Ptr (()) +{-# LINE 131 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassBillboardSetFactory -} +type ClassBillboardSetFactory = Ptr (()) +{-# LINE 133 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassMovableObject -} +type ClassMovableObject = Ptr (()) +{-# LINE 135 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassIOException -} +type ClassIOException = Ptr (()) +{-# LINE 137 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassLODBucket -} +type ClassLODBucket = Ptr (()) +{-# LINE 139 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassBone -} +type ClassBone = Ptr (()) +{-# LINE 141 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassFileNotFoundException -} +type ClassFileNotFoundException = Ptr (()) +{-# LINE 143 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassArchive -} +type ClassArchive = Ptr (()) +{-# LINE 145 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassBillboardChainFactory -} +type ClassBillboardChainFactory = Ptr (()) +{-# LINE 147 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassInternalErrorException -} +type ClassInternalErrorException = Ptr (()) +{-# LINE 149 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassStringConverter -} +type ClassStringConverter = Ptr (()) +{-# LINE 151 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassVertexPoseKeyFrame -} +type ClassVertexPoseKeyFrame = Ptr (()) +{-# LINE 153 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassBillboard -} +type ClassBillboard = Ptr (()) +{-# LINE 155 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassStringUtil -} +type ClassStringUtil = Ptr (()) +{-# LINE 157 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassResourceGroupListener -} +type ClassResourceGroupListener = Ptr (()) +{-# LINE 159 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassPatchMeshPtr -} +type ClassPatchMeshPtr = Ptr (()) +{-# LINE 161 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassAnimation -} +type ClassAnimation = Ptr (()) +{-# LINE 163 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassSceneNode -} +type ClassSceneNode = Ptr (()) +{-# LINE 165 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassTimeIndex -} +type ClassTimeIndex = Ptr (()) +{-# LINE 167 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassAnimationTrack -} +type ClassAnimationTrack = Ptr (()) +{-# LINE 169 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassHighLevelGpuProgram -} +type ClassHighLevelGpuProgram = Ptr (()) +{-# LINE 171 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassLightFactory -} +type ClassLightFactory = Ptr (()) +{-# LINE 173 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassLiSPSMShadowCameraSetup -} +type ClassLiSPSMShadowCameraSetup = Ptr (()) +{-# LINE 175 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassPass -} +type ClassPass = Ptr (()) +{-# LINE 177 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassTextureUnitState -} +type ClassTextureUnitState = Ptr (()) +{-# LINE 179 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassNumericAnimationTrack -} +type ClassNumericAnimationTrack = Ptr (()) +{-# LINE 181 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassCmdManualNamedConstsFile -} +type ClassCmdManualNamedConstsFile = Ptr (()) +{-# LINE 183 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassSkeletonInstance -} +type ClassSkeletonInstance = Ptr (()) +{-# LINE 185 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassMeshSerializer -} +type ClassMeshSerializer = Ptr (()) +{-# LINE 187 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassAnimationState -} +type ClassAnimationState = Ptr (()) +{-# LINE 189 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassSceneManagerEnumerator -} +type ClassSceneManagerEnumerator = Ptr (()) +{-# LINE 191 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassRenderingAPIException -} +type ClassRenderingAPIException = Ptr (()) +{-# LINE 193 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassCmdPose -} +type ClassCmdPose = Ptr (()) +{-# LINE 195 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassTechnique -} +type ClassTechnique = Ptr (()) +{-# LINE 197 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassManualObjectSectionShadowRenderable -} +type ClassManualObjectSectionShadowRenderable = Ptr (()) +{-# LINE 199 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassEntity -} +type ClassEntity = Ptr (()) +{-# LINE 201 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassSceneManagerFactory -} +type ClassSceneManagerFactory = Ptr (()) +{-# LINE 203 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassPlaneOptimalShadowCameraSetup -} +type ClassPlaneOptimalShadowCameraSetup = Ptr (()) +{-# LINE 205 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassRenderWindow -} +type ClassRenderWindow = Ptr (()) +{-# LINE 207 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassShadowCameraSetup -} +type ClassShadowCameraSetup = Ptr (()) +{-# LINE 209 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassRuntimeAssertionException -} +type ClassRuntimeAssertionException = Ptr (()) +{-# LINE 211 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassRibbonTrailFactory -} +type ClassRibbonTrailFactory = Ptr (()) +{-# LINE 213 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassSkeletonPtr -} +type ClassSkeletonPtr = Ptr (()) +{-# LINE 215 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassSubEntity -} +type ClassSubEntity = Ptr (()) +{-# LINE 217 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassCompositorPtr -} +type ClassCompositorPtr = Ptr (()) +{-# LINE 219 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassManualObject -} +type ClassManualObject = Ptr (()) +{-# LINE 221 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassHardwareIndexBufferSharedPtr -} +type ClassHardwareIndexBufferSharedPtr = Ptr (()) +{-# LINE 223 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassHardwareIndexBuffer -} +type ClassHardwareIndexBuffer = Ptr (()) +{-# LINE 225 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassGpuProgramManager -} +type ClassGpuProgramManager = Ptr (()) +{-# LINE 227 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassOverlay -} +type ClassOverlay = Ptr (()) +{-# LINE 229 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassStaticGeometry -} +type ClassStaticGeometry = Ptr (()) +{-# LINE 231 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassRibbonTrail -} +type ClassRibbonTrail = Ptr (()) +{-# LINE 233 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassManualObjectSection -} +type ClassManualObjectSection = Ptr (()) +{-# LINE 235 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassVertexAnimationTrack -} +type ClassVertexAnimationTrack = Ptr (()) +{-# LINE 237 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassArchiveManager -} +type ClassArchiveManager = Ptr (()) +{-# LINE 239 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassSkeleton -} +type ClassSkeleton = Ptr (()) +{-# LINE 241 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassSkeletonSerializer -} +type ClassSkeletonSerializer = Ptr (()) +{-# LINE 243 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassConfigFile -} +type ClassConfigFile = Ptr (()) +{-# LINE 245 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassRoot -} +type ClassRoot = Ptr (()) +{-# LINE 247 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassHardwarePixelBuffer -} +type ClassHardwarePixelBuffer = Ptr (()) +{-# LINE 249 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassRegion -} +type ClassRegion = Ptr (()) +{-# LINE 251 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassOverlayContainer -} +type ClassOverlayContainer = Ptr (()) +{-# LINE 253 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassWindowEventUtilities -} +type ClassWindowEventUtilities = Ptr (()) +{-# LINE 255 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassControllerManager -} +type ClassControllerManager = Ptr (()) +{-# LINE 257 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassMaterialSerializer -} +type ClassMaterialSerializer = Ptr (()) +{-# LINE 259 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassNodeAnimationTrack -} +type ClassNodeAnimationTrack = Ptr (()) +{-# LINE 261 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassLight -} +type ClassLight = Ptr (()) +{-# LINE 263 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassDefaultShadowCameraSetup -} +type ClassDefaultShadowCameraSetup = Ptr (()) +{-# LINE 265 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassCompositionTargetPass -} +type ClassCompositionTargetPass = Ptr (()) +{-# LINE 267 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassRenderTexture -} +type ClassRenderTexture = Ptr (()) +{-# LINE 269 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassCompositorManager -} +type ClassCompositorManager = Ptr (()) +{-# LINE 271 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassEntityFactory -} +type ClassEntityFactory = Ptr (()) +{-# LINE 273 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassMemoryDataStream -} +type ClassMemoryDataStream = Ptr (()) +{-# LINE 275 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassHardwareOcclusionQuery -} +type ClassHardwareOcclusionQuery = Ptr (()) +{-# LINE 277 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassPSSMShadowCameraSetup -} +type ClassPSSMShadowCameraSetup = Ptr (()) +{-# LINE 279 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassVertexMorphKeyFrame -} +type ClassVertexMorphKeyFrame = Ptr (()) +{-# LINE 281 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassNode -} +type ClassNode = Ptr (()) +{-# LINE 283 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassPatchSurface -} +type ClassPatchSurface = Ptr (()) +{-# LINE 285 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassManualObjectFactory -} +type ClassManualObjectFactory = Ptr (()) +{-# LINE 287 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassNumericKeyFrame -} +type ClassNumericKeyFrame = Ptr (()) +{-# LINE 289 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassDataStream -} +type ClassDataStream = Ptr (()) +{-# LINE 291 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassRenderObjectListener -} +type ClassRenderObjectListener = Ptr (()) +{-# LINE 293 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassGeometryBucket -} +type ClassGeometryBucket = Ptr (()) +{-# LINE 295 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassViewport -} +type ClassViewport = Ptr (()) +{-# LINE 297 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassDefaultPlaneBoundedVolumeListSceneQuery -} +type ClassDefaultPlaneBoundedVolumeListSceneQuery = Ptr (()) +{-# LINE 299 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassCompositionPass -} +type ClassCompositionPass = Ptr (()) +{-# LINE 301 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassSceneMgrQueuedRenderableVisitor -} +type ClassSceneMgrQueuedRenderableVisitor = Ptr (()) +{-# LINE 303 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassRenderSystemOperation -} +type ClassRenderSystemOperation = Ptr (()) +{-# LINE 305 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassHighLevelGpuProgramPtr -} +type ClassHighLevelGpuProgramPtr = Ptr (()) +{-# LINE 307 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassUnimplementedException -} +type ClassUnimplementedException = Ptr (()) +{-# LINE 309 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassRenderQueueInvocationSequence -} +type ClassRenderQueueInvocationSequence = Ptr (()) +{-# LINE 311 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassDefaultAxisAlignedBoxSceneQuery -} +type ClassDefaultAxisAlignedBoxSceneQuery = Ptr (()) +{-# LINE 313 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassMaterialManager -} +type ClassMaterialManager = Ptr (()) +{-# LINE 315 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassCamera -} +type ClassCamera = Ptr (()) +{-# LINE 317 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-}
@@ -0,0 +1,126 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassRegion.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassRegion.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreStaticGeometry.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassRegion where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassRegion.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassRegion.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassRegion.chs" #-} +import HGamer3D.Bindings.Ogre.TypeVector3 +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassRegion.chs" #-} + + +cRgGetParent :: HG3DClass -> IO (HG3DClass) +cRgGetParent a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRgGetParent'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 63 "HGamer3D\\Bindings\\Ogre\\ClassRegion.chs" #-} +; +cRgBuild :: HG3DClass -> Bool -> IO () +cRgBuild a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cRgBuild'_ a1' a2' >>= \res -> + return () +{-# LINE 67 "HGamer3D\\Bindings\\Ogre\\ClassRegion.chs" #-} +; +cRgGetID :: HG3DClass -> IO (Int) +cRgGetID a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRgGetID'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassRegion.chs" #-} +; +cRgGetCentre :: HG3DClass -> IO (Vector3) +cRgGetCentre a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRgGetCentre'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 75 "HGamer3D\\Bindings\\Ogre\\ClassRegion.chs" #-} +; +cRgHasEdgeList :: HG3DClass -> IO (Bool) +cRgHasEdgeList a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRgHasEdgeList'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 79 "HGamer3D\\Bindings\\Ogre\\ClassRegion.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRegion.chs.h cRg_getParent_c" + cRgGetParent'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRegion.chs.h cRg_build_c" + cRgBuild'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRegion.chs.h cRg_getID_c" + cRgGetID'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRegion.chs.h cRg_getCentre_c" + cRgGetCentre'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRegion.chs.h cRg_hasEdgeList_c" + cRgHasEdgeList'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassRenderObjectListener.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassRenderObjectListener.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRenderObjectListener.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassRenderObjectListener where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassRenderObjectListener.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassRenderObjectListener.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassRenderObjectListener.chs" #-} + +
@@ -0,0 +1,123 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassRenderQueueInvocation.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassRenderQueueInvocation.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRenderQueueInvocation.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassRenderQueueInvocation where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassRenderQueueInvocation.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassRenderQueueInvocation.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassRenderQueueInvocation.chs" #-} + + +cRqiGetInvocationName :: HG3DClass -> IO (String) +cRqiGetInvocationName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cRqiGetInvocationName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassRenderQueueInvocation.chs" #-} +; +cRqiSetSuppressShadows :: HG3DClass -> Bool -> IO () +cRqiSetSuppressShadows a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cRqiSetSuppressShadows'_ a1' a2' >>= \res -> + return () +{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassRenderQueueInvocation.chs" #-} +; +cRqiGetSuppressShadows :: HG3DClass -> IO (Bool) +cRqiGetSuppressShadows a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRqiGetSuppressShadows'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 70 "HGamer3D\\Bindings\\Ogre\\ClassRenderQueueInvocation.chs" #-} +; +cRqiSetSuppressRenderStateChanges :: HG3DClass -> Bool -> IO () +cRqiSetSuppressRenderStateChanges a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cRqiSetSuppressRenderStateChanges'_ a1' a2' >>= \res -> + return () +{-# LINE 74 "HGamer3D\\Bindings\\Ogre\\ClassRenderQueueInvocation.chs" #-} +; +cRqiGetSuppressRenderStateChanges :: HG3DClass -> IO (Bool) +cRqiGetSuppressRenderStateChanges a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRqiGetSuppressRenderStateChanges'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 78 "HGamer3D\\Bindings\\Ogre\\ClassRenderQueueInvocation.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderQueueInvocation.chs.h cRqi_getInvocationName_c" + cRqiGetInvocationName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderQueueInvocation.chs.h cRqi_setSuppressShadows_c" + cRqiSetSuppressShadows'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderQueueInvocation.chs.h cRqi_getSuppressShadows_c" + cRqiGetSuppressShadows'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderQueueInvocation.chs.h cRqi_setSuppressRenderStateChanges_c" + cRqiSetSuppressRenderStateChanges'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderQueueInvocation.chs.h cRqi_getSuppressRenderStateChanges_c" + cRqiGetSuppressRenderStateChanges'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
@@ -0,0 +1,134 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassRenderQueueInvocationSequence.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassRenderQueueInvocationSequence.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRenderQueueInvocation.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassRenderQueueInvocationSequence where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassRenderQueueInvocationSequence.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassRenderQueueInvocationSequence.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassRenderQueueInvocationSequence.chs" #-} + + +cRqisGetName :: HG3DClass -> IO (String) +cRqisGetName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cRqisGetName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassRenderQueueInvocationSequence.chs" #-} +; +cRqisAdd2 :: HG3DClass -> HG3DClass -> IO () +cRqisAdd2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cRqisAdd2'_ a1' a2' >>= \res -> + return () +{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassRenderQueueInvocationSequence.chs" #-} +; +cRqisSize :: HG3DClass -> IO (Int) +cRqisSize a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRqisSize'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 70 "HGamer3D\\Bindings\\Ogre\\ClassRenderQueueInvocationSequence.chs" #-} +; +cRqisClear :: HG3DClass -> IO () +cRqisClear a1 = + withHG3DClass a1 $ \a1' -> + cRqisClear'_ a1' >>= \res -> + return () +{-# LINE 73 "HGamer3D\\Bindings\\Ogre\\ClassRenderQueueInvocationSequence.chs" #-} +; +cRqisGet :: HG3DClass -> Int -> IO (HG3DClass) +cRqisGet a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cRqisGet'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 78 "HGamer3D\\Bindings\\Ogre\\ClassRenderQueueInvocationSequence.chs" #-} +; +cRqisRemove :: HG3DClass -> Int -> IO () +cRqisRemove a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cRqisRemove'_ a1' a2' >>= \res -> + return () +{-# LINE 82 "HGamer3D\\Bindings\\Ogre\\ClassRenderQueueInvocationSequence.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderQueueInvocationSequence.chs.h cRqis_getName_c" + cRqisGetName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderQueueInvocationSequence.chs.h cRqis_add2_c" + cRqisAdd2'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderQueueInvocationSequence.chs.h cRqis_size_c" + cRqisSize'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderQueueInvocationSequence.chs.h cRqis_clear_c" + cRqisClear'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderQueueInvocationSequence.chs.h cRqis_get_c" + cRqisGet'_ :: ((HG3DClassPtr) -> (CInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderQueueInvocationSequence.chs.h cRqis_remove_c" + cRqisRemove'_ :: ((HG3DClassPtr) -> (CInt -> (IO ())))
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassRenderSystemOperation.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassRenderSystemOperation.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCompositorInstance.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassRenderSystemOperation where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassRenderSystemOperation.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassRenderSystemOperation.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassRenderSystemOperation.chs" #-} + +
@@ -0,0 +1,445 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassRenderTarget.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRenderTarget.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassRenderTarget where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +import HGamer3D.Bindings.Ogre.EnumPixelFormat +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} + + +cRtGetName :: HG3DClass -> IO (String) +cRtGetName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cRtGetName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 63 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +; +cRtUpdate :: HG3DClass -> Bool -> IO () +cRtUpdate a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cRtUpdate'_ a1' a2' >>= \res -> + return () +{-# LINE 67 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +; +cRtSwapBuffers :: HG3DClass -> Bool -> IO () +cRtSwapBuffers a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cRtSwapBuffers'_ a1' a2' >>= \res -> + return () +{-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +; +cRtAddViewport :: HG3DClass -> HG3DClass -> Int -> Float -> Float -> Float -> Float -> IO (HG3DClass) +cRtAddViewport a1 a2 a3 a4 a5 a6 a7 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + let {a3' = fromIntegral a3} in + let {a4' = realToFrac a4} in + let {a5' = realToFrac a5} in + let {a6' = realToFrac a6} in + let {a7' = realToFrac a7} in + alloca $ \a8' -> + cRtAddViewport'_ a1' a2' a3' a4' a5' a6' a7' a8' >>= \res -> + peek a8'>>= \a8'' -> + return (a8'') +{-# LINE 81 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +; +cRtGetNumViewports :: HG3DClass -> IO (Int) +cRtGetNumViewports a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRtGetNumViewports'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 85 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +; +cRtGetViewport :: HG3DClass -> Int -> IO (HG3DClass) +cRtGetViewport a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cRtGetViewport'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 90 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +; +cRtRemoveViewport :: HG3DClass -> Int -> IO () +cRtRemoveViewport a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cRtRemoveViewport'_ a1' a2' >>= \res -> + return () +{-# LINE 94 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +; +cRtRemoveAllViewports :: HG3DClass -> IO () +cRtRemoveAllViewports a1 = + withHG3DClass a1 $ \a1' -> + cRtRemoveAllViewports'_ a1' >>= \res -> + return () +{-# LINE 97 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +; +cRtGetLastFPS :: HG3DClass -> IO (Float) +cRtGetLastFPS a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRtGetLastFPS'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 101 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +; +cRtGetAverageFPS :: HG3DClass -> IO (Float) +cRtGetAverageFPS a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRtGetAverageFPS'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 105 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +; +cRtGetBestFPS :: HG3DClass -> IO (Float) +cRtGetBestFPS a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRtGetBestFPS'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 109 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +; +cRtGetWorstFPS :: HG3DClass -> IO (Float) +cRtGetWorstFPS a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRtGetWorstFPS'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 113 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +; +cRtGetBestFrameTime :: HG3DClass -> IO (Float) +cRtGetBestFrameTime a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRtGetBestFrameTime'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 117 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +; +cRtGetWorstFrameTime :: HG3DClass -> IO (Float) +cRtGetWorstFrameTime a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRtGetWorstFrameTime'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 121 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +; +cRtResetStatistics :: HG3DClass -> IO () +cRtResetStatistics a1 = + withHG3DClass a1 $ \a1' -> + cRtResetStatistics'_ a1' >>= \res -> + return () +{-# LINE 124 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +; +cRtRemoveAllListeners :: HG3DClass -> IO () +cRtRemoveAllListeners a1 = + withHG3DClass a1 $ \a1' -> + cRtRemoveAllListeners'_ a1' >>= \res -> + return () +{-# LINE 127 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +; +cRtIsActive :: HG3DClass -> IO (Bool) +cRtIsActive a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRtIsActive'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 131 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +; +cRtSetActive :: HG3DClass -> Bool -> IO () +cRtSetActive a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cRtSetActive'_ a1' a2' >>= \res -> + return () +{-# LINE 135 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +; +cRtSetAutoUpdated :: HG3DClass -> Bool -> IO () +cRtSetAutoUpdated a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cRtSetAutoUpdated'_ a1' a2' >>= \res -> + return () +{-# LINE 139 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +; +cRtIsAutoUpdated :: HG3DClass -> IO (Bool) +cRtIsAutoUpdated a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRtIsAutoUpdated'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 143 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +; +cRtSuggestPixelFormat :: HG3DClass -> IO (EnumPixelFormat) +cRtSuggestPixelFormat a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRtSuggestPixelFormat'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 147 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +; +cRtWriteContentsToFile :: HG3DClass -> String -> IO () +cRtWriteContentsToFile a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cRtWriteContentsToFile'_ a1' a2' >>= \res -> + return () +{-# LINE 151 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +; +cRtWriteContentsToTimestampedFile :: HG3DClass -> String -> String -> IO (String) +cRtWriteContentsToTimestampedFile a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + alloc64k $ \a4' -> + cRtWriteContentsToTimestampedFile'_ a1' a2' a3' a4' >>= \res -> + peekCString a4'>>= \a4'' -> + return (a4'') +{-# LINE 157 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +; +cRtGetTriangleCount :: HG3DClass -> IO (Int) +cRtGetTriangleCount a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRtGetTriangleCount'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 161 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +; +cRtGetBatchCount :: HG3DClass -> IO (Int) +cRtGetBatchCount a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRtGetBatchCount'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 165 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +; +cRtIsPrimary :: HG3DClass -> IO (Bool) +cRtIsPrimary a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRtIsPrimary'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 169 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +; +cRtIsHardwareGammaEnabled :: HG3DClass -> IO (Bool) +cRtIsHardwareGammaEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRtIsHardwareGammaEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 173 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +; +cRtGetFSAAHint :: HG3DClass -> IO (String) +cRtGetFSAAHint a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cRtGetFSAAHint'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 177 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +; +cRtBeginUpdate :: HG3DClass -> IO () +cRtBeginUpdate a1 = + withHG3DClass a1 $ \a1' -> + cRtBeginUpdate'_ a1' >>= \res -> + return () +{-# LINE 180 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +; +cRtUpdateViewport :: HG3DClass -> Int -> Bool -> IO () +cRtUpdateViewport a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + let {a3' = fromBool a3} in + cRtUpdateViewport'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 185 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +; +cRtUpdateViewport2 :: HG3DClass -> HG3DClass -> Bool -> IO () +cRtUpdateViewport2 a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + let {a3' = fromBool a3} in + cRtUpdateViewport2'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 190 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +; +cRtUpdateAutoUpdatedViewports :: HG3DClass -> Bool -> IO () +cRtUpdateAutoUpdatedViewports a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cRtUpdateAutoUpdatedViewports'_ a1' a2' >>= \res -> + return () +{-# LINE 194 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h cRt_getName_c" + cRtGetName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h cRt_update_c" + cRtUpdate'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h cRt_swapBuffers_c" + cRtSwapBuffers'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h cRt_addViewport_c" + cRtAddViewport'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (CInt -> (CFloat -> (CFloat -> (CFloat -> (CFloat -> ((HG3DClassPtr) -> (IO ()))))))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h cRt_getNumViewports_c" + cRtGetNumViewports'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h cRt_getViewport_c" + cRtGetViewport'_ :: ((HG3DClassPtr) -> (CUInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h cRt_removeViewport_c" + cRtRemoveViewport'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h cRt_removeAllViewports_c" + cRtRemoveAllViewports'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h cRt_getLastFPS_c" + cRtGetLastFPS'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h cRt_getAverageFPS_c" + cRtGetAverageFPS'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h cRt_getBestFPS_c" + cRtGetBestFPS'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h cRt_getWorstFPS_c" + cRtGetWorstFPS'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h cRt_getBestFrameTime_c" + cRtGetBestFrameTime'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h cRt_getWorstFrameTime_c" + cRtGetWorstFrameTime'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h cRt_resetStatistics_c" + cRtResetStatistics'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h cRt_removeAllListeners_c" + cRtRemoveAllListeners'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h cRt_isActive_c" + cRtIsActive'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h cRt_setActive_c" + cRtSetActive'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h cRt_setAutoUpdated_c" + cRtSetAutoUpdated'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h cRt_isAutoUpdated_c" + cRtIsAutoUpdated'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h cRt_suggestPixelFormat_c" + cRtSuggestPixelFormat'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h cRt_writeContentsToFile_c" + cRtWriteContentsToFile'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h cRt_writeContentsToTimestampedFile_c" + cRtWriteContentsToTimestampedFile'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h cRt_getTriangleCount_c" + cRtGetTriangleCount'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h cRt_getBatchCount_c" + cRtGetBatchCount'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h cRt_isPrimary_c" + cRtIsPrimary'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h cRt_isHardwareGammaEnabled_c" + cRtIsHardwareGammaEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h cRt_getFSAAHint_c" + cRtGetFSAAHint'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h cRt__beginUpdate_c" + cRtBeginUpdate'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h cRt__updateViewport_c" + cRtUpdateViewport'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h cRt__updateViewport2_c" + cRtUpdateViewport2'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h cRt__updateAutoUpdatedViewports_c" + cRtUpdateAutoUpdatedViewports'_ :: ((HG3DClassPtr) -> (CInt -> (IO ())))
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassRenderTexture.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassRenderTexture.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRenderTexture.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassRenderTexture where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassRenderTexture.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassRenderTexture.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassRenderTexture.chs" #-} + +
@@ -0,0 +1,219 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassRenderWindow.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRenderWindow.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassRenderWindow where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} +import HGamer3D.Bindings.Ogre.EnumPixelFormat +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} + + +cRwSetFullscreen :: HG3DClass -> Bool -> Int -> Int -> IO () +cRwSetFullscreen a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + let {a3' = fromIntegral a3} in + let {a4' = fromIntegral a4} in + cRwSetFullscreen'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 65 "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} +; +cRwDestroy :: HG3DClass -> IO () +cRwDestroy a1 = + withHG3DClass a1 $ \a1' -> + cRwDestroy'_ a1' >>= \res -> + return () +{-# LINE 68 "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} +; +cRwResize :: HG3DClass -> Int -> Int -> IO () +cRwResize a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + let {a3' = fromIntegral a3} in + cRwResize'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 73 "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} +; +cRwWindowMovedOrResized :: HG3DClass -> IO () +cRwWindowMovedOrResized a1 = + withHG3DClass a1 $ \a1' -> + cRwWindowMovedOrResized'_ a1' >>= \res -> + return () +{-# LINE 76 "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} +; +cRwReposition :: HG3DClass -> Int -> Int -> IO () +cRwReposition a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + let {a3' = fromIntegral a3} in + cRwReposition'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 81 "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} +; +cRwIsVisible :: HG3DClass -> IO (Bool) +cRwIsVisible a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRwIsVisible'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 85 "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} +; +cRwSetVisible :: HG3DClass -> Bool -> IO () +cRwSetVisible a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cRwSetVisible'_ a1' a2' >>= \res -> + return () +{-# LINE 89 "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} +; +cRwIsActive :: HG3DClass -> IO (Bool) +cRwIsActive a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRwIsActive'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 93 "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} +; +cRwIsClosed :: HG3DClass -> IO (Bool) +cRwIsClosed a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRwIsClosed'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 97 "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} +; +cRwIsPrimary :: HG3DClass -> IO (Bool) +cRwIsPrimary a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRwIsPrimary'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 101 "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} +; +cRwIsFullScreen :: HG3DClass -> IO (Bool) +cRwIsFullScreen a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRwIsFullScreen'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 105 "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} +; +cRwSuggestPixelFormat :: HG3DClass -> IO (EnumPixelFormat) +cRwSuggestPixelFormat a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRwSuggestPixelFormat'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 109 "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} +; +cRwIsDeactivatedOnFocusChange :: HG3DClass -> IO (Bool) +cRwIsDeactivatedOnFocusChange a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRwIsDeactivatedOnFocusChange'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 113 "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs.h cRw_setFullscreen_c" + cRwSetFullscreen'_ :: ((HG3DClassPtr) -> (CInt -> (CUInt -> (CUInt -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs.h cRw_destroy_c" + cRwDestroy'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs.h cRw_resize_c" + cRwResize'_ :: ((HG3DClassPtr) -> (CUInt -> (CUInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs.h cRw_windowMovedOrResized_c" + cRwWindowMovedOrResized'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs.h cRw_reposition_c" + cRwReposition'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs.h cRw_isVisible_c" + cRwIsVisible'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs.h cRw_setVisible_c" + cRwSetVisible'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs.h cRw_isActive_c" + cRwIsActive'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs.h cRw_isClosed_c" + cRwIsClosed'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs.h cRw_isPrimary_c" + cRwIsPrimary'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs.h cRw_isFullScreen_c" + cRwIsFullScreen'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs.h cRw_suggestPixelFormat_c" + cRwSuggestPixelFormat'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs.h cRw_isDeactivatedOnFocusChange_c" + cRwIsDeactivatedOnFocusChange'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassRenderingAPIException.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassRenderingAPIException.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreException.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassRenderingAPIException where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassRenderingAPIException.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassRenderingAPIException.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassRenderingAPIException.chs" #-} + +
@@ -0,0 +1,208 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassResourceGroupListener.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreResourceGroupManager.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassResourceGroupListener where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs" #-} + + +cRglResourceGroupScriptingStarted :: HG3DClass -> String -> Int -> IO () +cRglResourceGroupScriptingStarted a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = fromIntegral a3} in + cRglResourceGroupScriptingStarted'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 63 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs" #-} +; +cRglScriptParseEnded :: HG3DClass -> String -> Bool -> IO () +cRglScriptParseEnded a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = fromBool a3} in + cRglScriptParseEnded'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 68 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs" #-} +; +cRglResourceGroupScriptingEnded :: HG3DClass -> String -> IO () +cRglResourceGroupScriptingEnded a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cRglResourceGroupScriptingEnded'_ a1' a2' >>= \res -> + return () +{-# LINE 72 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs" #-} +; +cRglResourceGroupPrepareStarted :: HG3DClass -> String -> Int -> IO () +cRglResourceGroupPrepareStarted a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = fromIntegral a3} in + cRglResourceGroupPrepareStarted'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 77 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs" #-} +; +cRglResourcePrepareEnded :: HG3DClass -> IO () +cRglResourcePrepareEnded a1 = + withHG3DClass a1 $ \a1' -> + cRglResourcePrepareEnded'_ a1' >>= \res -> + return () +{-# LINE 80 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs" #-} +; +cRglWorldGeometryPrepareStageStarted :: HG3DClass -> String -> IO () +cRglWorldGeometryPrepareStageStarted a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cRglWorldGeometryPrepareStageStarted'_ a1' a2' >>= \res -> + return () +{-# LINE 84 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs" #-} +; +cRglWorldGeometryPrepareStageEnded :: HG3DClass -> IO () +cRglWorldGeometryPrepareStageEnded a1 = + withHG3DClass a1 $ \a1' -> + cRglWorldGeometryPrepareStageEnded'_ a1' >>= \res -> + return () +{-# LINE 87 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs" #-} +; +cRglResourceGroupPrepareEnded :: HG3DClass -> String -> IO () +cRglResourceGroupPrepareEnded a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cRglResourceGroupPrepareEnded'_ a1' a2' >>= \res -> + return () +{-# LINE 91 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs" #-} +; +cRglResourceGroupLoadStarted :: HG3DClass -> String -> Int -> IO () +cRglResourceGroupLoadStarted a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = fromIntegral a3} in + cRglResourceGroupLoadStarted'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 96 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs" #-} +; +cRglResourceLoadEnded :: HG3DClass -> IO () +cRglResourceLoadEnded a1 = + withHG3DClass a1 $ \a1' -> + cRglResourceLoadEnded'_ a1' >>= \res -> + return () +{-# LINE 99 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs" #-} +; +cRglWorldGeometryStageStarted :: HG3DClass -> String -> IO () +cRglWorldGeometryStageStarted a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cRglWorldGeometryStageStarted'_ a1' a2' >>= \res -> + return () +{-# LINE 103 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs" #-} +; +cRglWorldGeometryStageEnded :: HG3DClass -> IO () +cRglWorldGeometryStageEnded a1 = + withHG3DClass a1 $ \a1' -> + cRglWorldGeometryStageEnded'_ a1' >>= \res -> + return () +{-# LINE 106 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs" #-} +; +cRglResourceGroupLoadEnded :: HG3DClass -> String -> IO () +cRglResourceGroupLoadEnded a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cRglResourceGroupLoadEnded'_ a1' a2' >>= \res -> + return () +{-# LINE 110 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs.h cRgl_resourceGroupScriptingStarted_c" + cRglResourceGroupScriptingStarted'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs.h cRgl_scriptParseEnded_c" + cRglScriptParseEnded'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs.h cRgl_resourceGroupScriptingEnded_c" + cRglResourceGroupScriptingEnded'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs.h cRgl_resourceGroupPrepareStarted_c" + cRglResourceGroupPrepareStarted'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs.h cRgl_resourcePrepareEnded_c" + cRglResourcePrepareEnded'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs.h cRgl_worldGeometryPrepareStageStarted_c" + cRglWorldGeometryPrepareStageStarted'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs.h cRgl_worldGeometryPrepareStageEnded_c" + cRglWorldGeometryPrepareStageEnded'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs.h cRgl_resourceGroupPrepareEnded_c" + cRglResourceGroupPrepareEnded'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs.h cRgl_resourceGroupLoadStarted_c" + cRglResourceGroupLoadStarted'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs.h cRgl_resourceLoadEnded_c" + cRglResourceLoadEnded'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs.h cRgl_worldGeometryStageStarted_c" + cRglWorldGeometryStageStarted'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs.h cRgl_worldGeometryStageEnded_c" + cRglWorldGeometryStageEnded'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs.h cRgl_resourceGroupLoadEnded_c" + cRglResourceGroupLoadEnded'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ())))
@@ -0,0 +1,463 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassResourceGroupManager.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreResourceGroupManager.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassResourceGroupManager where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} + + +cRgmCreateResourceGroup :: HG3DClass -> String -> Bool -> IO () +cRgmCreateResourceGroup a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = fromBool a3} in + cRgmCreateResourceGroup'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 63 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +; +cRgmInitialiseResourceGroup :: HG3DClass -> String -> IO () +cRgmInitialiseResourceGroup a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cRgmInitialiseResourceGroup'_ a1' a2' >>= \res -> + return () +{-# LINE 67 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +; +cRgmInitialiseAllResourceGroups :: HG3DClass -> IO () +cRgmInitialiseAllResourceGroups a1 = + withHG3DClass a1 $ \a1' -> + cRgmInitialiseAllResourceGroups'_ a1' >>= \res -> + return () +{-# LINE 70 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +; +cRgmPrepareResourceGroup :: HG3DClass -> String -> Bool -> Bool -> IO () +cRgmPrepareResourceGroup a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = fromBool a3} in + let {a4' = fromBool a4} in + cRgmPrepareResourceGroup'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 76 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +; +cRgmLoadResourceGroup :: HG3DClass -> String -> Bool -> Bool -> IO () +cRgmLoadResourceGroup a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = fromBool a3} in + let {a4' = fromBool a4} in + cRgmLoadResourceGroup'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 82 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +; +cRgmUnloadResourceGroup :: HG3DClass -> String -> Bool -> IO () +cRgmUnloadResourceGroup a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = fromBool a3} in + cRgmUnloadResourceGroup'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 87 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +; +cRgmUnloadUnreferencedResourcesInGroup :: HG3DClass -> String -> Bool -> IO () +cRgmUnloadUnreferencedResourcesInGroup a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = fromBool a3} in + cRgmUnloadUnreferencedResourcesInGroup'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 92 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +; +cRgmClearResourceGroup :: HG3DClass -> String -> IO () +cRgmClearResourceGroup a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cRgmClearResourceGroup'_ a1' a2' >>= \res -> + return () +{-# LINE 96 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +; +cRgmDestroyResourceGroup :: HG3DClass -> String -> IO () +cRgmDestroyResourceGroup a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cRgmDestroyResourceGroup'_ a1' a2' >>= \res -> + return () +{-# LINE 100 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +; +cRgmIsResourceGroupInitialised :: HG3DClass -> String -> IO (Bool) +cRgmIsResourceGroupInitialised a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cRgmIsResourceGroupInitialised'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 105 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +; +cRgmIsResourceGroupLoaded :: HG3DClass -> String -> IO (Bool) +cRgmIsResourceGroupLoaded a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cRgmIsResourceGroupLoaded'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 110 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +; +cRgmResourceGroupExists :: HG3DClass -> String -> IO (Bool) +cRgmResourceGroupExists a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cRgmResourceGroupExists'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 115 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +; +cRgmAddResourceLocation :: HG3DClass -> String -> String -> String -> Bool -> IO () +cRgmAddResourceLocation a1 a2 a3 a4 a5 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + withCString a4 $ \a4' -> + let {a5' = fromBool a5} in + cRgmAddResourceLocation'_ a1' a2' a3' a4' a5' >>= \res -> + return () +{-# LINE 122 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +; +cRgmRemoveResourceLocation :: HG3DClass -> String -> String -> IO () +cRgmRemoveResourceLocation a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + cRgmRemoveResourceLocation'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 127 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +; +cRgmResourceLocationExists :: HG3DClass -> String -> String -> IO (Bool) +cRgmResourceLocationExists a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + alloca $ \a4' -> + cRgmResourceLocationExists'_ a1' a2' a3' a4' >>= \res -> + peekBoolUtil a4'>>= \a4'' -> + return (a4'') +{-# LINE 133 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +; +cRgmUndeclareResource :: HG3DClass -> String -> String -> IO () +cRgmUndeclareResource a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + cRgmUndeclareResource'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 138 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +; +cRgmResourceExists :: HG3DClass -> String -> String -> IO (Bool) +cRgmResourceExists a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + alloca $ \a4' -> + cRgmResourceExists'_ a1' a2' a3' a4' >>= \res -> + peekBoolUtil a4'>>= \a4'' -> + return (a4'') +{-# LINE 144 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +; +cRgmResourceExistsInAnyGroup :: HG3DClass -> String -> IO (Bool) +cRgmResourceExistsInAnyGroup a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cRgmResourceExistsInAnyGroup'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 149 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +; +cRgmFindGroupContainingResource :: HG3DClass -> String -> IO (String) +cRgmFindGroupContainingResource a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloc64k $ \a3' -> + cRgmFindGroupContainingResource'_ a1' a2' a3' >>= \res -> + peekCString a3'>>= \a3'' -> + return (a3'') +{-# LINE 154 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +; +cRgmDeleteResource :: HG3DClass -> String -> String -> String -> IO () +cRgmDeleteResource a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + withCString a4 $ \a4' -> + cRgmDeleteResource'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 160 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +; +cRgmDeleteMatchingResources :: HG3DClass -> String -> String -> String -> IO () +cRgmDeleteMatchingResources a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + withCString a4 $ \a4' -> + cRgmDeleteMatchingResources'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 166 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +; +cRgmAddResourceGroupListener :: HG3DClass -> HG3DClass -> IO () +cRgmAddResourceGroupListener a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cRgmAddResourceGroupListener'_ a1' a2' >>= \res -> + return () +{-# LINE 170 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +; +cRgmRemoveResourceGroupListener :: HG3DClass -> HG3DClass -> IO () +cRgmRemoveResourceGroupListener a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cRgmRemoveResourceGroupListener'_ a1' a2' >>= \res -> + return () +{-# LINE 174 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +; +cRgmSetWorldResourceGroupName :: HG3DClass -> String -> IO () +cRgmSetWorldResourceGroupName a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cRgmSetWorldResourceGroupName'_ a1' a2' >>= \res -> + return () +{-# LINE 178 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +; +cRgmGetWorldResourceGroupName :: HG3DClass -> IO (String) +cRgmGetWorldResourceGroupName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cRgmGetWorldResourceGroupName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 182 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +; +cRgmLinkWorldGeometryToResourceGroup :: HG3DClass -> String -> String -> HG3DClass -> IO () +cRgmLinkWorldGeometryToResourceGroup a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + withHG3DClass a4 $ \a4' -> + cRgmLinkWorldGeometryToResourceGroup'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 188 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +; +cRgmUnlinkWorldGeometryFromResourceGroup :: HG3DClass -> String -> IO () +cRgmUnlinkWorldGeometryFromResourceGroup a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cRgmUnlinkWorldGeometryFromResourceGroup'_ a1' a2' >>= \res -> + return () +{-# LINE 192 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +; +cRgmIsResourceGroupInGlobalPool :: HG3DClass -> String -> IO (Bool) +cRgmIsResourceGroupInGlobalPool a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cRgmIsResourceGroupInGlobalPool'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 197 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +; +cRgmShutdownAll :: HG3DClass -> IO () +cRgmShutdownAll a1 = + withHG3DClass a1 $ \a1' -> + cRgmShutdownAll'_ a1' >>= \res -> + return () +{-# LINE 200 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +; +cRgmUnregisterResourceManager :: HG3DClass -> String -> IO () +cRgmUnregisterResourceManager a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cRgmUnregisterResourceManager'_ a1' a2' >>= \res -> + return () +{-# LINE 204 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +; +cRgmNotifyWorldGeometryStageStarted :: HG3DClass -> String -> IO () +cRgmNotifyWorldGeometryStageStarted a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cRgmNotifyWorldGeometryStageStarted'_ a1' a2' >>= \res -> + return () +{-# LINE 208 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +; +cRgmNotifyWorldGeometryStageEnded :: HG3DClass -> IO () +cRgmNotifyWorldGeometryStageEnded a1 = + withHG3DClass a1 $ \a1' -> + cRgmNotifyWorldGeometryStageEnded'_ a1' >>= \res -> + return () +{-# LINE 211 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +; +-- created constructor function from default constructor +cRgmGetSingletonPtr :: IO (HG3DClass) +cRgmGetSingletonPtr = + alloca $ \a1' -> + cRgmGetSingletonPtr'_ a1' >>= \res -> + peek a1'>>= \a1'' -> + return (a1'') +{-# LINE 215 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_createResourceGroup_c" + cRgmCreateResourceGroup'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_initialiseResourceGroup_c" + cRgmInitialiseResourceGroup'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_initialiseAllResourceGroups_c" + cRgmInitialiseAllResourceGroups'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_prepareResourceGroup_c" + cRgmPrepareResourceGroup'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> (CInt -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_loadResourceGroup_c" + cRgmLoadResourceGroup'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> (CInt -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_unloadResourceGroup_c" + cRgmUnloadResourceGroup'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_unloadUnreferencedResourcesInGroup_c" + cRgmUnloadUnreferencedResourcesInGroup'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_clearResourceGroup_c" + cRgmClearResourceGroup'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_destroyResourceGroup_c" + cRgmDestroyResourceGroup'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_isResourceGroupInitialised_c" + cRgmIsResourceGroupInitialised'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_isResourceGroupLoaded_c" + cRgmIsResourceGroupLoaded'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_resourceGroupExists_c" + cRgmResourceGroupExists'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_addResourceLocation_c" + cRgmAddResourceLocation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CChar) -> (CInt -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_removeResourceLocation_c" + cRgmRemoveResourceLocation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_resourceLocationExists_c" + cRgmResourceLocationExists'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_undeclareResource_c" + cRgmUndeclareResource'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_resourceExists_c" + cRgmResourceExists'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_resourceExistsInAnyGroup_c" + cRgmResourceExistsInAnyGroup'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_findGroupContainingResource_c" + cRgmFindGroupContainingResource'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_deleteResource_c" + cRgmDeleteResource'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_deleteMatchingResources_c" + cRgmDeleteMatchingResources'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_addResourceGroupListener_c" + cRgmAddResourceGroupListener'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_removeResourceGroupListener_c" + cRgmRemoveResourceGroupListener'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_setWorldResourceGroupName_c" + cRgmSetWorldResourceGroupName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_getWorldResourceGroupName_c" + cRgmGetWorldResourceGroupName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_linkWorldGeometryToResourceGroup_c" + cRgmLinkWorldGeometryToResourceGroup'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_unlinkWorldGeometryFromResourceGroup_c" + cRgmUnlinkWorldGeometryFromResourceGroup'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_isResourceGroupInGlobalPool_c" + cRgmIsResourceGroupInGlobalPool'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_shutdownAll_c" + cRgmShutdownAll'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm__unregisterResourceManager_c" + cRgmUnregisterResourceManager'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm__notifyWorldGeometryStageStarted_c" + cRgmNotifyWorldGeometryStageStarted'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm__notifyWorldGeometryStageEnded_c" + cRgmNotifyWorldGeometryStageEnded'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_getSingletonPtr_c" + cRgmGetSingletonPtr'_ :: ((HG3DClassPtr) -> (IO ()))
@@ -0,0 +1,286 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassRibbonTrail.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRibbonTrail.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassRibbonTrail where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs" #-} +import HGamer3D.Bindings.Ogre.TypeColourValue +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs" #-} + + +cRtrAddNode :: HG3DClass -> HG3DClass -> IO () +cRtrAddNode a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cRtrAddNode'_ a1' a2' >>= \res -> + return () +{-# LINE 63 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs" #-} +; +cRtrRemoveNode :: HG3DClass -> HG3DClass -> IO () +cRtrRemoveNode a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cRtrRemoveNode'_ a1' a2' >>= \res -> + return () +{-# LINE 67 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs" #-} +; +cRtrSetTrailLength :: HG3DClass -> Float -> IO () +cRtrSetTrailLength a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cRtrSetTrailLength'_ a1' a2' >>= \res -> + return () +{-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs" #-} +; +cRtrGetTrailLength :: HG3DClass -> IO (Float) +cRtrGetTrailLength a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRtrGetTrailLength'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 75 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs" #-} +; +cRtrSetMaxChainElements :: HG3DClass -> Int -> IO () +cRtrSetMaxChainElements a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cRtrSetMaxChainElements'_ a1' a2' >>= \res -> + return () +{-# LINE 79 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs" #-} +; +cRtrSetNumberOfChains :: HG3DClass -> Int -> IO () +cRtrSetNumberOfChains a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cRtrSetNumberOfChains'_ a1' a2' >>= \res -> + return () +{-# LINE 83 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs" #-} +; +cRtrClearChain :: HG3DClass -> Int -> IO () +cRtrClearChain a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cRtrClearChain'_ a1' a2' >>= \res -> + return () +{-# LINE 87 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs" #-} +; +cRtrSetInitialColour :: HG3DClass -> Int -> ColourValue -> IO () +cRtrSetInitialColour a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + withColourValue a3 $ \a3' -> + cRtrSetInitialColour'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 92 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs" #-} +; +cRtrSetInitialColour2 :: HG3DClass -> Int -> Float -> Float -> Float -> Float -> IO () +cRtrSetInitialColour2 a1 a2 a3 a4 a5 a6 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + let {a5' = realToFrac a5} in + let {a6' = realToFrac a6} in + cRtrSetInitialColour2'_ a1' a2' a3' a4' a5' a6' >>= \res -> + return () +{-# LINE 100 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs" #-} +; +cRtrGetInitialColour :: HG3DClass -> Int -> IO (ColourValue) +cRtrGetInitialColour a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cRtrGetInitialColour'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 105 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs" #-} +; +cRtrSetColourChange :: HG3DClass -> Int -> ColourValue -> IO () +cRtrSetColourChange a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + withColourValue a3 $ \a3' -> + cRtrSetColourChange'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 110 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs" #-} +; +cRtrSetInitialWidth :: HG3DClass -> Int -> Float -> IO () +cRtrSetInitialWidth a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + let {a3' = realToFrac a3} in + cRtrSetInitialWidth'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 115 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs" #-} +; +cRtrGetInitialWidth :: HG3DClass -> Int -> IO (Float) +cRtrGetInitialWidth a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cRtrGetInitialWidth'_ a1' a2' a3' >>= \res -> + peekFloatConv a3'>>= \a3'' -> + return (a3'') +{-# LINE 120 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs" #-} +; +cRtrSetWidthChange :: HG3DClass -> Int -> Float -> IO () +cRtrSetWidthChange a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + let {a3' = realToFrac a3} in + cRtrSetWidthChange'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 125 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs" #-} +; +cRtrGetWidthChange :: HG3DClass -> Int -> IO (Float) +cRtrGetWidthChange a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cRtrGetWidthChange'_ a1' a2' a3' >>= \res -> + peekFloatConv a3'>>= \a3'' -> + return (a3'') +{-# LINE 130 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs" #-} +; +cRtrSetColourChange2 :: HG3DClass -> Int -> Float -> Float -> Float -> Float -> IO () +cRtrSetColourChange2 a1 a2 a3 a4 a5 a6 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + let {a5' = realToFrac a5} in + let {a6' = realToFrac a6} in + cRtrSetColourChange2'_ a1' a2' a3' a4' a5' a6' >>= \res -> + return () +{-# LINE 138 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs" #-} +; +cRtrGetColourChange :: HG3DClass -> Int -> IO (ColourValue) +cRtrGetColourChange a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cRtrGetColourChange'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 143 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs" #-} +; +cRtrTimeUpdate :: HG3DClass -> Float -> IO () +cRtrTimeUpdate a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cRtrTimeUpdate'_ a1' a2' >>= \res -> + return () +{-# LINE 147 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs.h cRtr_addNode_c" + cRtrAddNode'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs.h cRtr_removeNode_c" + cRtrRemoveNode'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs.h cRtr_setTrailLength_c" + cRtrSetTrailLength'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs.h cRtr_getTrailLength_c" + cRtrGetTrailLength'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs.h cRtr_setMaxChainElements_c" + cRtrSetMaxChainElements'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs.h cRtr_setNumberOfChains_c" + cRtrSetNumberOfChains'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs.h cRtr_clearChain_c" + cRtrClearChain'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs.h cRtr_setInitialColour_c" + cRtrSetInitialColour'_ :: ((HG3DClassPtr) -> (CInt -> ((ColourValuePtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs.h cRtr_setInitialColour2_c" + cRtrSetInitialColour2'_ :: ((HG3DClassPtr) -> (CInt -> (CFloat -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs.h cRtr_getInitialColour_c" + cRtrGetInitialColour'_ :: ((HG3DClassPtr) -> (CInt -> ((ColourValuePtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs.h cRtr_setColourChange_c" + cRtrSetColourChange'_ :: ((HG3DClassPtr) -> (CInt -> ((ColourValuePtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs.h cRtr_setInitialWidth_c" + cRtrSetInitialWidth'_ :: ((HG3DClassPtr) -> (CInt -> (CFloat -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs.h cRtr_getInitialWidth_c" + cRtrGetInitialWidth'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CFloat) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs.h cRtr_setWidthChange_c" + cRtrSetWidthChange'_ :: ((HG3DClassPtr) -> (CInt -> (CFloat -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs.h cRtr_getWidthChange_c" + cRtrGetWidthChange'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CFloat) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs.h cRtr_setColourChange2_c" + cRtrSetColourChange2'_ :: ((HG3DClassPtr) -> (CInt -> (CFloat -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs.h cRtr_getColourChange_c" + cRtrGetColourChange'_ :: ((HG3DClassPtr) -> (CInt -> ((ColourValuePtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs.h cRtr__timeUpdate_c" + cRtrTimeUpdate'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ())))
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrailFactory.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassRibbonTrailFactory.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRibbonTrail.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassRibbonTrailFactory where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrailFactory.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrailFactory.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrailFactory.chs" #-} + +
@@ -0,0 +1,682 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassRoot.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRoot.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassRoot where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +import HGamer3D.Bindings.Ogre.TypeColourValue +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + + +cRSaveConfig :: HG3DClass -> IO () +cRSaveConfig a1 = + withHG3DClass a1 $ \a1' -> + cRSaveConfig'_ a1' >>= \res -> + return () +{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRRestoreConfig :: HG3DClass -> IO (Bool) +cRRestoreConfig a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRRestoreConfig'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRShowConfigDialog :: HG3DClass -> IO (Bool) +cRShowConfigDialog a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRShowConfigDialog'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 70 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRInitialise :: HG3DClass -> Bool -> String -> String -> IO (HG3DClass) +cRInitialise a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + withCString a3 $ \a3' -> + withCString a4 $ \a4' -> + alloca $ \a5' -> + cRInitialise'_ a1' a2' a3' a4' a5' >>= \res -> + peek a5'>>= \a5'' -> + return (a5'') +{-# LINE 77 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRIsInitialised :: HG3DClass -> IO (Bool) +cRIsInitialised a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRIsInitialised'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 81 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRGetRemoveRenderQueueStructuresOnClear :: HG3DClass -> IO (Bool) +cRGetRemoveRenderQueueStructuresOnClear a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRGetRemoveRenderQueueStructuresOnClear'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 85 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRSetRemoveRenderQueueStructuresOnClear :: HG3DClass -> Bool -> IO () +cRSetRemoveRenderQueueStructuresOnClear a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cRSetRemoveRenderQueueStructuresOnClear'_ a1' a2' >>= \res -> + return () +{-# LINE 89 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRAddSceneManagerFactory :: HG3DClass -> HG3DClass -> IO () +cRAddSceneManagerFactory a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cRAddSceneManagerFactory'_ a1' a2' >>= \res -> + return () +{-# LINE 93 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRRemoveSceneManagerFactory :: HG3DClass -> HG3DClass -> IO () +cRRemoveSceneManagerFactory a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cRRemoveSceneManagerFactory'_ a1' a2' >>= \res -> + return () +{-# LINE 97 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRCreateSceneManager :: HG3DClass -> String -> String -> IO (HG3DClass) +cRCreateSceneManager a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + alloca $ \a4' -> + cRCreateSceneManager'_ a1' a2' a3' a4' >>= \res -> + peek a4'>>= \a4'' -> + return (a4'') +{-# LINE 103 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRCreateSceneManager2 :: HG3DClass -> Int -> String -> IO (HG3DClass) +cRCreateSceneManager2 a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + withCString a3 $ \a3' -> + alloca $ \a4' -> + cRCreateSceneManager2'_ a1' a2' a3' a4' >>= \res -> + peek a4'>>= \a4'' -> + return (a4'') +{-# LINE 109 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRDestroySceneManager :: HG3DClass -> HG3DClass -> IO () +cRDestroySceneManager a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cRDestroySceneManager'_ a1' a2' >>= \res -> + return () +{-# LINE 113 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRGetSceneManager :: HG3DClass -> String -> IO (HG3DClass) +cRGetSceneManager a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cRGetSceneManager'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 118 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRHasSceneManager :: HG3DClass -> String -> IO (Bool) +cRHasSceneManager a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cRHasSceneManager'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 123 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRGetTextureManager :: HG3DClass -> IO (HG3DClass) +cRGetTextureManager a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRGetTextureManager'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 127 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRQueueEndRendering :: HG3DClass -> IO () +cRQueueEndRendering a1 = + withHG3DClass a1 $ \a1' -> + cRQueueEndRendering'_ a1' >>= \res -> + return () +{-# LINE 130 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRStartRendering :: HG3DClass -> IO () +cRStartRendering a1 = + withHG3DClass a1 $ \a1' -> + cRStartRendering'_ a1' >>= \res -> + return () +{-# LINE 133 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRRenderOneFrame :: HG3DClass -> IO (Bool) +cRRenderOneFrame a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRRenderOneFrame'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 137 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRRenderOneFrame2 :: HG3DClass -> Float -> IO (Bool) +cRRenderOneFrame2 a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + alloca $ \a3' -> + cRRenderOneFrame2'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 142 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRShutdown :: HG3DClass -> IO () +cRShutdown a1 = + withHG3DClass a1 $ \a1' -> + cRShutdown'_ a1' >>= \res -> + return () +{-# LINE 145 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRAddResourceLocation :: HG3DClass -> String -> String -> String -> Bool -> IO () +cRAddResourceLocation a1 a2 a3 a4 a5 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + withCString a4 $ \a4' -> + let {a5' = fromBool a5} in + cRAddResourceLocation'_ a1' a2' a3' a4' a5' >>= \res -> + return () +{-# LINE 152 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRRemoveResourceLocation :: HG3DClass -> String -> String -> IO () +cRRemoveResourceLocation a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + cRRemoveResourceLocation'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 157 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRConvertColourValue :: HG3DClass -> ColourValue -> IO (Int) +cRConvertColourValue a1 a2 = + withHG3DClass a1 $ \a1' -> + withColourValue a2 $ \a2' -> + alloca $ \a3' -> + cRConvertColourValue'_ a1' a2' a3' >>= \res -> + peekIntConv a3'>>= \a3'' -> + return (a3'') +{-# LINE 162 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRGetAutoCreatedWindow :: HG3DClass -> IO (HG3DClass) +cRGetAutoCreatedWindow a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRGetAutoCreatedWindow'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 166 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRDetachRenderTarget :: HG3DClass -> HG3DClass -> IO () +cRDetachRenderTarget a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cRDetachRenderTarget'_ a1' a2' >>= \res -> + return () +{-# LINE 170 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRDetachRenderTarget2 :: HG3DClass -> String -> IO () +cRDetachRenderTarget2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cRDetachRenderTarget2'_ a1' a2' >>= \res -> + return () +{-# LINE 174 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRDestroyRenderTarget :: HG3DClass -> HG3DClass -> IO () +cRDestroyRenderTarget a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cRDestroyRenderTarget'_ a1' a2' >>= \res -> + return () +{-# LINE 178 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRDestroyRenderTarget2 :: HG3DClass -> String -> IO () +cRDestroyRenderTarget2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cRDestroyRenderTarget2'_ a1' a2' >>= \res -> + return () +{-# LINE 182 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRGetRenderTarget :: HG3DClass -> String -> IO (HG3DClass) +cRGetRenderTarget a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cRGetRenderTarget'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 187 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRLoadPlugin :: HG3DClass -> String -> IO () +cRLoadPlugin a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cRLoadPlugin'_ a1' a2' >>= \res -> + return () +{-# LINE 191 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRUnloadPlugin :: HG3DClass -> String -> IO () +cRUnloadPlugin a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cRUnloadPlugin'_ a1' a2' >>= \res -> + return () +{-# LINE 195 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRFireFrameStarted2 :: HG3DClass -> IO (Bool) +cRFireFrameStarted2 a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRFireFrameStarted2'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 199 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRFireFrameRenderingQueued2 :: HG3DClass -> IO (Bool) +cRFireFrameRenderingQueued2 a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRFireFrameRenderingQueued2'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 203 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRFireFrameEnded2 :: HG3DClass -> IO (Bool) +cRFireFrameEnded2 a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRFireFrameEnded2'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 207 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRGetCurrentSceneManager :: HG3DClass -> IO (HG3DClass) +cRGetCurrentSceneManager a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRGetCurrentSceneManager'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 211 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRPushCurrentSceneManager :: HG3DClass -> HG3DClass -> IO () +cRPushCurrentSceneManager a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cRPushCurrentSceneManager'_ a1' a2' >>= \res -> + return () +{-# LINE 215 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRPopCurrentSceneManager :: HG3DClass -> HG3DClass -> IO () +cRPopCurrentSceneManager a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cRPopCurrentSceneManager'_ a1' a2' >>= \res -> + return () +{-# LINE 219 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRUpdateAllRenderTargets :: HG3DClass -> IO (Bool) +cRUpdateAllRenderTargets a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRUpdateAllRenderTargets'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 223 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRCreateRenderQueueInvocationSequence :: HG3DClass -> String -> IO (HG3DClass) +cRCreateRenderQueueInvocationSequence a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cRCreateRenderQueueInvocationSequence'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 228 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRGetRenderQueueInvocationSequence :: HG3DClass -> String -> IO (HG3DClass) +cRGetRenderQueueInvocationSequence a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cRGetRenderQueueInvocationSequence'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 233 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRDestroyRenderQueueInvocationSequence :: HG3DClass -> String -> IO () +cRDestroyRenderQueueInvocationSequence a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cRDestroyRenderQueueInvocationSequence'_ a1' a2' >>= \res -> + return () +{-# LINE 237 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRDestroyAllRenderQueueInvocationSequences :: HG3DClass -> IO () +cRDestroyAllRenderQueueInvocationSequences a1 = + withHG3DClass a1 $ \a1' -> + cRDestroyAllRenderQueueInvocationSequences'_ a1' >>= \res -> + return () +{-# LINE 240 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRClearEventTimes :: HG3DClass -> IO () +cRClearEventTimes a1 = + withHG3DClass a1 $ \a1' -> + cRClearEventTimes'_ a1' >>= \res -> + return () +{-# LINE 243 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRSetFrameSmoothingPeriod :: HG3DClass -> Float -> IO () +cRSetFrameSmoothingPeriod a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cRSetFrameSmoothingPeriod'_ a1' a2' >>= \res -> + return () +{-# LINE 247 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRGetFrameSmoothingPeriod :: HG3DClass -> IO (Float) +cRGetFrameSmoothingPeriod a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRGetFrameSmoothingPeriod'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 251 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRAddMovableObjectFactory :: HG3DClass -> HG3DClass -> Bool -> IO () +cRAddMovableObjectFactory a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + let {a3' = fromBool a3} in + cRAddMovableObjectFactory'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 256 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRRemoveMovableObjectFactory :: HG3DClass -> HG3DClass -> IO () +cRRemoveMovableObjectFactory a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cRRemoveMovableObjectFactory'_ a1' a2' >>= \res -> + return () +{-# LINE 260 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRHasMovableObjectFactory :: HG3DClass -> String -> IO (Bool) +cRHasMovableObjectFactory a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cRHasMovableObjectFactory'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 265 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRGetMovableObjectFactory :: HG3DClass -> String -> IO (HG3DClass) +cRGetMovableObjectFactory a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cRGetMovableObjectFactory'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 270 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRAllocateNextMovableObjectTypeFlag :: HG3DClass -> IO (Int) +cRAllocateNextMovableObjectTypeFlag a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRAllocateNextMovableObjectTypeFlag'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 274 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +cRGetDisplayMonitorCount :: HG3DClass -> IO (Int) +cRGetDisplayMonitorCount a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cRGetDisplayMonitorCount'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 278 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; +-- created constructor function from default constructor +cRNew :: IO (HG3DClass) +cRNew = + alloca $ \a1' -> + cRNew'_ a1' >>= \res -> + peek a1'>>= \a1'' -> + return (a1'') +{-# LINE 282 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_saveConfig_c" + cRSaveConfig'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_restoreConfig_c" + cRRestoreConfig'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_showConfigDialog_c" + cRShowConfigDialog'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_initialise_c" + cRInitialise'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CChar) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_isInitialised_c" + cRIsInitialised'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_getRemoveRenderQueueStructuresOnClear_c" + cRGetRemoveRenderQueueStructuresOnClear'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_setRemoveRenderQueueStructuresOnClear_c" + cRSetRemoveRenderQueueStructuresOnClear'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_addSceneManagerFactory_c" + cRAddSceneManagerFactory'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_removeSceneManagerFactory_c" + cRRemoveSceneManagerFactory'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_createSceneManager_c" + cRCreateSceneManager'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_createSceneManager2_c" + cRCreateSceneManager2'_ :: ((HG3DClassPtr) -> (CUInt -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_destroySceneManager_c" + cRDestroySceneManager'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_getSceneManager_c" + cRGetSceneManager'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_hasSceneManager_c" + cRHasSceneManager'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_getTextureManager_c" + cRGetTextureManager'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_queueEndRendering_c" + cRQueueEndRendering'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_startRendering_c" + cRStartRendering'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_renderOneFrame_c" + cRRenderOneFrame'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_renderOneFrame2_c" + cRRenderOneFrame2'_ :: ((HG3DClassPtr) -> (CFloat -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_shutdown_c" + cRShutdown'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_addResourceLocation_c" + cRAddResourceLocation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CChar) -> (CInt -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_removeResourceLocation_c" + cRRemoveResourceLocation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_convertColourValue_c" + cRConvertColourValue'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> ((Ptr CUInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_getAutoCreatedWindow_c" + cRGetAutoCreatedWindow'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_detachRenderTarget_c" + cRDetachRenderTarget'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_detachRenderTarget2_c" + cRDetachRenderTarget2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_destroyRenderTarget_c" + cRDestroyRenderTarget'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_destroyRenderTarget2_c" + cRDestroyRenderTarget2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_getRenderTarget_c" + cRGetRenderTarget'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_loadPlugin_c" + cRLoadPlugin'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_unloadPlugin_c" + cRUnloadPlugin'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR__fireFrameStarted2_c" + cRFireFrameStarted2'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR__fireFrameRenderingQueued2_c" + cRFireFrameRenderingQueued2'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR__fireFrameEnded2_c" + cRFireFrameEnded2'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR__getCurrentSceneManager_c" + cRGetCurrentSceneManager'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR__pushCurrentSceneManager_c" + cRPushCurrentSceneManager'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR__popCurrentSceneManager_c" + cRPopCurrentSceneManager'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR__updateAllRenderTargets_c" + cRUpdateAllRenderTargets'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_createRenderQueueInvocationSequence_c" + cRCreateRenderQueueInvocationSequence'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_getRenderQueueInvocationSequence_c" + cRGetRenderQueueInvocationSequence'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_destroyRenderQueueInvocationSequence_c" + cRDestroyRenderQueueInvocationSequence'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_destroyAllRenderQueueInvocationSequences_c" + cRDestroyAllRenderQueueInvocationSequences'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_clearEventTimes_c" + cRClearEventTimes'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_setFrameSmoothingPeriod_c" + cRSetFrameSmoothingPeriod'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_getFrameSmoothingPeriod_c" + cRGetFrameSmoothingPeriod'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_addMovableObjectFactory_c" + cRAddMovableObjectFactory'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_removeMovableObjectFactory_c" + cRRemoveMovableObjectFactory'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_hasMovableObjectFactory_c" + cRHasMovableObjectFactory'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_getMovableObjectFactory_c" + cRGetMovableObjectFactory'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR__allocateNextMovableObjectTypeFlag_c" + cRAllocateNextMovableObjectTypeFlag'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_getDisplayMonitorCount_c" + cRGetDisplayMonitorCount'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_newRoot_c" + cRNew'_ :: ((HG3DClassPtr) -> (IO ()))
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassRuntimeAssertionException.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassRuntimeAssertionException.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreException.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassRuntimeAssertionException where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassRuntimeAssertionException.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassRuntimeAssertionException.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassRuntimeAssertionException.chs" #-} + +
@@ -0,0 +1,2360 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassSceneManager.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSceneManager.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassSceneManager where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +import HGamer3D.Bindings.Ogre.EnumPrefabType +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +import HGamer3D.Bindings.Ogre.TypeColourValue +{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +import HGamer3D.Bindings.Ogre.TypeQuaternion +{-# LINE 59 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +import HGamer3D.Bindings.Ogre.EnumFogMode +{-# LINE 60 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +import HGamer3D.Bindings.Ogre.EnumSpecialCaseRenderQueueMode +{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +import HGamer3D.Bindings.Ogre.EnumShadowTechnique +{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +import HGamer3D.Bindings.Ogre.EnumPixelFormat +{-# LINE 63 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +import HGamer3D.Bindings.Ogre.EnumLightTypes +{-# LINE 64 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + + +cSmGetName :: HG3DClass -> IO (String) +cSmGetName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cSmGetName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 70 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetTypeName :: HG3DClass -> IO (String) +cSmGetTypeName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cSmGetTypeName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 74 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmCreateCamera :: HG3DClass -> String -> IO (HG3DClass) +cSmCreateCamera a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSmCreateCamera'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 79 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetCamera :: HG3DClass -> String -> IO (HG3DClass) +cSmGetCamera a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSmGetCamera'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 84 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmHasCamera :: HG3DClass -> String -> IO (Bool) +cSmHasCamera a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSmHasCamera'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 89 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroyCamera :: HG3DClass -> HG3DClass -> IO () +cSmDestroyCamera a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cSmDestroyCamera'_ a1' a2' >>= \res -> + return () +{-# LINE 93 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroyCamera2 :: HG3DClass -> String -> IO () +cSmDestroyCamera2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cSmDestroyCamera2'_ a1' a2' >>= \res -> + return () +{-# LINE 97 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroyAllCameras :: HG3DClass -> IO () +cSmDestroyAllCameras a1 = + withHG3DClass a1 $ \a1' -> + cSmDestroyAllCameras'_ a1' >>= \res -> + return () +{-# LINE 100 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmCreateLight :: HG3DClass -> String -> IO (HG3DClass) +cSmCreateLight a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSmCreateLight'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 105 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmCreateLight2 :: HG3DClass -> IO (HG3DClass) +cSmCreateLight2 a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmCreateLight2'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 109 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetLight :: HG3DClass -> String -> IO (HG3DClass) +cSmGetLight a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSmGetLight'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 114 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmHasLight :: HG3DClass -> String -> IO (Bool) +cSmHasLight a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSmHasLight'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 119 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroyLight :: HG3DClass -> String -> IO () +cSmDestroyLight a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cSmDestroyLight'_ a1' a2' >>= \res -> + return () +{-# LINE 123 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroyLight2 :: HG3DClass -> HG3DClass -> IO () +cSmDestroyLight2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cSmDestroyLight2'_ a1' a2' >>= \res -> + return () +{-# LINE 127 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroyAllLights :: HG3DClass -> IO () +cSmDestroyAllLights a1 = + withHG3DClass a1 $ \a1' -> + cSmDestroyAllLights'_ a1' >>= \res -> + return () +{-# LINE 130 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmNotifyLightsDirty :: HG3DClass -> IO () +cSmNotifyLightsDirty a1 = + withHG3DClass a1 $ \a1' -> + cSmNotifyLightsDirty'_ a1' >>= \res -> + return () +{-# LINE 133 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmCreateSceneNode :: HG3DClass -> IO (HG3DClass) +cSmCreateSceneNode a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmCreateSceneNode'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 137 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmCreateSceneNode2 :: HG3DClass -> String -> IO (HG3DClass) +cSmCreateSceneNode2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSmCreateSceneNode2'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 142 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroySceneNode :: HG3DClass -> String -> IO () +cSmDestroySceneNode a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cSmDestroySceneNode'_ a1' a2' >>= \res -> + return () +{-# LINE 146 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroySceneNode2 :: HG3DClass -> HG3DClass -> IO () +cSmDestroySceneNode2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cSmDestroySceneNode2'_ a1' a2' >>= \res -> + return () +{-# LINE 150 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetRootSceneNode :: HG3DClass -> IO (HG3DClass) +cSmGetRootSceneNode a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmGetRootSceneNode'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 154 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetSceneNode :: HG3DClass -> String -> IO (HG3DClass) +cSmGetSceneNode a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSmGetSceneNode'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 159 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmHasSceneNode :: HG3DClass -> String -> IO (Bool) +cSmHasSceneNode a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSmHasSceneNode'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 164 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmCreateEntity :: HG3DClass -> String -> String -> String -> IO (HG3DClass) +cSmCreateEntity a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + withCString a4 $ \a4' -> + alloca $ \a5' -> + cSmCreateEntity'_ a1' a2' a3' a4' a5' >>= \res -> + peek a5'>>= \a5'' -> + return (a5'') +{-# LINE 171 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmCreateEntity2 :: HG3DClass -> String -> IO (HG3DClass) +cSmCreateEntity2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSmCreateEntity2'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 176 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmCreateEntity3 :: HG3DClass -> String -> EnumPrefabType -> IO (HG3DClass) +cSmCreateEntity3 a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = cIntFromEnum a3} in + alloca $ \a4' -> + cSmCreateEntity3'_ a1' a2' a3' a4' >>= \res -> + peek a4'>>= \a4'' -> + return (a4'') +{-# LINE 182 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmCreateEntity4 :: HG3DClass -> EnumPrefabType -> IO (HG3DClass) +cSmCreateEntity4 a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + alloca $ \a3' -> + cSmCreateEntity4'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 187 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetEntity :: HG3DClass -> String -> IO (HG3DClass) +cSmGetEntity a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSmGetEntity'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 192 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmHasEntity :: HG3DClass -> String -> IO (Bool) +cSmHasEntity a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSmHasEntity'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 197 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroyEntity :: HG3DClass -> HG3DClass -> IO () +cSmDestroyEntity a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cSmDestroyEntity'_ a1' a2' >>= \res -> + return () +{-# LINE 201 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroyEntity2 :: HG3DClass -> String -> IO () +cSmDestroyEntity2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cSmDestroyEntity2'_ a1' a2' >>= \res -> + return () +{-# LINE 205 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroyAllEntities :: HG3DClass -> IO () +cSmDestroyAllEntities a1 = + withHG3DClass a1 $ \a1' -> + cSmDestroyAllEntities'_ a1' >>= \res -> + return () +{-# LINE 208 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmCreateManualObject :: HG3DClass -> String -> IO (HG3DClass) +cSmCreateManualObject a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSmCreateManualObject'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 213 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmCreateManualObject2 :: HG3DClass -> IO (HG3DClass) +cSmCreateManualObject2 a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmCreateManualObject2'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 217 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetManualObject :: HG3DClass -> String -> IO (HG3DClass) +cSmGetManualObject a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSmGetManualObject'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 222 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmHasManualObject :: HG3DClass -> String -> IO (Bool) +cSmHasManualObject a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSmHasManualObject'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 227 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroyManualObject :: HG3DClass -> HG3DClass -> IO () +cSmDestroyManualObject a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cSmDestroyManualObject'_ a1' a2' >>= \res -> + return () +{-# LINE 231 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroyManualObject2 :: HG3DClass -> String -> IO () +cSmDestroyManualObject2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cSmDestroyManualObject2'_ a1' a2' >>= \res -> + return () +{-# LINE 235 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroyAllManualObjects :: HG3DClass -> IO () +cSmDestroyAllManualObjects a1 = + withHG3DClass a1 $ \a1' -> + cSmDestroyAllManualObjects'_ a1' >>= \res -> + return () +{-# LINE 238 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmCreateBillboardChain :: HG3DClass -> String -> IO (HG3DClass) +cSmCreateBillboardChain a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSmCreateBillboardChain'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 243 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmCreateBillboardChain2 :: HG3DClass -> IO (HG3DClass) +cSmCreateBillboardChain2 a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmCreateBillboardChain2'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 247 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetBillboardChain :: HG3DClass -> String -> IO (HG3DClass) +cSmGetBillboardChain a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSmGetBillboardChain'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 252 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmHasBillboardChain :: HG3DClass -> String -> IO (Bool) +cSmHasBillboardChain a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSmHasBillboardChain'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 257 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroyBillboardChain :: HG3DClass -> HG3DClass -> IO () +cSmDestroyBillboardChain a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cSmDestroyBillboardChain'_ a1' a2' >>= \res -> + return () +{-# LINE 261 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroyBillboardChain2 :: HG3DClass -> String -> IO () +cSmDestroyBillboardChain2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cSmDestroyBillboardChain2'_ a1' a2' >>= \res -> + return () +{-# LINE 265 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroyAllBillboardChains :: HG3DClass -> IO () +cSmDestroyAllBillboardChains a1 = + withHG3DClass a1 $ \a1' -> + cSmDestroyAllBillboardChains'_ a1' >>= \res -> + return () +{-# LINE 268 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmCreateRibbonTrail :: HG3DClass -> String -> IO (HG3DClass) +cSmCreateRibbonTrail a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSmCreateRibbonTrail'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 273 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmCreateRibbonTrail2 :: HG3DClass -> IO (HG3DClass) +cSmCreateRibbonTrail2 a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmCreateRibbonTrail2'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 277 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetRibbonTrail :: HG3DClass -> String -> IO (HG3DClass) +cSmGetRibbonTrail a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSmGetRibbonTrail'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 282 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmHasRibbonTrail :: HG3DClass -> String -> IO (Bool) +cSmHasRibbonTrail a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSmHasRibbonTrail'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 287 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroyRibbonTrail :: HG3DClass -> HG3DClass -> IO () +cSmDestroyRibbonTrail a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cSmDestroyRibbonTrail'_ a1' a2' >>= \res -> + return () +{-# LINE 291 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroyRibbonTrail2 :: HG3DClass -> String -> IO () +cSmDestroyRibbonTrail2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cSmDestroyRibbonTrail2'_ a1' a2' >>= \res -> + return () +{-# LINE 295 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroyAllRibbonTrails :: HG3DClass -> IO () +cSmDestroyAllRibbonTrails a1 = + withHG3DClass a1 $ \a1' -> + cSmDestroyAllRibbonTrails'_ a1' >>= \res -> + return () +{-# LINE 298 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmHasParticleSystem :: HG3DClass -> String -> IO (Bool) +cSmHasParticleSystem a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSmHasParticleSystem'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 303 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroyParticleSystem2 :: HG3DClass -> String -> IO () +cSmDestroyParticleSystem2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cSmDestroyParticleSystem2'_ a1' a2' >>= \res -> + return () +{-# LINE 307 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroyAllParticleSystems :: HG3DClass -> IO () +cSmDestroyAllParticleSystems a1 = + withHG3DClass a1 $ \a1' -> + cSmDestroyAllParticleSystems'_ a1' >>= \res -> + return () +{-# LINE 310 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmClearScene :: HG3DClass -> IO () +cSmClearScene a1 = + withHG3DClass a1 $ \a1' -> + cSmClearScene'_ a1' >>= \res -> + return () +{-# LINE 313 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetAmbientLight :: HG3DClass -> ColourValue -> IO () +cSmSetAmbientLight a1 a2 = + withHG3DClass a1 $ \a1' -> + withColourValue a2 $ \a2' -> + cSmSetAmbientLight'_ a1' a2' >>= \res -> + return () +{-# LINE 317 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetAmbientLight :: HG3DClass -> IO (ColourValue) +cSmGetAmbientLight a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmGetAmbientLight'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 321 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmPrepareWorldGeometry :: HG3DClass -> String -> IO () +cSmPrepareWorldGeometry a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cSmPrepareWorldGeometry'_ a1' a2' >>= \res -> + return () +{-# LINE 325 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetWorldGeometry :: HG3DClass -> String -> IO () +cSmSetWorldGeometry a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cSmSetWorldGeometry'_ a1' a2' >>= \res -> + return () +{-# LINE 329 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmEstimateWorldGeometry :: HG3DClass -> String -> IO (Int) +cSmEstimateWorldGeometry a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSmEstimateWorldGeometry'_ a1' a2' a3' >>= \res -> + peekIntConv a3'>>= \a3'' -> + return (a3'') +{-# LINE 334 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmHasOption :: HG3DClass -> String -> IO (Bool) +cSmHasOption a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSmHasOption'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 339 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmUpdateSceneGraph :: HG3DClass -> HG3DClass -> IO () +cSmUpdateSceneGraph a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cSmUpdateSceneGraph'_ a1' a2' >>= \res -> + return () +{-# LINE 343 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmApplySceneAnimations :: HG3DClass -> IO () +cSmApplySceneAnimations a1 = + withHG3DClass a1 $ \a1' -> + cSmApplySceneAnimations'_ a1' >>= \res -> + return () +{-# LINE 346 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmRenderVisibleObjects :: HG3DClass -> IO () +cSmRenderVisibleObjects a1 = + withHG3DClass a1 $ \a1' -> + cSmRenderVisibleObjects'_ a1' >>= \res -> + return () +{-# LINE 349 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmRenderScene :: HG3DClass -> HG3DClass -> HG3DClass -> Bool -> IO () +cSmRenderScene a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + withHG3DClass a3 $ \a3' -> + let {a4' = fromBool a4} in + cSmRenderScene'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 355 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmQueueSkiesForRendering :: HG3DClass -> HG3DClass -> IO () +cSmQueueSkiesForRendering a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cSmQueueSkiesForRendering'_ a1' a2' >>= \res -> + return () +{-# LINE 359 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetSkyPlaneEnabled :: HG3DClass -> Bool -> IO () +cSmSetSkyPlaneEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cSmSetSkyPlaneEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 363 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmIsSkyPlaneEnabled :: HG3DClass -> IO (Bool) +cSmIsSkyPlaneEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmIsSkyPlaneEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 367 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetSkyPlaneNode :: HG3DClass -> IO (HG3DClass) +cSmGetSkyPlaneNode a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmGetSkyPlaneNode'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 371 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetSkyBox :: HG3DClass -> Bool -> String -> Float -> Bool -> Quaternion -> String -> IO () +cSmSetSkyBox a1 a2 a3 a4 a5 a6 a7 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + withCString a3 $ \a3' -> + let {a4' = realToFrac a4} in + let {a5' = fromBool a5} in + withQuaternion a6 $ \a6' -> + withCString a7 $ \a7' -> + cSmSetSkyBox'_ a1' a2' a3' a4' a5' a6' a7' >>= \res -> + return () +{-# LINE 380 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetSkyBoxEnabled :: HG3DClass -> Bool -> IO () +cSmSetSkyBoxEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cSmSetSkyBoxEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 384 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmIsSkyBoxEnabled :: HG3DClass -> IO (Bool) +cSmIsSkyBoxEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmIsSkyBoxEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 388 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetSkyBoxNode :: HG3DClass -> IO (HG3DClass) +cSmGetSkyBoxNode a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmGetSkyBoxNode'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 392 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetSkyDome :: HG3DClass -> Bool -> String -> Float -> Float -> Float -> Bool -> Quaternion -> Int -> Int -> Int -> String -> IO () +cSmSetSkyDome a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + withCString a3 $ \a3' -> + let {a4' = realToFrac a4} in + let {a5' = realToFrac a5} in + let {a6' = realToFrac a6} in + let {a7' = fromBool a7} in + withQuaternion a8 $ \a8' -> + let {a9' = fromIntegral a9} in + let {a10' = fromIntegral a10} in + let {a11' = fromIntegral a11} in + withCString a12 $ \a12' -> + cSmSetSkyDome'_ a1' a2' a3' a4' a5' a6' a7' a8' a9' a10' a11' a12' >>= \res -> + return () +{-# LINE 406 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetSkyDomeEnabled :: HG3DClass -> Bool -> IO () +cSmSetSkyDomeEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cSmSetSkyDomeEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 410 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmIsSkyDomeEnabled :: HG3DClass -> IO (Bool) +cSmIsSkyDomeEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmIsSkyDomeEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 414 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetSkyDomeNode :: HG3DClass -> IO (HG3DClass) +cSmGetSkyDomeNode a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmGetSkyDomeNode'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 418 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetFog :: HG3DClass -> EnumFogMode -> ColourValue -> Float -> Float -> Float -> IO () +cSmSetFog a1 a2 a3 a4 a5 a6 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + withColourValue a3 $ \a3' -> + let {a4' = realToFrac a4} in + let {a5' = realToFrac a5} in + let {a6' = realToFrac a6} in + cSmSetFog'_ a1' a2' a3' a4' a5' a6' >>= \res -> + return () +{-# LINE 426 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetFogMode :: HG3DClass -> IO (EnumFogMode) +cSmGetFogMode a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmGetFogMode'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 430 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetFogColour :: HG3DClass -> IO (ColourValue) +cSmGetFogColour a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmGetFogColour'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 434 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetFogStart :: HG3DClass -> IO (Float) +cSmGetFogStart a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmGetFogStart'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 438 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetFogEnd :: HG3DClass -> IO (Float) +cSmGetFogEnd a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmGetFogEnd'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 442 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetFogDensity :: HG3DClass -> IO (Float) +cSmGetFogDensity a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmGetFogDensity'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 446 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmCreateBillboardSet :: HG3DClass -> String -> Int -> IO (HG3DClass) +cSmCreateBillboardSet a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = fromIntegral a3} in + alloca $ \a4' -> + cSmCreateBillboardSet'_ a1' a2' a3' a4' >>= \res -> + peek a4'>>= \a4'' -> + return (a4'') +{-# LINE 452 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmCreateBillboardSet2 :: HG3DClass -> Int -> IO (HG3DClass) +cSmCreateBillboardSet2 a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cSmCreateBillboardSet2'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 457 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetBillboardSet :: HG3DClass -> String -> IO (HG3DClass) +cSmGetBillboardSet a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSmGetBillboardSet'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 462 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmHasBillboardSet :: HG3DClass -> String -> IO (Bool) +cSmHasBillboardSet a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSmHasBillboardSet'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 467 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroyBillboardSet :: HG3DClass -> HG3DClass -> IO () +cSmDestroyBillboardSet a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cSmDestroyBillboardSet'_ a1' a2' >>= \res -> + return () +{-# LINE 471 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroyBillboardSet2 :: HG3DClass -> String -> IO () +cSmDestroyBillboardSet2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cSmDestroyBillboardSet2'_ a1' a2' >>= \res -> + return () +{-# LINE 475 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroyAllBillboardSets :: HG3DClass -> IO () +cSmDestroyAllBillboardSets a1 = + withHG3DClass a1 $ \a1' -> + cSmDestroyAllBillboardSets'_ a1' >>= \res -> + return () +{-# LINE 478 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetDisplaySceneNodes :: HG3DClass -> Bool -> IO () +cSmSetDisplaySceneNodes a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cSmSetDisplaySceneNodes'_ a1' a2' >>= \res -> + return () +{-# LINE 482 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetDisplaySceneNodes :: HG3DClass -> IO (Bool) +cSmGetDisplaySceneNodes a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmGetDisplaySceneNodes'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 486 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmCreateAnimation :: HG3DClass -> String -> Float -> IO (HG3DClass) +cSmCreateAnimation a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = realToFrac a3} in + alloca $ \a4' -> + cSmCreateAnimation'_ a1' a2' a3' a4' >>= \res -> + peek a4'>>= \a4'' -> + return (a4'') +{-# LINE 492 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetAnimation :: HG3DClass -> String -> IO (HG3DClass) +cSmGetAnimation a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSmGetAnimation'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 497 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmHasAnimation :: HG3DClass -> String -> IO (Bool) +cSmHasAnimation a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSmHasAnimation'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 502 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroyAnimation :: HG3DClass -> String -> IO () +cSmDestroyAnimation a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cSmDestroyAnimation'_ a1' a2' >>= \res -> + return () +{-# LINE 506 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroyAllAnimations :: HG3DClass -> IO () +cSmDestroyAllAnimations a1 = + withHG3DClass a1 $ \a1' -> + cSmDestroyAllAnimations'_ a1' >>= \res -> + return () +{-# LINE 509 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmCreateAnimationState :: HG3DClass -> String -> IO (HG3DClass) +cSmCreateAnimationState a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSmCreateAnimationState'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 514 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetAnimationState :: HG3DClass -> String -> IO (HG3DClass) +cSmGetAnimationState a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSmGetAnimationState'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 519 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmHasAnimationState :: HG3DClass -> String -> IO (Bool) +cSmHasAnimationState a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSmHasAnimationState'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 524 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroyAnimationState :: HG3DClass -> String -> IO () +cSmDestroyAnimationState a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cSmDestroyAnimationState'_ a1' a2' >>= \res -> + return () +{-# LINE 528 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroyAllAnimationStates :: HG3DClass -> IO () +cSmDestroyAllAnimationStates a1 = + withHG3DClass a1 $ \a1' -> + cSmDestroyAllAnimationStates'_ a1' >>= \res -> + return () +{-# LINE 531 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmAddRenderObjectListener :: HG3DClass -> HG3DClass -> IO () +cSmAddRenderObjectListener a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cSmAddRenderObjectListener'_ a1' a2' >>= \res -> + return () +{-# LINE 535 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmRemoveRenderObjectListener :: HG3DClass -> HG3DClass -> IO () +cSmRemoveRenderObjectListener a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cSmRemoveRenderObjectListener'_ a1' a2' >>= \res -> + return () +{-# LINE 539 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmClearSpecialCaseRenderQueues :: HG3DClass -> IO () +cSmClearSpecialCaseRenderQueues a1 = + withHG3DClass a1 $ \a1' -> + cSmClearSpecialCaseRenderQueues'_ a1' >>= \res -> + return () +{-# LINE 542 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetSpecialCaseRenderQueueMode :: HG3DClass -> EnumSpecialCaseRenderQueueMode -> IO () +cSmSetSpecialCaseRenderQueueMode a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cSmSetSpecialCaseRenderQueueMode'_ a1' a2' >>= \res -> + return () +{-# LINE 546 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetSpecialCaseRenderQueueMode :: HG3DClass -> IO (EnumSpecialCaseRenderQueueMode) +cSmGetSpecialCaseRenderQueueMode a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmGetSpecialCaseRenderQueueMode'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 550 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmShowBoundingBoxes :: HG3DClass -> Bool -> IO () +cSmShowBoundingBoxes a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cSmShowBoundingBoxes'_ a1' a2' >>= \res -> + return () +{-# LINE 554 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetShowBoundingBoxes :: HG3DClass -> IO (Bool) +cSmGetShowBoundingBoxes a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmGetShowBoundingBoxes'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 558 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmNotifyAutotrackingSceneNode :: HG3DClass -> HG3DClass -> Bool -> IO () +cSmNotifyAutotrackingSceneNode a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + let {a3' = fromBool a3} in + cSmNotifyAutotrackingSceneNode'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 563 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetShadowTechnique :: HG3DClass -> EnumShadowTechnique -> IO () +cSmSetShadowTechnique a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cSmSetShadowTechnique'_ a1' a2' >>= \res -> + return () +{-# LINE 567 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetShadowTechnique :: HG3DClass -> IO (EnumShadowTechnique) +cSmGetShadowTechnique a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmGetShadowTechnique'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 571 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetShowDebugShadows :: HG3DClass -> Bool -> IO () +cSmSetShowDebugShadows a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cSmSetShowDebugShadows'_ a1' a2' >>= \res -> + return () +{-# LINE 575 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetShowDebugShadows :: HG3DClass -> IO (Bool) +cSmGetShowDebugShadows a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmGetShowDebugShadows'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 579 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetShadowColour :: HG3DClass -> ColourValue -> IO () +cSmSetShadowColour a1 a2 = + withHG3DClass a1 $ \a1' -> + withColourValue a2 $ \a2' -> + cSmSetShadowColour'_ a1' a2' >>= \res -> + return () +{-# LINE 583 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetShadowColour :: HG3DClass -> IO (ColourValue) +cSmGetShadowColour a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmGetShadowColour'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 587 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetShadowDirectionalLightExtrusionDistance :: HG3DClass -> Float -> IO () +cSmSetShadowDirectionalLightExtrusionDistance a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cSmSetShadowDirectionalLightExtrusionDistance'_ a1' a2' >>= \res -> + return () +{-# LINE 591 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetShadowDirectionalLightExtrusionDistance :: HG3DClass -> IO (Float) +cSmGetShadowDirectionalLightExtrusionDistance a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmGetShadowDirectionalLightExtrusionDistance'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 595 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetShadowFarDistance :: HG3DClass -> Float -> IO () +cSmSetShadowFarDistance a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cSmSetShadowFarDistance'_ a1' a2' >>= \res -> + return () +{-# LINE 599 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetShadowFarDistance :: HG3DClass -> IO (Float) +cSmGetShadowFarDistance a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmGetShadowFarDistance'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 603 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetShadowIndexBufferSize :: HG3DClass -> Int -> IO () +cSmSetShadowIndexBufferSize a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cSmSetShadowIndexBufferSize'_ a1' a2' >>= \res -> + return () +{-# LINE 607 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetShadowIndexBufferSize :: HG3DClass -> IO (Int) +cSmGetShadowIndexBufferSize a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmGetShadowIndexBufferSize'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 611 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetShadowTextureSize :: HG3DClass -> Int -> IO () +cSmSetShadowTextureSize a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cSmSetShadowTextureSize'_ a1' a2' >>= \res -> + return () +{-# LINE 615 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetShadowTextureConfig :: HG3DClass -> Int -> Int -> Int -> EnumPixelFormat -> IO () +cSmSetShadowTextureConfig a1 a2 a3 a4 a5 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + let {a3' = fromIntegral a3} in + let {a4' = fromIntegral a4} in + let {a5' = cIntFromEnum a5} in + cSmSetShadowTextureConfig'_ a1' a2' a3' a4' a5' >>= \res -> + return () +{-# LINE 622 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetShadowTexturePixelFormat :: HG3DClass -> EnumPixelFormat -> IO () +cSmSetShadowTexturePixelFormat a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cSmSetShadowTexturePixelFormat'_ a1' a2' >>= \res -> + return () +{-# LINE 626 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetShadowTextureCount :: HG3DClass -> Int -> IO () +cSmSetShadowTextureCount a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cSmSetShadowTextureCount'_ a1' a2' >>= \res -> + return () +{-# LINE 630 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetShadowTextureCount :: HG3DClass -> IO (Int) +cSmGetShadowTextureCount a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmGetShadowTextureCount'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 634 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetShadowTextureCountPerLightType :: HG3DClass -> EnumLightTypes -> Int -> IO () +cSmSetShadowTextureCountPerLightType a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + let {a3' = fromIntegral a3} in + cSmSetShadowTextureCountPerLightType'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 639 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetShadowTextureCountPerLightType :: HG3DClass -> EnumLightTypes -> IO (Int) +cSmGetShadowTextureCountPerLightType a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + alloca $ \a3' -> + cSmGetShadowTextureCountPerLightType'_ a1' a2' a3' >>= \res -> + peekIntConv a3'>>= \a3'' -> + return (a3'') +{-# LINE 644 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetShadowTextureSettings :: HG3DClass -> Int -> Int -> EnumPixelFormat -> IO () +cSmSetShadowTextureSettings a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + let {a3' = fromIntegral a3} in + let {a4' = cIntFromEnum a4} in + cSmSetShadowTextureSettings'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 650 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetShadowDirLightTextureOffset :: HG3DClass -> Float -> IO () +cSmSetShadowDirLightTextureOffset a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cSmSetShadowDirLightTextureOffset'_ a1' a2' >>= \res -> + return () +{-# LINE 654 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetShadowDirLightTextureOffset :: HG3DClass -> IO (Float) +cSmGetShadowDirLightTextureOffset a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmGetShadowDirLightTextureOffset'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 658 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetShadowTextureFadeStart :: HG3DClass -> Float -> IO () +cSmSetShadowTextureFadeStart a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cSmSetShadowTextureFadeStart'_ a1' a2' >>= \res -> + return () +{-# LINE 662 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetShadowTextureFadeEnd :: HG3DClass -> Float -> IO () +cSmSetShadowTextureFadeEnd a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cSmSetShadowTextureFadeEnd'_ a1' a2' >>= \res -> + return () +{-# LINE 666 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetShadowTextureSelfShadow :: HG3DClass -> Bool -> IO () +cSmSetShadowTextureSelfShadow a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cSmSetShadowTextureSelfShadow'_ a1' a2' >>= \res -> + return () +{-# LINE 670 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetShadowTextureSelfShadow :: HG3DClass -> IO (Bool) +cSmGetShadowTextureSelfShadow a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmGetShadowTextureSelfShadow'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 674 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetShadowTextureCasterMaterial :: HG3DClass -> String -> IO () +cSmSetShadowTextureCasterMaterial a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cSmSetShadowTextureCasterMaterial'_ a1' a2' >>= \res -> + return () +{-# LINE 678 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetShadowTextureReceiverMaterial :: HG3DClass -> String -> IO () +cSmSetShadowTextureReceiverMaterial a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cSmSetShadowTextureReceiverMaterial'_ a1' a2' >>= \res -> + return () +{-# LINE 682 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetShadowCasterRenderBackFaces :: HG3DClass -> Bool -> IO () +cSmSetShadowCasterRenderBackFaces a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cSmSetShadowCasterRenderBackFaces'_ a1' a2' >>= \res -> + return () +{-# LINE 686 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetShadowCasterRenderBackFaces :: HG3DClass -> IO (Bool) +cSmGetShadowCasterRenderBackFaces a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmGetShadowCasterRenderBackFaces'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 690 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetShadowUseInfiniteFarPlane :: HG3DClass -> Bool -> IO () +cSmSetShadowUseInfiniteFarPlane a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cSmSetShadowUseInfiniteFarPlane'_ a1' a2' >>= \res -> + return () +{-# LINE 694 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmIsShadowTechniqueStencilBased :: HG3DClass -> IO (Bool) +cSmIsShadowTechniqueStencilBased a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmIsShadowTechniqueStencilBased'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 698 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmIsShadowTechniqueTextureBased :: HG3DClass -> IO (Bool) +cSmIsShadowTechniqueTextureBased a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmIsShadowTechniqueTextureBased'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 702 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmIsShadowTechniqueModulative :: HG3DClass -> IO (Bool) +cSmIsShadowTechniqueModulative a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmIsShadowTechniqueModulative'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 706 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmIsShadowTechniqueAdditive :: HG3DClass -> IO (Bool) +cSmIsShadowTechniqueAdditive a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmIsShadowTechniqueAdditive'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 710 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmIsShadowTechniqueIntegrated :: HG3DClass -> IO (Bool) +cSmIsShadowTechniqueIntegrated a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmIsShadowTechniqueIntegrated'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 714 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmIsShadowTechniqueInUse :: HG3DClass -> IO (Bool) +cSmIsShadowTechniqueInUse a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmIsShadowTechniqueInUse'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 718 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetShadowUseLightClipPlanes :: HG3DClass -> Bool -> IO () +cSmSetShadowUseLightClipPlanes a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cSmSetShadowUseLightClipPlanes'_ a1' a2' >>= \res -> + return () +{-# LINE 722 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetShadowUseLightClipPlanes :: HG3DClass -> IO (Bool) +cSmGetShadowUseLightClipPlanes a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmGetShadowUseLightClipPlanes'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 726 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetActiveCompositorChain :: HG3DClass -> HG3DClass -> IO () +cSmSetActiveCompositorChain a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cSmSetActiveCompositorChain'_ a1' a2' >>= \res -> + return () +{-# LINE 730 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetLateMaterialResolving :: HG3DClass -> Bool -> IO () +cSmSetLateMaterialResolving a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cSmSetLateMaterialResolving'_ a1' a2' >>= \res -> + return () +{-# LINE 734 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmIsLateMaterialResolving :: HG3DClass -> IO (Bool) +cSmIsLateMaterialResolving a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmIsLateMaterialResolving'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 738 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetActiveCompositorChain :: HG3DClass -> IO (HG3DClass) +cSmGetActiveCompositorChain a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmGetActiveCompositorChain'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 742 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmCreateStaticGeometry :: HG3DClass -> String -> IO (HG3DClass) +cSmCreateStaticGeometry a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSmCreateStaticGeometry'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 747 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetStaticGeometry :: HG3DClass -> String -> IO (HG3DClass) +cSmGetStaticGeometry a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSmGetStaticGeometry'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 752 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmHasStaticGeometry :: HG3DClass -> String -> IO (Bool) +cSmHasStaticGeometry a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSmHasStaticGeometry'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 757 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroyStaticGeometry :: HG3DClass -> HG3DClass -> IO () +cSmDestroyStaticGeometry a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cSmDestroyStaticGeometry'_ a1' a2' >>= \res -> + return () +{-# LINE 761 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroyStaticGeometry2 :: HG3DClass -> String -> IO () +cSmDestroyStaticGeometry2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cSmDestroyStaticGeometry2'_ a1' a2' >>= \res -> + return () +{-# LINE 765 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroyAllStaticGeometry :: HG3DClass -> IO () +cSmDestroyAllStaticGeometry a1 = + withHG3DClass a1 $ \a1' -> + cSmDestroyAllStaticGeometry'_ a1' >>= \res -> + return () +{-# LINE 768 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroyInstancedGeometry2 :: HG3DClass -> String -> IO () +cSmDestroyInstancedGeometry2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cSmDestroyInstancedGeometry2'_ a1' a2' >>= \res -> + return () +{-# LINE 772 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroyAllInstancedGeometry :: HG3DClass -> IO () +cSmDestroyAllInstancedGeometry a1 = + withHG3DClass a1 $ \a1' -> + cSmDestroyAllInstancedGeometry'_ a1' >>= \res -> + return () +{-# LINE 775 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroyMovableObject :: HG3DClass -> String -> String -> IO () +cSmDestroyMovableObject a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + cSmDestroyMovableObject'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 780 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroyMovableObject2 :: HG3DClass -> HG3DClass -> IO () +cSmDestroyMovableObject2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cSmDestroyMovableObject2'_ a1' a2' >>= \res -> + return () +{-# LINE 784 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroyAllMovableObjectsByType :: HG3DClass -> String -> IO () +cSmDestroyAllMovableObjectsByType a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cSmDestroyAllMovableObjectsByType'_ a1' a2' >>= \res -> + return () +{-# LINE 788 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmDestroyAllMovableObjects :: HG3DClass -> IO () +cSmDestroyAllMovableObjects a1 = + withHG3DClass a1 $ \a1' -> + cSmDestroyAllMovableObjects'_ a1' >>= \res -> + return () +{-# LINE 791 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetMovableObject :: HG3DClass -> String -> String -> IO (HG3DClass) +cSmGetMovableObject a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + alloca $ \a4' -> + cSmGetMovableObject'_ a1' a2' a3' a4' >>= \res -> + peek a4'>>= \a4'' -> + return (a4'') +{-# LINE 797 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmHasMovableObject :: HG3DClass -> String -> String -> IO (Bool) +cSmHasMovableObject a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + alloca $ \a4' -> + cSmHasMovableObject'_ a1' a2' a3' a4' >>= \res -> + peekBoolUtil a4'>>= \a4'' -> + return (a4'') +{-# LINE 803 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmInjectMovableObject :: HG3DClass -> HG3DClass -> IO () +cSmInjectMovableObject a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cSmInjectMovableObject'_ a1' a2' >>= \res -> + return () +{-# LINE 807 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmExtractMovableObject :: HG3DClass -> String -> String -> IO () +cSmExtractMovableObject a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + cSmExtractMovableObject'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 812 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmExtractMovableObject2 :: HG3DClass -> HG3DClass -> IO () +cSmExtractMovableObject2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cSmExtractMovableObject2'_ a1' a2' >>= \res -> + return () +{-# LINE 816 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmExtractAllMovableObjectsByType :: HG3DClass -> String -> IO () +cSmExtractAllMovableObjectsByType a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cSmExtractAllMovableObjectsByType'_ a1' a2' >>= \res -> + return () +{-# LINE 820 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetVisibilityMask :: HG3DClass -> Int -> IO () +cSmSetVisibilityMask a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cSmSetVisibilityMask'_ a1' a2' >>= \res -> + return () +{-# LINE 824 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetVisibilityMask :: HG3DClass -> IO (Int) +cSmGetVisibilityMask a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmGetVisibilityMask'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 828 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetCombinedVisibilityMask :: HG3DClass -> IO (Int) +cSmGetCombinedVisibilityMask a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmGetCombinedVisibilityMask'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 832 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetFindVisibleObjects :: HG3DClass -> Bool -> IO () +cSmSetFindVisibleObjects a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cSmSetFindVisibleObjects'_ a1' a2' >>= \res -> + return () +{-# LINE 836 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetFindVisibleObjects :: HG3DClass -> IO (Bool) +cSmGetFindVisibleObjects a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmGetFindVisibleObjects'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 840 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetNormaliseNormalsOnScale :: HG3DClass -> Bool -> IO () +cSmSetNormaliseNormalsOnScale a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cSmSetNormaliseNormalsOnScale'_ a1' a2' >>= \res -> + return () +{-# LINE 844 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetNormaliseNormalsOnScale :: HG3DClass -> IO (Bool) +cSmGetNormaliseNormalsOnScale a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmGetNormaliseNormalsOnScale'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 848 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetFlipCullingOnNegativeScale :: HG3DClass -> Bool -> IO () +cSmSetFlipCullingOnNegativeScale a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cSmSetFlipCullingOnNegativeScale'_ a1' a2' >>= \res -> + return () +{-# LINE 852 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetFlipCullingOnNegativeScale :: HG3DClass -> IO (Bool) +cSmGetFlipCullingOnNegativeScale a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmGetFlipCullingOnNegativeScale'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 856 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSuppressRenderStateChanges :: HG3DClass -> Bool -> IO () +cSmSuppressRenderStateChanges a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cSmSuppressRenderStateChanges'_ a1' a2' >>= \res -> + return () +{-# LINE 860 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmAreRenderStateChangesSuppressed :: HG3DClass -> IO (Bool) +cSmAreRenderStateChangesSuppressed a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmAreRenderStateChangesSuppressed'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 864 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmMarkGpuParamsDirty :: HG3DClass -> Int -> IO () +cSmMarkGpuParamsDirty a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cSmMarkGpuParamsDirty'_ a1' a2' >>= \res -> + return () +{-# LINE 868 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSuppressShadows :: HG3DClass -> Bool -> IO () +cSmSuppressShadows a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cSmSuppressShadows'_ a1' a2' >>= \res -> + return () +{-# LINE 872 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmAreShadowsSuppressed :: HG3DClass -> IO (Bool) +cSmAreShadowsSuppressed a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmAreShadowsSuppressed'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 876 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetQueuedRenderableVisitor :: HG3DClass -> HG3DClass -> IO () +cSmSetQueuedRenderableVisitor a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cSmSetQueuedRenderableVisitor'_ a1' a2' >>= \res -> + return () +{-# LINE 880 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetQueuedRenderableVisitor :: HG3DClass -> IO (HG3DClass) +cSmGetQueuedRenderableVisitor a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmGetQueuedRenderableVisitor'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 884 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetCurrentViewport :: HG3DClass -> IO (HG3DClass) +cSmGetCurrentViewport a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmGetCurrentViewport'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 888 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmSetCameraRelativeRendering :: HG3DClass -> Bool -> IO () +cSmSetCameraRelativeRendering a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cSmSetCameraRelativeRendering'_ a1' a2' >>= \res -> + return () +{-# LINE 892 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmGetCameraRelativeRendering :: HG3DClass -> IO (Bool) +cSmGetCameraRelativeRendering a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSmGetCameraRelativeRendering'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 896 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; +cSmHandleLodEvents :: HG3DClass -> IO () +cSmHandleLodEvents a1 = + withHG3DClass a1 $ \a1' -> + cSmHandleLodEvents'_ a1' >>= \res -> + return () +{-# LINE 899 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getName_c" + cSmGetName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getTypeName_c" + cSmGetTypeName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_createCamera_c" + cSmCreateCamera'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getCamera_c" + cSmGetCamera'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_hasCamera_c" + cSmHasCamera'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroyCamera_c" + cSmDestroyCamera'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroyCamera2_c" + cSmDestroyCamera2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroyAllCameras_c" + cSmDestroyAllCameras'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_createLight_c" + cSmCreateLight'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_createLight2_c" + cSmCreateLight2'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getLight_c" + cSmGetLight'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_hasLight_c" + cSmHasLight'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroyLight_c" + cSmDestroyLight'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroyLight2_c" + cSmDestroyLight2'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroyAllLights_c" + cSmDestroyAllLights'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm__notifyLightsDirty_c" + cSmNotifyLightsDirty'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_createSceneNode_c" + cSmCreateSceneNode'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_createSceneNode2_c" + cSmCreateSceneNode2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroySceneNode_c" + cSmDestroySceneNode'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroySceneNode2_c" + cSmDestroySceneNode2'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getRootSceneNode_c" + cSmGetRootSceneNode'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getSceneNode_c" + cSmGetSceneNode'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_hasSceneNode_c" + cSmHasSceneNode'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_createEntity_c" + cSmCreateEntity'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_createEntity2_c" + cSmCreateEntity2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_createEntity3_c" + cSmCreateEntity3'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> ((HG3DClassPtr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_createEntity4_c" + cSmCreateEntity4'_ :: ((HG3DClassPtr) -> (CInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getEntity_c" + cSmGetEntity'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_hasEntity_c" + cSmHasEntity'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroyEntity_c" + cSmDestroyEntity'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroyEntity2_c" + cSmDestroyEntity2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroyAllEntities_c" + cSmDestroyAllEntities'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_createManualObject_c" + cSmCreateManualObject'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_createManualObject2_c" + cSmCreateManualObject2'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getManualObject_c" + cSmGetManualObject'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_hasManualObject_c" + cSmHasManualObject'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroyManualObject_c" + cSmDestroyManualObject'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroyManualObject2_c" + cSmDestroyManualObject2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroyAllManualObjects_c" + cSmDestroyAllManualObjects'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_createBillboardChain_c" + cSmCreateBillboardChain'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_createBillboardChain2_c" + cSmCreateBillboardChain2'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getBillboardChain_c" + cSmGetBillboardChain'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_hasBillboardChain_c" + cSmHasBillboardChain'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroyBillboardChain_c" + cSmDestroyBillboardChain'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroyBillboardChain2_c" + cSmDestroyBillboardChain2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroyAllBillboardChains_c" + cSmDestroyAllBillboardChains'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_createRibbonTrail_c" + cSmCreateRibbonTrail'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_createRibbonTrail2_c" + cSmCreateRibbonTrail2'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getRibbonTrail_c" + cSmGetRibbonTrail'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_hasRibbonTrail_c" + cSmHasRibbonTrail'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroyRibbonTrail_c" + cSmDestroyRibbonTrail'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroyRibbonTrail2_c" + cSmDestroyRibbonTrail2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroyAllRibbonTrails_c" + cSmDestroyAllRibbonTrails'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_hasParticleSystem_c" + cSmHasParticleSystem'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroyParticleSystem2_c" + cSmDestroyParticleSystem2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroyAllParticleSystems_c" + cSmDestroyAllParticleSystems'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_clearScene_c" + cSmClearScene'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setAmbientLight_c" + cSmSetAmbientLight'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getAmbientLight_c" + cSmGetAmbientLight'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_prepareWorldGeometry_c" + cSmPrepareWorldGeometry'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setWorldGeometry_c" + cSmSetWorldGeometry'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_estimateWorldGeometry_c" + cSmEstimateWorldGeometry'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_hasOption_c" + cSmHasOption'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm__updateSceneGraph_c" + cSmUpdateSceneGraph'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm__applySceneAnimations_c" + cSmApplySceneAnimations'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm__renderVisibleObjects_c" + cSmRenderVisibleObjects'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm__renderScene_c" + cSmRenderScene'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((HG3DClassPtr) -> (CInt -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm__queueSkiesForRendering_c" + cSmQueueSkiesForRendering'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setSkyPlaneEnabled_c" + cSmSetSkyPlaneEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_isSkyPlaneEnabled_c" + cSmIsSkyPlaneEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getSkyPlaneNode_c" + cSmGetSkyPlaneNode'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setSkyBox_c" + cSmSetSkyBox'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CChar) -> (CFloat -> (CInt -> ((QuaternionPtr) -> ((Ptr CChar) -> (IO ())))))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setSkyBoxEnabled_c" + cSmSetSkyBoxEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_isSkyBoxEnabled_c" + cSmIsSkyBoxEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getSkyBoxNode_c" + cSmGetSkyBoxNode'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setSkyDome_c" + cSmSetSkyDome'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CChar) -> (CFloat -> (CFloat -> (CFloat -> (CInt -> ((QuaternionPtr) -> (CInt -> (CInt -> (CInt -> ((Ptr CChar) -> (IO ()))))))))))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setSkyDomeEnabled_c" + cSmSetSkyDomeEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_isSkyDomeEnabled_c" + cSmIsSkyDomeEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getSkyDomeNode_c" + cSmGetSkyDomeNode'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setFog_c" + cSmSetFog'_ :: ((HG3DClassPtr) -> (CInt -> ((ColourValuePtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getFogMode_c" + cSmGetFogMode'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getFogColour_c" + cSmGetFogColour'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getFogStart_c" + cSmGetFogStart'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getFogEnd_c" + cSmGetFogEnd'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getFogDensity_c" + cSmGetFogDensity'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_createBillboardSet_c" + cSmCreateBillboardSet'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CUInt -> ((HG3DClassPtr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_createBillboardSet2_c" + cSmCreateBillboardSet2'_ :: ((HG3DClassPtr) -> (CUInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getBillboardSet_c" + cSmGetBillboardSet'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_hasBillboardSet_c" + cSmHasBillboardSet'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroyBillboardSet_c" + cSmDestroyBillboardSet'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroyBillboardSet2_c" + cSmDestroyBillboardSet2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroyAllBillboardSets_c" + cSmDestroyAllBillboardSets'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setDisplaySceneNodes_c" + cSmSetDisplaySceneNodes'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getDisplaySceneNodes_c" + cSmGetDisplaySceneNodes'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_createAnimation_c" + cSmCreateAnimation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CFloat -> ((HG3DClassPtr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getAnimation_c" + cSmGetAnimation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_hasAnimation_c" + cSmHasAnimation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroyAnimation_c" + cSmDestroyAnimation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroyAllAnimations_c" + cSmDestroyAllAnimations'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_createAnimationState_c" + cSmCreateAnimationState'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getAnimationState_c" + cSmGetAnimationState'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_hasAnimationState_c" + cSmHasAnimationState'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroyAnimationState_c" + cSmDestroyAnimationState'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroyAllAnimationStates_c" + cSmDestroyAllAnimationStates'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_addRenderObjectListener_c" + cSmAddRenderObjectListener'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_removeRenderObjectListener_c" + cSmRemoveRenderObjectListener'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_clearSpecialCaseRenderQueues_c" + cSmClearSpecialCaseRenderQueues'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setSpecialCaseRenderQueueMode_c" + cSmSetSpecialCaseRenderQueueMode'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getSpecialCaseRenderQueueMode_c" + cSmGetSpecialCaseRenderQueueMode'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_showBoundingBoxes_c" + cSmShowBoundingBoxes'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getShowBoundingBoxes_c" + cSmGetShowBoundingBoxes'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm__notifyAutotrackingSceneNode_c" + cSmNotifyAutotrackingSceneNode'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setShadowTechnique_c" + cSmSetShadowTechnique'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getShadowTechnique_c" + cSmGetShadowTechnique'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setShowDebugShadows_c" + cSmSetShowDebugShadows'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getShowDebugShadows_c" + cSmGetShowDebugShadows'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setShadowColour_c" + cSmSetShadowColour'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getShadowColour_c" + cSmGetShadowColour'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setShadowDirectionalLightExtrusionDistance_c" + cSmSetShadowDirectionalLightExtrusionDistance'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getShadowDirectionalLightExtrusionDistance_c" + cSmGetShadowDirectionalLightExtrusionDistance'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setShadowFarDistance_c" + cSmSetShadowFarDistance'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getShadowFarDistance_c" + cSmGetShadowFarDistance'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setShadowIndexBufferSize_c" + cSmSetShadowIndexBufferSize'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getShadowIndexBufferSize_c" + cSmGetShadowIndexBufferSize'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setShadowTextureSize_c" + cSmSetShadowTextureSize'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setShadowTextureConfig_c" + cSmSetShadowTextureConfig'_ :: ((HG3DClassPtr) -> (CInt -> (CUInt -> (CUInt -> (CInt -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setShadowTexturePixelFormat_c" + cSmSetShadowTexturePixelFormat'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setShadowTextureCount_c" + cSmSetShadowTextureCount'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getShadowTextureCount_c" + cSmGetShadowTextureCount'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setShadowTextureCountPerLightType_c" + cSmSetShadowTextureCountPerLightType'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getShadowTextureCountPerLightType_c" + cSmGetShadowTextureCountPerLightType'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setShadowTextureSettings_c" + cSmSetShadowTextureSettings'_ :: ((HG3DClassPtr) -> (CUInt -> (CUInt -> (CInt -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setShadowDirLightTextureOffset_c" + cSmSetShadowDirLightTextureOffset'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getShadowDirLightTextureOffset_c" + cSmGetShadowDirLightTextureOffset'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setShadowTextureFadeStart_c" + cSmSetShadowTextureFadeStart'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setShadowTextureFadeEnd_c" + cSmSetShadowTextureFadeEnd'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setShadowTextureSelfShadow_c" + cSmSetShadowTextureSelfShadow'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getShadowTextureSelfShadow_c" + cSmGetShadowTextureSelfShadow'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setShadowTextureCasterMaterial_c" + cSmSetShadowTextureCasterMaterial'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setShadowTextureReceiverMaterial_c" + cSmSetShadowTextureReceiverMaterial'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setShadowCasterRenderBackFaces_c" + cSmSetShadowCasterRenderBackFaces'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getShadowCasterRenderBackFaces_c" + cSmGetShadowCasterRenderBackFaces'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setShadowUseInfiniteFarPlane_c" + cSmSetShadowUseInfiniteFarPlane'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_isShadowTechniqueStencilBased_c" + cSmIsShadowTechniqueStencilBased'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_isShadowTechniqueTextureBased_c" + cSmIsShadowTechniqueTextureBased'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_isShadowTechniqueModulative_c" + cSmIsShadowTechniqueModulative'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_isShadowTechniqueAdditive_c" + cSmIsShadowTechniqueAdditive'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_isShadowTechniqueIntegrated_c" + cSmIsShadowTechniqueIntegrated'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_isShadowTechniqueInUse_c" + cSmIsShadowTechniqueInUse'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setShadowUseLightClipPlanes_c" + cSmSetShadowUseLightClipPlanes'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getShadowUseLightClipPlanes_c" + cSmGetShadowUseLightClipPlanes'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm__setActiveCompositorChain_c" + cSmSetActiveCompositorChain'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setLateMaterialResolving_c" + cSmSetLateMaterialResolving'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_isLateMaterialResolving_c" + cSmIsLateMaterialResolving'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm__getActiveCompositorChain_c" + cSmGetActiveCompositorChain'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_createStaticGeometry_c" + cSmCreateStaticGeometry'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getStaticGeometry_c" + cSmGetStaticGeometry'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_hasStaticGeometry_c" + cSmHasStaticGeometry'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroyStaticGeometry_c" + cSmDestroyStaticGeometry'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroyStaticGeometry2_c" + cSmDestroyStaticGeometry2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroyAllStaticGeometry_c" + cSmDestroyAllStaticGeometry'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroyInstancedGeometry2_c" + cSmDestroyInstancedGeometry2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroyAllInstancedGeometry_c" + cSmDestroyAllInstancedGeometry'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroyMovableObject_c" + cSmDestroyMovableObject'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroyMovableObject2_c" + cSmDestroyMovableObject2'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroyAllMovableObjectsByType_c" + cSmDestroyAllMovableObjectsByType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_destroyAllMovableObjects_c" + cSmDestroyAllMovableObjects'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getMovableObject_c" + cSmGetMovableObject'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_hasMovableObject_c" + cSmHasMovableObject'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_injectMovableObject_c" + cSmInjectMovableObject'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_extractMovableObject_c" + cSmExtractMovableObject'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_extractMovableObject2_c" + cSmExtractMovableObject2'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_extractAllMovableObjectsByType_c" + cSmExtractAllMovableObjectsByType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setVisibilityMask_c" + cSmSetVisibilityMask'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getVisibilityMask_c" + cSmGetVisibilityMask'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm__getCombinedVisibilityMask_c" + cSmGetCombinedVisibilityMask'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setFindVisibleObjects_c" + cSmSetFindVisibleObjects'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getFindVisibleObjects_c" + cSmGetFindVisibleObjects'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setNormaliseNormalsOnScale_c" + cSmSetNormaliseNormalsOnScale'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getNormaliseNormalsOnScale_c" + cSmGetNormaliseNormalsOnScale'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setFlipCullingOnNegativeScale_c" + cSmSetFlipCullingOnNegativeScale'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getFlipCullingOnNegativeScale_c" + cSmGetFlipCullingOnNegativeScale'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm__suppressRenderStateChanges_c" + cSmSuppressRenderStateChanges'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm__areRenderStateChangesSuppressed_c" + cSmAreRenderStateChangesSuppressed'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm__markGpuParamsDirty_c" + cSmMarkGpuParamsDirty'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm__suppressShadows_c" + cSmSuppressShadows'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm__areShadowsSuppressed_c" + cSmAreShadowsSuppressed'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setQueuedRenderableVisitor_c" + cSmSetQueuedRenderableVisitor'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getQueuedRenderableVisitor_c" + cSmGetQueuedRenderableVisitor'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getCurrentViewport_c" + cSmGetCurrentViewport'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setCameraRelativeRendering_c" + cSmSetCameraRelativeRendering'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getCameraRelativeRendering_c" + cSmGetCameraRelativeRendering'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm__handleLodEvents_c" + cSmHandleLodEvents'_ :: ((HG3DClassPtr) -> (IO ()))
@@ -0,0 +1,162 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerEnumerator.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassSceneManagerEnumerator.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSceneManagerEnumerator.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassSceneManagerEnumerator where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerEnumerator.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerEnumerator.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerEnumerator.chs" #-} + + +cSmeAddFactory :: HG3DClass -> HG3DClass -> IO () +cSmeAddFactory a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cSmeAddFactory'_ a1' a2' >>= \res -> + return () +{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerEnumerator.chs" #-} +; +cSmeRemoveFactory :: HG3DClass -> HG3DClass -> IO () +cSmeRemoveFactory a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cSmeRemoveFactory'_ a1' a2' >>= \res -> + return () +{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerEnumerator.chs" #-} +; +cSmeCreateSceneManager :: HG3DClass -> String -> String -> IO (HG3DClass) +cSmeCreateSceneManager a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + alloca $ \a4' -> + cSmeCreateSceneManager'_ a1' a2' a3' a4' >>= \res -> + peek a4'>>= \a4'' -> + return (a4'') +{-# LINE 72 "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerEnumerator.chs" #-} +; +cSmeCreateSceneManager2 :: HG3DClass -> Int -> String -> IO (HG3DClass) +cSmeCreateSceneManager2 a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + withCString a3 $ \a3' -> + alloca $ \a4' -> + cSmeCreateSceneManager2'_ a1' a2' a3' a4' >>= \res -> + peek a4'>>= \a4'' -> + return (a4'') +{-# LINE 78 "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerEnumerator.chs" #-} +; +cSmeDestroySceneManager :: HG3DClass -> HG3DClass -> IO () +cSmeDestroySceneManager a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cSmeDestroySceneManager'_ a1' a2' >>= \res -> + return () +{-# LINE 82 "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerEnumerator.chs" #-} +; +cSmeGetSceneManager :: HG3DClass -> String -> IO (HG3DClass) +cSmeGetSceneManager a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSmeGetSceneManager'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 87 "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerEnumerator.chs" #-} +; +cSmeHasSceneManager :: HG3DClass -> String -> IO (Bool) +cSmeHasSceneManager a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSmeHasSceneManager'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 92 "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerEnumerator.chs" #-} +; +cSmeShutdownAll :: HG3DClass -> IO () +cSmeShutdownAll a1 = + withHG3DClass a1 $ \a1' -> + cSmeShutdownAll'_ a1' >>= \res -> + return () +{-# LINE 95 "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerEnumerator.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerEnumerator.chs.h cSme_addFactory_c" + cSmeAddFactory'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerEnumerator.chs.h cSme_removeFactory_c" + cSmeRemoveFactory'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerEnumerator.chs.h cSme_createSceneManager_c" + cSmeCreateSceneManager'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerEnumerator.chs.h cSme_createSceneManager2_c" + cSmeCreateSceneManager2'_ :: ((HG3DClassPtr) -> (CUInt -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerEnumerator.chs.h cSme_destroySceneManager_c" + cSmeDestroySceneManager'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerEnumerator.chs.h cSme_getSceneManager_c" + cSmeGetSceneManager'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerEnumerator.chs.h cSme_hasSceneManager_c" + cSmeHasSceneManager'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerEnumerator.chs.h cSme_shutdownAll_c" + cSmeShutdownAll'_ :: ((HG3DClassPtr) -> (IO ()))
@@ -0,0 +1,89 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerFactory.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassSceneManagerFactory.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSceneManager.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassSceneManagerFactory where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerFactory.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerFactory.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerFactory.chs" #-} + + +cSmfCreateInstance :: HG3DClass -> String -> IO (HG3DClass) +cSmfCreateInstance a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSmfCreateInstance'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 63 "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerFactory.chs" #-} +; +cSmfDestroyInstance :: HG3DClass -> HG3DClass -> IO () +cSmfDestroyInstance a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cSmfDestroyInstance'_ a1' a2' >>= \res -> + return () +{-# LINE 67 "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerFactory.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerFactory.chs.h cSmf_createInstance_c" + cSmfCreateInstance'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerFactory.chs.h cSmf_destroyInstance_c" + cSmfDestroyInstance'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassSceneMgrQueuedRenderableVisitor.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassSceneMgrQueuedRenderableVisitor.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSceneManager.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassSceneMgrQueuedRenderableVisitor where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassSceneMgrQueuedRenderableVisitor.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassSceneMgrQueuedRenderableVisitor.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassSceneMgrQueuedRenderableVisitor.chs" #-} + +
@@ -0,0 +1,492 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassSceneNode.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSceneNode.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassSceneNode where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +import HGamer3D.Bindings.Ogre.TypeVector3 +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +import HGamer3D.Bindings.Ogre.TypeQuaternion +{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +import HGamer3D.Bindings.Ogre.TypeRadian +{-# LINE 59 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +import HGamer3D.Bindings.Ogre.EnumTransformSpace +{-# LINE 60 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} + + +cSnAttachObject :: HG3DClass -> HG3DClass -> IO () +cSnAttachObject a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cSnAttachObject'_ a1' a2' >>= \res -> + return () +{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +; +cSnNumAttachedObjects :: HG3DClass -> IO (Int) +cSnNumAttachedObjects a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSnNumAttachedObjects'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 70 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +; +cSnGetAttachedObject :: HG3DClass -> Int -> IO (HG3DClass) +cSnGetAttachedObject a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cSnGetAttachedObject'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 75 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +; +cSnGetAttachedObject2 :: HG3DClass -> String -> IO (HG3DClass) +cSnGetAttachedObject2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSnGetAttachedObject2'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 80 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +; +cSnDetachObject :: HG3DClass -> Int -> IO (HG3DClass) +cSnDetachObject a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cSnDetachObject'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 85 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +; +cSnDetachObject2 :: HG3DClass -> HG3DClass -> IO () +cSnDetachObject2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cSnDetachObject2'_ a1' a2' >>= \res -> + return () +{-# LINE 89 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +; +cSnDetachObject3 :: HG3DClass -> String -> IO (HG3DClass) +cSnDetachObject3 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSnDetachObject3'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 94 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +; +cSnDetachAllObjects :: HG3DClass -> IO () +cSnDetachAllObjects a1 = + withHG3DClass a1 $ \a1' -> + cSnDetachAllObjects'_ a1' >>= \res -> + return () +{-# LINE 97 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +; +cSnIsInSceneGraph :: HG3DClass -> IO (Bool) +cSnIsInSceneGraph a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSnIsInSceneGraph'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 101 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +; +cSnNotifyRootNode :: HG3DClass -> IO () +cSnNotifyRootNode a1 = + withHG3DClass a1 $ \a1' -> + cSnNotifyRootNode'_ a1' >>= \res -> + return () +{-# LINE 104 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +; +cSnUpdate :: HG3DClass -> Bool -> Bool -> IO () +cSnUpdate a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + let {a3' = fromBool a3} in + cSnUpdate'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 109 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +; +cSnUpdateBounds :: HG3DClass -> IO () +cSnUpdateBounds a1 = + withHG3DClass a1 $ \a1' -> + cSnUpdateBounds'_ a1' >>= \res -> + return () +{-# LINE 112 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +; +cSnGetCreator :: HG3DClass -> IO (HG3DClass) +cSnGetCreator a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSnGetCreator'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 116 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +; +cSnRemoveAndDestroyChild :: HG3DClass -> String -> IO () +cSnRemoveAndDestroyChild a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cSnRemoveAndDestroyChild'_ a1' a2' >>= \res -> + return () +{-# LINE 120 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +; +cSnRemoveAndDestroyChild2 :: HG3DClass -> Int -> IO () +cSnRemoveAndDestroyChild2 a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cSnRemoveAndDestroyChild2'_ a1' a2' >>= \res -> + return () +{-# LINE 124 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +; +cSnRemoveAndDestroyAllChildren :: HG3DClass -> IO () +cSnRemoveAndDestroyAllChildren a1 = + withHG3DClass a1 $ \a1' -> + cSnRemoveAndDestroyAllChildren'_ a1' >>= \res -> + return () +{-# LINE 127 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +; +cSnShowBoundingBox :: HG3DClass -> Bool -> IO () +cSnShowBoundingBox a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cSnShowBoundingBox'_ a1' a2' >>= \res -> + return () +{-# LINE 131 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +; +cSnHideBoundingBox :: HG3DClass -> Bool -> IO () +cSnHideBoundingBox a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cSnHideBoundingBox'_ a1' a2' >>= \res -> + return () +{-# LINE 135 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +; +cSnGetShowBoundingBox :: HG3DClass -> IO (Bool) +cSnGetShowBoundingBox a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSnGetShowBoundingBox'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 139 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +; +cSnCreateChildSceneNode :: HG3DClass -> Vector3 -> Quaternion -> IO (HG3DClass) +cSnCreateChildSceneNode a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withVector3 a2 $ \a2' -> + withQuaternion a3 $ \a3' -> + alloca $ \a4' -> + cSnCreateChildSceneNode'_ a1' a2' a3' a4' >>= \res -> + peek a4'>>= \a4'' -> + return (a4'') +{-# LINE 145 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +; +cSnCreateChildSceneNode2 :: HG3DClass -> String -> Vector3 -> Quaternion -> IO (HG3DClass) +cSnCreateChildSceneNode2 a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withVector3 a3 $ \a3' -> + withQuaternion a4 $ \a4' -> + alloca $ \a5' -> + cSnCreateChildSceneNode2'_ a1' a2' a3' a4' a5' >>= \res -> + peek a5'>>= \a5'' -> + return (a5'') +{-# LINE 152 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +; +cSnSetFixedYawAxis :: HG3DClass -> Bool -> Vector3 -> IO () +cSnSetFixedYawAxis a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + withVector3 a3 $ \a3' -> + cSnSetFixedYawAxis'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 157 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +; +cSnYaw :: HG3DClass -> Radian -> EnumTransformSpace -> IO () +cSnYaw a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withRadian a2 $ \a2' -> + let {a3' = cIntFromEnum a3} in + cSnYaw'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 162 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +; +cSnSetDirection :: HG3DClass -> Float -> Float -> Float -> EnumTransformSpace -> Vector3 -> IO () +cSnSetDirection a1 a2 a3 a4 a5 a6 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + let {a5' = cIntFromEnum a5} in + withVector3 a6 $ \a6' -> + cSnSetDirection'_ a1' a2' a3' a4' a5' a6' >>= \res -> + return () +{-# LINE 170 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +; +cSnSetDirection2 :: HG3DClass -> Vector3 -> EnumTransformSpace -> Vector3 -> IO () +cSnSetDirection2 a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + withVector3 a2 $ \a2' -> + let {a3' = cIntFromEnum a3} in + withVector3 a4 $ \a4' -> + cSnSetDirection2'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 176 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +; +cSnLookAt :: HG3DClass -> Vector3 -> EnumTransformSpace -> Vector3 -> IO () +cSnLookAt a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + withVector3 a2 $ \a2' -> + let {a3' = cIntFromEnum a3} in + withVector3 a4 $ \a4' -> + cSnLookAt'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 182 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +; +cSnSetAutoTracking :: HG3DClass -> Bool -> HG3DClass -> Vector3 -> Vector3 -> IO () +cSnSetAutoTracking a1 a2 a3 a4 a5 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + withHG3DClass a3 $ \a3' -> + withVector3 a4 $ \a4' -> + withVector3 a5 $ \a5' -> + cSnSetAutoTracking'_ a1' a2' a3' a4' a5' >>= \res -> + return () +{-# LINE 189 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +; +cSnGetAutoTrackTarget :: HG3DClass -> IO (HG3DClass) +cSnGetAutoTrackTarget a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSnGetAutoTrackTarget'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 193 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +; +cSnGetAutoTrackOffset :: HG3DClass -> IO (Vector3) +cSnGetAutoTrackOffset a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSnGetAutoTrackOffset'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 197 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +; +cSnGetAutoTrackLocalDirection :: HG3DClass -> IO (Vector3) +cSnGetAutoTrackLocalDirection a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSnGetAutoTrackLocalDirection'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 201 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +; +cSnAutoTrack :: HG3DClass -> IO () +cSnAutoTrack a1 = + withHG3DClass a1 $ \a1' -> + cSnAutoTrack'_ a1' >>= \res -> + return () +{-# LINE 204 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +; +cSnGetParentSceneNode :: HG3DClass -> IO (HG3DClass) +cSnGetParentSceneNode a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSnGetParentSceneNode'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 208 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +; +cSnSetVisible :: HG3DClass -> Bool -> Bool -> IO () +cSnSetVisible a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + let {a3' = fromBool a3} in + cSnSetVisible'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 213 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +; +cSnFlipVisibility :: HG3DClass -> Bool -> IO () +cSnFlipVisibility a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cSnFlipVisibility'_ a1' a2' >>= \res -> + return () +{-# LINE 217 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +; +cSnSetDebugDisplayEnabled :: HG3DClass -> Bool -> Bool -> IO () +cSnSetDebugDisplayEnabled a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + let {a3' = fromBool a3} in + cSnSetDebugDisplayEnabled'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 222 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h cSn_attachObject_c" + cSnAttachObject'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h cSn_numAttachedObjects_c" + cSnNumAttachedObjects'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h cSn_getAttachedObject_c" + cSnGetAttachedObject'_ :: ((HG3DClassPtr) -> (CUInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h cSn_getAttachedObject2_c" + cSnGetAttachedObject2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h cSn_detachObject_c" + cSnDetachObject'_ :: ((HG3DClassPtr) -> (CUInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h cSn_detachObject2_c" + cSnDetachObject2'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h cSn_detachObject3_c" + cSnDetachObject3'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h cSn_detachAllObjects_c" + cSnDetachAllObjects'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h cSn_isInSceneGraph_c" + cSnIsInSceneGraph'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h cSn__notifyRootNode_c" + cSnNotifyRootNode'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h cSn__update_c" + cSnUpdate'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h cSn__updateBounds_c" + cSnUpdateBounds'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h cSn_getCreator_c" + cSnGetCreator'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h cSn_removeAndDestroyChild_c" + cSnRemoveAndDestroyChild'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h cSn_removeAndDestroyChild2_c" + cSnRemoveAndDestroyChild2'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h cSn_removeAndDestroyAllChildren_c" + cSnRemoveAndDestroyAllChildren'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h cSn_showBoundingBox_c" + cSnShowBoundingBox'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h cSn_hideBoundingBox_c" + cSnHideBoundingBox'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h cSn_getShowBoundingBox_c" + cSnGetShowBoundingBox'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h cSn_createChildSceneNode_c" + cSnCreateChildSceneNode'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> ((QuaternionPtr) -> ((HG3DClassPtr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h cSn_createChildSceneNode2_c" + cSnCreateChildSceneNode2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Vector3Ptr) -> ((QuaternionPtr) -> ((HG3DClassPtr) -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h cSn_setFixedYawAxis_c" + cSnSetFixedYawAxis'_ :: ((HG3DClassPtr) -> (CInt -> ((Vector3Ptr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h cSn_yaw_c" + cSnYaw'_ :: ((HG3DClassPtr) -> ((RadianPtr) -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h cSn_setDirection_c" + cSnSetDirection'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (CInt -> ((Vector3Ptr) -> (IO ()))))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h cSn_setDirection2_c" + cSnSetDirection2'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (CInt -> ((Vector3Ptr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h cSn_lookAt_c" + cSnLookAt'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (CInt -> ((Vector3Ptr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h cSn_setAutoTracking_c" + cSnSetAutoTracking'_ :: ((HG3DClassPtr) -> (CInt -> ((HG3DClassPtr) -> ((Vector3Ptr) -> ((Vector3Ptr) -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h cSn_getAutoTrackTarget_c" + cSnGetAutoTrackTarget'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h cSn_getAutoTrackOffset_c" + cSnGetAutoTrackOffset'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h cSn_getAutoTrackLocalDirection_c" + cSnGetAutoTrackLocalDirection'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h cSn__autoTrack_c" + cSnAutoTrack'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h cSn_getParentSceneNode_c" + cSnGetParentSceneNode'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h cSn_setVisible_c" + cSnSetVisible'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h cSn_flipVisibility_c" + cSnFlipVisibility'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h cSn_setDebugDisplayEnabled_c" + cSnSetDebugDisplayEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (IO ()))))
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassShadowCameraSetup.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassShadowCameraSetup.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreShadowCameraSetup.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassShadowCameraSetup where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassShadowCameraSetup.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassShadowCameraSetup.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassShadowCameraSetup.chs" #-} + +
@@ -0,0 +1,77 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassSimpleRenderable.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassSimpleRenderable.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSimpleRenderable.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassSimpleRenderable where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassSimpleRenderable.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassSimpleRenderable.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassSimpleRenderable.chs" #-} + + +cSrGetMovableType :: HG3DClass -> IO (String) +cSrGetMovableType a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cSrGetMovableType'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassSimpleRenderable.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSimpleRenderable.chs.h cSr_getMovableType_c" + cSrGetMovableType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ())))
@@ -0,0 +1,377 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassSkeleton.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSkeleton.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassSkeleton where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} +import HGamer3D.Bindings.Ogre.EnumSkeletonAnimationBlendMode +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} + + +cSCreateBone :: HG3DClass -> IO (HG3DClass) +cSCreateBone a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSCreateBone'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 63 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} +; +cSCreateBone2 :: HG3DClass -> Int -> IO (HG3DClass) +cSCreateBone2 a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cSCreateBone2'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 68 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} +; +cSCreateBone3 :: HG3DClass -> String -> IO (HG3DClass) +cSCreateBone3 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSCreateBone3'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 73 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} +; +cSCreateBone4 :: HG3DClass -> String -> Int -> IO (HG3DClass) +cSCreateBone4 a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = fromIntegral a3} in + alloca $ \a4' -> + cSCreateBone4'_ a1' a2' a3' a4' >>= \res -> + peek a4'>>= \a4'' -> + return (a4'') +{-# LINE 79 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} +; +cSGetNumBones :: HG3DClass -> IO (Int) +cSGetNumBones a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSGetNumBones'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 83 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} +; +cSGetRootBone :: HG3DClass -> IO (HG3DClass) +cSGetRootBone a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSGetRootBone'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 87 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} +; +cSGetBone :: HG3DClass -> Int -> IO (HG3DClass) +cSGetBone a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cSGetBone'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 92 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} +; +cSGetBone2 :: HG3DClass -> String -> IO (HG3DClass) +cSGetBone2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSGetBone2'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 97 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} +; +cSHasBone :: HG3DClass -> String -> IO (Bool) +cSHasBone a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSHasBone'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 102 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} +; +cSSetBindingPose :: HG3DClass -> IO () +cSSetBindingPose a1 = + withHG3DClass a1 $ \a1' -> + cSSetBindingPose'_ a1' >>= \res -> + return () +{-# LINE 105 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} +; +cSReset :: HG3DClass -> Bool -> IO () +cSReset a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cSReset'_ a1' a2' >>= \res -> + return () +{-# LINE 109 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} +; +cSCreateAnimation :: HG3DClass -> String -> Float -> IO (HG3DClass) +cSCreateAnimation a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = realToFrac a3} in + alloca $ \a4' -> + cSCreateAnimation'_ a1' a2' a3' a4' >>= \res -> + peek a4'>>= \a4'' -> + return (a4'') +{-# LINE 115 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} +; +cSHasAnimation :: HG3DClass -> String -> IO (Bool) +cSHasAnimation a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSHasAnimation'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 120 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} +; +cSRemoveAnimation :: HG3DClass -> String -> IO () +cSRemoveAnimation a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cSRemoveAnimation'_ a1' a2' >>= \res -> + return () +{-# LINE 124 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} +; +cSGetNumAnimations :: HG3DClass -> IO (Int) +cSGetNumAnimations a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSGetNumAnimations'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 128 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} +; +cSGetAnimation2 :: HG3DClass -> Int -> IO (HG3DClass) +cSGetAnimation2 a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cSGetAnimation2'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 133 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} +; +cSGetBlendMode :: HG3DClass -> IO (EnumSkeletonAnimationBlendMode) +cSGetBlendMode a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSGetBlendMode'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 137 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} +; +cSSetBlendMode :: HG3DClass -> EnumSkeletonAnimationBlendMode -> IO () +cSSetBlendMode a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cSSetBlendMode'_ a1' a2' >>= \res -> + return () +{-# LINE 141 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} +; +cSUpdateTransforms :: HG3DClass -> IO () +cSUpdateTransforms a1 = + withHG3DClass a1 $ \a1' -> + cSUpdateTransforms'_ a1' >>= \res -> + return () +{-# LINE 144 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} +; +cSOptimiseAllAnimations :: HG3DClass -> Bool -> IO () +cSOptimiseAllAnimations a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cSOptimiseAllAnimations'_ a1' a2' >>= \res -> + return () +{-# LINE 148 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} +; +cSAddLinkedSkeletonAnimationSource :: HG3DClass -> String -> Float -> IO () +cSAddLinkedSkeletonAnimationSource a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = realToFrac a3} in + cSAddLinkedSkeletonAnimationSource'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 153 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} +; +cSRemoveAllLinkedSkeletonAnimationSources :: HG3DClass -> IO () +cSRemoveAllLinkedSkeletonAnimationSources a1 = + withHG3DClass a1 $ \a1' -> + cSRemoveAllLinkedSkeletonAnimationSources'_ a1' >>= \res -> + return () +{-# LINE 156 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} +; +cSNotifyManualBonesDirty :: HG3DClass -> IO () +cSNotifyManualBonesDirty a1 = + withHG3DClass a1 $ \a1' -> + cSNotifyManualBonesDirty'_ a1' >>= \res -> + return () +{-# LINE 159 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} +; +cSNotifyManualBoneStateChange :: HG3DClass -> HG3DClass -> IO () +cSNotifyManualBoneStateChange a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cSNotifyManualBoneStateChange'_ a1' a2' >>= \res -> + return () +{-# LINE 163 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} +; +cSGetManualBonesDirty :: HG3DClass -> IO (Bool) +cSGetManualBonesDirty a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSGetManualBonesDirty'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 167 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} +; +cSHasManualBones :: HG3DClass -> IO (Bool) +cSHasManualBones a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSHasManualBones'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 171 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_createBone_c" + cSCreateBone'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_createBone2_c" + cSCreateBone2'_ :: ((HG3DClassPtr) -> (CUInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_createBone3_c" + cSCreateBone3'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_createBone4_c" + cSCreateBone4'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CUInt -> ((HG3DClassPtr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_getNumBones_c" + cSGetNumBones'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_getRootBone_c" + cSGetRootBone'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_getBone_c" + cSGetBone'_ :: ((HG3DClassPtr) -> (CUInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_getBone2_c" + cSGetBone2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_hasBone_c" + cSHasBone'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_setBindingPose_c" + cSSetBindingPose'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_reset_c" + cSReset'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_createAnimation_c" + cSCreateAnimation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CFloat -> ((HG3DClassPtr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_hasAnimation_c" + cSHasAnimation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_removeAnimation_c" + cSRemoveAnimation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_getNumAnimations_c" + cSGetNumAnimations'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_getAnimation2_c" + cSGetAnimation2'_ :: ((HG3DClassPtr) -> (CUInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_getBlendMode_c" + cSGetBlendMode'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_setBlendMode_c" + cSSetBlendMode'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS__updateTransforms_c" + cSUpdateTransforms'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_optimiseAllAnimations_c" + cSOptimiseAllAnimations'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_addLinkedSkeletonAnimationSource_c" + cSAddLinkedSkeletonAnimationSource'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CFloat -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_removeAllLinkedSkeletonAnimationSources_c" + cSRemoveAllLinkedSkeletonAnimationSources'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS__notifyManualBonesDirty_c" + cSNotifyManualBonesDirty'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS__notifyManualBoneStateChange_c" + cSNotifyManualBoneStateChange'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_getManualBonesDirty_c" + cSGetManualBonesDirty'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_hasManualBones_c" + cSHasManualBones'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
@@ -0,0 +1,149 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassSkeletonInstance.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassSkeletonInstance.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSkeletonInstance.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassSkeletonInstance where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassSkeletonInstance.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassSkeletonInstance.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassSkeletonInstance.chs" #-} + + +cSiGetNumAnimations :: HG3DClass -> IO (Int) +cSiGetNumAnimations a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSiGetNumAnimations'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassSkeletonInstance.chs" #-} +; +cSiGetAnimation :: HG3DClass -> Int -> IO (HG3DClass) +cSiGetAnimation a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cSiGetAnimation'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 67 "HGamer3D\\Bindings\\Ogre\\ClassSkeletonInstance.chs" #-} +; +cSiCreateAnimation :: HG3DClass -> String -> Float -> IO (HG3DClass) +cSiCreateAnimation a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = realToFrac a3} in + alloca $ \a4' -> + cSiCreateAnimation'_ a1' a2' a3' a4' >>= \res -> + peek a4'>>= \a4'' -> + return (a4'') +{-# LINE 73 "HGamer3D\\Bindings\\Ogre\\ClassSkeletonInstance.chs" #-} +; +cSiRemoveAnimation :: HG3DClass -> String -> IO () +cSiRemoveAnimation a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cSiRemoveAnimation'_ a1' a2' >>= \res -> + return () +{-# LINE 77 "HGamer3D\\Bindings\\Ogre\\ClassSkeletonInstance.chs" #-} +; +cSiAddLinkedSkeletonAnimationSource :: HG3DClass -> String -> Float -> IO () +cSiAddLinkedSkeletonAnimationSource a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = realToFrac a3} in + cSiAddLinkedSkeletonAnimationSource'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 82 "HGamer3D\\Bindings\\Ogre\\ClassSkeletonInstance.chs" #-} +; +cSiRemoveAllLinkedSkeletonAnimationSources :: HG3DClass -> IO () +cSiRemoveAllLinkedSkeletonAnimationSources a1 = + withHG3DClass a1 $ \a1' -> + cSiRemoveAllLinkedSkeletonAnimationSources'_ a1' >>= \res -> + return () +{-# LINE 85 "HGamer3D\\Bindings\\Ogre\\ClassSkeletonInstance.chs" #-} +; +cSiGetName :: HG3DClass -> IO (String) +cSiGetName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cSiGetName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 89 "HGamer3D\\Bindings\\Ogre\\ClassSkeletonInstance.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeletonInstance.chs.h cSi_getNumAnimations_c" + cSiGetNumAnimations'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeletonInstance.chs.h cSi_getAnimation_c" + cSiGetAnimation'_ :: ((HG3DClassPtr) -> (CUInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeletonInstance.chs.h cSi_createAnimation_c" + cSiCreateAnimation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CFloat -> ((HG3DClassPtr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeletonInstance.chs.h cSi_removeAnimation_c" + cSiRemoveAnimation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeletonInstance.chs.h cSi_addLinkedSkeletonAnimationSource_c" + cSiAddLinkedSkeletonAnimationSource'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CFloat -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeletonInstance.chs.h cSi_removeAllLinkedSkeletonAnimationSources_c" + cSiRemoveAllLinkedSkeletonAnimationSources'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeletonInstance.chs.h cSi_getName_c" + cSiGetName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ())))
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassSkeletonPtr.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassSkeletonPtr.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSkeleton.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassSkeletonPtr where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassSkeletonPtr.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassSkeletonPtr.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassSkeletonPtr.chs" #-} + +
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassSkeletonSerializer.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassSkeletonSerializer.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSkeletonSerializer.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassSkeletonSerializer where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassSkeletonSerializer.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassSkeletonSerializer.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassSkeletonSerializer.chs" #-} + +
@@ -0,0 +1,286 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassStaticGeometry.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreStaticGeometry.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassStaticGeometry where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} +import HGamer3D.Bindings.Ogre.TypeVector3 +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} +import HGamer3D.Bindings.Ogre.TypeQuaternion +{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} + + +cSgGetName :: HG3DClass -> IO (String) +cSgGetName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cSgGetName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 64 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} +; +cSgAddEntity :: HG3DClass -> HG3DClass -> Vector3 -> Quaternion -> Vector3 -> IO () +cSgAddEntity a1 a2 a3 a4 a5 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + withVector3 a3 $ \a3' -> + withQuaternion a4 $ \a4' -> + withVector3 a5 $ \a5' -> + cSgAddEntity'_ a1' a2' a3' a4' a5' >>= \res -> + return () +{-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} +; +cSgBuild :: HG3DClass -> IO () +cSgBuild a1 = + withHG3DClass a1 $ \a1' -> + cSgBuild'_ a1' >>= \res -> + return () +{-# LINE 74 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} +; +cSgDestroy :: HG3DClass -> IO () +cSgDestroy a1 = + withHG3DClass a1 $ \a1' -> + cSgDestroy'_ a1' >>= \res -> + return () +{-# LINE 77 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} +; +cSgReset :: HG3DClass -> IO () +cSgReset a1 = + withHG3DClass a1 $ \a1' -> + cSgReset'_ a1' >>= \res -> + return () +{-# LINE 80 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} +; +cSgSetRenderingDistance :: HG3DClass -> Float -> IO () +cSgSetRenderingDistance a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cSgSetRenderingDistance'_ a1' a2' >>= \res -> + return () +{-# LINE 84 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} +; +cSgGetRenderingDistance :: HG3DClass -> IO (Float) +cSgGetRenderingDistance a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSgGetRenderingDistance'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 88 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} +; +cSgGetSquaredRenderingDistance :: HG3DClass -> IO (Float) +cSgGetSquaredRenderingDistance a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSgGetSquaredRenderingDistance'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 92 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} +; +cSgSetVisible :: HG3DClass -> Bool -> IO () +cSgSetVisible a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cSgSetVisible'_ a1' a2' >>= \res -> + return () +{-# LINE 96 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} +; +cSgIsVisible :: HG3DClass -> IO (Bool) +cSgIsVisible a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSgIsVisible'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 100 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} +; +cSgSetCastShadows :: HG3DClass -> Bool -> IO () +cSgSetCastShadows a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cSgSetCastShadows'_ a1' a2' >>= \res -> + return () +{-# LINE 104 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} +; +cSgGetCastShadows :: HG3DClass -> IO (Bool) +cSgGetCastShadows a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSgGetCastShadows'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 108 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} +; +cSgSetRegionDimensions :: HG3DClass -> Vector3 -> IO () +cSgSetRegionDimensions a1 a2 = + withHG3DClass a1 $ \a1' -> + withVector3 a2 $ \a2' -> + cSgSetRegionDimensions'_ a1' a2' >>= \res -> + return () +{-# LINE 112 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} +; +cSgGetRegionDimensions :: HG3DClass -> IO (Vector3) +cSgGetRegionDimensions a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSgGetRegionDimensions'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 116 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} +; +cSgSetOrigin :: HG3DClass -> Vector3 -> IO () +cSgSetOrigin a1 a2 = + withHG3DClass a1 $ \a1' -> + withVector3 a2 $ \a2' -> + cSgSetOrigin'_ a1' a2' >>= \res -> + return () +{-# LINE 120 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} +; +cSgGetOrigin :: HG3DClass -> IO (Vector3) +cSgGetOrigin a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSgGetOrigin'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 124 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} +; +cSgSetVisibilityFlags :: HG3DClass -> Int -> IO () +cSgSetVisibilityFlags a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cSgSetVisibilityFlags'_ a1' a2' >>= \res -> + return () +{-# LINE 128 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} +; +cSgGetVisibilityFlags :: HG3DClass -> IO (Int) +cSgGetVisibilityFlags a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSgGetVisibilityFlags'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 132 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} +; +cSgDump :: HG3DClass -> String -> IO () +cSgDump a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cSgDump'_ a1' a2' >>= \res -> + return () +{-# LINE 136 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_getName_c" + cSgGetName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_addEntity_c" + cSgAddEntity'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((Vector3Ptr) -> ((QuaternionPtr) -> ((Vector3Ptr) -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_build_c" + cSgBuild'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_destroy_c" + cSgDestroy'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_reset_c" + cSgReset'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_setRenderingDistance_c" + cSgSetRenderingDistance'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_getRenderingDistance_c" + cSgGetRenderingDistance'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_getSquaredRenderingDistance_c" + cSgGetSquaredRenderingDistance'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_setVisible_c" + cSgSetVisible'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_isVisible_c" + cSgIsVisible'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_setCastShadows_c" + cSgSetCastShadows'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_getCastShadows_c" + cSgGetCastShadows'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_setRegionDimensions_c" + cSgSetRegionDimensions'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_getRegionDimensions_c" + cSgGetRegionDimensions'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_setOrigin_c" + cSgSetOrigin'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_getOrigin_c" + cSgGetOrigin'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_setVisibilityFlags_c" + cSgSetVisibilityFlags'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_getVisibilityFlags_c" + cSgGetVisibilityFlags'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_dump_c" + cSgDump'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ())))
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassStringConverter.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassStringConverter.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreStringConverter.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassStringConverter where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassStringConverter.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassStringConverter.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassStringConverter.chs" #-} + +
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassStringUtil.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassStringUtil.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreString.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassStringUtil where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassStringUtil.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassStringUtil.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassStringUtil.chs" #-} + +
@@ -0,0 +1,239 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassSubEntity.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSubEntity.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassSubEntity where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} + + +cSeGetMaterialName :: HG3DClass -> IO (String) +cSeGetMaterialName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cSeGetMaterialName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} +; +cSeSetMaterialName :: HG3DClass -> String -> String -> IO () +cSeSetMaterialName a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + cSeSetMaterialName'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 67 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} +; +cSeSetVisible :: HG3DClass -> Bool -> IO () +cSeSetVisible a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cSeSetVisible'_ a1' a2' >>= \res -> + return () +{-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} +; +cSeIsVisible :: HG3DClass -> IO (Bool) +cSeIsVisible a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSeIsVisible'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 75 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} +; +cSeGetSubMesh :: HG3DClass -> IO (HG3DClass) +cSeGetSubMesh a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSeGetSubMesh'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 79 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} +; +cSeGetParent :: HG3DClass -> IO (HG3DClass) +cSeGetParent a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSeGetParent'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 83 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} +; +cSeGetTechnique :: HG3DClass -> IO (HG3DClass) +cSeGetTechnique a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSeGetTechnique'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 87 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} +; +cSeGetNumWorldTransforms :: HG3DClass -> IO (Int) +cSeGetNumWorldTransforms a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSeGetNumWorldTransforms'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 91 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} +; +cSeGetCastsShadows :: HG3DClass -> IO (Bool) +cSeGetCastsShadows a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSeGetCastsShadows'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 95 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} +; +cSeGetSkelAnimTempBufferInfo :: HG3DClass -> IO (HG3DClass) +cSeGetSkelAnimTempBufferInfo a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSeGetSkelAnimTempBufferInfo'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 99 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} +; +cSeGetVertexAnimTempBufferInfo :: HG3DClass -> IO (HG3DClass) +cSeGetVertexAnimTempBufferInfo a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSeGetVertexAnimTempBufferInfo'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 103 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} +; +cSeMarkBuffersUnusedForAnimation :: HG3DClass -> IO () +cSeMarkBuffersUnusedForAnimation a1 = + withHG3DClass a1 $ \a1' -> + cSeMarkBuffersUnusedForAnimation'_ a1' >>= \res -> + return () +{-# LINE 106 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} +; +cSeMarkBuffersUsedForAnimation :: HG3DClass -> IO () +cSeMarkBuffersUsedForAnimation a1 = + withHG3DClass a1 $ \a1' -> + cSeMarkBuffersUsedForAnimation'_ a1' >>= \res -> + return () +{-# LINE 109 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} +; +cSeGetBuffersMarkedForAnimation :: HG3DClass -> IO (Bool) +cSeGetBuffersMarkedForAnimation a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSeGetBuffersMarkedForAnimation'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 113 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} +; +cSeRestoreBuffersForUnusedAnimation :: HG3DClass -> Bool -> IO () +cSeRestoreBuffersForUnusedAnimation a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cSeRestoreBuffersForUnusedAnimation'_ a1' a2' >>= \res -> + return () +{-# LINE 117 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs.h cSe_getMaterialName_c" + cSeGetMaterialName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs.h cSe_setMaterialName_c" + cSeSetMaterialName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs.h cSe_setVisible_c" + cSeSetVisible'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs.h cSe_isVisible_c" + cSeIsVisible'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs.h cSe_getSubMesh_c" + cSeGetSubMesh'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs.h cSe_getParent_c" + cSeGetParent'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs.h cSe_getTechnique_c" + cSeGetTechnique'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs.h cSe_getNumWorldTransforms_c" + cSeGetNumWorldTransforms'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs.h cSe_getCastsShadows_c" + cSeGetCastsShadows'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs.h cSe__getSkelAnimTempBufferInfo_c" + cSeGetSkelAnimTempBufferInfo'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs.h cSe__getVertexAnimTempBufferInfo_c" + cSeGetVertexAnimTempBufferInfo'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs.h cSe__markBuffersUnusedForAnimation_c" + cSeMarkBuffersUnusedForAnimation'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs.h cSe__markBuffersUsedForAnimation_c" + cSeMarkBuffersUsedForAnimation'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs.h cSe__getBuffersMarkedForAnimation_c" + cSeGetBuffersMarkedForAnimation'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs.h cSe__restoreBuffersForUnusedAnimation_c" + cSeRestoreBuffersForUnusedAnimation'_ :: ((HG3DClassPtr) -> (CInt -> (IO ())))
@@ -0,0 +1,203 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassSubMesh.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassSubMesh.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSubMesh.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassSubMesh where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassSubMesh.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassSubMesh.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassSubMesh.chs" #-} +import HGamer3D.Bindings.Ogre.EnumVertexAnimationType +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassSubMesh.chs" #-} + + +cSumSetMaterialName :: HG3DClass -> String -> String -> IO () +cSumSetMaterialName a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + cSumSetMaterialName'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 64 "HGamer3D\\Bindings\\Ogre\\ClassSubMesh.chs" #-} +; +cSumIsMatInitialised :: HG3DClass -> IO (Bool) +cSumIsMatInitialised a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSumIsMatInitialised'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 68 "HGamer3D\\Bindings\\Ogre\\ClassSubMesh.chs" #-} +; +cSumClearBoneAssignments :: HG3DClass -> IO () +cSumClearBoneAssignments a1 = + withHG3DClass a1 $ \a1' -> + cSumClearBoneAssignments'_ a1' >>= \res -> + return () +{-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassSubMesh.chs" #-} +; +cSumCompileBoneAssignments :: HG3DClass -> IO () +cSumCompileBoneAssignments a1 = + withHG3DClass a1 $ \a1' -> + cSumCompileBoneAssignments'_ a1' >>= \res -> + return () +{-# LINE 74 "HGamer3D\\Bindings\\Ogre\\ClassSubMesh.chs" #-} +; +cSumAddTextureAlias :: HG3DClass -> String -> String -> IO () +cSumAddTextureAlias a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + cSumAddTextureAlias'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 79 "HGamer3D\\Bindings\\Ogre\\ClassSubMesh.chs" #-} +; +cSumRemoveTextureAlias :: HG3DClass -> String -> IO () +cSumRemoveTextureAlias a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cSumRemoveTextureAlias'_ a1' a2' >>= \res -> + return () +{-# LINE 83 "HGamer3D\\Bindings\\Ogre\\ClassSubMesh.chs" #-} +; +cSumRemoveAllTextureAliases :: HG3DClass -> IO () +cSumRemoveAllTextureAliases a1 = + withHG3DClass a1 $ \a1' -> + cSumRemoveAllTextureAliases'_ a1' >>= \res -> + return () +{-# LINE 86 "HGamer3D\\Bindings\\Ogre\\ClassSubMesh.chs" #-} +; +cSumHasTextureAliases :: HG3DClass -> IO (Bool) +cSumHasTextureAliases a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSumHasTextureAliases'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 90 "HGamer3D\\Bindings\\Ogre\\ClassSubMesh.chs" #-} +; +cSumGetTextureAliasCount :: HG3DClass -> IO (Int) +cSumGetTextureAliasCount a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSumGetTextureAliasCount'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 94 "HGamer3D\\Bindings\\Ogre\\ClassSubMesh.chs" #-} +; +cSumUpdateMaterialUsingTextureAliases :: HG3DClass -> IO (Bool) +cSumUpdateMaterialUsingTextureAliases a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSumUpdateMaterialUsingTextureAliases'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 98 "HGamer3D\\Bindings\\Ogre\\ClassSubMesh.chs" #-} +; +cSumGetVertexAnimationType :: HG3DClass -> IO (EnumVertexAnimationType) +cSumGetVertexAnimationType a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSumGetVertexAnimationType'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 102 "HGamer3D\\Bindings\\Ogre\\ClassSubMesh.chs" #-} +; +cSumGenerateExtremes :: HG3DClass -> Int -> IO () +cSumGenerateExtremes a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cSumGenerateExtremes'_ a1' a2' >>= \res -> + return () +{-# LINE 106 "HGamer3D\\Bindings\\Ogre\\ClassSubMesh.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubMesh.chs.h cSum_setMaterialName_c" + cSumSetMaterialName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubMesh.chs.h cSum_isMatInitialised_c" + cSumIsMatInitialised'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubMesh.chs.h cSum_clearBoneAssignments_c" + cSumClearBoneAssignments'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubMesh.chs.h cSum__compileBoneAssignments_c" + cSumCompileBoneAssignments'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubMesh.chs.h cSum_addTextureAlias_c" + cSumAddTextureAlias'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubMesh.chs.h cSum_removeTextureAlias_c" + cSumRemoveTextureAlias'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubMesh.chs.h cSum_removeAllTextureAliases_c" + cSumRemoveAllTextureAliases'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubMesh.chs.h cSum_hasTextureAliases_c" + cSumHasTextureAliases'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubMesh.chs.h cSum_getTextureAliasCount_c" + cSumGetTextureAliasCount'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubMesh.chs.h cSum_updateMaterialUsingTextureAliases_c" + cSumUpdateMaterialUsingTextureAliases'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubMesh.chs.h cSum_getVertexAnimationType_c" + cSumGetVertexAnimationType'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubMesh.chs.h cSum_generateExtremes_c" + cSumGenerateExtremes'_ :: ((HG3DClassPtr) -> (CInt -> (IO ())))
@@ -0,0 +1,747 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassTechnique.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreTechnique.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassTechnique where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +import HGamer3D.Bindings.Ogre.TypeColourValue +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +import HGamer3D.Bindings.Ogre.EnumCompareFunction +{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +import HGamer3D.Bindings.Ogre.EnumCullingMode +{-# LINE 59 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +import HGamer3D.Bindings.Ogre.EnumManualCullingMode +{-# LINE 60 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +import HGamer3D.Bindings.Ogre.EnumShadeOptions +{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +import HGamer3D.Bindings.Ogre.EnumFogMode +{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +import HGamer3D.Bindings.Ogre.EnumTextureFilterOptions +{-# LINE 63 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +import HGamer3D.Bindings.Ogre.EnumGPUVendor +{-# LINE 64 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +import HGamer3D.Bindings.Ogre.EnumIncludeOrExclude +{-# LINE 65 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} + + +cTIsSupported :: HG3DClass -> IO (Bool) +cTIsSupported a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTIsSupported'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTCompile :: HG3DClass -> Bool -> IO (String) +cTCompile a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + alloc64k $ \a3' -> + cTCompile'_ a1' a2' a3' >>= \res -> + peekCString a3'>>= \a3'' -> + return (a3'') +{-# LINE 76 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTCompileIlluminationPasses :: HG3DClass -> IO () +cTCompileIlluminationPasses a1 = + withHG3DClass a1 $ \a1' -> + cTCompileIlluminationPasses'_ a1' >>= \res -> + return () +{-# LINE 79 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTCreatePass :: HG3DClass -> IO (HG3DClass) +cTCreatePass a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTCreatePass'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 83 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTGetPass :: HG3DClass -> Int -> IO (HG3DClass) +cTGetPass a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cTGetPass'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 88 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTGetPass2 :: HG3DClass -> String -> IO (HG3DClass) +cTGetPass2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cTGetPass2'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 93 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTGetNumPasses :: HG3DClass -> IO (Int) +cTGetNumPasses a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTGetNumPasses'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 97 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTRemovePass :: HG3DClass -> Int -> IO () +cTRemovePass a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cTRemovePass'_ a1' a2' >>= \res -> + return () +{-# LINE 101 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTRemoveAllPasses :: HG3DClass -> IO () +cTRemoveAllPasses a1 = + withHG3DClass a1 $ \a1' -> + cTRemoveAllPasses'_ a1' >>= \res -> + return () +{-# LINE 104 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTMovePass :: HG3DClass -> Int -> Int -> IO (Bool) +cTMovePass a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + let {a3' = fromIntegral a3} in + alloca $ \a4' -> + cTMovePass'_ a1' a2' a3' a4' >>= \res -> + peekBoolUtil a4'>>= \a4'' -> + return (a4'') +{-# LINE 110 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTGetParent :: HG3DClass -> IO (HG3DClass) +cTGetParent a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTGetParent'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 114 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTGetResourceGroup :: HG3DClass -> IO (String) +cTGetResourceGroup a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cTGetResourceGroup'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 118 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTIsTransparent :: HG3DClass -> IO (Bool) +cTIsTransparent a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTIsTransparent'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 122 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTIsTransparentSortingEnabled :: HG3DClass -> IO (Bool) +cTIsTransparentSortingEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTIsTransparentSortingEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 126 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTIsTransparentSortingForced :: HG3DClass -> IO (Bool) +cTIsTransparentSortingForced a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTIsTransparentSortingForced'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 130 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTPrepare :: HG3DClass -> IO () +cTPrepare a1 = + withHG3DClass a1 $ \a1' -> + cTPrepare'_ a1' >>= \res -> + return () +{-# LINE 133 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTUnprepare :: HG3DClass -> IO () +cTUnprepare a1 = + withHG3DClass a1 $ \a1' -> + cTUnprepare'_ a1' >>= \res -> + return () +{-# LINE 136 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTLoad :: HG3DClass -> IO () +cTLoad a1 = + withHG3DClass a1 $ \a1' -> + cTLoad'_ a1' >>= \res -> + return () +{-# LINE 139 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTUnload :: HG3DClass -> IO () +cTUnload a1 = + withHG3DClass a1 $ \a1' -> + cTUnload'_ a1' >>= \res -> + return () +{-# LINE 142 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTIsLoaded :: HG3DClass -> IO (Bool) +cTIsLoaded a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTIsLoaded'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 146 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTNotifyNeedsRecompile :: HG3DClass -> IO () +cTNotifyNeedsRecompile a1 = + withHG3DClass a1 $ \a1' -> + cTNotifyNeedsRecompile'_ a1' >>= \res -> + return () +{-# LINE 149 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTSetPointSize :: HG3DClass -> Float -> IO () +cTSetPointSize a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cTSetPointSize'_ a1' a2' >>= \res -> + return () +{-# LINE 153 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTSetAmbient :: HG3DClass -> Float -> Float -> Float -> IO () +cTSetAmbient a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + cTSetAmbient'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 159 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTSetAmbient2 :: HG3DClass -> ColourValue -> IO () +cTSetAmbient2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withColourValue a2 $ \a2' -> + cTSetAmbient2'_ a1' a2' >>= \res -> + return () +{-# LINE 163 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTSetDiffuse :: HG3DClass -> Float -> Float -> Float -> Float -> IO () +cTSetDiffuse a1 a2 a3 a4 a5 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + let {a5' = realToFrac a5} in + cTSetDiffuse'_ a1' a2' a3' a4' a5' >>= \res -> + return () +{-# LINE 170 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTSetDiffuse2 :: HG3DClass -> ColourValue -> IO () +cTSetDiffuse2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withColourValue a2 $ \a2' -> + cTSetDiffuse2'_ a1' a2' >>= \res -> + return () +{-# LINE 174 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTSetSpecular :: HG3DClass -> Float -> Float -> Float -> Float -> IO () +cTSetSpecular a1 a2 a3 a4 a5 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + let {a5' = realToFrac a5} in + cTSetSpecular'_ a1' a2' a3' a4' a5' >>= \res -> + return () +{-# LINE 181 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTSetSpecular2 :: HG3DClass -> ColourValue -> IO () +cTSetSpecular2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withColourValue a2 $ \a2' -> + cTSetSpecular2'_ a1' a2' >>= \res -> + return () +{-# LINE 185 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTSetShininess :: HG3DClass -> Float -> IO () +cTSetShininess a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cTSetShininess'_ a1' a2' >>= \res -> + return () +{-# LINE 189 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTSetSelfIllumination :: HG3DClass -> Float -> Float -> Float -> IO () +cTSetSelfIllumination a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + cTSetSelfIllumination'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 195 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTSetSelfIllumination2 :: HG3DClass -> ColourValue -> IO () +cTSetSelfIllumination2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withColourValue a2 $ \a2' -> + cTSetSelfIllumination2'_ a1' a2' >>= \res -> + return () +{-# LINE 199 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTSetDepthCheckEnabled :: HG3DClass -> Bool -> IO () +cTSetDepthCheckEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cTSetDepthCheckEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 203 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTSetDepthWriteEnabled :: HG3DClass -> Bool -> IO () +cTSetDepthWriteEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cTSetDepthWriteEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 207 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTSetDepthFunction :: HG3DClass -> EnumCompareFunction -> IO () +cTSetDepthFunction a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cTSetDepthFunction'_ a1' a2' >>= \res -> + return () +{-# LINE 211 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTSetColourWriteEnabled :: HG3DClass -> Bool -> IO () +cTSetColourWriteEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cTSetColourWriteEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 215 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTSetCullingMode :: HG3DClass -> EnumCullingMode -> IO () +cTSetCullingMode a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cTSetCullingMode'_ a1' a2' >>= \res -> + return () +{-# LINE 219 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTSetManualCullingMode :: HG3DClass -> EnumManualCullingMode -> IO () +cTSetManualCullingMode a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cTSetManualCullingMode'_ a1' a2' >>= \res -> + return () +{-# LINE 223 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTSetLightingEnabled :: HG3DClass -> Bool -> IO () +cTSetLightingEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cTSetLightingEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 227 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTSetShadingMode :: HG3DClass -> EnumShadeOptions -> IO () +cTSetShadingMode a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cTSetShadingMode'_ a1' a2' >>= \res -> + return () +{-# LINE 231 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTSetFog :: HG3DClass -> Bool -> EnumFogMode -> ColourValue -> Float -> Float -> Float -> IO () +cTSetFog a1 a2 a3 a4 a5 a6 a7 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + let {a3' = cIntFromEnum a3} in + withColourValue a4 $ \a4' -> + let {a5' = realToFrac a5} in + let {a6' = realToFrac a6} in + let {a7' = realToFrac a7} in + cTSetFog'_ a1' a2' a3' a4' a5' a6' a7' >>= \res -> + return () +{-# LINE 240 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTSetDepthBias :: HG3DClass -> Float -> Float -> IO () +cTSetDepthBias a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + cTSetDepthBias'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 245 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTSetTextureFiltering :: HG3DClass -> EnumTextureFilterOptions -> IO () +cTSetTextureFiltering a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cTSetTextureFiltering'_ a1' a2' >>= \res -> + return () +{-# LINE 249 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTSetTextureAnisotropy :: HG3DClass -> Int -> IO () +cTSetTextureAnisotropy a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cTSetTextureAnisotropy'_ a1' a2' >>= \res -> + return () +{-# LINE 253 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTSetLodIndex :: HG3DClass -> Int -> IO () +cTSetLodIndex a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cTSetLodIndex'_ a1' a2' >>= \res -> + return () +{-# LINE 257 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTGetLodIndex :: HG3DClass -> IO (Int) +cTGetLodIndex a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTGetLodIndex'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 261 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTSetSchemeName :: HG3DClass -> String -> IO () +cTSetSchemeName a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cTSetSchemeName'_ a1' a2' >>= \res -> + return () +{-# LINE 265 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTGetSchemeName :: HG3DClass -> IO (String) +cTGetSchemeName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cTGetSchemeName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 269 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTGetSchemeIndex :: HG3DClass -> IO (Int) +cTGetSchemeIndex a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTGetSchemeIndex'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 273 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTIsDepthWriteEnabled :: HG3DClass -> IO (Bool) +cTIsDepthWriteEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTIsDepthWriteEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 277 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTIsDepthCheckEnabled :: HG3DClass -> IO (Bool) +cTIsDepthCheckEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTIsDepthCheckEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 281 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTHasColourWriteDisabled :: HG3DClass -> IO (Bool) +cTHasColourWriteDisabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTHasColourWriteDisabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 285 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTSetName :: HG3DClass -> String -> IO () +cTSetName a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cTSetName'_ a1' a2' >>= \res -> + return () +{-# LINE 289 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTGetName :: HG3DClass -> IO (String) +cTGetName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cTGetName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 293 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTAddGPUVendorRule :: HG3DClass -> EnumGPUVendor -> EnumIncludeOrExclude -> IO () +cTAddGPUVendorRule a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + let {a3' = cIntFromEnum a3} in + cTAddGPUVendorRule'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 298 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTRemoveGPUVendorRule :: HG3DClass -> EnumGPUVendor -> IO () +cTRemoveGPUVendorRule a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cTRemoveGPUVendorRule'_ a1' a2' >>= \res -> + return () +{-# LINE 302 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTAddGPUDeviceNameRule :: HG3DClass -> String -> EnumIncludeOrExclude -> Bool -> IO () +cTAddGPUDeviceNameRule a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = cIntFromEnum a3} in + let {a4' = fromBool a4} in + cTAddGPUDeviceNameRule'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 308 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; +cTRemoveGPUDeviceNameRule :: HG3DClass -> String -> IO () +cTRemoveGPUDeviceNameRule a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cTRemoveGPUDeviceNameRule'_ a1' a2' >>= \res -> + return () +{-# LINE 312 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_isSupported_c" + cTIsSupported'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT__compile_c" + cTCompile'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CChar) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT__compileIlluminationPasses_c" + cTCompileIlluminationPasses'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_createPass_c" + cTCreatePass'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_getPass_c" + cTGetPass'_ :: ((HG3DClassPtr) -> (CUInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_getPass2_c" + cTGetPass2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_getNumPasses_c" + cTGetNumPasses'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_removePass_c" + cTRemovePass'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_removeAllPasses_c" + cTRemoveAllPasses'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_movePass_c" + cTMovePass'_ :: ((HG3DClassPtr) -> (CUInt -> (CUInt -> ((Ptr CInt) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_getParent_c" + cTGetParent'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_getResourceGroup_c" + cTGetResourceGroup'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_isTransparent_c" + cTIsTransparent'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_isTransparentSortingEnabled_c" + cTIsTransparentSortingEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_isTransparentSortingForced_c" + cTIsTransparentSortingForced'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT__prepare_c" + cTPrepare'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT__unprepare_c" + cTUnprepare'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT__load_c" + cTLoad'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT__unload_c" + cTUnload'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_isLoaded_c" + cTIsLoaded'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT__notifyNeedsRecompile_c" + cTNotifyNeedsRecompile'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setPointSize_c" + cTSetPointSize'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setAmbient_c" + cTSetAmbient'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setAmbient2_c" + cTSetAmbient2'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setDiffuse_c" + cTSetDiffuse'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (CFloat -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setDiffuse2_c" + cTSetDiffuse2'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setSpecular_c" + cTSetSpecular'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (CFloat -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setSpecular2_c" + cTSetSpecular2'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setShininess_c" + cTSetShininess'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setSelfIllumination_c" + cTSetSelfIllumination'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setSelfIllumination2_c" + cTSetSelfIllumination2'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setDepthCheckEnabled_c" + cTSetDepthCheckEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setDepthWriteEnabled_c" + cTSetDepthWriteEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setDepthFunction_c" + cTSetDepthFunction'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setColourWriteEnabled_c" + cTSetColourWriteEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setCullingMode_c" + cTSetCullingMode'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setManualCullingMode_c" + cTSetManualCullingMode'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setLightingEnabled_c" + cTSetLightingEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setShadingMode_c" + cTSetShadingMode'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setFog_c" + cTSetFog'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> ((ColourValuePtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ())))))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setDepthBias_c" + cTSetDepthBias'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setTextureFiltering_c" + cTSetTextureFiltering'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setTextureAnisotropy_c" + cTSetTextureAnisotropy'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setLodIndex_c" + cTSetLodIndex'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_getLodIndex_c" + cTGetLodIndex'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setSchemeName_c" + cTSetSchemeName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_getSchemeName_c" + cTGetSchemeName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT__getSchemeIndex_c" + cTGetSchemeIndex'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_isDepthWriteEnabled_c" + cTIsDepthWriteEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_isDepthCheckEnabled_c" + cTIsDepthCheckEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_hasColourWriteDisabled_c" + cTHasColourWriteDisabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setName_c" + cTSetName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_getName_c" + cTGetName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_addGPUVendorRule_c" + cTAddGPUVendorRule'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_removeGPUVendorRule_c" + cTRemoveGPUVendorRule'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_addGPUDeviceNameRule_c" + cTAddGPUDeviceNameRule'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> (CInt -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_removeGPUDeviceNameRule_c" + cTRemoveGPUDeviceNameRule'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ())))
@@ -0,0 +1,91 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassTempBlendedBufferInfo.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassTempBlendedBufferInfo.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreHardwareBufferManager.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassTempBlendedBufferInfo where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassTempBlendedBufferInfo.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassTempBlendedBufferInfo.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassTempBlendedBufferInfo.chs" #-} + + +cTbbiCheckoutTempCopies :: HG3DClass -> Bool -> Bool -> IO () +cTbbiCheckoutTempCopies a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + let {a3' = fromBool a3} in + cTbbiCheckoutTempCopies'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 63 "HGamer3D\\Bindings\\Ogre\\ClassTempBlendedBufferInfo.chs" #-} +; +cTbbiBuffersCheckedOut :: HG3DClass -> Bool -> Bool -> IO (Bool) +cTbbiBuffersCheckedOut a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + let {a3' = fromBool a3} in + alloca $ \a4' -> + cTbbiBuffersCheckedOut'_ a1' a2' a3' a4' >>= \res -> + peekBoolUtil a4'>>= \a4'' -> + return (a4'') +{-# LINE 69 "HGamer3D\\Bindings\\Ogre\\ClassTempBlendedBufferInfo.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTempBlendedBufferInfo.chs.h cTbbi_checkoutTempCopies_c" + cTbbiCheckoutTempCopies'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTempBlendedBufferInfo.chs.h cTbbi_buffersCheckedOut_c" + cTbbiBuffersCheckedOut'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> ((Ptr CInt) -> (IO ())))))
@@ -0,0 +1,165 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassTextureManager.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreTextureManager.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassTextureManager where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-} +import HGamer3D.Bindings.Ogre.EnumTextureType +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-} +import HGamer3D.Bindings.Ogre.EnumPixelFormat +{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-} + + +cTmIsFormatSupported :: HG3DClass -> EnumTextureType -> EnumPixelFormat -> Int -> IO (Bool) +cTmIsFormatSupported a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + let {a3' = cIntFromEnum a3} in + let {a4' = fromIntegral a4} in + alloca $ \a5' -> + cTmIsFormatSupported'_ a1' a2' a3' a4' a5' >>= \res -> + peekBoolUtil a5'>>= \a5'' -> + return (a5'') +{-# LINE 67 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-} +; +cTmIsEquivalentFormatSupported :: HG3DClass -> EnumTextureType -> EnumPixelFormat -> Int -> IO (Bool) +cTmIsEquivalentFormatSupported a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + let {a3' = cIntFromEnum a3} in + let {a4' = fromIntegral a4} in + alloca $ \a5' -> + cTmIsEquivalentFormatSupported'_ a1' a2' a3' a4' a5' >>= \res -> + peekBoolUtil a5'>>= \a5'' -> + return (a5'') +{-# LINE 74 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-} +; +cTmGetNativeFormat :: HG3DClass -> EnumTextureType -> EnumPixelFormat -> Int -> IO (EnumPixelFormat) +cTmGetNativeFormat a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + let {a3' = cIntFromEnum a3} in + let {a4' = fromIntegral a4} in + alloca $ \a5' -> + cTmGetNativeFormat'_ a1' a2' a3' a4' a5' >>= \res -> + peekEnumUtil a5'>>= \a5'' -> + return (a5'') +{-# LINE 81 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-} +; +cTmIsHardwareFilteringSupported :: HG3DClass -> EnumTextureType -> EnumPixelFormat -> Int -> Bool -> IO (Bool) +cTmIsHardwareFilteringSupported a1 a2 a3 a4 a5 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + let {a3' = cIntFromEnum a3} in + let {a4' = fromIntegral a4} in + let {a5' = fromBool a5} in + alloca $ \a6' -> + cTmIsHardwareFilteringSupported'_ a1' a2' a3' a4' a5' a6' >>= \res -> + peekBoolUtil a6'>>= \a6'' -> + return (a6'') +{-# LINE 89 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-} +; +cTmSetDefaultNumMipmaps :: HG3DClass -> Int -> IO () +cTmSetDefaultNumMipmaps a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cTmSetDefaultNumMipmaps'_ a1' a2' >>= \res -> + return () +{-# LINE 93 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-} +; +cTmGetDefaultNumMipmaps :: HG3DClass -> IO (Int) +cTmGetDefaultNumMipmaps a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTmGetDefaultNumMipmaps'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 97 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-} +; +-- created constructor function from default constructor +cTmGetSingletonPtr :: IO (HG3DClass) +cTmGetSingletonPtr = + alloca $ \a1' -> + cTmGetSingletonPtr'_ a1' >>= \res -> + peek a1'>>= \a1'' -> + return (a1'') +{-# LINE 101 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs.h cTm_isFormatSupported_c" + cTmIsFormatSupported'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (CInt -> ((Ptr CInt) -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs.h cTm_isEquivalentFormatSupported_c" + cTmIsEquivalentFormatSupported'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (CInt -> ((Ptr CInt) -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs.h cTm_getNativeFormat_c" + cTmGetNativeFormat'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (CInt -> ((Ptr CInt) -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs.h cTm_isHardwareFilteringSupported_c" + cTmIsHardwareFilteringSupported'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (CInt -> (CInt -> ((Ptr CInt) -> (IO ()))))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs.h cTm_setDefaultNumMipmaps_c" + cTmSetDefaultNumMipmaps'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs.h cTm_getDefaultNumMipmaps_c" + cTmGetDefaultNumMipmaps'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs.h cTm_getSingletonPtr_c" + cTmGetSingletonPtr'_ :: ((HG3DClassPtr) -> (IO ()))
@@ -0,0 +1,1051 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassTextureUnitState.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreTextureUnitState.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassTextureUnitState where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +import HGamer3D.Bindings.Ogre.EnumTextureType +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +import HGamer3D.Bindings.Ogre.EnumBindingType +{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +import HGamer3D.Bindings.Ogre.EnumContentType +{-# LINE 59 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +import HGamer3D.Bindings.Ogre.EnumPixelFormat +{-# LINE 60 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +import HGamer3D.Bindings.Ogre.TypeRadian +{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +import HGamer3D.Bindings.Ogre.EnumTextureAddressingMode +{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +import HGamer3D.Bindings.Ogre.TypeColourValue +{-# LINE 63 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +import HGamer3D.Bindings.Ogre.EnumLayerBlendOperationEx +{-# LINE 64 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +import HGamer3D.Bindings.Ogre.EnumLayerBlendSource +{-# LINE 65 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +import HGamer3D.Bindings.Ogre.EnumSceneBlendFactor +{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +import HGamer3D.Bindings.Ogre.EnumEnvMapType +{-# LINE 67 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +import HGamer3D.Bindings.Ogre.EnumTextureFilterOptions +{-# LINE 68 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +import HGamer3D.Bindings.Ogre.EnumFilterType +{-# LINE 69 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +import HGamer3D.Bindings.Ogre.EnumFilterOptions +{-# LINE 70 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} + + +cTusGetTextureName :: HG3DClass -> IO (String) +cTusGetTextureName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cTusGetTextureName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 76 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusSetTextureName :: HG3DClass -> String -> EnumTextureType -> IO () +cTusSetTextureName a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = cIntFromEnum a3} in + cTusSetTextureName'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 81 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusSetCubicTextureName :: HG3DClass -> String -> Bool -> IO () +cTusSetCubicTextureName a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = fromBool a3} in + cTusSetCubicTextureName'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 86 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusSetAnimatedTextureName :: HG3DClass -> String -> Int -> Float -> IO () +cTusSetAnimatedTextureName a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = fromIntegral a3} in + let {a4' = realToFrac a4} in + cTusSetAnimatedTextureName'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 92 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusSetCurrentFrame :: HG3DClass -> Int -> IO () +cTusSetCurrentFrame a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cTusSetCurrentFrame'_ a1' a2' >>= \res -> + return () +{-# LINE 96 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusGetCurrentFrame :: HG3DClass -> IO (Int) +cTusGetCurrentFrame a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTusGetCurrentFrame'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 100 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusGetFrameTextureName :: HG3DClass -> Int -> IO (String) +cTusGetFrameTextureName a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloc64k $ \a3' -> + cTusGetFrameTextureName'_ a1' a2' a3' >>= \res -> + peekCString a3'>>= \a3'' -> + return (a3'') +{-# LINE 105 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusSetFrameTextureName :: HG3DClass -> String -> Int -> IO () +cTusSetFrameTextureName a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = fromIntegral a3} in + cTusSetFrameTextureName'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 110 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusAddFrameTextureName :: HG3DClass -> String -> IO () +cTusAddFrameTextureName a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cTusAddFrameTextureName'_ a1' a2' >>= \res -> + return () +{-# LINE 114 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusDeleteFrameTextureName :: HG3DClass -> Int -> IO () +cTusDeleteFrameTextureName a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cTusDeleteFrameTextureName'_ a1' a2' >>= \res -> + return () +{-# LINE 118 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusGetNumFrames :: HG3DClass -> IO (Int) +cTusGetNumFrames a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTusGetNumFrames'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 122 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusSetBindingType :: HG3DClass -> EnumBindingType -> IO () +cTusSetBindingType a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cTusSetBindingType'_ a1' a2' >>= \res -> + return () +{-# LINE 126 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusGetBindingType :: HG3DClass -> IO (EnumBindingType) +cTusGetBindingType a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTusGetBindingType'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 130 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusSetContentType :: HG3DClass -> EnumContentType -> IO () +cTusSetContentType a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cTusSetContentType'_ a1' a2' >>= \res -> + return () +{-# LINE 134 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusGetContentType :: HG3DClass -> IO (EnumContentType) +cTusGetContentType a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTusGetContentType'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 138 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusIsCubic :: HG3DClass -> IO (Bool) +cTusIsCubic a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTusIsCubic'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 142 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusIs3D :: HG3DClass -> IO (Bool) +cTusIs3D a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTusIs3D'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 146 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusGetTextureType :: HG3DClass -> IO (EnumTextureType) +cTusGetTextureType a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTusGetTextureType'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 150 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusSetDesiredFormat :: HG3DClass -> EnumPixelFormat -> IO () +cTusSetDesiredFormat a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cTusSetDesiredFormat'_ a1' a2' >>= \res -> + return () +{-# LINE 154 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusGetDesiredFormat :: HG3DClass -> IO (EnumPixelFormat) +cTusGetDesiredFormat a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTusGetDesiredFormat'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 158 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusSetNumMipmaps :: HG3DClass -> Int -> IO () +cTusSetNumMipmaps a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cTusSetNumMipmaps'_ a1' a2' >>= \res -> + return () +{-# LINE 162 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusGetNumMipmaps :: HG3DClass -> IO (Int) +cTusGetNumMipmaps a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTusGetNumMipmaps'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 166 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusSetIsAlpha :: HG3DClass -> Bool -> IO () +cTusSetIsAlpha a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cTusSetIsAlpha'_ a1' a2' >>= \res -> + return () +{-# LINE 170 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusGetIsAlpha :: HG3DClass -> IO (Bool) +cTusGetIsAlpha a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTusGetIsAlpha'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 174 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusSetHardwareGammaEnabled :: HG3DClass -> Bool -> IO () +cTusSetHardwareGammaEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cTusSetHardwareGammaEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 178 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusIsHardwareGammaEnabled :: HG3DClass -> IO (Bool) +cTusIsHardwareGammaEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTusIsHardwareGammaEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 182 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusGetTextureCoordSet :: HG3DClass -> IO (Int) +cTusGetTextureCoordSet a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTusGetTextureCoordSet'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 186 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusSetTextureCoordSet :: HG3DClass -> Int -> IO () +cTusSetTextureCoordSet a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cTusSetTextureCoordSet'_ a1' a2' >>= \res -> + return () +{-# LINE 190 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusSetTextureScroll :: HG3DClass -> Float -> Float -> IO () +cTusSetTextureScroll a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + cTusSetTextureScroll'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 195 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusSetTextureUScroll :: HG3DClass -> Float -> IO () +cTusSetTextureUScroll a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cTusSetTextureUScroll'_ a1' a2' >>= \res -> + return () +{-# LINE 199 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusGetTextureUScroll :: HG3DClass -> IO (Float) +cTusGetTextureUScroll a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTusGetTextureUScroll'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 203 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusSetTextureVScroll :: HG3DClass -> Float -> IO () +cTusSetTextureVScroll a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cTusSetTextureVScroll'_ a1' a2' >>= \res -> + return () +{-# LINE 207 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusGetTextureVScroll :: HG3DClass -> IO (Float) +cTusGetTextureVScroll a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTusGetTextureVScroll'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 211 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusSetTextureUScale :: HG3DClass -> Float -> IO () +cTusSetTextureUScale a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cTusSetTextureUScale'_ a1' a2' >>= \res -> + return () +{-# LINE 215 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusGetTextureUScale :: HG3DClass -> IO (Float) +cTusGetTextureUScale a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTusGetTextureUScale'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 219 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusSetTextureVScale :: HG3DClass -> Float -> IO () +cTusSetTextureVScale a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cTusSetTextureVScale'_ a1' a2' >>= \res -> + return () +{-# LINE 223 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusGetTextureVScale :: HG3DClass -> IO (Float) +cTusGetTextureVScale a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTusGetTextureVScale'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 227 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusSetTextureScale :: HG3DClass -> Float -> Float -> IO () +cTusSetTextureScale a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + cTusSetTextureScale'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 232 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusSetTextureRotate :: HG3DClass -> Radian -> IO () +cTusSetTextureRotate a1 a2 = + withHG3DClass a1 $ \a1' -> + withRadian a2 $ \a2' -> + cTusSetTextureRotate'_ a1' a2' >>= \res -> + return () +{-# LINE 236 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusGetTextureRotate :: HG3DClass -> IO (Radian) +cTusGetTextureRotate a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTusGetTextureRotate'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 240 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusSetTextureAddressingMode :: HG3DClass -> EnumTextureAddressingMode -> IO () +cTusSetTextureAddressingMode a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cTusSetTextureAddressingMode'_ a1' a2' >>= \res -> + return () +{-# LINE 244 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusSetTextureAddressingMode2 :: HG3DClass -> EnumTextureAddressingMode -> EnumTextureAddressingMode -> EnumTextureAddressingMode -> IO () +cTusSetTextureAddressingMode2 a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + let {a3' = cIntFromEnum a3} in + let {a4' = cIntFromEnum a4} in + cTusSetTextureAddressingMode2'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 250 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusSetTextureBorderColour :: HG3DClass -> ColourValue -> IO () +cTusSetTextureBorderColour a1 a2 = + withHG3DClass a1 $ \a1' -> + withColourValue a2 $ \a2' -> + cTusSetTextureBorderColour'_ a1' a2' >>= \res -> + return () +{-# LINE 254 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusGetTextureBorderColour :: HG3DClass -> IO (ColourValue) +cTusGetTextureBorderColour a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTusGetTextureBorderColour'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 258 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusSetColourOperationEx :: HG3DClass -> EnumLayerBlendOperationEx -> EnumLayerBlendSource -> EnumLayerBlendSource -> ColourValue -> ColourValue -> Float -> IO () +cTusSetColourOperationEx a1 a2 a3 a4 a5 a6 a7 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + let {a3' = cIntFromEnum a3} in + let {a4' = cIntFromEnum a4} in + withColourValue a5 $ \a5' -> + withColourValue a6 $ \a6' -> + let {a7' = realToFrac a7} in + cTusSetColourOperationEx'_ a1' a2' a3' a4' a5' a6' a7' >>= \res -> + return () +{-# LINE 267 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusGetColourBlendFallbackSrc :: HG3DClass -> IO (EnumSceneBlendFactor) +cTusGetColourBlendFallbackSrc a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTusGetColourBlendFallbackSrc'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 271 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusGetColourBlendFallbackDest :: HG3DClass -> IO (EnumSceneBlendFactor) +cTusGetColourBlendFallbackDest a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTusGetColourBlendFallbackDest'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 275 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusSetAlphaOperation :: HG3DClass -> EnumLayerBlendOperationEx -> EnumLayerBlendSource -> EnumLayerBlendSource -> Float -> Float -> Float -> IO () +cTusSetAlphaOperation a1 a2 a3 a4 a5 a6 a7 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + let {a3' = cIntFromEnum a3} in + let {a4' = cIntFromEnum a4} in + let {a5' = realToFrac a5} in + let {a6' = realToFrac a6} in + let {a7' = realToFrac a7} in + cTusSetAlphaOperation'_ a1' a2' a3' a4' a5' a6' a7' >>= \res -> + return () +{-# LINE 284 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusSetEnvironmentMap :: HG3DClass -> Bool -> EnumEnvMapType -> IO () +cTusSetEnvironmentMap a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + let {a3' = cIntFromEnum a3} in + cTusSetEnvironmentMap'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 289 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusSetScrollAnimation :: HG3DClass -> Float -> Float -> IO () +cTusSetScrollAnimation a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + cTusSetScrollAnimation'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 294 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusSetRotateAnimation :: HG3DClass -> Float -> IO () +cTusSetRotateAnimation a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cTusSetRotateAnimation'_ a1' a2' >>= \res -> + return () +{-# LINE 298 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusRemoveAllEffects :: HG3DClass -> IO () +cTusRemoveAllEffects a1 = + withHG3DClass a1 $ \a1' -> + cTusRemoveAllEffects'_ a1' >>= \res -> + return () +{-# LINE 301 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusIsBlank :: HG3DClass -> IO (Bool) +cTusIsBlank a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTusIsBlank'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 305 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusSetBlank :: HG3DClass -> IO () +cTusSetBlank a1 = + withHG3DClass a1 $ \a1' -> + cTusSetBlank'_ a1' >>= \res -> + return () +{-# LINE 308 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusIsTextureLoadFailing :: HG3DClass -> IO (Bool) +cTusIsTextureLoadFailing a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTusIsTextureLoadFailing'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 312 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusRetryTextureLoad :: HG3DClass -> IO () +cTusRetryTextureLoad a1 = + withHG3DClass a1 $ \a1' -> + cTusRetryTextureLoad'_ a1' >>= \res -> + return () +{-# LINE 315 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusGetAnimationDuration :: HG3DClass -> IO (Float) +cTusGetAnimationDuration a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTusGetAnimationDuration'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 319 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusSetTextureFiltering :: HG3DClass -> EnumTextureFilterOptions -> IO () +cTusSetTextureFiltering a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cTusSetTextureFiltering'_ a1' a2' >>= \res -> + return () +{-# LINE 323 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusSetTextureFiltering2 :: HG3DClass -> EnumFilterType -> EnumFilterOptions -> IO () +cTusSetTextureFiltering2 a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + let {a3' = cIntFromEnum a3} in + cTusSetTextureFiltering2'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 328 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusSetTextureFiltering3 :: HG3DClass -> EnumFilterOptions -> EnumFilterOptions -> EnumFilterOptions -> IO () +cTusSetTextureFiltering3 a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + let {a3' = cIntFromEnum a3} in + let {a4' = cIntFromEnum a4} in + cTusSetTextureFiltering3'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 334 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusGetTextureFiltering :: HG3DClass -> EnumFilterType -> IO (EnumFilterOptions) +cTusGetTextureFiltering a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + alloca $ \a3' -> + cTusGetTextureFiltering'_ a1' a2' a3' >>= \res -> + peekEnumUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 339 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusSetTextureAnisotropy :: HG3DClass -> Int -> IO () +cTusSetTextureAnisotropy a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cTusSetTextureAnisotropy'_ a1' a2' >>= \res -> + return () +{-# LINE 343 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusGetTextureAnisotropy :: HG3DClass -> IO (Int) +cTusGetTextureAnisotropy a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTusGetTextureAnisotropy'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 347 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusSetTextureMipmapBias :: HG3DClass -> Float -> IO () +cTusSetTextureMipmapBias a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cTusSetTextureMipmapBias'_ a1' a2' >>= \res -> + return () +{-# LINE 351 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusGetTextureMipmapBias :: HG3DClass -> IO (Float) +cTusGetTextureMipmapBias a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTusGetTextureMipmapBias'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 355 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusSetCompositorReference :: HG3DClass -> String -> String -> Int -> IO () +cTusSetCompositorReference a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + let {a4' = fromIntegral a4} in + cTusSetCompositorReference'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 361 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusGetReferencedCompositorName :: HG3DClass -> IO (String) +cTusGetReferencedCompositorName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cTusGetReferencedCompositorName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 365 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusGetReferencedTextureName :: HG3DClass -> IO (String) +cTusGetReferencedTextureName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cTusGetReferencedTextureName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 369 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusGetReferencedMRTIndex :: HG3DClass -> IO (Int) +cTusGetReferencedMRTIndex a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTusGetReferencedMRTIndex'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 373 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusGetParent :: HG3DClass -> IO (HG3DClass) +cTusGetParent a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTusGetParent'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 377 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusPrepare :: HG3DClass -> IO () +cTusPrepare a1 = + withHG3DClass a1 $ \a1' -> + cTusPrepare'_ a1' >>= \res -> + return () +{-# LINE 380 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusUnprepare :: HG3DClass -> IO () +cTusUnprepare a1 = + withHG3DClass a1 $ \a1' -> + cTusUnprepare'_ a1' >>= \res -> + return () +{-# LINE 383 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusLoad :: HG3DClass -> IO () +cTusLoad a1 = + withHG3DClass a1 $ \a1' -> + cTusLoad'_ a1' >>= \res -> + return () +{-# LINE 386 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusUnload :: HG3DClass -> IO () +cTusUnload a1 = + withHG3DClass a1 $ \a1' -> + cTusUnload'_ a1' >>= \res -> + return () +{-# LINE 389 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusHasViewRelativeTextureCoordinateGeneration :: HG3DClass -> IO (Bool) +cTusHasViewRelativeTextureCoordinateGeneration a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTusHasViewRelativeTextureCoordinateGeneration'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 393 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusIsLoaded :: HG3DClass -> IO (Bool) +cTusIsLoaded a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTusIsLoaded'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 397 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusNotifyNeedsRecompile :: HG3DClass -> IO () +cTusNotifyNeedsRecompile a1 = + withHG3DClass a1 $ \a1' -> + cTusNotifyNeedsRecompile'_ a1' >>= \res -> + return () +{-# LINE 400 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusSetName :: HG3DClass -> String -> IO () +cTusSetName a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cTusSetName'_ a1' a2' >>= \res -> + return () +{-# LINE 404 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusGetName :: HG3DClass -> IO (String) +cTusGetName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cTusGetName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 408 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusSetTextureNameAlias :: HG3DClass -> String -> IO () +cTusSetTextureNameAlias a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cTusSetTextureNameAlias'_ a1' a2' >>= \res -> + return () +{-# LINE 412 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusGetTextureNameAlias :: HG3DClass -> IO (String) +cTusGetTextureNameAlias a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cTusGetTextureNameAlias'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 416 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; +cTusNotifyParent :: HG3DClass -> HG3DClass -> IO () +cTusNotifyParent a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cTusNotifyParent'_ a1' a2' >>= \res -> + return () +{-# LINE 420 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_getTextureName_c" + cTusGetTextureName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_setTextureName_c" + cTusSetTextureName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_setCubicTextureName_c" + cTusSetCubicTextureName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_setAnimatedTextureName_c" + cTusSetAnimatedTextureName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CUInt -> (CFloat -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_setCurrentFrame_c" + cTusSetCurrentFrame'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_getCurrentFrame_c" + cTusGetCurrentFrame'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_getFrameTextureName_c" + cTusGetFrameTextureName'_ :: ((HG3DClassPtr) -> (CUInt -> ((Ptr CChar) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_setFrameTextureName_c" + cTusSetFrameTextureName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CUInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_addFrameTextureName_c" + cTusAddFrameTextureName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_deleteFrameTextureName_c" + cTusDeleteFrameTextureName'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_getNumFrames_c" + cTusGetNumFrames'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_setBindingType_c" + cTusSetBindingType'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_getBindingType_c" + cTusGetBindingType'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_setContentType_c" + cTusSetContentType'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_getContentType_c" + cTusGetContentType'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_isCubic_c" + cTusIsCubic'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_is3D_c" + cTusIs3D'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_getTextureType_c" + cTusGetTextureType'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_setDesiredFormat_c" + cTusSetDesiredFormat'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_getDesiredFormat_c" + cTusGetDesiredFormat'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_setNumMipmaps_c" + cTusSetNumMipmaps'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_getNumMipmaps_c" + cTusGetNumMipmaps'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_setIsAlpha_c" + cTusSetIsAlpha'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_getIsAlpha_c" + cTusGetIsAlpha'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_setHardwareGammaEnabled_c" + cTusSetHardwareGammaEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_isHardwareGammaEnabled_c" + cTusIsHardwareGammaEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_getTextureCoordSet_c" + cTusGetTextureCoordSet'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_setTextureCoordSet_c" + cTusSetTextureCoordSet'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_setTextureScroll_c" + cTusSetTextureScroll'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_setTextureUScroll_c" + cTusSetTextureUScroll'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_getTextureUScroll_c" + cTusGetTextureUScroll'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_setTextureVScroll_c" + cTusSetTextureVScroll'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_getTextureVScroll_c" + cTusGetTextureVScroll'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_setTextureUScale_c" + cTusSetTextureUScale'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_getTextureUScale_c" + cTusGetTextureUScale'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_setTextureVScale_c" + cTusSetTextureVScale'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_getTextureVScale_c" + cTusGetTextureVScale'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_setTextureScale_c" + cTusSetTextureScale'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_setTextureRotate_c" + cTusSetTextureRotate'_ :: ((HG3DClassPtr) -> ((RadianPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_getTextureRotate_c" + cTusGetTextureRotate'_ :: ((HG3DClassPtr) -> ((RadianPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_setTextureAddressingMode_c" + cTusSetTextureAddressingMode'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_setTextureAddressingMode2_c" + cTusSetTextureAddressingMode2'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (CInt -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_setTextureBorderColour_c" + cTusSetTextureBorderColour'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_getTextureBorderColour_c" + cTusGetTextureBorderColour'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_setColourOperationEx_c" + cTusSetColourOperationEx'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (CInt -> ((ColourValuePtr) -> ((ColourValuePtr) -> (CFloat -> (IO ())))))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_getColourBlendFallbackSrc_c" + cTusGetColourBlendFallbackSrc'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_getColourBlendFallbackDest_c" + cTusGetColourBlendFallbackDest'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_setAlphaOperation_c" + cTusSetAlphaOperation'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (CInt -> (CFloat -> (CFloat -> (CFloat -> (IO ())))))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_setEnvironmentMap_c" + cTusSetEnvironmentMap'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_setScrollAnimation_c" + cTusSetScrollAnimation'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_setRotateAnimation_c" + cTusSetRotateAnimation'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_removeAllEffects_c" + cTusRemoveAllEffects'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_isBlank_c" + cTusIsBlank'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_setBlank_c" + cTusSetBlank'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_isTextureLoadFailing_c" + cTusIsTextureLoadFailing'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_retryTextureLoad_c" + cTusRetryTextureLoad'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_getAnimationDuration_c" + cTusGetAnimationDuration'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_setTextureFiltering_c" + cTusSetTextureFiltering'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_setTextureFiltering2_c" + cTusSetTextureFiltering2'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_setTextureFiltering3_c" + cTusSetTextureFiltering3'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (CInt -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_getTextureFiltering_c" + cTusGetTextureFiltering'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_setTextureAnisotropy_c" + cTusSetTextureAnisotropy'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_getTextureAnisotropy_c" + cTusGetTextureAnisotropy'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_setTextureMipmapBias_c" + cTusSetTextureMipmapBias'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_getTextureMipmapBias_c" + cTusGetTextureMipmapBias'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_setCompositorReference_c" + cTusSetCompositorReference'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (CInt -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_getReferencedCompositorName_c" + cTusGetReferencedCompositorName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_getReferencedTextureName_c" + cTusGetReferencedTextureName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_getReferencedMRTIndex_c" + cTusGetReferencedMRTIndex'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_getParent_c" + cTusGetParent'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus__prepare_c" + cTusPrepare'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus__unprepare_c" + cTusUnprepare'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus__load_c" + cTusLoad'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus__unload_c" + cTusUnload'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_hasViewRelativeTextureCoordinateGeneration_c" + cTusHasViewRelativeTextureCoordinateGeneration'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_isLoaded_c" + cTusIsLoaded'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus__notifyNeedsRecompile_c" + cTusNotifyNeedsRecompile'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_setName_c" + cTusSetName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_getName_c" + cTusGetName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_setTextureNameAlias_c" + cTusSetTextureNameAlias'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_getTextureNameAlias_c" + cTusGetTextureNameAlias'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus__notifyParent_c" + cTusNotifyParent'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassTimeIndex.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassTimeIndex.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreAnimationTrack.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassTimeIndex where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassTimeIndex.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassTimeIndex.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassTimeIndex.chs" #-} + +
@@ -0,0 +1,138 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassTransformKeyFrame.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassTransformKeyFrame.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreKeyFrame.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassTransformKeyFrame where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassTransformKeyFrame.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassTransformKeyFrame.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassTransformKeyFrame.chs" #-} +import HGamer3D.Bindings.Ogre.TypeVector3 +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassTransformKeyFrame.chs" #-} +import HGamer3D.Bindings.Ogre.TypeQuaternion +{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassTransformKeyFrame.chs" #-} + + +cTkfSetTranslate :: HG3DClass -> Vector3 -> IO () +cTkfSetTranslate a1 a2 = + withHG3DClass a1 $ \a1' -> + withVector3 a2 $ \a2' -> + cTkfSetTranslate'_ a1' a2' >>= \res -> + return () +{-# LINE 64 "HGamer3D\\Bindings\\Ogre\\ClassTransformKeyFrame.chs" #-} +; +cTkfGetTranslate :: HG3DClass -> IO (Vector3) +cTkfGetTranslate a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTkfGetTranslate'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 68 "HGamer3D\\Bindings\\Ogre\\ClassTransformKeyFrame.chs" #-} +; +cTkfSetScale :: HG3DClass -> Vector3 -> IO () +cTkfSetScale a1 a2 = + withHG3DClass a1 $ \a1' -> + withVector3 a2 $ \a2' -> + cTkfSetScale'_ a1' a2' >>= \res -> + return () +{-# LINE 72 "HGamer3D\\Bindings\\Ogre\\ClassTransformKeyFrame.chs" #-} +; +cTkfGetScale :: HG3DClass -> IO (Vector3) +cTkfGetScale a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTkfGetScale'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 76 "HGamer3D\\Bindings\\Ogre\\ClassTransformKeyFrame.chs" #-} +; +cTkfSetRotation :: HG3DClass -> Quaternion -> IO () +cTkfSetRotation a1 a2 = + withHG3DClass a1 $ \a1' -> + withQuaternion a2 $ \a2' -> + cTkfSetRotation'_ a1' a2' >>= \res -> + return () +{-# LINE 80 "HGamer3D\\Bindings\\Ogre\\ClassTransformKeyFrame.chs" #-} +; +cTkfGetRotation :: HG3DClass -> IO (Quaternion) +cTkfGetRotation a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cTkfGetRotation'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 84 "HGamer3D\\Bindings\\Ogre\\ClassTransformKeyFrame.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTransformKeyFrame.chs.h cTkf_setTranslate_c" + cTkfSetTranslate'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTransformKeyFrame.chs.h cTkf_getTranslate_c" + cTkfGetTranslate'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTransformKeyFrame.chs.h cTkf_setScale_c" + cTkfSetScale'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTransformKeyFrame.chs.h cTkf_getScale_c" + cTkfGetScale'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTransformKeyFrame.chs.h cTkf_setRotation_c" + cTkfSetRotation'_ :: ((HG3DClassPtr) -> ((QuaternionPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTransformKeyFrame.chs.h cTkf_getRotation_c" + cTkfGetRotation'_ :: ((HG3DClassPtr) -> ((QuaternionPtr) -> (IO ())))
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassUnimplementedException.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassUnimplementedException.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreException.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassUnimplementedException where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassUnimplementedException.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassUnimplementedException.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassUnimplementedException.chs" #-} + +
@@ -0,0 +1,178 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassVertexAnimationTrack.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreAnimationTrack.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassVertexAnimationTrack where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs" #-} +import HGamer3D.Bindings.Ogre.EnumVertexAnimationType +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs" #-} +import HGamer3D.Bindings.Ogre.EnumTargetMode +{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs" #-} + + +cVantGetAnimationType :: HG3DClass -> IO (EnumVertexAnimationType) +cVantGetAnimationType a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cVantGetAnimationType'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 64 "HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs" #-} +; +cVantCreateVertexMorphKeyFrame :: HG3DClass -> Float -> IO (HG3DClass) +cVantCreateVertexMorphKeyFrame a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + alloca $ \a3' -> + cVantCreateVertexMorphKeyFrame'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 69 "HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs" #-} +; +cVantCreateVertexPoseKeyFrame :: HG3DClass -> Float -> IO (HG3DClass) +cVantCreateVertexPoseKeyFrame a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + alloca $ \a3' -> + cVantCreateVertexPoseKeyFrame'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 74 "HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs" #-} +; +cVantGetVertexMorphKeyFrame :: HG3DClass -> Int -> IO (HG3DClass) +cVantGetVertexMorphKeyFrame a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cVantGetVertexMorphKeyFrame'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 79 "HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs" #-} +; +cVantGetVertexPoseKeyFrame :: HG3DClass -> Int -> IO (HG3DClass) +cVantGetVertexPoseKeyFrame a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cVantGetVertexPoseKeyFrame'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 84 "HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs" #-} +; +cVantSetTargetMode :: HG3DClass -> EnumTargetMode -> IO () +cVantSetTargetMode a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cVantSetTargetMode'_ a1' a2' >>= \res -> + return () +{-# LINE 88 "HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs" #-} +; +cVantGetTargetMode :: HG3DClass -> IO (EnumTargetMode) +cVantGetTargetMode a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cVantGetTargetMode'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 92 "HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs" #-} +; +cVantHasNonZeroKeyFrames :: HG3DClass -> IO (Bool) +cVantHasNonZeroKeyFrames a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cVantHasNonZeroKeyFrames'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 96 "HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs" #-} +; +cVantOptimise :: HG3DClass -> IO () +cVantOptimise a1 = + withHG3DClass a1 $ \a1' -> + cVantOptimise'_ a1' >>= \res -> + return () +{-# LINE 99 "HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs.h cVant_getAnimationType_c" + cVantGetAnimationType'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs.h cVant_createVertexMorphKeyFrame_c" + cVantCreateVertexMorphKeyFrame'_ :: ((HG3DClassPtr) -> (CFloat -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs.h cVant_createVertexPoseKeyFrame_c" + cVantCreateVertexPoseKeyFrame'_ :: ((HG3DClassPtr) -> (CFloat -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs.h cVant_getVertexMorphKeyFrame_c" + cVantGetVertexMorphKeyFrame'_ :: ((HG3DClassPtr) -> (CUInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs.h cVant_getVertexPoseKeyFrame_c" + cVantGetVertexPoseKeyFrame'_ :: ((HG3DClassPtr) -> (CUInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs.h cVant_setTargetMode_c" + cVantSetTargetMode'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs.h cVant_getTargetMode_c" + cVantGetTargetMode'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs.h cVant_hasNonZeroKeyFrames_c" + cVantHasNonZeroKeyFrames'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs.h cVant_optimise_c" + cVantOptimise'_ :: ((HG3DClassPtr) -> (IO ()))
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassVertexMorphKeyFrame.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassVertexMorphKeyFrame.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreKeyFrame.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassVertexMorphKeyFrame where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassVertexMorphKeyFrame.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassVertexMorphKeyFrame.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassVertexMorphKeyFrame.chs" #-} + +
@@ -0,0 +1,75 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassVertexPoseKeyFrame.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassVertexPoseKeyFrame.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreKeyFrame.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassVertexPoseKeyFrame where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassVertexPoseKeyFrame.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassVertexPoseKeyFrame.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassVertexPoseKeyFrame.chs" #-} + + +cVpkfRemoveAllPoseReferences :: HG3DClass -> IO () +cVpkfRemoveAllPoseReferences a1 = + withHG3DClass a1 $ \a1' -> + cVpkfRemoveAllPoseReferences'_ a1' >>= \res -> + return () +{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassVertexPoseKeyFrame.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassVertexPoseKeyFrame.chs.h cVpkf_removeAllPoseReferences_c" + cVpkfRemoveAllPoseReferences'_ :: ((HG3DClassPtr) -> (IO ()))
@@ -0,0 +1,528 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassViewport.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreViewport.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassViewport where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +import HGamer3D.Bindings.Ogre.TypeColourValue +{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +import HGamer3D.Bindings.Ogre.EnumOrientationMode +{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + + +cVpUpdateDimensions :: HG3DClass -> IO () +cVpUpdateDimensions a1 = + withHG3DClass a1 $ \a1' -> + cVpUpdateDimensions'_ a1' >>= \res -> + return () +{-# LINE 63 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpUpdate :: HG3DClass -> IO () +cVpUpdate a1 = + withHG3DClass a1 $ \a1' -> + cVpUpdate'_ a1' >>= \res -> + return () +{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpClear :: HG3DClass -> Int -> ColourValue -> Float -> Int -> IO () +cVpClear a1 a2 a3 a4 a5 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + withColourValue a3 $ \a3' -> + let {a4' = realToFrac a4} in + let {a5' = fromIntegral a5} in + cVpClear'_ a1' a2' a3' a4' a5' >>= \res -> + return () +{-# LINE 73 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpGetTarget :: HG3DClass -> IO (HG3DClass) +cVpGetTarget a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cVpGetTarget'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 77 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpGetCamera :: HG3DClass -> IO (HG3DClass) +cVpGetCamera a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cVpGetCamera'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 81 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpSetCamera :: HG3DClass -> HG3DClass -> IO () +cVpSetCamera a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cVpSetCamera'_ a1' a2' >>= \res -> + return () +{-# LINE 85 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpGetZOrder :: HG3DClass -> IO (Int) +cVpGetZOrder a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cVpGetZOrder'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 89 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpGetLeft :: HG3DClass -> IO (Float) +cVpGetLeft a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cVpGetLeft'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 93 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpGetTop :: HG3DClass -> IO (Float) +cVpGetTop a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cVpGetTop'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 97 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpGetWidth :: HG3DClass -> IO (Float) +cVpGetWidth a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cVpGetWidth'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 101 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpGetHeight :: HG3DClass -> IO (Float) +cVpGetHeight a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cVpGetHeight'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 105 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpGetActualLeft :: HG3DClass -> IO (Int) +cVpGetActualLeft a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cVpGetActualLeft'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 109 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpGetActualTop :: HG3DClass -> IO (Int) +cVpGetActualTop a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cVpGetActualTop'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 113 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpGetActualWidth :: HG3DClass -> IO (Int) +cVpGetActualWidth a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cVpGetActualWidth'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 117 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpGetActualHeight :: HG3DClass -> IO (Int) +cVpGetActualHeight a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cVpGetActualHeight'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 121 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpSetDimensions :: HG3DClass -> Float -> Float -> Float -> Float -> IO () +cVpSetDimensions a1 a2 a3 a4 a5 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + let {a5' = realToFrac a5} in + cVpSetDimensions'_ a1' a2' a3' a4' a5' >>= \res -> + return () +{-# LINE 128 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpSetOrientationMode :: HG3DClass -> EnumOrientationMode -> Bool -> IO () +cVpSetOrientationMode a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + let {a3' = fromBool a3} in + cVpSetOrientationMode'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 133 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpGetOrientationMode :: HG3DClass -> IO (EnumOrientationMode) +cVpGetOrientationMode a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cVpGetOrientationMode'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 137 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpSetBackgroundColour :: HG3DClass -> ColourValue -> IO () +cVpSetBackgroundColour a1 a2 = + withHG3DClass a1 $ \a1' -> + withColourValue a2 $ \a2' -> + cVpSetBackgroundColour'_ a1' a2' >>= \res -> + return () +{-# LINE 141 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpGetBackgroundColour :: HG3DClass -> IO (ColourValue) +cVpGetBackgroundColour a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cVpGetBackgroundColour'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 145 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpSetClearEveryFrame :: HG3DClass -> Bool -> Int -> IO () +cVpSetClearEveryFrame a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + let {a3' = fromIntegral a3} in + cVpSetClearEveryFrame'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 150 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpGetClearEveryFrame :: HG3DClass -> IO (Bool) +cVpGetClearEveryFrame a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cVpGetClearEveryFrame'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 154 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpGetClearBuffers :: HG3DClass -> IO (Int) +cVpGetClearBuffers a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cVpGetClearBuffers'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 158 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpSetAutoUpdated :: HG3DClass -> Bool -> IO () +cVpSetAutoUpdated a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cVpSetAutoUpdated'_ a1' a2' >>= \res -> + return () +{-# LINE 162 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpIsAutoUpdated :: HG3DClass -> IO (Bool) +cVpIsAutoUpdated a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cVpIsAutoUpdated'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 166 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpSetMaterialScheme :: HG3DClass -> String -> IO () +cVpSetMaterialScheme a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cVpSetMaterialScheme'_ a1' a2' >>= \res -> + return () +{-# LINE 170 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpGetMaterialScheme :: HG3DClass -> IO (String) +cVpGetMaterialScheme a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cVpGetMaterialScheme'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 174 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpGetNumRenderedFaces :: HG3DClass -> IO (Int) +cVpGetNumRenderedFaces a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cVpGetNumRenderedFaces'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 178 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpGetNumRenderedBatches :: HG3DClass -> IO (Int) +cVpGetNumRenderedBatches a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cVpGetNumRenderedBatches'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 182 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpSetOverlaysEnabled :: HG3DClass -> Bool -> IO () +cVpSetOverlaysEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cVpSetOverlaysEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 186 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpGetOverlaysEnabled :: HG3DClass -> IO (Bool) +cVpGetOverlaysEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cVpGetOverlaysEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 190 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpSetSkiesEnabled :: HG3DClass -> Bool -> IO () +cVpSetSkiesEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cVpSetSkiesEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 194 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpGetSkiesEnabled :: HG3DClass -> IO (Bool) +cVpGetSkiesEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cVpGetSkiesEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 198 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpSetShadowsEnabled :: HG3DClass -> Bool -> IO () +cVpSetShadowsEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cVpSetShadowsEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 202 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpGetShadowsEnabled :: HG3DClass -> IO (Bool) +cVpGetShadowsEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cVpGetShadowsEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 206 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpSetVisibilityMask :: HG3DClass -> Int -> IO () +cVpSetVisibilityMask a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + cVpSetVisibilityMask'_ a1' a2' >>= \res -> + return () +{-# LINE 210 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpSetRenderQueueInvocationSequenceName :: HG3DClass -> String -> IO () +cVpSetRenderQueueInvocationSequenceName a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cVpSetRenderQueueInvocationSequenceName'_ a1' a2' >>= \res -> + return () +{-# LINE 214 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpGetRenderQueueInvocationSequenceName :: HG3DClass -> IO (String) +cVpGetRenderQueueInvocationSequenceName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cVpGetRenderQueueInvocationSequenceName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 218 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; +cVpGetRenderQueueInvocationSequence :: HG3DClass -> IO (HG3DClass) +cVpGetRenderQueueInvocationSequence a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cVpGetRenderQueueInvocationSequence'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 222 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp__updateDimensions_c" + cVpUpdateDimensions'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_update_c" + cVpUpdate'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_clear_c" + cVpClear'_ :: ((HG3DClassPtr) -> (CUInt -> ((ColourValuePtr) -> (CFloat -> (CUInt -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_getTarget_c" + cVpGetTarget'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_getCamera_c" + cVpGetCamera'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_setCamera_c" + cVpSetCamera'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_getZOrder_c" + cVpGetZOrder'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_getLeft_c" + cVpGetLeft'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_getTop_c" + cVpGetTop'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_getWidth_c" + cVpGetWidth'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_getHeight_c" + cVpGetHeight'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_getActualLeft_c" + cVpGetActualLeft'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_getActualTop_c" + cVpGetActualTop'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_getActualWidth_c" + cVpGetActualWidth'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_getActualHeight_c" + cVpGetActualHeight'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_setDimensions_c" + cVpSetDimensions'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (CFloat -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_setOrientationMode_c" + cVpSetOrientationMode'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_getOrientationMode_c" + cVpGetOrientationMode'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_setBackgroundColour_c" + cVpSetBackgroundColour'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_getBackgroundColour_c" + cVpGetBackgroundColour'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_setClearEveryFrame_c" + cVpSetClearEveryFrame'_ :: ((HG3DClassPtr) -> (CInt -> (CUInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_getClearEveryFrame_c" + cVpGetClearEveryFrame'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_getClearBuffers_c" + cVpGetClearBuffers'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_setAutoUpdated_c" + cVpSetAutoUpdated'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_isAutoUpdated_c" + cVpIsAutoUpdated'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_setMaterialScheme_c" + cVpSetMaterialScheme'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_getMaterialScheme_c" + cVpGetMaterialScheme'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp__getNumRenderedFaces_c" + cVpGetNumRenderedFaces'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp__getNumRenderedBatches_c" + cVpGetNumRenderedBatches'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_setOverlaysEnabled_c" + cVpSetOverlaysEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_getOverlaysEnabled_c" + cVpGetOverlaysEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_setSkiesEnabled_c" + cVpSetSkiesEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_getSkiesEnabled_c" + cVpGetSkiesEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_setShadowsEnabled_c" + cVpSetShadowsEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_getShadowsEnabled_c" + cVpGetShadowsEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_setVisibilityMask_c" + cVpSetVisibilityMask'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_setRenderQueueInvocationSequenceName_c" + cVpSetRenderQueueInvocationSequenceName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_getRenderQueueInvocationSequenceName_c" + cVpGetRenderQueueInvocationSequenceName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp__getRenderQueueInvocationSequence_c" + cVpGetRenderQueueInvocationSequence'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
@@ -0,0 +1,122 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassWindowEventListener.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassWindowEventListener.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreWindowEventUtilities.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassWindowEventListener where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassWindowEventListener.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassWindowEventListener.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassWindowEventListener.chs" #-} + + +cWelWindowMoved :: HG3DClass -> HG3DClass -> IO () +cWelWindowMoved a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cWelWindowMoved'_ a1' a2' >>= \res -> + return () +{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassWindowEventListener.chs" #-} +; +cWelWindowResized :: HG3DClass -> HG3DClass -> IO () +cWelWindowResized a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cWelWindowResized'_ a1' a2' >>= \res -> + return () +{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassWindowEventListener.chs" #-} +; +cWelWindowClosing :: HG3DClass -> HG3DClass -> IO (Bool) +cWelWindowClosing a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + alloca $ \a3' -> + cWelWindowClosing'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassWindowEventListener.chs" #-} +; +cWelWindowClosed :: HG3DClass -> HG3DClass -> IO () +cWelWindowClosed a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cWelWindowClosed'_ a1' a2' >>= \res -> + return () +{-# LINE 75 "HGamer3D\\Bindings\\Ogre\\ClassWindowEventListener.chs" #-} +; +cWelWindowFocusChange :: HG3DClass -> HG3DClass -> IO () +cWelWindowFocusChange a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cWelWindowFocusChange'_ a1' a2' >>= \res -> + return () +{-# LINE 79 "HGamer3D\\Bindings\\Ogre\\ClassWindowEventListener.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassWindowEventListener.chs.h cWel_windowMoved_c" + cWelWindowMoved'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassWindowEventListener.chs.h cWel_windowResized_c" + cWelWindowResized'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassWindowEventListener.chs.h cWel_windowClosing_c" + cWelWindowClosing'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassWindowEventListener.chs.h cWel_windowClosed_c" + cWelWindowClosed'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassWindowEventListener.chs.h cWel_windowFocusChange_c" + cWelWindowFocusChange'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassWindowEventUtilities.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassWindowEventUtilities.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreWindowEventUtilities.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.ClassWindowEventUtilities where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.Ogre.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassWindowEventUtilities.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassWindowEventUtilities.chs" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassWindowEventUtilities.chs" #-} + +
@@ -0,0 +1,56 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumACDataType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumACDataType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreGpuProgramParams.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumACDataType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreGpuProgramParams.h line:1037 -} +data EnumACDataType = AcdtNone + | AcdtInt + | AcdtReal + deriving (Enum,Eq)
@@ -0,0 +1,60 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumAbstractNodeType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumAbstractNodeType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreScriptCompiler.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumAbstractNodeType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreScriptCompiler.h line:75 -} +data EnumAbstractNodeType = AntUnknown + | AntAtom + | AntObject + | AntProperty + | AntImport + | AntVariableSet + | AntVariableAccess + deriving (Enum,Eq)
@@ -0,0 +1,62 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumAccessMode.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumAccessMode.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreDataStream.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumAccessMode where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreDataStream.h line:66 -} +data EnumAccessMode = Read + | Write + deriving (Eq) +instance Enum EnumAccessMode where + fromEnum Read = 1 + fromEnum Write = 2 + + toEnum 1 = Read + toEnum 2 = Write + toEnum unmatched = error ("EnumAccessMode.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,56 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumAlignment.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumAlignment.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreTextAreaOverlayElement.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumAlignment where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreTextAreaOverlayElement.h line:46 -} +data EnumAlignment = Left + | Right + | Center + deriving (Enum,Eq)
@@ -0,0 +1,55 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumAngleUnit.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumAngleUnit.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreMath.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumAngleUnit where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreMath.h line:198 -} +data EnumAngleUnit = AuDegree + | AuRadian + deriving (Enum,Eq)
@@ -0,0 +1,180 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumAutoConstantType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumAutoConstantType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreGpuProgramParams.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumAutoConstantType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreGpuProgramParams.h line:590 -} +data EnumAutoConstantType = ActWorldMatrix + | ActInverseWorldMatrix + | ActTransposeWorldMatrix + | ActInverseTransposeWorldMatrix + | ActWorldMatrixArray3x4 + | ActWorldMatrixArray + | ActViewMatrix + | ActInverseViewMatrix + | ActTransposeViewMatrix + | ActInverseTransposeViewMatrix + | ActProjectionMatrix + | ActInverseProjectionMatrix + | ActTransposeProjectionMatrix + | ActInverseTransposeProjectionMatrix + | ActViewprojMatrix + | ActInverseViewprojMatrix + | ActTransposeViewprojMatrix + | ActInverseTransposeViewprojMatrix + | ActWorldviewMatrix + | ActInverseWorldviewMatrix + | ActTransposeWorldviewMatrix + | ActInverseTransposeWorldviewMatrix + | ActWorldviewprojMatrix + | ActInverseWorldviewprojMatrix + | ActTransposeWorldviewprojMatrix + | ActInverseTransposeWorldviewprojMatrix + | ActRenderTargetFlipping + | ActVertexWinding + | ActFogColour + | ActFogParams + | ActSurfaceAmbientColour + | ActSurfaceDiffuseColour + | ActSurfaceSpecularColour + | ActSurfaceEmissiveColour + | ActSurfaceShininess + | ActLightCount + | ActAmbientLightColour + | ActLightDiffuseColour + | ActLightSpecularColour + | ActLightAttenuation + | ActSpotlightParams + | ActLightPosition + | ActLightPositionObjectSpace + | ActLightPositionViewSpace + | ActLightDirection + | ActLightDirectionObjectSpace + | ActLightDirectionViewSpace + | ActLightDistanceObjectSpace + | ActLightPowerScale + | ActLightDiffuseColourPowerScaled + | ActLightSpecularColourPowerScaled + | ActLightDiffuseColourArray + | ActLightSpecularColourArray + | ActLightDiffuseColourPowerScaledArray + | ActLightSpecularColourPowerScaledArray + | ActLightAttenuationArray + | ActLightPositionArray + | ActLightPositionObjectSpaceArray + | ActLightPositionViewSpaceArray + | ActLightDirectionArray + | ActLightDirectionObjectSpaceArray + | ActLightDirectionViewSpaceArray + | ActLightDistanceObjectSpaceArray + | ActLightPowerScaleArray + | ActSpotlightParamsArray + | ActDerivedAmbientLightColour + | ActDerivedSceneColour + | ActDerivedLightDiffuseColour + | ActDerivedLightSpecularColour + | ActDerivedLightDiffuseColourArray + | ActDerivedLightSpecularColourArray + | ActLightNumber + | ActLightCastsShadows + | ActShadowExtrusionDistance + | ActCameraPosition + | ActCameraPositionObjectSpace + | ActTextureViewprojMatrix + | ActTextureViewprojMatrixArray + | ActTextureWorldviewprojMatrix + | ActTextureWorldviewprojMatrixArray + | ActSpotlightViewprojMatrix + | ActSpotlightViewprojMatrixArray + | ActSpotlightWorldviewprojMatrix + | ActCustom + | ActTime + | ActTime0X + | ActCostime0X + | ActSintime0X + | ActTantime0X + | ActTime0XPacked + | ActTime01 + | ActCostime01 + | ActSintime01 + | ActTantime01 + | ActTime01Packed + | ActTime02pi + | ActCostime02pi + | ActSintime02pi + | ActTantime02pi + | ActTime02piPacked + | ActFrameTime + | ActFps + | ActViewportWidth + | ActViewportHeight + | ActInverseViewportWidth + | ActInverseViewportHeight + | ActViewportSize + | ActViewDirection + | ActViewSideVector + | ActViewUpVector + | ActFov + | ActNearClipDistance + | ActFarClipDistance + | ActPassNumber + | ActPassIterationNumber + | ActAnimationParametric + | ActTexelOffsets + | ActSceneDepthRange + | ActShadowSceneDepthRange + | ActShadowColour + | ActTextureSize + | ActInverseTextureSize + | ActPackedTextureSize + | ActTextureMatrix + | ActLodCameraPosition + | ActLodCameraPositionObjectSpace + | ActLightCustom + deriving (Enum,Eq)
@@ -0,0 +1,62 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumBillboardOrigin.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumBillboardOrigin.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBillboardSet.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumBillboardOrigin where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBillboardSet.h line:53 -} +data EnumBillboardOrigin = BboTopLeft + | BboTopCenter + | BboTopRight + | BboCenterLeft + | BboCenter + | BboCenterRight + | BboBottomLeft + | BboBottomCenter + | BboBottomRight + deriving (Enum,Eq)
@@ -0,0 +1,55 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumBillboardRotationType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumBillboardRotationType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBillboardSet.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumBillboardRotationType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBillboardSet.h line:66 -} +data EnumBillboardRotationType = BbrVertex + | BbrTexcoord + deriving (Enum,Eq)
@@ -0,0 +1,58 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumBillboardType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumBillboardType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBillboardSet.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumBillboardType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBillboardSet.h line:74 -} +data EnumBillboardType = BbtPoint + | BbtOrientedCommon + | BbtOrientedSelf + | BbtPerpendicularCommon + | BbtPerpendicularSelf + deriving (Enum,Eq)
@@ -0,0 +1,62 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumBindingType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumBindingType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreTextureUnitState.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumBindingType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreTextureUnitState.h line:410 -} +data EnumBindingType = BtFragment + | BtVertex + deriving (Eq) +instance Enum EnumBindingType where + fromEnum BtFragment = 0 + fromEnum BtVertex = 1 + + toEnum 0 = BtFragment + toEnum 1 = BtVertex + toEnum unmatched = error ("EnumBindingType.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,80 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumBorderCellIndex.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumBorderCellIndex.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBorderPanelOverlayElement.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumBorderCellIndex where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBorderPanelOverlayElement.h line:288 -} +data EnumBorderCellIndex = BcellTopLeft + | BcellTop + | BcellTopRight + | BcellLeft + | BcellRight + | BcellBottomLeft + | BcellBottom + | BcellBottomRight + deriving (Eq) +instance Enum EnumBorderCellIndex where + fromEnum BcellTopLeft = 0 + fromEnum BcellTop = 1 + fromEnum BcellTopRight = 2 + fromEnum BcellLeft = 3 + fromEnum BcellRight = 4 + fromEnum BcellBottomLeft = 5 + fromEnum BcellBottom = 6 + fromEnum BcellBottomRight = 7 + + toEnum 0 = BcellTopLeft + toEnum 1 = BcellTop + toEnum 2 = BcellTopRight + toEnum 3 = BcellLeft + toEnum 4 = BcellRight + toEnum 5 = BcellBottomLeft + toEnum 6 = BcellBottom + toEnum 7 = BcellBottomRight + toEnum unmatched = error ("EnumBorderCellIndex.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,74 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumBoxPlane.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumBoxPlane.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSceneManager.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumBoxPlane where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSceneManager.h line:582 -} +data EnumBoxPlane = BpFront + | BpBack + | BpLeft + | BpRight + | BpUp + | BpDown + deriving (Eq) +instance Enum EnumBoxPlane where + fromEnum BpFront = 0 + fromEnum BpBack = 1 + fromEnum BpLeft = 2 + fromEnum BpRight = 3 + fromEnum BpUp = 4 + fromEnum BpDown = 5 + + toEnum 0 = BpFront + toEnum 1 = BpBack + toEnum 2 = BpLeft + toEnum 3 = BpRight + toEnum 4 = BpUp + toEnum 5 = BpDown + toEnum unmatched = error ("EnumBoxPlane.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,55 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumBufferLicenseType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumBufferLicenseType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreHardwareBufferManager.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumBufferLicenseType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreHardwareBufferManager.h line:153 -} +data EnumBufferLicenseType = BltManualRelease + | BltAutomaticRelease + deriving (Enum,Eq)
@@ -0,0 +1,57 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumBufferType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumBufferType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreUTFString.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumBufferType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreUTFString.h line:970 -} +data EnumBufferType = BtNone + | BtString + | BtWstring + | BtUtf32string + deriving (Enum,Eq)
@@ -0,0 +1,55 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumBuiltinHashFunction.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumBuiltinHashFunction.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgrePass.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumBuiltinHashFunction where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgrePass.h line:1605 -} +data EnumBuiltinHashFunction = MinTextureChange + | MinGpuProgramChange + deriving (Enum,Eq)
@@ -0,0 +1,55 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumCacheType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumCacheType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreVertexIndexData.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumCacheType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreVertexIndexData.h line:285 -} +data EnumCacheType = Fifo + | Lru + deriving (Enum,Eq)
@@ -0,0 +1,71 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumCapabilitiesCategory.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumCapabilitiesCategory.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRenderSystemCapabilities.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumCapabilitiesCategory where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRenderSystemCapabilities.h line:62 -} +data EnumCapabilitiesCategory = CapsCategoryCommon + | CapsCategoryCommon2 + | CapsCategoryD3d9 + | CapsCategoryGl + | CapsCategoryCount + deriving (Eq) +instance Enum EnumCapabilitiesCategory where + fromEnum CapsCategoryCommon = 0 + fromEnum CapsCategoryCommon2 = 1 + fromEnum CapsCategoryD3d9 = 2 + fromEnum CapsCategoryGl = 3 + fromEnum CapsCategoryCount = 4 + + toEnum 0 = CapsCategoryCommon + toEnum 1 = CapsCategoryCommon2 + toEnum 2 = CapsCategoryD3d9 + toEnum 3 = CapsCategoryGl + toEnum 4 = CapsCategoryCount + toEnum unmatched = error ("EnumCapabilitiesCategory.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,77 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumCapabilityKeywordType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumCapabilityKeywordType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRenderSystemCapabilitiesSerializer.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumCapabilityKeywordType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRenderSystemCapabilitiesSerializer.h line:68 -} +data EnumCapabilityKeywordType = UndefinedCapabilityType + | SetStringMethod + | SetIntMethod + | SetBoolMethod + | SetRealMethod + | SetCapabilityEnumBool + | AddShaderProfileString + deriving (Eq) +instance Enum EnumCapabilityKeywordType where + fromEnum UndefinedCapabilityType = 0 + fromEnum SetStringMethod = 1 + fromEnum SetIntMethod = 2 + fromEnum SetBoolMethod = 3 + fromEnum SetRealMethod = 4 + fromEnum SetCapabilityEnumBool = 5 + fromEnum AddShaderProfileString = 6 + + toEnum 0 = UndefinedCapabilityType + toEnum 1 = SetStringMethod + toEnum 2 = SetIntMethod + toEnum 3 = SetBoolMethod + toEnum 4 = SetRealMethod + toEnum 5 = SetCapabilityEnumBool + toEnum 6 = AddShaderProfileString + toEnum unmatched = error ("EnumCapabilityKeywordType.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumClipResult.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumClipResult.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCommon.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumClipResult where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCommon.h line:714 -} +data EnumClipResult = ClippedNone + | ClippedSome + | ClippedAll + deriving (Eq) +instance Enum EnumClipResult where + fromEnum ClippedNone = 0 + fromEnum ClippedSome = 1 + fromEnum ClippedAll = 2 + + toEnum 0 = ClippedNone + toEnum 1 = ClippedSome + toEnum 2 = ClippedAll + toEnum unmatched = error ("EnumClipResult.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,61 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumCompareFunction.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumCompareFunction.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCommon.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumCompareFunction where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCommon.h line:65 -} +data EnumCompareFunction = CmpfAlwaysFail + | CmpfAlwaysPass + | CmpfLess + | CmpfLessEqual + | CmpfEqual + | CmpfNotEqual + | CmpfGreaterEqual + | CmpfGreater + deriving (Enum,Eq)
@@ -0,0 +1,61 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumConcreteNodeType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumConcreteNodeType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreScriptCompiler.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumConcreteNodeType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreScriptCompiler.h line:48 -} +data EnumConcreteNodeType = CntVariable + | CntVariableAssign + | CntWord + | CntImport + | CntQuote + | CntLbrace + | CntRbrace + | CntColon + deriving (Enum,Eq)
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumContentType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumContentType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreTextureUnitState.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumContentType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreTextureUnitState.h line:421 -} +data EnumContentType = ContentNamed + | ContentShadow + | ContentCompositor + deriving (Eq) +instance Enum EnumContentType where + fromEnum ContentNamed = 0 + fromEnum ContentShadow = 1 + fromEnum ContentCompositor = 2 + + toEnum 0 = ContentNamed + toEnum 1 = ContentShadow + toEnum 2 = ContentCompositor + toEnum unmatched = error ("EnumContentType.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,95 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumCpuFeatures.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumCpuFeatures.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgrePlatformInformation.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumCpuFeatures where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgrePlatformInformation.h line:146 -} +data EnumCpuFeatures = CpuFeatureSse + | CpuFeatureSse2 + | CpuFeatureSse3 + | CpuFeatureMmx + | CpuFeatureMmxext + | CpuFeature3dnow + | CpuFeature3dnowext + | CpuFeatureCmov + | CpuFeatureTsc + | CpuFeatureFpu + | CpuFeaturePro + | CpuFeatureHtt + | CpuFeatureNone + deriving (Eq) +instance Enum EnumCpuFeatures where + fromEnum CpuFeatureSse = 1 + fromEnum CpuFeatureSse2 = 2 + fromEnum CpuFeatureSse3 = 4 + fromEnum CpuFeatureMmx = 8 + fromEnum CpuFeatureMmxext = 16 + fromEnum CpuFeature3dnow = 32 + fromEnum CpuFeature3dnowext = 64 + fromEnum CpuFeatureCmov = 128 + fromEnum CpuFeatureTsc = 256 + fromEnum CpuFeatureFpu = 512 + fromEnum CpuFeaturePro = 1024 + fromEnum CpuFeatureHtt = 2048 + fromEnum CpuFeatureNone = 0 + + toEnum 1 = CpuFeatureSse + toEnum 2 = CpuFeatureSse2 + toEnum 4 = CpuFeatureSse3 + toEnum 8 = CpuFeatureMmx + toEnum 16 = CpuFeatureMmxext + toEnum 32 = CpuFeature3dnow + toEnum 64 = CpuFeature3dnowext + toEnum 128 = CpuFeatureCmov + toEnum 256 = CpuFeatureTsc + toEnum 512 = CpuFeatureFpu + toEnum 1024 = CpuFeaturePro + toEnum 2048 = CpuFeatureHtt + toEnum 0 = CpuFeatureNone + toEnum unmatched = error ("EnumCpuFeatures.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumCullingMode.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumCullingMode.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCommon.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumCullingMode where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCommon.h line:136 -} +data EnumCullingMode = CullNone + | CullClockwise + | CullAnticlockwise + deriving (Eq) +instance Enum EnumCullingMode where + fromEnum CullNone = 1 + fromEnum CullClockwise = 2 + fromEnum CullAnticlockwise = 3 + + toEnum 1 = CullNone + toEnum 2 = CullClockwise + toEnum 3 = CullAnticlockwise + toEnum unmatched = error ("EnumCullingMode.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,55 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumDisplayMode.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumDisplayMode.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreProfiler.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumDisplayMode where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreProfiler.h line:229 -} +data EnumDisplayMode = DisplayPercentage + | DisplayMilliseconds + deriving (Enum,Eq)
@@ -0,0 +1,55 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumElementType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumElementType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreGpuProgramParams.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumElementType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreGpuProgramParams.h line:1048 -} +data EnumElementType = EtInt + | EtReal + deriving (Enum,Eq)
@@ -0,0 +1,56 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumEndian.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumEndian.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreStreamSerialiser.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumEndian where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreStreamSerialiser.h line:70 -} +data EnumEndian = EndianAuto + | EndianBig + | EndianLittle + deriving (Enum,Eq)
@@ -0,0 +1,57 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumEnvMapType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumEnvMapType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreTextureUnitState.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumEnvMapType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreTextureUnitState.h line:94 -} +data EnumEnvMapType = EnvPlanar + | EnvCurved + | EnvReflection + | EnvNormal + deriving (Enum,Eq)
@@ -0,0 +1,63 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumExceptionCodes.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumExceptionCodes.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreException.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumExceptionCodes where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreException.h line:108 -} +data EnumExceptionCodes = ErrCannotWriteToFile + | ErrInvalidState + | ErrInvalidparams + | ErrRenderingapiError + | ErrDuplicateItem + | ErrItemNotFound + | ErrFileNotFound + | ErrInternalError + | ErrRtAssertionFailed + | ErrNotImplemented + deriving (Enum,Eq)
@@ -0,0 +1,56 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumExtent.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumExtent.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreAxisAlignedBox.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumExtent where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreAxisAlignedBox.h line:57 -} +data EnumExtent = ExtentNull + | ExtentFinite + | ExtentInfinite + deriving (Enum,Eq)
@@ -0,0 +1,56 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumFaceGroupType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumFaceGroupType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreStaticFaceGroup.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumFaceGroupType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreStaticFaceGroup.h line:45 -} +data EnumFaceGroupType = FgtFaceList + | FgtPatch + | FgtUnknown + deriving (Enum,Eq)
@@ -0,0 +1,59 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumFilter.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumFilter.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreImage.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumFilter where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreImage.h line:450 -} +data EnumFilter = FilterNearest + | FilterLinear + | FilterBilinear + | FilterBox + | FilterTriangle + | FilterBicubic + deriving (Enum,Eq)
@@ -0,0 +1,57 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumFilterOptions.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumFilterOptions.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCommon.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumFilterOptions where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCommon.h line:101 -} +data EnumFilterOptions = FoNone + | FoPoint + | FoLinear + | FoAnisotropic + deriving (Enum,Eq)
@@ -0,0 +1,56 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumFilterType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumFilterType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCommon.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumFilterType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCommon.h line:91 -} +data EnumFilterType = FtMin + | FtMag + | FtMip + deriving (Enum,Eq)
@@ -0,0 +1,57 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumFogMode.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumFogMode.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCommon.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumFogMode where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCommon.h line:122 -} +data EnumFogMode = FogNone + | FogExp + | FogExp2 + | FogLinear + deriving (Enum,Eq)
@@ -0,0 +1,62 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumFontType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumFontType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreFont.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumFontType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreFont.h line:45 -} +data EnumFontType = FtTruetype + | FtImage + deriving (Eq) +instance Enum EnumFontType where + fromEnum FtTruetype = 1 + fromEnum FtImage = 2 + + toEnum 1 = FtTruetype + toEnum 2 = FtImage + toEnum unmatched = error ("EnumFontType.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,56 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumFrameBuffer.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumFrameBuffer.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRenderTarget.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumFrameBuffer where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRenderTarget.h line:90 -} +data EnumFrameBuffer = FbFront + | FbBack + | FbAuto + deriving (Enum,Eq)
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumFrameBufferType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumFrameBufferType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCommon.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumFrameBufferType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCommon.h line:296 -} +data EnumFrameBufferType = FbtColour + | FbtDepth + | FbtStencil + deriving (Eq) +instance Enum EnumFrameBufferType where + fromEnum FbtColour = 1 + fromEnum FbtDepth = 2 + fromEnum FbtStencil = 4 + + toEnum 1 = FbtColour + toEnum 2 = FbtDepth + toEnum 4 = FbtStencil + toEnum unmatched = error ("EnumFrameBufferType.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,71 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumFrameEventTimeType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumFrameEventTimeType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRoot.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumFrameEventTimeType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRoot.h line:175 -} +data EnumFrameEventTimeType = FettAny + | FettStarted + | FettQueued + | FettEnded + | FettCount + deriving (Eq) +instance Enum EnumFrameEventTimeType where + fromEnum FettAny = 0 + fromEnum FettStarted = 1 + fromEnum FettQueued = 2 + fromEnum FettEnded = 3 + fromEnum FettCount = 4 + + toEnum 0 = FettAny + toEnum 1 = FettStarted + toEnum 2 = FettQueued + toEnum 3 = FettEnded + toEnum 4 = FettCount + toEnum unmatched = error ("EnumFrameEventTimeType.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,74 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumFrustumPlane.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumFrustumPlane.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreFrustum.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumFrustumPlane where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreFrustum.h line:70 -} +data EnumFrustumPlane = FrustumPlaneNear + | FrustumPlaneFar + | FrustumPlaneLeft + | FrustumPlaneRight + | FrustumPlaneTop + | FrustumPlaneBottom + deriving (Eq) +instance Enum EnumFrustumPlane where + fromEnum FrustumPlaneNear = 0 + fromEnum FrustumPlaneFar = 1 + fromEnum FrustumPlaneLeft = 2 + fromEnum FrustumPlaneRight = 3 + fromEnum FrustumPlaneTop = 4 + fromEnum FrustumPlaneBottom = 5 + + toEnum 0 = FrustumPlaneNear + toEnum 1 = FrustumPlaneFar + toEnum 2 = FrustumPlaneLeft + toEnum 3 = FrustumPlaneRight + toEnum 4 = FrustumPlaneTop + toEnum 5 = FrustumPlaneBottom + toEnum unmatched = error ("EnumFrustumPlane.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,92 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumGPUVendor.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumGPUVendor.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRenderSystemCapabilities.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumGPUVendor where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRenderSystemCapabilities.h line:211 -} +data EnumGPUVendor = GpuUnknown + | GpuNvidia + | GpuAti + | GpuIntel + | GpuS3 + | GpuMatrox + | Gpu3dlabs + | GpuSis + | GpuImaginationTechnologies + | GpuApple + | GpuNokia + | GpuVendorCount + deriving (Eq) +instance Enum EnumGPUVendor where + fromEnum GpuUnknown = 0 + fromEnum GpuNvidia = 1 + fromEnum GpuAti = 2 + fromEnum GpuIntel = 3 + fromEnum GpuS3 = 4 + fromEnum GpuMatrox = 5 + fromEnum Gpu3dlabs = 6 + fromEnum GpuSis = 7 + fromEnum GpuImaginationTechnologies = 8 + fromEnum GpuApple = 9 + fromEnum GpuNokia = 10 + fromEnum GpuVendorCount = 11 + + toEnum 0 = GpuUnknown + toEnum 1 = GpuNvidia + toEnum 2 = GpuAti + toEnum 3 = GpuIntel + toEnum 4 = GpuS3 + toEnum 5 = GpuMatrox + toEnum 6 = Gpu3dlabs + toEnum 7 = GpuSis + toEnum 8 = GpuImaginationTechnologies + toEnum 9 = GpuApple + toEnum 10 = GpuNokia + toEnum 11 = GpuVendorCount + toEnum unmatched = error ("EnumGPUVendor.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,128 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumGpuConstantType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumGpuConstantType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreGpuProgramParams.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumGpuConstantType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreGpuProgramParams.h line:52 -} +data EnumGpuConstantType = GctFloat1 + | GctFloat2 + | GctFloat3 + | GctFloat4 + | GctSampler1d + | GctSampler2d + | GctSampler3d + | GctSamplercube + | GctSampler1dshadow + | GctSampler2dshadow + | GctMatrix2x2 + | GctMatrix2x3 + | GctMatrix2x4 + | GctMatrix3x2 + | GctMatrix3x3 + | GctMatrix3x4 + | GctMatrix4x2 + | GctMatrix4x3 + | GctMatrix4x4 + | GctInt1 + | GctInt2 + | GctInt3 + | GctInt4 + | GctUnknown + deriving (Eq) +instance Enum EnumGpuConstantType where + fromEnum GctFloat1 = 1 + fromEnum GctFloat2 = 2 + fromEnum GctFloat3 = 3 + fromEnum GctFloat4 = 4 + fromEnum GctSampler1d = 5 + fromEnum GctSampler2d = 6 + fromEnum GctSampler3d = 7 + fromEnum GctSamplercube = 8 + fromEnum GctSampler1dshadow = 9 + fromEnum GctSampler2dshadow = 10 + fromEnum GctMatrix2x2 = 11 + fromEnum GctMatrix2x3 = 12 + fromEnum GctMatrix2x4 = 13 + fromEnum GctMatrix3x2 = 14 + fromEnum GctMatrix3x3 = 15 + fromEnum GctMatrix3x4 = 16 + fromEnum GctMatrix4x2 = 17 + fromEnum GctMatrix4x3 = 18 + fromEnum GctMatrix4x4 = 19 + fromEnum GctInt1 = 20 + fromEnum GctInt2 = 21 + fromEnum GctInt3 = 22 + fromEnum GctInt4 = 23 + fromEnum GctUnknown = 99 + + toEnum 1 = GctFloat1 + toEnum 2 = GctFloat2 + toEnum 3 = GctFloat3 + toEnum 4 = GctFloat4 + toEnum 5 = GctSampler1d + toEnum 6 = GctSampler2d + toEnum 7 = GctSampler3d + toEnum 8 = GctSamplercube + toEnum 9 = GctSampler1dshadow + toEnum 10 = GctSampler2dshadow + toEnum 11 = GctMatrix2x2 + toEnum 12 = GctMatrix2x3 + toEnum 13 = GctMatrix2x4 + toEnum 14 = GctMatrix3x2 + toEnum 15 = GctMatrix3x3 + toEnum 16 = GctMatrix3x4 + toEnum 17 = GctMatrix4x2 + toEnum 18 = GctMatrix4x3 + toEnum 19 = GctMatrix4x4 + toEnum 20 = GctInt1 + toEnum 21 = GctInt2 + toEnum 22 = GctInt3 + toEnum 23 = GctInt4 + toEnum 99 = GctUnknown + toEnum unmatched = error ("EnumGpuConstantType.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,71 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumGpuParamVariability.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumGpuParamVariability.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreGpuProgramParams.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumGpuParamVariability where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreGpuProgramParams.h line:83 -} +data EnumGpuParamVariability = GpvGlobal + | GpvPerObject + | GpvLights + | GpvPassIterationNumber + | GpvAll + deriving (Eq) +instance Enum EnumGpuParamVariability where + fromEnum GpvGlobal = 1 + fromEnum GpvPerObject = 2 + fromEnum GpvLights = 4 + fromEnum GpvPassIterationNumber = 8 + fromEnum GpvAll = 65535 + + toEnum 1 = GpvGlobal + toEnum 2 = GpvPerObject + toEnum 4 = GpvLights + toEnum 8 = GpvPassIterationNumber + toEnum 65535 = GpvAll + toEnum unmatched = error ("EnumGpuParamVariability.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,56 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumGpuProgramType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumGpuProgramType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreGpuProgram.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumGpuProgramType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreGpuProgram.h line:49 -} +data EnumGpuProgramType = GptVertexProgram + | GptFragmentProgram + | GptGeometryProgram + deriving (Enum,Eq)
@@ -0,0 +1,56 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumGuiHorizontalAlignment.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumGuiHorizontalAlignment.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreOverlayElement.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumGuiHorizontalAlignment where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreOverlayElement.h line:72 -} +data EnumGuiHorizontalAlignment = GhaLeft + | GhaCenter + | GhaRight + deriving (Enum,Eq)
@@ -0,0 +1,56 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumGuiMetricsMode.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumGuiMetricsMode.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreOverlayElement.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumGuiMetricsMode where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreOverlayElement.h line:59 -} +data EnumGuiMetricsMode = GmmRelative + | GmmPixels + | GmmRelativeAspectAdjusted + deriving (Enum,Eq)
@@ -0,0 +1,56 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumGuiVerticalAlignment.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumGuiVerticalAlignment.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreOverlayElement.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumGuiVerticalAlignment where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreOverlayElement.h line:81 -} +data EnumGuiVerticalAlignment = GvaTop + | GvaCenter + | GvaBottom + deriving (Enum,Eq)
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumIlluminationPassesState.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumIlluminationPassesState.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreTechnique.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumIlluminationPassesState where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreTechnique.h line:57 -} +data EnumIlluminationPassesState = IpsCompileDisabled + | IpsNotCompiled + | IpsCompiled + deriving (Eq) +instance Enum EnumIlluminationPassesState where + fromEnum IpsCompileDisabled = (-1) + fromEnum IpsNotCompiled = 0 + fromEnum IpsCompiled = 1 + + toEnum (-1) = IpsCompileDisabled + toEnum 0 = IpsNotCompiled + toEnum 1 = IpsCompiled + toEnum unmatched = error ("EnumIlluminationPassesState.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,56 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumIlluminationRenderStage.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumIlluminationRenderStage.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSceneManager.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumIlluminationRenderStage where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSceneManager.h line:169 -} +data EnumIlluminationRenderStage = IrsNone + | IrsRenderToTexture + | IrsRenderReceiverPass + deriving (Enum,Eq)
@@ -0,0 +1,57 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumIlluminationStage.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumIlluminationStage.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgrePass.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumIlluminationStage where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgrePass.h line:49 -} +data EnumIlluminationStage = IsAmbient + | IsPerLight + | IsDecal + | IsUnknown + deriving (Enum,Eq)
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumImageFlags.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumImageFlags.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreImage.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumImageFlags where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreImage.h line:44 -} +data EnumImageFlags = IfCompressed + | IfCubemap + | If3dTexture + deriving (Eq) +instance Enum EnumImageFlags where + fromEnum IfCompressed = 1 + fromEnum IfCubemap = 2 + fromEnum If3dTexture = 4 + + toEnum 1 = IfCompressed + toEnum 2 = IfCubemap + toEnum 4 = If3dTexture + toEnum unmatched = error ("EnumImageFlags.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,62 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumIncludeOrExclude.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumIncludeOrExclude.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreTechnique.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumIncludeOrExclude where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreTechnique.h line:114 -} +data EnumIncludeOrExclude = Include + | Exclude + deriving (Eq) +instance Enum EnumIncludeOrExclude where + fromEnum Include = 0 + fromEnum Exclude = 1 + + toEnum 0 = Include + toEnum 1 = Exclude + toEnum unmatched = error ("EnumIncludeOrExclude.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,55 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumIndexType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumIndexType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreHardwareIndexBuffer.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumIndexType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreHardwareIndexBuffer.h line:49 -} +data EnumIndexType = It16bit + | It32bit + deriving (Enum,Eq)
@@ -0,0 +1,55 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumInputMode.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumInputMode.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCompositionTargetPass.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumInputMode where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCompositionTargetPass.h line:52 -} +data EnumInputMode = ImNone + | ImPrevious + deriving (Enum,Eq)
@@ -0,0 +1,55 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumInterpolationMode.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumInterpolationMode.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreAnimation.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumInterpolationMode where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreAnimation.h line:63 -} +data EnumInterpolationMode = ImLinear + | ImSpline + deriving (Enum,Eq)
@@ -0,0 +1,57 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumLayerBlendOperation.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumLayerBlendOperation.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBlendMode.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumLayerBlendOperation where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBlendMode.h line:57 -} +data EnumLayerBlendOperation = LboReplace + | LboAdd + | LboModulate + | LboAlphaBlend + deriving (Enum,Eq)
@@ -0,0 +1,68 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumLayerBlendOperationEx.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumLayerBlendOperationEx.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBlendMode.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumLayerBlendOperationEx where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBlendMode.h line:75 -} +data EnumLayerBlendOperationEx = LbxSource1 + | LbxSource2 + | LbxModulate + | LbxModulateX2 + | LbxModulateX4 + | LbxAdd + | LbxAddSigned + | LbxAddSmooth + | LbxSubtract + | LbxBlendDiffuseAlpha + | LbxBlendTextureAlpha + | LbxBlendCurrentAlpha + | LbxBlendManual + | LbxDotproduct + | LbxBlendDiffuseColour + deriving (Enum,Eq)
@@ -0,0 +1,58 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumLayerBlendSource.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumLayerBlendSource.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBlendMode.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumLayerBlendSource where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBlendMode.h line:112 -} +data EnumLayerBlendSource = LbsCurrent + | LbsTexture + | LbsDiffuse + | LbsSpecular + | LbsManual + deriving (Enum,Eq)
@@ -0,0 +1,55 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumLayerBlendType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumLayerBlendType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBlendMode.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumLayerBlendType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBlendMode.h line:44 -} +data EnumLayerBlendType = LbtColour + | LbtAlpha + deriving (Enum,Eq)
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumLightTypes.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumLightTypes.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreLight.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumLightTypes where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreLight.h line:81 -} +data EnumLightTypes = LtPoint + | LtDirectional + | LtSpotlight + deriving (Eq) +instance Enum EnumLightTypes where + fromEnum LtPoint = 0 + fromEnum LtDirectional = 1 + fromEnum LtSpotlight = 2 + + toEnum 0 = LtPoint + toEnum 1 = LtDirectional + toEnum 2 = LtSpotlight + toEnum unmatched = error ("EnumLightTypes.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,59 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumLoadingState.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumLoadingState.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreResource.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumLoadingState where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreResource.h line:125 -} +data EnumLoadingState = LoadstateUnloaded + | LoadstateLoading + | LoadstateLoaded + | LoadstateUnloading + | LoadstatePrepared + | LoadstatePreparing + deriving (Enum,Eq)
@@ -0,0 +1,57 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumLockOptions.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumLockOptions.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreHardwareBuffer.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumLockOptions where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreHardwareBuffer.h line:120 -} +data EnumLockOptions = HblNormal + | HblDiscard + | HblReadOnly + | HblNoOverwrite + deriving (Enum,Eq)
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumLogMessageLevel.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumLogMessageLevel.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreLog.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumLogMessageLevel where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreLog.h line:57 -} +data EnumLogMessageLevel = LmlTrivial + | LmlNormal + | LmlCritical + deriving (Eq) +instance Enum EnumLogMessageLevel where + fromEnum LmlTrivial = 1 + fromEnum LmlNormal = 2 + fromEnum LmlCritical = 3 + + toEnum 1 = LmlTrivial + toEnum 2 = LmlNormal + toEnum 3 = LmlCritical + toEnum unmatched = error ("EnumLogMessageLevel.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumLoggingLevel.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumLoggingLevel.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreLog.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumLoggingLevel where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreLog.h line:48 -} +data EnumLoggingLevel = LlLow + | LlNormal + | LlBoreme + deriving (Eq) +instance Enum EnumLoggingLevel where + fromEnum LlLow = 1 + fromEnum LlNormal = 2 + fromEnum LlBoreme = 3 + + toEnum 1 = LlLow + toEnum 2 = LlNormal + toEnum 3 = LlBoreme + toEnum unmatched = error ("EnumLoggingLevel.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumManualCullingMode.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumManualCullingMode.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCommon.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumManualCullingMode where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCommon.h line:151 -} +data EnumManualCullingMode = ManualCullNone + | ManualCullBack + | ManualCullFront + deriving (Eq) +instance Enum EnumManualCullingMode where + fromEnum ManualCullNone = 1 + fromEnum ManualCullBack = 2 + fromEnum ManualCullFront = 3 + + toEnum 1 = ManualCullNone + toEnum 2 = ManualCullBack + toEnum 3 = ManualCullFront + toEnum unmatched = error ("EnumManualCullingMode.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,62 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumMaterialScriptSection.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumMaterialScriptSection.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreMaterialSerializer.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumMaterialScriptSection where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreMaterialSerializer.h line:47 -} +data EnumMaterialScriptSection = MssNone + | MssMaterial + | MssTechnique + | MssPass + | MssTextureunit + | MssProgramRef + | MssProgram + | MssDefaultParameters + | MssTexturesource + deriving (Enum,Eq)
@@ -0,0 +1,83 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumMemoryCategory.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumMemoryCategory.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreMemoryAllocatorConfig.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumMemoryCategory where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreMemoryAllocatorConfig.h line:158 -} +data EnumMemoryCategory = MemcategoryGeneral + | MemcategoryGeometry + | MemcategoryAnimation + | MemcategorySceneControl + | MemcategorySceneObjects + | MemcategoryResource + | MemcategoryScripting + | MemcategoryRendersys + | MemcategoryCount + deriving (Eq) +instance Enum EnumMemoryCategory where + fromEnum MemcategoryGeneral = 0 + fromEnum MemcategoryGeometry = 1 + fromEnum MemcategoryAnimation = 2 + fromEnum MemcategorySceneControl = 3 + fromEnum MemcategorySceneObjects = 4 + fromEnum MemcategoryResource = 5 + fromEnum MemcategoryScripting = 6 + fromEnum MemcategoryRendersys = 7 + fromEnum MemcategoryCount = 8 + + toEnum 0 = MemcategoryGeneral + toEnum 1 = MemcategoryGeometry + toEnum 2 = MemcategoryAnimation + toEnum 3 = MemcategorySceneControl + toEnum 4 = MemcategorySceneObjects + toEnum 5 = MemcategoryResource + toEnum 6 = MemcategoryScripting + toEnum 7 = MemcategoryRendersys + toEnum 8 = MemcategoryCount + toEnum unmatched = error ("EnumMemoryCategory.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,56 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumMeshBuildType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumMeshBuildType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreMeshManager.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumMeshBuildType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreMeshManager.h line:444 -} +data EnumMeshBuildType = MbtPlane + | MbtCurvedIllusionPlane + | MbtCurvedPlane + deriving (Enum,Eq)
@@ -0,0 +1,74 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumOperationType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumOperationType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRenderOperation.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumOperationType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRenderOperation.h line:47 -} +data EnumOperationType = OtPointList + | OtLineList + | OtLineStrip + | OtTriangleList + | OtTriangleStrip + | OtTriangleFan + deriving (Eq) +instance Enum EnumOperationType where + fromEnum OtPointList = 1 + fromEnum OtLineList = 2 + fromEnum OtLineStrip = 3 + fromEnum OtTriangleList = 4 + fromEnum OtTriangleStrip = 5 + fromEnum OtTriangleFan = 6 + + toEnum 1 = OtPointList + toEnum 2 = OtLineList + toEnum 3 = OtLineStrip + toEnum 4 = OtTriangleList + toEnum 5 = OtTriangleStrip + toEnum 6 = OtTriangleFan + toEnum unmatched = error ("EnumOperationType.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumOrganisationMode.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumOrganisationMode.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRenderQueueSortingGrouping.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumOrganisationMode where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRenderQueueSortingGrouping.h line:124 -} +data EnumOrganisationMode = OmPassGroup + | OmSortDescending + | OmSortAscending + deriving (Eq) +instance Enum EnumOrganisationMode where + fromEnum OmPassGroup = 1 + fromEnum OmSortDescending = 2 + fromEnum OmSortAscending = 6 + + toEnum 1 = OmPassGroup + toEnum 2 = OmSortDescending + toEnum 6 = OmSortAscending + toEnum unmatched = error ("EnumOrganisationMode.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,77 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumOrientationMode.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumOrientationMode.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreFrustum.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumOrientationMode where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreFrustum.h line:48 -} +data EnumOrientationMode = OrDegree0 + | OrDegree90 + | OrDegree180 + | OrDegree270 + | OrPortrait + | OrLandscaperight + | OrLandscapeleft + deriving (Eq) +instance Enum EnumOrientationMode where + fromEnum OrDegree0 = 0 + fromEnum OrDegree90 = 1 + fromEnum OrDegree180 = 2 + fromEnum OrDegree270 = 3 + fromEnum OrPortrait = 0 + fromEnum OrLandscaperight = 1 + fromEnum OrLandscapeleft = 3 + + toEnum 0 = OrDegree0 + toEnum 1 = OrDegree90 + toEnum 2 = OrDegree180 + toEnum 3 = OrDegree270 + toEnum 0 = OrPortrait + toEnum 1 = OrLandscaperight + toEnum 3 = OrLandscapeleft + toEnum unmatched = error ("EnumOrientationMode.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,67 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumParameterType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumParameterType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreStringInterface.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumParameterType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreStringInterface.h line:46 -} +data EnumParameterType = PtBool + | PtReal + | PtInt + | PtUnsignedInt + | PtShort + | PtUnsignedShort + | PtLong + | PtUnsignedLong + | PtString + | PtVector3 + | PtMatrix3 + | PtMatrix4 + | PtQuaternion + | PtColourvalue + deriving (Enum,Eq)
@@ -0,0 +1,56 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumParseAction.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumParseAction.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRenderSystemCapabilitiesSerializer.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumParseAction where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRenderSystemCapabilitiesSerializer.h line:109 -} +data EnumParseAction = ParseHeader + | FindOpenBrace + | CollectLines + deriving (Enum,Eq)
@@ -0,0 +1,55 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumParticleType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumParticleType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreParticle.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumParticleType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreParticle.h line:69 -} +data EnumParticleType = Visual + | Emitter + deriving (Enum,Eq)
@@ -0,0 +1,58 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumPassType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumPassType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCompositionPass.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumPassType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCompositionPass.h line:54 -} +data EnumPassType = PtClear + | PtStencil + | PtRenderscene + | PtRenderquad + | PtRendercustom + deriving (Enum,Eq)
@@ -0,0 +1,54 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumPatchSurfaceType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumPatchSurfaceType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgrePatchSurface.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumPatchSurfaceType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgrePatchSurface.h line:58 -} +data EnumPatchSurfaceType = PstBezier + deriving (Enum,Eq)
@@ -0,0 +1,71 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumPixelComponentType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumPixelComponentType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgrePixelFormat.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumPixelComponentType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgrePixelFormat.h line:179 -} +data EnumPixelComponentType = PctByte + | PctShort + | PctFloat16 + | PctFloat32 + | PctCount + deriving (Eq) +instance Enum EnumPixelComponentType where + fromEnum PctByte = 0 + fromEnum PctShort = 1 + fromEnum PctFloat16 = 2 + fromEnum PctFloat32 = 3 + fromEnum PctCount = 4 + + toEnum 0 = PctByte + toEnum 1 = PctShort + toEnum 2 = PctFloat16 + toEnum 3 = PctFloat32 + toEnum 4 = PctCount + toEnum unmatched = error ("EnumPixelComponentType.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,206 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumPixelFormat.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumPixelFormat.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgrePixelFormat.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumPixelFormat where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgrePixelFormat.h line:42 -} +data EnumPixelFormat = PfUnknown + | PfL8 + | PfByteL + | PfL16 + | PfShortL + | PfA8 + | PfByteA + | PfA4l4 + | PfByteLa + | PfR5g6b5 + | PfB5g6r5 + | PfR3g3b2 + | PfA4r4g4b4 + | PfA1r5g5b5 + | PfR8g8b8 + | PfB8g8r8 + | PfA8r8g8b8 + | PfA8b8g8r8 + | PfB8g8r8a8 + | PfR8g8b8a8 + | PfX8r8g8b8 + | PfX8b8g8r8 + | PfByteRgb + | PfByteBgr + | PfByteBgra + | PfByteRgba + | PfA2r10g10b10 + | PfA2b10g10r10 + | PfDxt1 + | PfDxt2 + | PfDxt3 + | PfDxt4 + | PfDxt5 + | PfFloat16R + | PfFloat16Rgb + | PfFloat16Rgba + | PfFloat32R + | PfFloat32Rgb + | PfFloat32Rgba + | PfFloat16Gr + | PfFloat32Gr + | PfDepth + | PfShortRgba + | PfShortGr + | PfShortRgb + | PfPvrtcRgb2 + | PfPvrtcRgba2 + | PfPvrtcRgb4 + | PfPvrtcRgba4 + | PfCount + deriving (Eq) +instance Enum EnumPixelFormat where + fromEnum PfUnknown = 0 + fromEnum PfL8 = 1 + fromEnum PfByteL = 1 + fromEnum PfL16 = 2 + fromEnum PfShortL = 2 + fromEnum PfA8 = 3 + fromEnum PfByteA = 3 + fromEnum PfA4l4 = 4 + fromEnum PfByteLa = 5 + fromEnum PfR5g6b5 = 6 + fromEnum PfB5g6r5 = 7 + fromEnum PfR3g3b2 = 31 + fromEnum PfA4r4g4b4 = 8 + fromEnum PfA1r5g5b5 = 9 + fromEnum PfR8g8b8 = 10 + fromEnum PfB8g8r8 = 11 + fromEnum PfA8r8g8b8 = 12 + fromEnum PfA8b8g8r8 = 13 + fromEnum PfB8g8r8a8 = 14 + fromEnum PfR8g8b8a8 = 28 + fromEnum PfX8r8g8b8 = 26 + fromEnum PfX8b8g8r8 = 27 + fromEnum PfByteRgb = 10 + fromEnum PfByteBgr = 11 + fromEnum PfByteBgra = 14 + fromEnum PfByteRgba = 28 + fromEnum PfA2r10g10b10 = 15 + fromEnum PfA2b10g10r10 = 16 + fromEnum PfDxt1 = 17 + fromEnum PfDxt2 = 18 + fromEnum PfDxt3 = 19 + fromEnum PfDxt4 = 20 + fromEnum PfDxt5 = 21 + fromEnum PfFloat16R = 32 + fromEnum PfFloat16Rgb = 22 + fromEnum PfFloat16Rgba = 23 + fromEnum PfFloat32R = 33 + fromEnum PfFloat32Rgb = 24 + fromEnum PfFloat32Rgba = 25 + fromEnum PfFloat16Gr = 35 + fromEnum PfFloat32Gr = 36 + fromEnum PfDepth = 29 + fromEnum PfShortRgba = 30 + fromEnum PfShortGr = 34 + fromEnum PfShortRgb = 37 + fromEnum PfPvrtcRgb2 = 38 + fromEnum PfPvrtcRgba2 = 39 + fromEnum PfPvrtcRgb4 = 40 + fromEnum PfPvrtcRgba4 = 41 + fromEnum PfCount = 42 + + toEnum 0 = PfUnknown + toEnum 1 = PfL8 + toEnum 1 = PfByteL + toEnum 2 = PfL16 + toEnum 2 = PfShortL + toEnum 3 = PfA8 + toEnum 3 = PfByteA + toEnum 4 = PfA4l4 + toEnum 5 = PfByteLa + toEnum 6 = PfR5g6b5 + toEnum 7 = PfB5g6r5 + toEnum 31 = PfR3g3b2 + toEnum 8 = PfA4r4g4b4 + toEnum 9 = PfA1r5g5b5 + toEnum 10 = PfR8g8b8 + toEnum 11 = PfB8g8r8 + toEnum 12 = PfA8r8g8b8 + toEnum 13 = PfA8b8g8r8 + toEnum 14 = PfB8g8r8a8 + toEnum 28 = PfR8g8b8a8 + toEnum 26 = PfX8r8g8b8 + toEnum 27 = PfX8b8g8r8 + toEnum 10 = PfByteRgb + toEnum 11 = PfByteBgr + toEnum 14 = PfByteBgra + toEnum 28 = PfByteRgba + toEnum 15 = PfA2r10g10b10 + toEnum 16 = PfA2b10g10r10 + toEnum 17 = PfDxt1 + toEnum 18 = PfDxt2 + toEnum 19 = PfDxt3 + toEnum 20 = PfDxt4 + toEnum 21 = PfDxt5 + toEnum 32 = PfFloat16R + toEnum 22 = PfFloat16Rgb + toEnum 23 = PfFloat16Rgba + toEnum 33 = PfFloat32R + toEnum 24 = PfFloat32Rgb + toEnum 25 = PfFloat32Rgba + toEnum 35 = PfFloat16Gr + toEnum 36 = PfFloat32Gr + toEnum 29 = PfDepth + toEnum 30 = PfShortRgba + toEnum 34 = PfShortGr + toEnum 37 = PfShortRgb + toEnum 38 = PfPvrtcRgb2 + toEnum 39 = PfPvrtcRgba2 + toEnum 40 = PfPvrtcRgb4 + toEnum 41 = PfPvrtcRgba4 + toEnum 42 = PfCount + toEnum unmatched = error ("EnumPixelFormat.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,74 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumPixelFormatFlags.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumPixelFormatFlags.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgrePixelFormat.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumPixelFormatFlags where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgrePixelFormat.h line:160 -} +data EnumPixelFormatFlags = PffHasalpha + | PffCompressed + | PffFloat + | PffDepth + | PffNativeendian + | PffLuminance + deriving (Eq) +instance Enum EnumPixelFormatFlags where + fromEnum PffHasalpha = 1 + fromEnum PffCompressed = 2 + fromEnum PffFloat = 4 + fromEnum PffDepth = 8 + fromEnum PffNativeendian = 16 + fromEnum PffLuminance = 32 + + toEnum 1 = PffHasalpha + toEnum 2 = PffCompressed + toEnum 4 = PffFloat + toEnum 8 = PffDepth + toEnum 16 = PffNativeendian + toEnum 32 = PffLuminance + toEnum unmatched = error ("EnumPixelFormatFlags.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumPolygonMode.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumPolygonMode.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCommon.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumPolygonMode where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCommon.h line:180 -} +data EnumPolygonMode = PmPoints + | PmWireframe + | PmSolid + deriving (Eq) +instance Enum EnumPolygonMode where + fromEnum PmPoints = 1 + fromEnum PmWireframe = 2 + fromEnum PmSolid = 3 + + toEnum 1 = PmPoints + toEnum 2 = PmWireframe + toEnum 3 = PmSolid + toEnum unmatched = error ("EnumPolygonMode.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,56 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumPrefabType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumPrefabType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSceneManager.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumPrefabType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSceneManager.h line:1317 -} +data EnumPrefabType = PtPlane + | PtCube + | PtSphere + deriving (Enum,Eq)
@@ -0,0 +1,71 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumProfileGroupMask.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumProfileGroupMask.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreProfiler.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumProfileGroupMask where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreProfiler.h line:75 -} +data EnumProfileGroupMask = OgreprofUserDefault + | OgreprofAll + | OgreprofGeneral + | OgreprofCulling + | OgreprofRendering + deriving (Eq) +instance Enum EnumProfileGroupMask where + fromEnum OgreprofUserDefault = 1 + fromEnum OgreprofAll = 4278190080 + fromEnum OgreprofGeneral = 2147483648 + fromEnum OgreprofCulling = 1073741824 + fromEnum OgreprofRendering = 536870912 + + toEnum 1 = OgreprofUserDefault + toEnum 4278190080 = OgreprofAll + toEnum 2147483648 = OgreprofGeneral + toEnum 1073741824 = OgreprofCulling + toEnum 536870912 = OgreprofRendering + toEnum unmatched = error ("EnumProfileGroupMask.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,80 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumPrograms.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumPrograms.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreShadowVolumeExtrudeProgram.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumPrograms where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreShadowVolumeExtrudeProgram.h line:172 -} +data EnumPrograms = PointLight + | PointLightDebug + | DirectionalLight + | DirectionalLightDebug + | PointLightFinite + | PointLightFiniteDebug + | DirectionalLightFinite + | DirectionalLightFiniteDebug + deriving (Eq) +instance Enum EnumPrograms where + fromEnum PointLight = 0 + fromEnum PointLightDebug = 1 + fromEnum DirectionalLight = 2 + fromEnum DirectionalLightDebug = 3 + fromEnum PointLightFinite = 4 + fromEnum PointLightFiniteDebug = 5 + fromEnum DirectionalLightFinite = 6 + fromEnum DirectionalLightFiniteDebug = 7 + + toEnum 0 = PointLight + toEnum 1 = PointLightDebug + toEnum 2 = DirectionalLight + toEnum 3 = DirectionalLightDebug + toEnum 4 = PointLightFinite + toEnum 5 = PointLightFiniteDebug + toEnum 6 = DirectionalLightFinite + toEnum 7 = DirectionalLightFiniteDebug + toEnum unmatched = error ("EnumPrograms.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,55 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumProjectionType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumProjectionType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreFrustum.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumProjectionType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreFrustum.h line:62 -} +data EnumProjectionType = PtOrthographic + | PtPerspective + deriving (Enum,Eq)
@@ -0,0 +1,55 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumRealStorageFormat.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumRealStorageFormat.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreStreamSerialiser.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumRealStorageFormat where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreStreamSerialiser.h line:81 -} +data EnumRealStorageFormat = RealFloat + | RealDouble + deriving (Enum,Eq)
@@ -0,0 +1,104 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumRenderQueueGroupID.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumRenderQueueGroupID.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRenderQueue.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumRenderQueueGroupID where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRenderQueue.h line:53 -} +data EnumRenderQueueGroupID = RenderQueueBackground + | RenderQueueSkiesEarly + | RenderQueue1 + | RenderQueue2 + | RenderQueueWorldGeometry1 + | RenderQueue3 + | RenderQueue4 + | RenderQueueMain + | RenderQueue6 + | RenderQueue7 + | RenderQueueWorldGeometry2 + | RenderQueue8 + | RenderQueue9 + | RenderQueueSkiesLate + | RenderQueueOverlay + | RenderQueueMax + deriving (Eq) +instance Enum EnumRenderQueueGroupID where + fromEnum RenderQueueBackground = 0 + fromEnum RenderQueueSkiesEarly = 5 + fromEnum RenderQueue1 = 10 + fromEnum RenderQueue2 = 20 + fromEnum RenderQueueWorldGeometry1 = 25 + fromEnum RenderQueue3 = 30 + fromEnum RenderQueue4 = 40 + fromEnum RenderQueueMain = 50 + fromEnum RenderQueue6 = 60 + fromEnum RenderQueue7 = 70 + fromEnum RenderQueueWorldGeometry2 = 75 + fromEnum RenderQueue8 = 80 + fromEnum RenderQueue9 = 90 + fromEnum RenderQueueSkiesLate = 95 + fromEnum RenderQueueOverlay = 100 + fromEnum RenderQueueMax = 105 + + toEnum 0 = RenderQueueBackground + toEnum 5 = RenderQueueSkiesEarly + toEnum 10 = RenderQueue1 + toEnum 20 = RenderQueue2 + toEnum 25 = RenderQueueWorldGeometry1 + toEnum 30 = RenderQueue3 + toEnum 40 = RenderQueue4 + toEnum 50 = RenderQueueMain + toEnum 60 = RenderQueue6 + toEnum 70 = RenderQueue7 + toEnum 75 = RenderQueueWorldGeometry2 + toEnum 80 = RenderQueue8 + toEnum 90 = RenderQueue9 + toEnum 95 = RenderQueueSkiesLate + toEnum 100 = RenderQueueOverlay + toEnum 105 = RenderQueueMax + toEnum unmatched = error ("EnumRenderQueueGroupID.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,80 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumRequestType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumRequestType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreResourceBackgroundQueue.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumRequestType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreResourceBackgroundQueue.h line:111 -} +data EnumRequestType = RtInitialiseGroup + | RtInitialiseAllGroups + | RtPrepareGroup + | RtPrepareResource + | RtLoadGroup + | RtLoadResource + | RtUnloadGroup + | RtUnloadResource + deriving (Eq) +instance Enum EnumRequestType where + fromEnum RtInitialiseGroup = 0 + fromEnum RtInitialiseAllGroups = 1 + fromEnum RtPrepareGroup = 2 + fromEnum RtPrepareResource = 3 + fromEnum RtLoadGroup = 4 + fromEnum RtLoadResource = 5 + fromEnum RtUnloadGroup = 6 + fromEnum RtUnloadResource = 7 + + toEnum 0 = RtInitialiseGroup + toEnum 1 = RtInitialiseAllGroups + toEnum 2 = RtPrepareGroup + toEnum 3 = RtPrepareResource + toEnum 4 = RtLoadGroup + toEnum 5 = RtLoadResource + toEnum 6 = RtUnloadGroup + toEnum 7 = RtUnloadResource + toEnum unmatched = error ("EnumRequestType.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,57 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumResourceType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumResourceType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreScriptCompiler.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumResourceType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreScriptCompiler.h line:477 -} +data EnumResourceType = Texture + | Material + | GpuProgram + | Compositor + deriving (Enum,Eq)
@@ -0,0 +1,55 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumRotationInterpolationMode.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumRotationInterpolationMode.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreAnimation.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumRotationInterpolationMode where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreAnimation.h line:72 -} +data EnumRotationInterpolationMode = RimLinear + | RimSpherical + deriving (Enum,Eq)
@@ -0,0 +1,63 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumSceneBlendFactor.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumSceneBlendFactor.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBlendMode.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumSceneBlendFactor where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBlendMode.h line:234 -} +data EnumSceneBlendFactor = SbfOne + | SbfZero + | SbfDestColour + | SbfSourceColour + | SbfOneMinusDestColour + | SbfOneMinusSourceColour + | SbfDestAlpha + | SbfSourceAlpha + | SbfOneMinusDestAlpha + | SbfOneMinusSourceAlpha + deriving (Enum,Eq)
@@ -0,0 +1,58 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumSceneBlendOperation.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumSceneBlendOperation.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBlendMode.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumSceneBlendOperation where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBlendMode.h line:253 -} +data EnumSceneBlendOperation = SboAdd + | SboSubtract + | SboReverseSubtract + | SboMin + | SboMax + deriving (Enum,Eq)
@@ -0,0 +1,58 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumSceneBlendType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumSceneBlendType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBlendMode.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumSceneBlendType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBlendMode.h line:215 -} +data EnumSceneBlendType = SbtTransparentAlpha + | SbtTransparentColour + | SbtAdd + | SbtModulate + | SbtReplace + deriving (Enum,Eq)
@@ -0,0 +1,71 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumSceneType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumSceneType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSceneManager.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumSceneType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSceneManager.h line:3461 -} +data EnumSceneType = StGeneric + | StExteriorClose + | StExteriorFar + | StExteriorRealFar + | StInterior + deriving (Eq) +instance Enum EnumSceneType where + fromEnum StGeneric = 1 + fromEnum StExteriorClose = 2 + fromEnum StExteriorFar = 4 + fromEnum StExteriorRealFar = 8 + fromEnum StInterior = 16 + + toEnum 1 = StGeneric + toEnum 2 = StExteriorClose + toEnum 4 = StExteriorFar + toEnum 8 = StExteriorRealFar + toEnum 16 = StInterior + toEnum unmatched = error ("EnumSceneType.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,57 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumSerializeEvent.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumSerializeEvent.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreMaterialSerializer.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumSerializeEvent where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreMaterialSerializer.h line:109 -} +data EnumSerializeEvent = MsePreWrite + | MseWriteBegin + | MseWriteEnd + | MsePostWrite + deriving (Enum,Eq)
@@ -0,0 +1,56 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumShadeOptions.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumShadeOptions.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCommon.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumShadeOptions where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCommon.h line:114 -} +data EnumShadeOptions = SoFlat + | SoGouraud + | SoPhong + deriving (Enum,Eq)
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumShadowRenderableFlags.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumShadowRenderableFlags.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreShadowCaster.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumShadowRenderableFlags where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreShadowCaster.h line:97 -} +data EnumShadowRenderableFlags = SrfIncludeLightCap + | SrfIncludeDarkCap + | SrfExtrudeToInfinity + deriving (Eq) +instance Enum EnumShadowRenderableFlags where + fromEnum SrfIncludeLightCap = 1 + fromEnum SrfIncludeDarkCap = 2 + fromEnum SrfExtrudeToInfinity = 4 + + toEnum 1 = SrfIncludeLightCap + toEnum 2 = SrfIncludeDarkCap + toEnum 4 = SrfExtrudeToInfinity + toEnum unmatched = error ("EnumShadowRenderableFlags.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,92 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumShadowTechnique.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumShadowTechnique.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCommon.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumShadowTechnique where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCommon.h line:191 -} +data EnumShadowTechnique = ShadowtypeNone + | ShadowdetailtypeAdditive + | ShadowdetailtypeModulative + | ShadowdetailtypeIntegrated + | ShadowdetailtypeStencil + | ShadowdetailtypeTexture + | ShadowtypeStencilModulative + | ShadowtypeStencilAdditive + | ShadowtypeTextureModulative + | ShadowtypeTextureAdditive + | ShadowtypeTextureAdditiveIntegrated + | ShadowtypeTextureModulativeIntegrated + deriving (Eq) +instance Enum EnumShadowTechnique where + fromEnum ShadowtypeNone = 0 + fromEnum ShadowdetailtypeAdditive = 1 + fromEnum ShadowdetailtypeModulative = 2 + fromEnum ShadowdetailtypeIntegrated = 4 + fromEnum ShadowdetailtypeStencil = 16 + fromEnum ShadowdetailtypeTexture = 32 + fromEnum ShadowtypeStencilModulative = 18 + fromEnum ShadowtypeStencilAdditive = 17 + fromEnum ShadowtypeTextureModulative = 34 + fromEnum ShadowtypeTextureAdditive = 33 + fromEnum ShadowtypeTextureAdditiveIntegrated = 37 + fromEnum ShadowtypeTextureModulativeIntegrated = 38 + + toEnum 0 = ShadowtypeNone + toEnum 1 = ShadowdetailtypeAdditive + toEnum 2 = ShadowdetailtypeModulative + toEnum 4 = ShadowdetailtypeIntegrated + toEnum 16 = ShadowdetailtypeStencil + toEnum 32 = ShadowdetailtypeTexture + toEnum 18 = ShadowtypeStencilModulative + toEnum 17 = ShadowtypeStencilAdditive + toEnum 34 = ShadowtypeTextureModulative + toEnum 33 = ShadowtypeTextureAdditive + toEnum 37 = ShadowtypeTextureAdditiveIntegrated + toEnum 38 = ShadowtypeTextureModulativeIntegrated + toEnum unmatched = error ("EnumShadowTechnique.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,56 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumSharedPtrFreeMethod.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumSharedPtrFreeMethod.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSharedPtr.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumSharedPtrFreeMethod where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSharedPtr.h line:42 -} +data EnumSharedPtrFreeMethod = SpfmDelete + | SpfmDeleteT + | SpfmFree + deriving (Enum,Eq)
@@ -0,0 +1,57 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumSide.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumSide.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgrePlane.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumSide where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgrePlane.h line:80 -} +data EnumSide = NoSide + | PositiveSide + | NegativeSide + | BothSide + deriving (Enum,Eq)
@@ -0,0 +1,55 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumSkeletonAnimationBlendMode.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumSkeletonAnimationBlendMode.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSkeleton.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumSkeletonAnimationBlendMode where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSkeleton.h line:48 -} +data EnumSkeletonAnimationBlendMode = AnimblendAverage + | AnimblendCumulative + deriving (Enum,Eq)
@@ -0,0 +1,77 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumSkeletonChunkID.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumSkeletonChunkID.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSkeletonFileFormat.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumSkeletonChunkID where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSkeletonFileFormat.h line:55 -} +data EnumSkeletonChunkID = SkeletonHeader + | SkeletonBone + | SkeletonBoneParent + | SkeletonAnimation + | SkeletonAnimationTrack + | SkeletonAnimationTrackKeyframe + | SkeletonAnimationLink + deriving (Eq) +instance Enum EnumSkeletonChunkID where + fromEnum SkeletonHeader = 4096 + fromEnum SkeletonBone = 8192 + fromEnum SkeletonBoneParent = 12288 + fromEnum SkeletonAnimation = 16384 + fromEnum SkeletonAnimationTrack = 16640 + fromEnum SkeletonAnimationTrackKeyframe = 16656 + fromEnum SkeletonAnimationLink = 20480 + + toEnum 4096 = SkeletonHeader + toEnum 8192 = SkeletonBone + toEnum 12288 = SkeletonBoneParent + toEnum 16384 = SkeletonAnimation + toEnum 16640 = SkeletonAnimationTrack + toEnum 16656 = SkeletonAnimationTrackKeyframe + toEnum 20480 = SkeletonAnimationLink + toEnum unmatched = error ("EnumSkeletonChunkID.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,55 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumSortMode.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumSortMode.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCommon.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumSortMode where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCommon.h line:287 -} +data EnumSortMode = SmDirection + | SmDistance + deriving (Enum,Eq)
@@ -0,0 +1,55 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumSpecialCaseRenderQueueMode.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumSpecialCaseRenderQueueMode.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSceneManager.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumSpecialCaseRenderQueueMode where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSceneManager.h line:183 -} +data EnumSpecialCaseRenderQueueMode = ScrqmInclude + | ScrqmExclude + deriving (Enum,Eq)
@@ -0,0 +1,77 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumStatFlags.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumStatFlags.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRenderTarget.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumStatFlags where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRenderTarget.h line:67 -} +data EnumStatFlags = SfNone + | SfFps + | SfAvgFps + | SfBestFps + | SfWorstFps + | SfTriangleCount + | SfAll + deriving (Eq) +instance Enum EnumStatFlags where + fromEnum SfNone = 0 + fromEnum SfFps = 1 + fromEnum SfAvgFps = 2 + fromEnum SfBestFps = 4 + fromEnum SfWorstFps = 8 + fromEnum SfTriangleCount = 16 + fromEnum SfAll = 65535 + + toEnum 0 = SfNone + toEnum 1 = SfFps + toEnum 2 = SfAvgFps + toEnum 4 = SfBestFps + toEnum 8 = SfWorstFps + toEnum 16 = SfTriangleCount + toEnum 65535 = SfAll + toEnum unmatched = error ("EnumStatFlags.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,71 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumStatus.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumStatus.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreResourceGroupManager.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumStatus where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreResourceGroupManager.h line:308 -} +data EnumStatus = Uninitialsed + | Initialising + | Initialised + | Loading + | Loaded + deriving (Eq) +instance Enum EnumStatus where + fromEnum Uninitialsed = 0 + fromEnum Initialising = 1 + fromEnum Initialised = 2 + fromEnum Loading = 3 + fromEnum Loaded = 4 + + toEnum 0 = Uninitialsed + toEnum 1 = Initialising + toEnum 2 = Initialised + toEnum 3 = Loading + toEnum 4 = Loaded + toEnum unmatched = error ("EnumStatus.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,61 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumStencilOperation.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumStencilOperation.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRenderSystem.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumStencilOperation where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRenderSystem.h line:77 -} +data EnumStencilOperation = SopKeep + | SopZero + | SopReplace + | SopIncrement + | SopDecrement + | SopIncrementWrap + | SopDecrementWrap + | SopInvert + deriving (Enum,Eq)
@@ -0,0 +1,55 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumTargetMode.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumTargetMode.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreAnimationTrack.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumTargetMode where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreAnimationTrack.h line:478 -} +data EnumTargetMode = TmSoftware + | TmHardware + deriving (Enum,Eq)
@@ -0,0 +1,59 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumTexCoordCalcMethod.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumTexCoordCalcMethod.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRenderSystem.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumTexCoordCalcMethod where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRenderSystem.h line:63 -} +data EnumTexCoordCalcMethod = TexcalcNone + | TexcalcEnvironmentMap + | TexcalcEnvironmentMapPlanar + | TexcalcEnvironmentMapReflection + | TexcalcEnvironmentMapNormal + | TexcalcProjectiveTexture + deriving (Enum,Eq)
@@ -0,0 +1,55 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumTexCoordDirection.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumTexCoordDirection.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBillboardChain.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumTexCoordDirection where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBillboardChain.h line:147 -} +data EnumTexCoordDirection = TcdU + | TcdV + deriving (Enum,Eq)
@@ -0,0 +1,57 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumTextureAddressingMode.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumTextureAddressingMode.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreTextureUnitState.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumTextureAddressingMode where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreTextureUnitState.h line:125 -} +data EnumTextureAddressingMode = TamWrap + | TamMirror + | TamClamp + | TamBorder + deriving (Enum,Eq)
@@ -0,0 +1,74 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumTextureCubeFace.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumTextureCubeFace.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreTextureUnitState.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumTextureCubeFace where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreTextureUnitState.h line:145 -} +data EnumTextureCubeFace = CubeFront + | CubeBack + | CubeLeft + | CubeRight + | CubeUp + | CubeDown + deriving (Eq) +instance Enum EnumTextureCubeFace where + fromEnum CubeFront = 0 + fromEnum CubeBack = 1 + fromEnum CubeLeft = 2 + fromEnum CubeRight = 3 + fromEnum CubeUp = 4 + fromEnum CubeDown = 5 + + toEnum 0 = CubeFront + toEnum 1 = CubeBack + toEnum 2 = CubeLeft + toEnum 3 = CubeRight + toEnum 4 = CubeUp + toEnum 5 = CubeDown + toEnum unmatched = error ("EnumTextureCubeFace.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,60 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumTextureEffectType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumTextureEffectType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreTextureUnitState.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumTextureEffectType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreTextureUnitState.h line:70 -} +data EnumTextureEffectType = EtEnvironmentMap + | EtProjectiveTexture + | EtUvscroll + | EtUscroll + | EtVscroll + | EtRotate + | EtTransform + deriving (Enum,Eq)
@@ -0,0 +1,57 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumTextureFilterOptions.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumTextureFilterOptions.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCommon.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumTextureFilterOptions where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCommon.h line:79 -} +data EnumTextureFilterOptions = TfoNone + | TfoBilinear + | TfoTrilinear + | TfoAnisotropic + deriving (Enum,Eq)
@@ -0,0 +1,62 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumTextureMipmap.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumTextureMipmap.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreTexture.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumTextureMipmap where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreTexture.h line:81 -} +data EnumTextureMipmap = MipUnlimited + | MipDefault + deriving (Eq) +instance Enum EnumTextureMipmap where + fromEnum MipUnlimited = 2147483647 + fromEnum MipDefault = (-1) + + toEnum 2147483647 = MipUnlimited + toEnum (-1) = MipDefault + toEnum unmatched = error ("EnumTextureMipmap.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,56 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumTextureScope.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumTextureScope.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCompositionTechnique.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumTextureScope where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCompositionTechnique.h line:51 -} +data EnumTextureScope = TsLocal + | TsChain + | TsGlobal + deriving (Enum,Eq)
@@ -0,0 +1,58 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumTextureTransformType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumTextureTransformType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreTextureUnitState.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumTextureTransformType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreTextureUnitState.h line:111 -} +data EnumTextureTransformType = TtTranslateU + | TtTranslateV + | TtScaleU + | TtScaleV + | TtRotate + deriving (Enum,Eq)
@@ -0,0 +1,68 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumTextureType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumTextureType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreTexture.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumTextureType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreTexture.h line:67 -} +data EnumTextureType = TexType1d + | TexType2d + | TexType3d + | TexTypeCubeMap + deriving (Eq) +instance Enum EnumTextureType where + fromEnum TexType1d = 1 + fromEnum TexType2d = 2 + fromEnum TexType3d = 3 + fromEnum TexTypeCubeMap = 4 + + toEnum 1 = TexType1d + toEnum 2 = TexType2d + toEnum 3 = TexType3d + toEnum 4 = TexTypeCubeMap + toEnum unmatched = error ("EnumTextureType.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,71 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumTrackVertexColourEnum.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumTrackVertexColourEnum.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCommon.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumTrackVertexColourEnum where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCommon.h line:278 -} +data EnumTrackVertexColourEnum = TvcNone + | TvcAmbient + | TvcDiffuse + | TvcSpecular + | TvcEmissive + deriving (Eq) +instance Enum EnumTrackVertexColourEnum where + fromEnum TvcNone = 0 + fromEnum TvcAmbient = 1 + fromEnum TvcDiffuse = 2 + fromEnum TvcSpecular = 4 + fromEnum TvcEmissive = 8 + + toEnum 0 = TvcNone + toEnum 1 = TvcAmbient + toEnum 2 = TvcDiffuse + toEnum 4 = TvcSpecular + toEnum 8 = TvcEmissive + toEnum unmatched = error ("EnumTrackVertexColourEnum.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,56 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumTransformSpace.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumTransformSpace.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreNode.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumTransformSpace where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreNode.h line:67 -} +data EnumTransformSpace = TsLocal + | TsParent + | TsWorld + deriving (Enum,Eq)
@@ -0,0 +1,77 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumUsage.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumUsage.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreHardwareBuffer.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumUsage where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreHardwareBuffer.h line:78 -} +data EnumUsage = HbuStatic + | HbuDynamic + | HbuWriteOnly + | HbuDiscardable + | HbuStaticWriteOnly + | HbuDynamicWriteOnly + | HbuDynamicWriteOnlyDiscardable + deriving (Eq) +instance Enum EnumUsage where + fromEnum HbuStatic = 1 + fromEnum HbuDynamic = 2 + fromEnum HbuWriteOnly = 4 + fromEnum HbuDiscardable = 8 + fromEnum HbuStaticWriteOnly = 5 + fromEnum HbuDynamicWriteOnly = 6 + fromEnum HbuDynamicWriteOnlyDiscardable = 14 + + toEnum 1 = HbuStatic + toEnum 2 = HbuDynamic + toEnum 4 = HbuWriteOnly + toEnum 8 = HbuDiscardable + toEnum 5 = HbuStaticWriteOnly + toEnum 6 = HbuDynamicWriteOnly + toEnum 14 = HbuDynamicWriteOnlyDiscardable + toEnum unmatched = error ("EnumUsage.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,62 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumValueType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumValueType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreAnimable.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumValueType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreAnimable.h line:75 -} +data EnumValueType = Int + | Real + | Vector2 + | Vector3 + | Vector4 + | Quaternion + | Colour + | Radian + | Degree + deriving (Enum,Eq)
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumVertexAnimationType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumVertexAnimationType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreAnimationTrack.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumVertexAnimationType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreAnimationTrack.h line:461 -} +data EnumVertexAnimationType = VatNone + | VatMorph + | VatPose + deriving (Eq) +instance Enum EnumVertexAnimationType where + fromEnum VatNone = 0 + fromEnum VatMorph = 1 + fromEnum VatPose = 2 + + toEnum 0 = VatNone + toEnum 1 = VatMorph + toEnum 2 = VatPose + toEnum unmatched = error ("EnumVertexAnimationType.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,57 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumVertexDataBindChoice.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumVertexDataBindChoice.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreEntity.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumVertexDataBindChoice where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreEntity.h line:716 -} +data EnumVertexDataBindChoice = BindOriginal + | BindSoftwareSkeletal + | BindSoftwareMorph + | BindHardwareMorph + deriving (Enum,Eq)
@@ -0,0 +1,83 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumVertexElementSemantic.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumVertexElementSemantic.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreHardwareVertexBuffer.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumVertexElementSemantic where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreHardwareVertexBuffer.h line:84 -} +data EnumVertexElementSemantic = VesPosition + | VesBlendWeights + | VesBlendIndices + | VesNormal + | VesDiffuse + | VesSpecular + | VesTextureCoordinates + | VesBinormal + | VesTangent + deriving (Eq) +instance Enum EnumVertexElementSemantic where + fromEnum VesPosition = 1 + fromEnum VesBlendWeights = 2 + fromEnum VesBlendIndices = 3 + fromEnum VesNormal = 4 + fromEnum VesDiffuse = 5 + fromEnum VesSpecular = 6 + fromEnum VesTextureCoordinates = 7 + fromEnum VesBinormal = 8 + fromEnum VesTangent = 9 + + toEnum 1 = VesPosition + toEnum 2 = VesBlendWeights + toEnum 3 = VesBlendIndices + toEnum 4 = VesNormal + toEnum 5 = VesDiffuse + toEnum 6 = VesSpecular + toEnum 7 = VesTextureCoordinates + toEnum 8 = VesBinormal + toEnum 9 = VesTangent + toEnum unmatched = error ("EnumVertexElementSemantic.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,92 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumVertexElementType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumVertexElementType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreHardwareVertexBuffer.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumVertexElementType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreHardwareVertexBuffer.h line:107 -} +data EnumVertexElementType = VetFloat1 + | VetFloat2 + | VetFloat3 + | VetFloat4 + | VetColour + | VetShort1 + | VetShort2 + | VetShort3 + | VetShort4 + | VetUbyte4 + | VetColourArgb + | VetColourAbgr + deriving (Eq) +instance Enum EnumVertexElementType where + fromEnum VetFloat1 = 0 + fromEnum VetFloat2 = 1 + fromEnum VetFloat3 = 2 + fromEnum VetFloat4 = 3 + fromEnum VetColour = 4 + fromEnum VetShort1 = 5 + fromEnum VetShort2 = 6 + fromEnum VetShort3 = 7 + fromEnum VetShort4 = 8 + fromEnum VetUbyte4 = 9 + fromEnum VetColourArgb = 10 + fromEnum VetColourAbgr = 11 + + toEnum 0 = VetFloat1 + toEnum 1 = VetFloat2 + toEnum 2 = VetFloat3 + toEnum 3 = VetFloat4 + toEnum 4 = VetColour + toEnum 5 = VetShort1 + toEnum 6 = VetShort2 + toEnum 7 = VetShort3 + toEnum 8 = VetShort4 + toEnum 9 = VetUbyte4 + toEnum 10 = VetColourArgb + toEnum 11 = VetColourAbgr + toEnum unmatched = error ("EnumVertexElementType.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,55 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumVertexReductionQuota.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumVertexReductionQuota.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreProgressiveMesh.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumVertexReductionQuota where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreProgressiveMesh.h line:69 -} +data EnumVertexReductionQuota = VrqConstant + | VrqProportional + deriving (Enum,Eq)
@@ -0,0 +1,56 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumVisibleSide.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumVisibleSide.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgrePatchSurface.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumVisibleSide where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgrePatchSurface.h line:70 -} +data EnumVisibleSide = VsFront + | VsBack + | VsBoth + deriving (Enum,Eq)
@@ -0,0 +1,59 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumWaveformType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumWaveformType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCommon.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumWaveformType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCommon.h line:162 -} +data EnumWaveformType = WftSine + | WftTriangle + | WftSquare + | WftSawtooth + | WftInverseSawtooth + | WftPwm + deriving (Enum,Eq)
@@ -0,0 +1,58 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumWorldFragmentType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumWorldFragmentType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSceneQuery.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumWorldFragmentType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSceneQuery.h line:82 -} +data EnumWorldFragmentType = WftNone + | WftPlaneBoundedRegion + | WftSingleIntersection + | WftCustomGeometry + | WftRenderOperation + deriving (Enum,Eq)
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumeTexturePlayMode.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumeTexturePlayMode.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreExternalTextureSource.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.EnumeTexturePlayMode where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreExternalTextureSource.h line:59 -} +data EnumeTexturePlayMode = Textureeffectpause + | TextureeffectplayAsap + | TextureeffectplayLooping + deriving (Eq) +instance Enum EnumeTexturePlayMode where + fromEnum Textureeffectpause = 0 + fromEnum TextureeffectplayAsap = 1 + fromEnum TextureeffectplayLooping = 2 + + toEnum 0 = Textureeffectpause + toEnum 1 = TextureeffectplayAsap + toEnum 2 = TextureeffectplayLooping + toEnum unmatched = error ("EnumeTexturePlayMode.toEnum: Cannot match " ++ show unmatched)
@@ -0,0 +1,69 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\TypeAngle.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- TypeAngle.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "<parsedfile>" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.TypeAngle where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + +import Data.Bits +import HGamer3D.Data.Angle + +instance Storable Angle where + alignment _ = alignment (undefined :: CDouble) + sizeOf _ = 4 +{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\TypeAngle.chs" #-} + peek p = do + a <- (\ptr -> do {peekByteOff ptr 0 ::IO CFloat}) p + let an = Angle (realToFrac a) + return an + poke p (Angle a) = do + (\ptr val -> do {pokeByteOff ptr 0 (val::CFloat)}) p (realToFrac a) + +type AnglePtr = Ptr (Angle) +{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\TypeAngle.chs" #-} + +withAngle :: Angle -> (AnglePtr -> IO b) -> IO b +withAngle = with
@@ -0,0 +1,75 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\TypeColourValue.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- TypeColourValue.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "<parsedfile>" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.TypeColourValue where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + +import Data.Bits +import HGamer3D.Data.ColourValue + +instance Storable ColourValue where + alignment _ = alignment (undefined :: CDouble) + sizeOf _ = 16 +{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\TypeColourValue.chs" #-} + peek p = do + r <- (\ptr -> do {peekByteOff ptr 0 ::IO CFloat}) p + g <- (\ptr -> do {peekByteOff ptr 4 ::IO CFloat}) p + b <- (\ptr -> do {peekByteOff ptr 8 ::IO CFloat}) p + a <- (\ptr -> do {peekByteOff ptr 12 ::IO CFloat}) p + let cv = ColourValue (realToFrac r) (realToFrac g) (realToFrac b) (realToFrac a) + return cv + poke p (ColourValue r g b a) = do + (\ptr val -> do {pokeByteOff ptr 0 (val::CFloat)}) p (realToFrac r) + (\ptr val -> do {pokeByteOff ptr 4 (val::CFloat)}) p (realToFrac g) + (\ptr val -> do {pokeByteOff ptr 8 (val::CFloat)}) p (realToFrac b) + (\ptr val -> do {pokeByteOff ptr 12 (val::CFloat)}) p (realToFrac a) + +type ColourValuePtr = Ptr (ColourValue) +{-# LINE 67 "HGamer3D\\Bindings\\Ogre\\TypeColourValue.chs" #-} + +withColourValue :: ColourValue -> (ColourValuePtr -> IO b) -> IO b +withColourValue = with
@@ -0,0 +1,69 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\TypeDegree.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- TypeDegree.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "<parsedfile>" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.TypeDegree where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + +import Data.Bits +import HGamer3D.Data.Degree + +instance Storable Degree where + alignment _ = alignment (undefined :: CDouble) + sizeOf _ = 4 +{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\TypeDegree.chs" #-} + peek p = do + d <- (\ptr -> do {peekByteOff ptr 0 ::IO CFloat}) p + let de = Degree (realToFrac d) + return de + poke p (Degree d) = do + (\ptr val -> do {pokeByteOff ptr 0 (val::CFloat)}) p (realToFrac d) + +type DegreePtr = Ptr (Degree) +{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\TypeDegree.chs" #-} + +withDegree :: Degree -> (DegreePtr -> IO b) -> IO b +withDegree = with
@@ -0,0 +1,59 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\TypeHG3DClass.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- TypeHG3DClass.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "<parsedfile>" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.TypeHG3DClass where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + +import Data.Bits +import HGamer3D.Data.HG3DClass + +type HG3DClassPtr = Ptr (HG3DClass) +{-# LINE 51 "HGamer3D\\Bindings\\Ogre\\TypeHG3DClass.chs" #-} + + +withHG3DClass :: HG3DClass -> (HG3DClassPtr -> IO b) -> IO b +withHG3DClass = with
@@ -0,0 +1,75 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\TypeQuaternion.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- TypeQuaternion.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "<parsedfile>" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.TypeQuaternion where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + +import Data.Bits +import HGamer3D.Data.Quaternion + +instance Storable Quaternion where + alignment _ = alignment (undefined :: CDouble) + sizeOf _ = 16 +{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\TypeQuaternion.chs" #-} + peek p = do + fw <- (\ptr -> do {peekByteOff ptr 0 ::IO CFloat}) p + fx <- (\ptr -> do {peekByteOff ptr 4 ::IO CFloat}) p + fy <- (\ptr -> do {peekByteOff ptr 8 ::IO CFloat}) p + fz <- (\ptr -> do {peekByteOff ptr 12 ::IO CFloat}) p + let q = Quaternion (realToFrac fw) (realToFrac fx) (realToFrac fy) (realToFrac fz) + return q + poke p (Quaternion fw fx fy fz) = do + (\ptr val -> do {pokeByteOff ptr 0 (val::CFloat)}) p (realToFrac fw) + (\ptr val -> do {pokeByteOff ptr 4 (val::CFloat)}) p (realToFrac fx) + (\ptr val -> do {pokeByteOff ptr 8 (val::CFloat)}) p (realToFrac fy) + (\ptr val -> do {pokeByteOff ptr 12 (val::CFloat)}) p (realToFrac fz) + +type QuaternionPtr = Ptr (Quaternion) +{-# LINE 67 "HGamer3D\\Bindings\\Ogre\\TypeQuaternion.chs" #-} + +withQuaternion :: Quaternion -> (QuaternionPtr -> IO b) -> IO b +withQuaternion = with
@@ -0,0 +1,69 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\TypeRadian.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- TypeRadian.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "<parsedfile>" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.TypeRadian where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + +import Data.Bits +import HGamer3D.Data.Radian + +instance Storable Radian where + alignment _ = alignment (undefined :: CDouble) + sizeOf _ = 4 +{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\TypeRadian.chs" #-} + peek p = do + r <- (\ptr -> do {peekByteOff ptr 0 ::IO CFloat}) p + let ra = Radian (realToFrac r) + return ra + poke p (Radian r) = do + (\ptr val -> do {pokeByteOff ptr 0 (val::CFloat)}) p (realToFrac r) + +type RadianPtr = Ptr (Radian) +{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\TypeRadian.chs" #-} + +withRadian :: Radian -> (RadianPtr -> IO b) -> IO b +withRadian = with
@@ -0,0 +1,71 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\TypeVector2.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- TypeVector2.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "<parsedfile>" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.TypeVector2 where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + +import Data.Bits +import HGamer3D.Data.Vector2 + +instance Storable Vector2 where + alignment _ = alignment (undefined :: CDouble) + sizeOf _ = 8 +{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\TypeVector2.chs" #-} + peek p = do + x <- (\ptr -> do {peekByteOff ptr 0 ::IO CFloat}) p + y <- (\ptr -> do {peekByteOff ptr 4 ::IO CFloat}) p + let v = Vector2 (realToFrac x) (realToFrac y) + return v + poke p (Vector2 x y) = do + (\ptr val -> do {pokeByteOff ptr 0 (val::CFloat)}) p (realToFrac x) + (\ptr val -> do {pokeByteOff ptr 4 (val::CFloat)}) p (realToFrac y) + +type Vector2Ptr = Ptr (Vector2) +{-# LINE 63 "HGamer3D\\Bindings\\Ogre\\TypeVector2.chs" #-} + +withVector2 :: Vector2 -> (Vector2Ptr -> IO b) -> IO b +withVector2 = with
@@ -0,0 +1,74 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\TypeVector3.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- TypeVector3.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "<parsedfile>" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.TypeVector3 where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + +import Data.Bits +import HGamer3D.Data.Vector3 + +instance Storable Vector3 where + alignment _ = alignment (undefined :: CDouble) + sizeOf _ = 12 +{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\TypeVector3.chs" #-} + peek p = do + x <- (\ptr -> do {peekByteOff ptr 0 ::IO CFloat}) p + y <- (\ptr -> do {peekByteOff ptr 4 ::IO CFloat}) p + z <- (\ptr -> do {peekByteOff ptr 8 ::IO CFloat}) p + let v = Vector3 (realToFrac x) (realToFrac y) (realToFrac z) + return v + poke p (Vector3 x y z) = do + (\ptr val -> do {pokeByteOff ptr 0 (val::CFloat)}) p (realToFrac x) + (\ptr val -> do {pokeByteOff ptr 4 (val::CFloat)}) p (realToFrac y) + (\ptr val -> do {pokeByteOff ptr 8 (val::CFloat)}) p (realToFrac z) + +type Vector3Ptr = Ptr (Vector3) +{-# LINE 65 "HGamer3D\\Bindings\\Ogre\\TypeVector3.chs" #-} + + +withVector3 :: Vector3 -> (Vector3Ptr -> IO b) -> IO b +withVector3 = with
@@ -0,0 +1,75 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\TypeVector4.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- TypeVector4.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "<parsedfile>" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.Ogre.TypeVector4 where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + +import Data.Bits +import HGamer3D.Data.Vector4 + +instance Storable Vector4 where + alignment _ = alignment (undefined :: CDouble) + sizeOf _ = 16 +{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\TypeVector4.chs" #-} + peek p = do + x <- (\ptr -> do {peekByteOff ptr 0 ::IO CFloat}) p + y <- (\ptr -> do {peekByteOff ptr 4 ::IO CFloat}) p + z <- (\ptr -> do {peekByteOff ptr 8 ::IO CFloat}) p + w <- (\ptr -> do {peekByteOff ptr 12 ::IO CFloat}) p + let v = Vector4 (realToFrac x) (realToFrac y) (realToFrac z) (realToFrac w) + return v + poke p (Vector4 x y z w) = do + (\ptr val -> do {pokeByteOff ptr 0 (val::CFloat)}) p (realToFrac x) + (\ptr val -> do {pokeByteOff ptr 4 (val::CFloat)}) p (realToFrac y) + (\ptr val -> do {pokeByteOff ptr 8 (val::CFloat)}) p (realToFrac z) + (\ptr val -> do {pokeByteOff ptr 12 (val::CFloat)}) p (realToFrac w) + +type Vector4Ptr = Ptr (Vector4) +{-# LINE 67 "HGamer3D\\Bindings\\Ogre\\TypeVector4.chs" #-} + +withVector4 :: Vector4 -> (Vector4Ptr -> IO b) -> IO b +withVector4 = with
@@ -0,0 +1,110 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\Utils.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. + +module HGamer3D.Bindings.Ogre.Utils where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 30 "HGamer3D\\Bindings\\Ogre\\Utils.chs" #-} + + + +-- now here come different pieces of utilities +-- + +-- String Conversion functions +-- + +withCUString b f = withCWString b (f . castPtr) +peekCUString = peekCWString . castPtr +alloc64k = allocaBytes (1024 * 64) + + +-- c2hs replacements of utility functions, to get rid of annoying c2hs +-- deprecated messages + +-- Passing Enums + +cIntFromEnum :: Enum a => a -> CInt +cIntFromEnum = cIntConv . fromEnum + +cIntToEnum :: Enum a => CInt -> a +cIntToEnum = toEnum . cIntConv + + +-- Passing Booleans by reference +-- + +withBoolUtil :: (Integral a, Storable a) => Bool -> (Ptr a -> IO b) -> IO b +withBoolUtil = with . fromBool + +peekBoolUtil :: (Integral a, Storable a) => Ptr a -> IO Bool +peekBoolUtil = liftM toBool . peek + + +-- Passing enums by reference +-- + +withEnumUtil :: (Enum a, Integral b, Storable b) => a -> (Ptr b -> IO c) -> IO c +withEnumUtil = with . cFromEnum + +peekEnumUtil :: (Enum a, Integral b, Storable b) => Ptr b -> IO a +peekEnumUtil = liftM cToEnum . peek + + + + + +-- fU_addResourceLocations_c as fUAddResourceLocations +-- +fUAddResourceLocations :: String -> IO () +fUAddResourceLocations a1 = + withCString a1 $ \a1' -> + fUAddResourceLocations'_ a1' >>= \res -> + return () +{-# LINE 84 "HGamer3D\\Bindings\\Ogre\\Utils.chs" #-} +; + +-- fU_addResourceLocations_c as fUAddResourceLocations +-- +fUMessagePump :: IO () +fUMessagePump = + fUMessagePump'_ >>= \res -> + return () +{-# LINE 90 "HGamer3D\\Bindings\\Ogre\\Utils.chs" #-} +; + + + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\Utils.chs.h fU_addResourceLocations_c" + fUAddResourceLocations'_ :: ((Ptr CChar) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\Utils.chs.h fU_messagePump_c" + fUMessagePump'_ :: (IO ())
@@ -0,0 +1,13 @@+Copyright 2012 Dr. Peter Althainz + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License.
@@ -0,0 +1,22 @@+-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. + +-- Setup.hs + +import Distribution.Simple +main = defaultMain
@@ -0,0 +1,109 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassAnimation.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreAnimation.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" +#include "EnumVertexAnimationType.h" +#include "EnumInterpolationMode.h" +#include "EnumRotationInterpolationMode.h" + + +// original function: const String& getName(); +void cAn_getName_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: Real getLength(); +void cAn_getLength_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setLength(Real len); +void cAn_setLength_c(struct hg3dclass_struct *classptr_c, float len_c); +// original function: NodeAnimationTrack* createNodeTrack(unsigned short handle); +void cAn_createNodeTrack_c(struct hg3dclass_struct *classptr_c, unsigned int handle_c, struct hg3dclass_struct * result_c); +// original function: NumericAnimationTrack* createNumericTrack(unsigned short handle); +void cAn_createNumericTrack_c(struct hg3dclass_struct *classptr_c, unsigned int handle_c, struct hg3dclass_struct * result_c); +// original function: VertexAnimationTrack* createVertexTrack(unsigned short handle, VertexAnimationType animType); +void cAn_createVertexTrack_c(struct hg3dclass_struct *classptr_c, unsigned int handle_c, enum EnumVertexAnimationType animType_c, struct hg3dclass_struct * result_c); +// original function: NodeAnimationTrack* createNodeTrack(unsigned short handle, Node* node); +void cAn_createNodeTrack2_c(struct hg3dclass_struct *classptr_c, unsigned int handle_c, struct hg3dclass_struct * node_c, struct hg3dclass_struct * result_c); +// original function: unsigned short getNumNodeTracks(); +void cAn_getNumNodeTracks_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: NodeAnimationTrack* getNodeTrack(unsigned short handle); +void cAn_getNodeTrack_c(struct hg3dclass_struct *classptr_c, unsigned int handle_c, struct hg3dclass_struct * result_c); +// original function: bool hasNodeTrack(unsigned short handle); +void cAn_hasNodeTrack_c(struct hg3dclass_struct *classptr_c, unsigned int handle_c, int * result_c); +// original function: unsigned short getNumNumericTracks(); +void cAn_getNumNumericTracks_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: NumericAnimationTrack* getNumericTrack(unsigned short handle); +void cAn_getNumericTrack_c(struct hg3dclass_struct *classptr_c, unsigned int handle_c, struct hg3dclass_struct * result_c); +// original function: bool hasNumericTrack(unsigned short handle); +void cAn_hasNumericTrack_c(struct hg3dclass_struct *classptr_c, unsigned int handle_c, int * result_c); +// original function: unsigned short getNumVertexTracks(); +void cAn_getNumVertexTracks_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: VertexAnimationTrack* getVertexTrack(unsigned short handle); +void cAn_getVertexTrack_c(struct hg3dclass_struct *classptr_c, unsigned int handle_c, struct hg3dclass_struct * result_c); +// original function: bool hasVertexTrack(unsigned short handle); +void cAn_hasVertexTrack_c(struct hg3dclass_struct *classptr_c, unsigned int handle_c, int * result_c); +// original function: void destroyNodeTrack(unsigned short handle); +void cAn_destroyNodeTrack_c(struct hg3dclass_struct *classptr_c, unsigned int handle_c); +// original function: void destroyNumericTrack(unsigned short handle); +void cAn_destroyNumericTrack_c(struct hg3dclass_struct *classptr_c, unsigned int handle_c); +// original function: void destroyVertexTrack(unsigned short handle); +void cAn_destroyVertexTrack_c(struct hg3dclass_struct *classptr_c, unsigned int handle_c); +// original function: void destroyAllTracks(); +void cAn_destroyAllTracks_c(struct hg3dclass_struct *classptr_c); +// original function: void destroyAllNodeTracks(); +void cAn_destroyAllNodeTracks_c(struct hg3dclass_struct *classptr_c); +// original function: void destroyAllNumericTracks(); +void cAn_destroyAllNumericTracks_c(struct hg3dclass_struct *classptr_c); +// original function: void destroyAllVertexTracks(); +void cAn_destroyAllVertexTracks_c(struct hg3dclass_struct *classptr_c); +// original function: void apply(Real timePos, Real weight, Real scale); +void cAn_apply_c(struct hg3dclass_struct *classptr_c, float timePos_c, float weight_c, float scale_c); +// original function: void applyToNode(Node* node, Real timePos, Real weight, Real scale); +void cAn_applyToNode_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * node_c, float timePos_c, float weight_c, float scale_c); +// original function: void apply(Skeleton* skeleton, Real timePos, Real weight, Real scale); +void cAn_apply2_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * skeleton_c, float timePos_c, float weight_c, float scale_c); +// original function: void apply(Entity* entity, Real timePos, Real weight, bool software, bool hardware); +void cAn_apply4_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * entity_c, float timePos_c, float weight_c, int software_c, int hardware_c); +// original function: void setInterpolationMode(InterpolationMode im); +void cAn_setInterpolationMode_c(struct hg3dclass_struct *classptr_c, enum EnumInterpolationMode im_c); +// original function: InterpolationMode getInterpolationMode(); +void cAn_getInterpolationMode_c(struct hg3dclass_struct *classptr_c, enum EnumInterpolationMode * result_c); +// original function: void setRotationInterpolationMode(RotationInterpolationMode im); +void cAn_setRotationInterpolationMode_c(struct hg3dclass_struct *classptr_c, enum EnumRotationInterpolationMode im_c); +// original function: RotationInterpolationMode getRotationInterpolationMode(); +void cAn_getRotationInterpolationMode_c(struct hg3dclass_struct *classptr_c, enum EnumRotationInterpolationMode * result_c); +// original function: void optimise(bool discardIdentityNodeTracks); +void cAn_optimise_c(struct hg3dclass_struct *classptr_c, int discardIdentityNodeTracks_c); +// original function: Animation* clone(const String& newName); +void cAn_clone_c(struct hg3dclass_struct *classptr_c, char * newName_c, struct hg3dclass_struct * result_c); +// original function: void _keyFrameListChanged(); +void cAn__keyFrameListChanged_c(struct hg3dclass_struct *classptr_c);
@@ -0,0 +1,72 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassAnimationState.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreAnimationState.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: const String& getAnimationName(); +void cAns_getAnimationName_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: Real getTimePosition(); +void cAns_getTimePosition_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setTimePosition(Real timePos); +void cAns_setTimePosition_c(struct hg3dclass_struct *classptr_c, float timePos_c); +// original function: Real getLength(); +void cAns_getLength_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setLength(Real len); +void cAns_setLength_c(struct hg3dclass_struct *classptr_c, float len_c); +// original function: Real getWeight(); +void cAns_getWeight_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setWeight(Real weight); +void cAns_setWeight_c(struct hg3dclass_struct *classptr_c, float weight_c); +// original function: void addTime(Real offset); +void cAns_addTime_c(struct hg3dclass_struct *classptr_c, float offset_c); +// original function: bool hasEnded(); +void cAns_hasEnded_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool getEnabled(); +void cAns_getEnabled_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setEnabled(bool enabled); +void cAns_setEnabled_c(struct hg3dclass_struct *classptr_c, int enabled_c); +// original function: void setLoop(bool loop); +void cAns_setLoop_c(struct hg3dclass_struct *classptr_c, int loop_c); +// original function: bool getLoop(); +void cAns_getLoop_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void createBlendMask(size_t blendMaskSizeHint, float initialWeight); +void cAns_createBlendMask_c(struct hg3dclass_struct *classptr_c, int blendMaskSizeHint_c, float initialWeight_c); +// original function: void destroyBlendMask(); +void cAns_destroyBlendMask_c(struct hg3dclass_struct *classptr_c); +// original function: bool hasBlendMask(); +void cAns_hasBlendMask_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setBlendMaskEntry(size_t boneHandle, float weight); +void cAns_setBlendMaskEntry_c(struct hg3dclass_struct *classptr_c, int boneHandle_c, float weight_c);
@@ -0,0 +1,56 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassAnimationTrack.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreAnimationTrack.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: unsigned short getHandle(); +void cAnt_getHandle_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: unsigned short getNumKeyFrames(); +void cAnt_getNumKeyFrames_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: KeyFrame* getKeyFrame(unsigned short index); +void cAnt_getKeyFrame_c(struct hg3dclass_struct *classptr_c, unsigned int index_c, struct hg3dclass_struct * result_c); +// original function: KeyFrame* createKeyFrame(Real timePos); +void cAnt_createKeyFrame_c(struct hg3dclass_struct *classptr_c, float timePos_c, struct hg3dclass_struct * result_c); +// original function: void removeKeyFrame(unsigned short index); +void cAnt_removeKeyFrame_c(struct hg3dclass_struct *classptr_c, unsigned int index_c); +// original function: void removeAllKeyFrames(); +void cAnt_removeAllKeyFrames_c(struct hg3dclass_struct *classptr_c); +// original function: void _keyFrameDataChanged(); +void cAnt__keyFrameDataChanged_c(struct hg3dclass_struct *classptr_c); +// original function: bool hasNonZeroKeyFrames(); +void cAnt_hasNonZeroKeyFrames_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void optimise(); +void cAnt_optimise_c(struct hg3dclass_struct *classptr_c);
@@ -0,0 +1,54 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassArchive.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreArchive.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: const String& getName(); +void cAr_getName_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: bool isCaseSensitive(); +void cAr_isCaseSensitive_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void load(); +void cAr_load_c(struct hg3dclass_struct *classptr_c); +// original function: void unload(); +void cAr_unload_c(struct hg3dclass_struct *classptr_c); +// original function: bool isReadOnly(); +void cAr_isReadOnly_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void remove(const String& filename); +void cAr_remove_c(struct hg3dclass_struct *classptr_c, char * filename_c); +// original function: bool exists(const String& filename); +void cAr_exists_c(struct hg3dclass_struct *classptr_c, char * filename_c, int * result_c); +// original function: const String& getType(); +void cAr_getType_c(struct hg3dclass_struct *classptr_c, char * result_c);
@@ -0,0 +1,44 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassArchiveManager.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreArchiveManager.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: Archive* load(const String& filename, const String& archiveType); +void cArm_load_c(struct hg3dclass_struct *classptr_c, char * filename_c, char * archiveType_c, struct hg3dclass_struct * result_c); +// original function: void unload(Archive* arch); +void cArm_unload_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * arch_c); +// original function: void unload(const String& filename); +void cArm_unload2_c(struct hg3dclass_struct *classptr_c, char * filename_c);
@@ -0,0 +1,75 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassBillboard.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBillboard.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" +#include "TypeRadian.h" +#include "TypeVector3.h" +#include "TypeColourValue.h" + + +// original function: const Radian& getRotation(); +void cBb_getRotation_c(struct hg3dclass_struct *classptr_c, struct radian_struct * result_c); +// original function: void setRotation(const Radian& rotation); +void cBb_setRotation_c(struct hg3dclass_struct *classptr_c, struct radian_struct * rotation_c); +// original function: void setPosition(const Vector3& position); +void cBb_setPosition_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * position_c); +// original function: void setPosition(Real x, Real y, Real z); +void cBb_setPosition2_c(struct hg3dclass_struct *classptr_c, float x_c, float y_c, float z_c); +// original function: const Vector3& getPosition(); +void cBb_getPosition_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * result_c); +// original function: void setDimensions(Real width, Real height); +void cBb_setDimensions_c(struct hg3dclass_struct *classptr_c, float width_c, float height_c); +// original function: void resetDimensions(); +void cBb_resetDimensions_c(struct hg3dclass_struct *classptr_c); +// original function: void setColour(const ColourValue& colour); +void cBb_setColour_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * colour_c); +// original function: const ColourValue& getColour(); +void cBb_getColour_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * result_c); +// original function: bool hasOwnDimensions(); +void cBb_hasOwnDimensions_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: Real getOwnWidth(); +void cBb_getOwnWidth_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: Real getOwnHeight(); +void cBb_getOwnHeight_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void _notifyOwner(BillboardSet* owner); +void cBb__notifyOwner_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * owner_c); +// original function: bool isUseTexcoordRect(); +void cBb_isUseTexcoordRect_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setTexcoordIndex(uint16 texcoordIndex); +void cBb_setTexcoordIndex_c(struct hg3dclass_struct *classptr_c, unsigned int texcoordIndex_c); +// original function: uint16 getTexcoordIndex(); +void cBb_getTexcoordIndex_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: void setTexcoordRect(Real u0, Real v0, Real u1, Real v1); +void cBb_setTexcoordRect2_c(struct hg3dclass_struct *classptr_c, float u0_c, float v0_c, float u1_c, float v1_c);
@@ -0,0 +1,79 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassBillboardChain.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBillboardChain.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" +#include "EnumTexCoordDirection.h" + + +// original function: void setMaxChainElements(size_t maxElements); +void cBc_setMaxChainElements_c(struct hg3dclass_struct *classptr_c, int maxElements_c); +// original function: size_t getMaxChainElements(); +void cBc_getMaxChainElements_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setNumberOfChains(size_t numChains); +void cBc_setNumberOfChains_c(struct hg3dclass_struct *classptr_c, int numChains_c); +// original function: size_t getNumberOfChains(); +void cBc_getNumberOfChains_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setUseTextureCoords(bool use); +void cBc_setUseTextureCoords_c(struct hg3dclass_struct *classptr_c, int use_c); +// original function: bool getUseTextureCoords(); +void cBc_getUseTextureCoords_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setTextureCoordDirection(TexCoordDirection dir); +void cBc_setTextureCoordDirection_c(struct hg3dclass_struct *classptr_c, enum EnumTexCoordDirection dir_c); +// original function: TexCoordDirection getTextureCoordDirection(); +void cBc_getTextureCoordDirection_c(struct hg3dclass_struct *classptr_c, enum EnumTexCoordDirection * result_c); +// original function: void setOtherTextureCoordRange(Real start, Real end); +void cBc_setOtherTextureCoordRange_c(struct hg3dclass_struct *classptr_c, float start_c, float end_c); +// original function: void setUseVertexColours(bool use); +void cBc_setUseVertexColours_c(struct hg3dclass_struct *classptr_c, int use_c); +// original function: bool getUseVertexColours(); +void cBc_getUseVertexColours_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setDynamic(bool dyn); +void cBc_setDynamic_c(struct hg3dclass_struct *classptr_c, int dyn_c); +// original function: bool getDynamic(); +void cBc_getDynamic_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void removeChainElement(size_t chainIndex); +void cBc_removeChainElement_c(struct hg3dclass_struct *classptr_c, int chainIndex_c); +// original function: size_t getNumChainElements(size_t chainIndex); +void cBc_getNumChainElements_c(struct hg3dclass_struct *classptr_c, int chainIndex_c, int * result_c); +// original function: void clearChain(size_t chainIndex); +void cBc_clearChain_c(struct hg3dclass_struct *classptr_c, int chainIndex_c); +// original function: void clearAllChains(); +void cBc_clearAllChains_c(struct hg3dclass_struct *classptr_c); +// original function: const String& getMaterialName(); +void cBc_getMaterialName_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: void setMaterialName(const String& name, const String& groupName); +void cBc_setMaterialName_c(struct hg3dclass_struct *classptr_c, char * name_c, char * groupName_c); +// original function: void _notifyCurrentCamera(Camera* cam); +void cBc__notifyCurrentCamera_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * cam_c);
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassBillboardChainFactory.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBillboardChain.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,146 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassBillboardSet.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBillboardSet.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" +#include "TypeVector3.h" +#include "TypeColourValue.h" +#include "EnumBillboardOrigin.h" +#include "EnumBillboardRotationType.h" +#include "EnumBillboardType.h" +#include "EnumSortMode.h" + + +// original function: Billboard* createBillboard(const Vector3& position, const ColourValue& colour); +void cBs_createBillboard_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * position_c, struct colourvalue_struct * colour_c, struct hg3dclass_struct * result_c); +// original function: Billboard* createBillboard(Real x, Real y, Real z, const ColourValue& colour); +void cBs_createBillboard2_c(struct hg3dclass_struct *classptr_c, float x_c, float y_c, float z_c, struct colourvalue_struct * colour_c, struct hg3dclass_struct * result_c); +// original function: int getNumBillboards(); +void cBs_getNumBillboards_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setAutoextend(bool autoextend); +void cBs_setAutoextend_c(struct hg3dclass_struct *classptr_c, int autoextend_c); +// original function: bool getAutoextend(); +void cBs_getAutoextend_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setSortingEnabled(bool sortenable); +void cBs_setSortingEnabled_c(struct hg3dclass_struct *classptr_c, int sortenable_c); +// original function: bool getSortingEnabled(); +void cBs_getSortingEnabled_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setPoolSize(size_t size); +void cBs_setPoolSize_c(struct hg3dclass_struct *classptr_c, int size_c); +// original function: unsigned int getPoolSize(); +void cBs_getPoolSize_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: void clear(); +void cBs_clear_c(struct hg3dclass_struct *classptr_c); +// original function: Billboard* getBillboard(unsigned int index); +void cBs_getBillboard_c(struct hg3dclass_struct *classptr_c, unsigned int index_c, struct hg3dclass_struct * result_c); +// original function: void removeBillboard(unsigned int index); +void cBs_removeBillboard_c(struct hg3dclass_struct *classptr_c, unsigned int index_c); +// original function: void removeBillboard(Billboard* pBill); +void cBs_removeBillboard2_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * pBill_c); +// original function: void setBillboardOrigin(BillboardOrigin origin); +void cBs_setBillboardOrigin_c(struct hg3dclass_struct *classptr_c, enum EnumBillboardOrigin origin_c); +// original function: BillboardOrigin getBillboardOrigin(); +void cBs_getBillboardOrigin_c(struct hg3dclass_struct *classptr_c, enum EnumBillboardOrigin * result_c); +// original function: void setBillboardRotationType(BillboardRotationType rotationType); +void cBs_setBillboardRotationType_c(struct hg3dclass_struct *classptr_c, enum EnumBillboardRotationType rotationType_c); +// original function: BillboardRotationType getBillboardRotationType(); +void cBs_getBillboardRotationType_c(struct hg3dclass_struct *classptr_c, enum EnumBillboardRotationType * result_c); +// original function: void setDefaultDimensions(Real width, Real height); +void cBs_setDefaultDimensions_c(struct hg3dclass_struct *classptr_c, float width_c, float height_c); +// original function: void setDefaultWidth(Real width); +void cBs_setDefaultWidth_c(struct hg3dclass_struct *classptr_c, float width_c); +// original function: Real getDefaultWidth(); +void cBs_getDefaultWidth_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setDefaultHeight(Real height); +void cBs_setDefaultHeight_c(struct hg3dclass_struct *classptr_c, float height_c); +// original function: Real getDefaultHeight(); +void cBs_getDefaultHeight_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setMaterialName(const String& name, const String& groupName); +void cBs_setMaterialName_c(struct hg3dclass_struct *classptr_c, char * name_c, char * groupName_c); +// original function: const String& getMaterialName(); +void cBs_getMaterialName_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: void _notifyCurrentCamera(Camera* cam); +void cBs__notifyCurrentCamera_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * cam_c); +// original function: void beginBillboards(size_t numBillboards); +void cBs_beginBillboards_c(struct hg3dclass_struct *classptr_c, int numBillboards_c); +// original function: void endBillboards(); +void cBs_endBillboards_c(struct hg3dclass_struct *classptr_c); +// original function: Real getBoundingRadius(); +void cBs_getBoundingRadius_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void _notifyBillboardResized(); +void cBs__notifyBillboardResized_c(struct hg3dclass_struct *classptr_c); +// original function: void _notifyBillboardRotated(); +void cBs__notifyBillboardRotated_c(struct hg3dclass_struct *classptr_c); +// original function: bool getCullIndividually(); +void cBs_getCullIndividually_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setCullIndividually(bool cullIndividual); +void cBs_setCullIndividually_c(struct hg3dclass_struct *classptr_c, int cullIndividual_c); +// original function: void setBillboardType(BillboardType bbt); +void cBs_setBillboardType_c(struct hg3dclass_struct *classptr_c, enum EnumBillboardType bbt_c); +// original function: BillboardType getBillboardType(); +void cBs_getBillboardType_c(struct hg3dclass_struct *classptr_c, enum EnumBillboardType * result_c); +// original function: void setCommonDirection(const Vector3& vec); +void cBs_setCommonDirection_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * vec_c); +// original function: const Vector3& getCommonDirection(); +void cBs_getCommonDirection_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * result_c); +// original function: void setCommonUpVector(const Vector3& vec); +void cBs_setCommonUpVector_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * vec_c); +// original function: const Vector3& getCommonUpVector(); +void cBs_getCommonUpVector_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * result_c); +// original function: void setUseAccurateFacing(bool acc); +void cBs_setUseAccurateFacing_c(struct hg3dclass_struct *classptr_c, int acc_c); +// original function: bool getUseAccurateFacing(); +void cBs_getUseAccurateFacing_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: const String& getMovableType(); +void cBs_getMovableType_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: void _updateBounds(); +void cBs__updateBounds_c(struct hg3dclass_struct *classptr_c); +// original function: void _sortBillboards(Camera* cam); +void cBs__sortBillboards_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * cam_c); +// original function: SortMode _getSortMode(); +void cBs__getSortMode_c(struct hg3dclass_struct *classptr_c, enum EnumSortMode * result_c); +// original function: void setBillboardsInWorldSpace(bool ws); +void cBs_setBillboardsInWorldSpace_c(struct hg3dclass_struct *classptr_c, int ws_c); +// original function: void setPointRenderingEnabled(bool enabled); +void cBs_setPointRenderingEnabled_c(struct hg3dclass_struct *classptr_c, int enabled_c); +// original function: bool isPointRenderingEnabled(); +void cBs_isPointRenderingEnabled_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: uint32 getTypeFlags(); +void cBs_getTypeFlags_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: void setAutoUpdate(bool autoUpdate); +void cBs_setAutoUpdate_c(struct hg3dclass_struct *classptr_c, int autoUpdate_c); +// original function: bool getAutoUpdate(); +void cBs_getAutoUpdate_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void notifyBillboardDataChanged(); +void cBs_notifyBillboardDataChanged_c(struct hg3dclass_struct *classptr_c);
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassBillboardSetFactory.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBillboardSet.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,58 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassBone.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBone.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" +#include "TypeVector3.h" +#include "TypeQuaternion.h" + + +// original function: Bone* createChild(unsigned short handle, const Vector3& translate, const Quaternion& rotate); +void cB_createChild_c(struct hg3dclass_struct *classptr_c, unsigned int handle_c, struct vector3_struct * translate_c, struct quaternion_struct * rotate_c, struct hg3dclass_struct * result_c); +// original function: unsigned short getHandle(); +void cB_getHandle_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: void setBindingPose(); +void cB_setBindingPose_c(struct hg3dclass_struct *classptr_c); +// original function: void reset(); +void cB_reset_c(struct hg3dclass_struct *classptr_c); +// original function: void setManuallyControlled(bool manuallyControlled); +void cB_setManuallyControlled_c(struct hg3dclass_struct *classptr_c, int manuallyControlled_c); +// original function: bool isManuallyControlled(); +void cB_isManuallyControlled_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: const Vector3& _getBindingPoseInverseScale(); +void cB__getBindingPoseInverseScale_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * result_c); +// original function: const Vector3& _getBindingPoseInversePosition(); +void cB__getBindingPoseInversePosition_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * result_c); +// original function: const Quaternion& _getBindingPoseInverseOrientation(); +void cB__getBindingPoseInverseOrientation_c(struct hg3dclass_struct *classptr_c, struct quaternion_struct * result_c);
@@ -0,0 +1,163 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassCamera.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCamera.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" +#include "EnumPolygonMode.h" +#include "TypeVector3.h" +#include "TypeRadian.h" +#include "TypeQuaternion.h" +#include "EnumFrustumPlane.h" + + +// original function: SceneManager* getSceneManager(); +void cC_getSceneManager_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: void setPolygonMode(PolygonMode sd); +void cC_setPolygonMode_c(struct hg3dclass_struct *classptr_c, enum EnumPolygonMode sd_c); +// original function: PolygonMode getPolygonMode(); +void cC_getPolygonMode_c(struct hg3dclass_struct *classptr_c, enum EnumPolygonMode * result_c); +// original function: void setPosition(Real x, Real y, Real z); +void cC_setPosition_c(struct hg3dclass_struct *classptr_c, float x_c, float y_c, float z_c); +// original function: void setPosition(const Vector3& vec); +void cC_setPosition2_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * vec_c); +// original function: const Vector3& getPosition(); +void cC_getPosition_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * result_c); +// original function: void move(const Vector3& vec); +void cC_move_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * vec_c); +// original function: void moveRelative(const Vector3& vec); +void cC_moveRelative_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * vec_c); +// original function: void setDirection(Real x, Real y, Real z); +void cC_setDirection_c(struct hg3dclass_struct *classptr_c, float x_c, float y_c, float z_c); +// original function: void setDirection(const Vector3& vec); +void cC_setDirection2_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * vec_c); +// original function: Vector3 getUp(); +void cC_getUp_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * result_c); +// original function: Vector3 getRight(); +void cC_getRight_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * result_c); +// original function: void lookAt(const Vector3& targetPoint); +void cC_lookAt_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * targetPoint_c); +// original function: void lookAt(Real x, Real y, Real z); +void cC_lookAt2_c(struct hg3dclass_struct *classptr_c, float x_c, float y_c, float z_c); +// original function: void roll(const Radian& angle); +void cC_roll_c(struct hg3dclass_struct *classptr_c, struct radian_struct * angle_c); +// original function: void yaw(const Radian& angle); +void cC_yaw_c(struct hg3dclass_struct *classptr_c, struct radian_struct * angle_c); +// original function: void pitch(const Radian& angle); +void cC_pitch_c(struct hg3dclass_struct *classptr_c, struct radian_struct * angle_c); +// original function: void rotate(const Vector3& axis, const Radian& angle); +void cC_rotate_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * axis_c, struct radian_struct * angle_c); +// original function: void rotate(const Quaternion& q); +void cC_rotate2_c(struct hg3dclass_struct *classptr_c, struct quaternion_struct * q_c); +// original function: void setFixedYawAxis(bool useFixed, const Vector3& fixedAxis); +void cC_setFixedYawAxis_c(struct hg3dclass_struct *classptr_c, int useFixed_c, struct vector3_struct * fixedAxis_c); +// original function: const Quaternion& getOrientation(); +void cC_getOrientation_c(struct hg3dclass_struct *classptr_c, struct quaternion_struct * result_c); +// original function: void setOrientation(const Quaternion& q); +void cC_setOrientation_c(struct hg3dclass_struct *classptr_c, struct quaternion_struct * q_c); +// original function: void _renderScene(Viewport * vp, bool includeOverlays); +void cC__renderScene_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * vp_c, int includeOverlays_c); +// original function: void _notifyRenderedFaces(unsigned int numfaces); +void cC__notifyRenderedFaces_c(struct hg3dclass_struct *classptr_c, unsigned int numfaces_c); +// original function: void _notifyRenderedBatches(unsigned int numbatches); +void cC__notifyRenderedBatches_c(struct hg3dclass_struct *classptr_c, unsigned int numbatches_c); +// original function: unsigned int _getNumRenderedFaces(); +void cC__getNumRenderedFaces_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: unsigned int _getNumRenderedBatches(); +void cC__getNumRenderedBatches_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: const Quaternion& getDerivedOrientation(); +void cC_getDerivedOrientation_c(struct hg3dclass_struct *classptr_c, struct quaternion_struct * result_c); +// original function: const Vector3& getDerivedPosition(); +void cC_getDerivedPosition_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * result_c); +// original function: Vector3 getDerivedDirection(); +void cC_getDerivedDirection_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * result_c); +// original function: Vector3 getDerivedUp(); +void cC_getDerivedUp_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * result_c); +// original function: Vector3 getDerivedRight(); +void cC_getDerivedRight_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * result_c); +// original function: const Quaternion& getRealOrientation(); +void cC_getRealOrientation_c(struct hg3dclass_struct *classptr_c, struct quaternion_struct * result_c); +// original function: const Vector3& getRealPosition(); +void cC_getRealPosition_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * result_c); +// original function: Vector3 getRealDirection(); +void cC_getRealDirection_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * result_c); +// original function: Vector3 getRealUp(); +void cC_getRealUp_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * result_c); +// original function: Vector3 getRealRight(); +void cC_getRealRight_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * result_c); +// original function: const String& getMovableType(); +void cC_getMovableType_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: void setAutoTracking(bool enabled, SceneNode* target, const Vector3& offset); +void cC_setAutoTracking_c(struct hg3dclass_struct *classptr_c, int enabled_c, struct hg3dclass_struct * target_c, struct vector3_struct * offset_c); +// original function: void setLodBias(Real factor); +void cC_setLodBias_c(struct hg3dclass_struct *classptr_c, float factor_c); +// original function: Real getLodBias(); +void cC_getLodBias_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: Real _getLodBiasInverse(); +void cC__getLodBiasInverse_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void _autoTrack(); +void cC__autoTrack_c(struct hg3dclass_struct *classptr_c); +// original function: bool isWindowSet(); +void cC_isWindowSet_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: Real getBoundingRadius(); +void cC_getBoundingRadius_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: SceneNode* getAutoTrackTarget(); +void cC_getAutoTrackTarget_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: const Vector3& getAutoTrackOffset(); +void cC_getAutoTrackOffset_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * result_c); +// original function: Viewport* getViewport(); +void cC_getViewport_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: void _notifyViewport(Viewport* viewport); +void cC__notifyViewport_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * viewport_c); +// original function: void setAutoAspectRatio(bool autoratio); +void cC_setAutoAspectRatio_c(struct hg3dclass_struct *classptr_c, int autoratio_c); +// original function: bool getAutoAspectRatio(); +void cC_getAutoAspectRatio_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setCullingFrustum(Frustum* frustum); +void cC_setCullingFrustum_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * frustum_c); +// original function: Frustum* getCullingFrustum(); +void cC_getCullingFrustum_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: bool isVisible(const Vector3& vert, FrustumPlane* culledBy); +void cC_isVisible3_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * vert_c, enum EnumFrustumPlane * culledBy_c, int * result_c); +// original function: Real getNearClipDistance(); +void cC_getNearClipDistance_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: Real getFarClipDistance(); +void cC_getFarClipDistance_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setUseRenderingDistance(bool use); +void cC_setUseRenderingDistance_c(struct hg3dclass_struct *classptr_c, int use_c); +// original function: bool getUseRenderingDistance(); +void cC_getUseRenderingDistance_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: const Vector3& getPositionForViewUpdate(); +void cC_getPositionForViewUpdate_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * result_c); +// original function: const Quaternion& getOrientationForViewUpdate(); +void cC_getOrientationForViewUpdate_c(struct hg3dclass_struct *classptr_c, struct quaternion_struct * result_c);
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassCmdManualNamedConstsFile.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreGpuProgram.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassCmdPose.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreGpuProgram.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,126 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassCompositionPass.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCompositionPass.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" +#include "EnumPassType.h" +#include "TypeColourValue.h" +#include "EnumCompareFunction.h" +#include "EnumStencilOperation.h" + + +// original function: void setType(PassType type); +void cCop_setType_c(struct hg3dclass_struct *classptr_c, enum EnumPassType type_c); +// original function: PassType getType(); +void cCop_getType_c(struct hg3dclass_struct *classptr_c, enum EnumPassType * result_c); +// original function: void setIdentifier(uint32 id); +void cCop_setIdentifier_c(struct hg3dclass_struct *classptr_c, unsigned int id_c); +// original function: uint32 getIdentifier(); +void cCop_getIdentifier_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: void setMaterialName(const String & name); +void cCop_setMaterialName_c(struct hg3dclass_struct *classptr_c, char * name_c); +// original function: void setMaterialScheme(const String& schemeName); +void cCop_setMaterialScheme_c(struct hg3dclass_struct *classptr_c, char * schemeName_c); +// original function: const String& getMaterialScheme(); +void cCop_getMaterialScheme_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: void setClearBuffers(uint32 val); +void cCop_setClearBuffers_c(struct hg3dclass_struct *classptr_c, unsigned int val_c); +// original function: uint32 getClearBuffers(); +void cCop_getClearBuffers_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: void setClearColour(ColourValue val); +void cCop_setClearColour_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * val_c); +// original function: const ColourValue & getClearColour(); +void cCop_getClearColour_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * result_c); +// original function: void setClearDepth(Real depth); +void cCop_setClearDepth_c(struct hg3dclass_struct *classptr_c, float depth_c); +// original function: Real getClearDepth(); +void cCop_getClearDepth_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setClearStencil(uint32 value); +void cCop_setClearStencil_c(struct hg3dclass_struct *classptr_c, unsigned int value_c); +// original function: uint32 getClearStencil(); +void cCop_getClearStencil_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: void setStencilCheck(bool value); +void cCop_setStencilCheck_c(struct hg3dclass_struct *classptr_c, int value_c); +// original function: bool getStencilCheck(); +void cCop_getStencilCheck_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setStencilFunc(CompareFunction value); +void cCop_setStencilFunc_c(struct hg3dclass_struct *classptr_c, enum EnumCompareFunction value_c); +// original function: CompareFunction getStencilFunc(); +void cCop_getStencilFunc_c(struct hg3dclass_struct *classptr_c, enum EnumCompareFunction * result_c); +// original function: void setStencilRefValue(uint32 value); +void cCop_setStencilRefValue_c(struct hg3dclass_struct *classptr_c, unsigned int value_c); +// original function: uint32 getStencilRefValue(); +void cCop_getStencilRefValue_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: void setStencilMask(uint32 value); +void cCop_setStencilMask_c(struct hg3dclass_struct *classptr_c, unsigned int value_c); +// original function: uint32 getStencilMask(); +void cCop_getStencilMask_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: void setStencilFailOp(StencilOperation value); +void cCop_setStencilFailOp_c(struct hg3dclass_struct *classptr_c, enum EnumStencilOperation value_c); +// original function: StencilOperation getStencilFailOp(); +void cCop_getStencilFailOp_c(struct hg3dclass_struct *classptr_c, enum EnumStencilOperation * result_c); +// original function: void setStencilDepthFailOp(StencilOperation value); +void cCop_setStencilDepthFailOp_c(struct hg3dclass_struct *classptr_c, enum EnumStencilOperation value_c); +// original function: StencilOperation getStencilDepthFailOp(); +void cCop_getStencilDepthFailOp_c(struct hg3dclass_struct *classptr_c, enum EnumStencilOperation * result_c); +// original function: void setStencilPassOp(StencilOperation value); +void cCop_setStencilPassOp_c(struct hg3dclass_struct *classptr_c, enum EnumStencilOperation value_c); +// original function: StencilOperation getStencilPassOp(); +void cCop_getStencilPassOp_c(struct hg3dclass_struct *classptr_c, enum EnumStencilOperation * result_c); +// original function: void setStencilTwoSidedOperation(bool value); +void cCop_setStencilTwoSidedOperation_c(struct hg3dclass_struct *classptr_c, int value_c); +// original function: bool getStencilTwoSidedOperation(); +void cCop_getStencilTwoSidedOperation_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setInput(size_t id, const String & input, size_t mrtIndex); +void cCop_setInput_c(struct hg3dclass_struct *classptr_c, int id_c, char * input_c, int mrtIndex_c); +// original function: size_t getNumInputs(); +void cCop_getNumInputs_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void clearAllInputs(); +void cCop_clearAllInputs_c(struct hg3dclass_struct *classptr_c); +// original function: CompositionTargetPass * getParent(); +void cCop_getParent_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: bool _isSupported(); +void cCop__isSupported_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setQuadCorners(Real left, Real top, Real right, Real bottom); +void cCop_setQuadCorners_c(struct hg3dclass_struct *classptr_c, float left_c, float top_c, float right_c, float bottom_c); +// original function: void setQuadFarCorners(bool farCorners, bool farCornersViewSpace); +void cCop_setQuadFarCorners_c(struct hg3dclass_struct *classptr_c, int farCorners_c, int farCornersViewSpace_c); +// original function: bool getQuadFarCorners(); +void cCop_getQuadFarCorners_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool getQuadFarCornersViewSpace(); +void cCop_getQuadFarCornersViewSpace_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setCustomType(const String& customType); +void cCop_setCustomType_c(struct hg3dclass_struct *classptr_c, char * customType_c); +// original function: const String& getCustomType(); +void cCop_getCustomType_c(struct hg3dclass_struct *classptr_c, char * result_c);
@@ -0,0 +1,81 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassCompositionTargetPass.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCompositionTargetPass.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" +#include "EnumInputMode.h" + + +// original function: void setInputMode(InputMode mode); +void cCotp_setInputMode_c(struct hg3dclass_struct *classptr_c, enum EnumInputMode mode_c); +// original function: InputMode getInputMode(); +void cCotp_getInputMode_c(struct hg3dclass_struct *classptr_c, enum EnumInputMode * result_c); +// original function: void setOutputName(const String & out); +void cCotp_setOutputName_c(struct hg3dclass_struct *classptr_c, char * out_c); +// original function: const String & getOutputName(); +void cCotp_getOutputName_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: void setOnlyInitial(bool value); +void cCotp_setOnlyInitial_c(struct hg3dclass_struct *classptr_c, int value_c); +// original function: bool getOnlyInitial(); +void cCotp_getOnlyInitial_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setVisibilityMask(uint32 mask); +void cCotp_setVisibilityMask_c(struct hg3dclass_struct *classptr_c, unsigned int mask_c); +// original function: uint32 getVisibilityMask(); +void cCotp_getVisibilityMask_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: void setMaterialScheme(const String& schemeName); +void cCotp_setMaterialScheme_c(struct hg3dclass_struct *classptr_c, char * schemeName_c); +// original function: const String& getMaterialScheme(); +void cCotp_getMaterialScheme_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: void setShadowsEnabled(bool enabled); +void cCotp_setShadowsEnabled_c(struct hg3dclass_struct *classptr_c, int enabled_c); +// original function: bool getShadowsEnabled(); +void cCotp_getShadowsEnabled_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setLodBias(float bias); +void cCotp_setLodBias_c(struct hg3dclass_struct *classptr_c, float bias_c); +// original function: float getLodBias(); +void cCotp_getLodBias_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: CompositionPass * createPass(); +void cCotp_createPass_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: void removePass(size_t idx); +void cCotp_removePass_c(struct hg3dclass_struct *classptr_c, int idx_c); +// original function: CompositionPass * getPass(size_t idx); +void cCotp_getPass_c(struct hg3dclass_struct *classptr_c, int idx_c, struct hg3dclass_struct * result_c); +// original function: size_t getNumPasses(); +void cCotp_getNumPasses_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void removeAllPasses(); +void cCotp_removeAllPasses_c(struct hg3dclass_struct *classptr_c); +// original function: CompositionTechnique * getParent(); +void cCotp_getParent_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: bool _isSupported(); +void cCotp__isSupported_c(struct hg3dclass_struct *classptr_c, int * result_c);
@@ -0,0 +1,68 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassCompositionTechnique.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCompositionTechnique.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: void removeTextureDefinition(size_t idx); +void cCot_removeTextureDefinition_c(struct hg3dclass_struct *classptr_c, int idx_c); +// original function: size_t getNumTextureDefinitions(); +void cCot_getNumTextureDefinitions_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void removeAllTextureDefinitions(); +void cCot_removeAllTextureDefinitions_c(struct hg3dclass_struct *classptr_c); +// original function: CompositionTargetPass * createTargetPass(); +void cCot_createTargetPass_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: void removeTargetPass(size_t idx); +void cCot_removeTargetPass_c(struct hg3dclass_struct *classptr_c, int idx_c); +// original function: CompositionTargetPass * getTargetPass(size_t idx); +void cCot_getTargetPass_c(struct hg3dclass_struct *classptr_c, int idx_c, struct hg3dclass_struct * result_c); +// original function: size_t getNumTargetPasses(); +void cCot_getNumTargetPasses_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void removeAllTargetPasses(); +void cCot_removeAllTargetPasses_c(struct hg3dclass_struct *classptr_c); +// original function: CompositionTargetPass * getOutputTargetPass(); +void cCot_getOutputTargetPass_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: bool isSupported(bool allowTextureDegradation); +void cCot_isSupported_c(struct hg3dclass_struct *classptr_c, int allowTextureDegradation_c, int * result_c); +// original function: void setSchemeName(const String& schemeName); +void cCot_setSchemeName_c(struct hg3dclass_struct *classptr_c, char * schemeName_c); +// original function: const String& getSchemeName(); +void cCot_getSchemeName_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: void setCompositorLogicName(const String& compositorLogicName); +void cCot_setCompositorLogicName_c(struct hg3dclass_struct *classptr_c, char * compositorLogicName_c); +// original function: const String& getCompositorLogicName(); +void cCot_getCompositorLogicName_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: Compositor * getParent(); +void cCot_getParent_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c);
@@ -0,0 +1,56 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassCompositor.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCompositor.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: CompositionTechnique * createTechnique(); +void cCo_createTechnique_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: void removeTechnique(size_t idx); +void cCo_removeTechnique_c(struct hg3dclass_struct *classptr_c, int idx_c); +// original function: CompositionTechnique * getTechnique(size_t idx); +void cCo_getTechnique_c(struct hg3dclass_struct *classptr_c, int idx_c, struct hg3dclass_struct * result_c); +// original function: size_t getNumTechniques(); +void cCo_getNumTechniques_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void removeAllTechniques(); +void cCo_removeAllTechniques_c(struct hg3dclass_struct *classptr_c); +// original function: CompositionTechnique * getSupportedTechnique(size_t idx); +void cCo_getSupportedTechnique_c(struct hg3dclass_struct *classptr_c, int idx_c, struct hg3dclass_struct * result_c); +// original function: size_t getNumSupportedTechniques(); +void cCo_getNumSupportedTechniques_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: CompositionTechnique * getSupportedTechnique(const String& schemeName); +void cCo_getSupportedTechnique2_c(struct hg3dclass_struct *classptr_c, char * schemeName_c, struct hg3dclass_struct * result_c); +// original function: const String& getTextureInstanceName(const String& name, size_t mrtIndex); +void cCo_getTextureInstanceName_c(struct hg3dclass_struct *classptr_c, char * name_c, int mrtIndex_c, char * result_c);
@@ -0,0 +1,64 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassCompositorChain.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCompositorChain.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: void removeCompositor(size_t position); +void cCoc_removeCompositor_c(struct hg3dclass_struct *classptr_c, int position_c); +// original function: size_t getNumCompositors(); +void cCoc_getNumCompositors_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void removeAllCompositors(); +void cCoc_removeAllCompositors_c(struct hg3dclass_struct *classptr_c); +// original function: CompositorInstance * getCompositor(size_t index); +void cCoc_getCompositor_c(struct hg3dclass_struct *classptr_c, int index_c, struct hg3dclass_struct * result_c); +// original function: CompositorInstance * getCompositor(const String& name); +void cCoc_getCompositor2_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); +// original function: CompositorInstance* _getOriginalSceneCompositor(); +void cCoc__getOriginalSceneCompositor_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: void setCompositorEnabled(size_t position, bool state); +void cCoc_setCompositorEnabled_c(struct hg3dclass_struct *classptr_c, int position_c, int state_c); +// original function: void _markDirty(); +void cCoc__markDirty_c(struct hg3dclass_struct *classptr_c); +// original function: Viewport * getViewport(); +void cCoc_getViewport_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: void _notifyViewport(Viewport* vp); +void cCoc__notifyViewport_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * vp_c); +// original function: void _removeInstance(CompositorInstance * i); +void cCoc__removeInstance_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * i_c); +// original function: void _compile(); +void cCoc__compile_c(struct hg3dclass_struct *classptr_c); +// original function: CompositorInstance* getPreviousInstance(CompositorInstance* curr, bool activeOnly); +void cCoc_getPreviousInstance_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * curr_c, int activeOnly_c, struct hg3dclass_struct * result_c);
@@ -0,0 +1,62 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassCompositorInstance.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCompositorInstance.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: void setEnabled(bool value); +void cCoi_setEnabled_c(struct hg3dclass_struct *classptr_c, int value_c); +// original function: bool getEnabled(); +void cCoi_getEnabled_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: const String& getTextureInstanceName(const String& name, size_t mrtIndex); +void cCoi_getTextureInstanceName_c(struct hg3dclass_struct *classptr_c, char * name_c, int mrtIndex_c, char * result_c); +// original function: RenderTarget* getRenderTarget(const String& name); +void cCoi_getRenderTarget_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); +// original function: Compositor * getCompositor(); +void cCoi_getCompositor_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: CompositionTechnique * getTechnique(); +void cCoi_getTechnique_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: void setTechnique(CompositionTechnique* tech, bool reuseTextures); +void cCoi_setTechnique_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * tech_c, int reuseTextures_c); +// original function: void setScheme(const String& schemeName, bool reuseTextures); +void cCoi_setScheme_c(struct hg3dclass_struct *classptr_c, char * schemeName_c, int reuseTextures_c); +// original function: const String& getScheme(); +void cCoi_getScheme_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: void notifyResized(); +void cCoi_notifyResized_c(struct hg3dclass_struct *classptr_c); +// original function: CompositorChain * getChain(); +void cCoi_getChain_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: void _fireNotifyResourcesCreated(bool forResizeOnly); +void cCoi__fireNotifyResourcesCreated_c(struct hg3dclass_struct *classptr_c, int forResizeOnly_c);
@@ -0,0 +1,60 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassCompositorManager.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCompositorManager.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: void initialise(); +void cCom_initialise_c(struct hg3dclass_struct *classptr_c); +// original function: CompositorChain * getCompositorChain(Viewport * vp); +void cCom_getCompositorChain_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * vp_c, struct hg3dclass_struct * result_c); +// original function: bool hasCompositorChain(Viewport * vp); +void cCom_hasCompositorChain_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * vp_c, int * result_c); +// original function: void removeCompositorChain(Viewport * vp); +void cCom_removeCompositorChain_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * vp_c); +// original function: CompositorInstance * addCompositor(Viewport * vp, const String & compositor, int addPosition); +void cCom_addCompositor_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * vp_c, char * compositor_c, int addPosition_c, struct hg3dclass_struct * result_c); +// original function: void removeCompositor(Viewport * vp, const String & compositor); +void cCom_removeCompositor_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * vp_c, char * compositor_c); +// original function: void setCompositorEnabled(Viewport * vp, const String & compositor, bool value); +void cCom_setCompositorEnabled_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * vp_c, char * compositor_c, int value_c); +// original function: void removeAll(); +void cCom_removeAll_c(struct hg3dclass_struct *classptr_c); +// original function: void _reconstructAllCompositorResources(); +void cCom__reconstructAllCompositorResources_c(struct hg3dclass_struct *classptr_c); +// original function: void freePooledTextures(bool onlyIfUnreferenced); +void cCom_freePooledTextures_c(struct hg3dclass_struct *classptr_c, int onlyIfUnreferenced_c); +// original function: void _relocateChain(Viewport* sourceVP, Viewport* destVP); +void cCom__relocateChain_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * sourceVP_c, struct hg3dclass_struct * destVP_c);
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassCompositorPtr.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCompositor.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,48 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassConfigFile.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreConfigFile.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: void load(const String& filename, const String& separators, bool trimWhitespace); +void cCf_load_c(struct hg3dclass_struct *classptr_c, char * filename_c, char * separators_c, int trimWhitespace_c); +// original function: void load(const String& filename, const String& resourceGroup, const String& separators, bool trimWhitespace); +void cCf_load2_c(struct hg3dclass_struct *classptr_c, char * filename_c, char * resourceGroup_c, char * separators_c, int trimWhitespace_c); +// original function: void loadDirect(const String& filename, const String& separators, bool trimWhitespace); +void cCf_loadDirect_c(struct hg3dclass_struct *classptr_c, char * filename_c, char * separators_c, int trimWhitespace_c); +// original function: void loadFromResourceSystem(const String& filename, const String& resourceGroup, const String& separators, bool trimWhitespace); +void cCf_loadFromResourceSystem_c(struct hg3dclass_struct *classptr_c, char * filename_c, char * resourceGroup_c, char * separators_c, int trimWhitespace_c); +// original function: String getSetting(const String& key, const String& section, const String& defaultValue); +void cCf_getSetting_c(struct hg3dclass_struct *classptr_c, char * key_c, char * section_c, char * defaultValue_c, char * result_c);
@@ -0,0 +1,58 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassControllerManager.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreControllerManager.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: void clearControllers(); +void cCm_clearControllers_c(struct hg3dclass_struct *classptr_c); +// original function: void updateAllControllers(); +void cCm_updateAllControllers_c(struct hg3dclass_struct *classptr_c); +// original function: Real getTimeFactor(); +void cCm_getTimeFactor_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setTimeFactor(Real tf); +void cCm_setTimeFactor_c(struct hg3dclass_struct *classptr_c, float tf_c); +// original function: Real getFrameDelay(); +void cCm_getFrameDelay_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setFrameDelay(Real fd); +void cCm_setFrameDelay_c(struct hg3dclass_struct *classptr_c, float fd_c); +// original function: Real getElapsedTime(); +void cCm_getElapsedTime_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setElapsedTime(Real elapsedTime); +void cCm_setElapsedTime_c(struct hg3dclass_struct *classptr_c, float elapsedTime_c); +// created constructor function from default constructor +void cCm_newControllerManager_c(struct hg3dclass_struct *result_c); +// created singleton getSingletonPtr function +void cCm_getSingletonPtr_c(struct hg3dclass_struct *result_c);
@@ -0,0 +1,64 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassDataStream.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreDataStream.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: const String& getName(); +void cDs_getName_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: uint16 getAccessMode(); +void cDs_getAccessMode_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: bool isReadable(); +void cDs_isReadable_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool isWriteable(); +void cDs_isWriteable_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: size_t readLine(char* buf, size_t maxCount, const String& delim); +void cDs_readLine_c(struct hg3dclass_struct *classptr_c, char* buf_c, int maxCount_c, char * delim_c, int * result_c); +// original function: String getLine(bool trimAfter); +void cDs_getLine_c(struct hg3dclass_struct *classptr_c, int trimAfter_c, char * result_c); +// original function: String getAsString(); +void cDs_getAsString_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: size_t skipLine(const String& delim); +void cDs_skipLine_c(struct hg3dclass_struct *classptr_c, char * delim_c, int * result_c); +// original function: void seek(size_t pos); +void cDs_seek_c(struct hg3dclass_struct *classptr_c, int pos_c); +// original function: size_t tell(); +void cDs_tell_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool eof(); +void cDs_eof_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: size_t size(); +void cDs_size_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void close(); +void cDs_close_c(struct hg3dclass_struct *classptr_c);
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassDefaultAxisAlignedBoxSceneQuery.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSceneManager.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassDefaultPlaneBoundedVolumeListSceneQuery.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSceneManager.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassDefaultRaySceneQuery.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSceneManager.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassDefaultSceneManager.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSceneManagerEnumerator.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassDefaultSceneManagerFactory.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSceneManagerEnumerator.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassDefaultShadowCameraSetup.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreShadowCameraSetup.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassDefaultSphereSceneQuery.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSceneManager.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassElement.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBillboardChain.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,131 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassEntity.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreEntity.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" +#include "EnumVertexDataBindChoice.h" + + +// original function: SubEntity* getSubEntity(unsigned int index); +void cE_getSubEntity_c(struct hg3dclass_struct *classptr_c, unsigned int index_c, struct hg3dclass_struct * result_c); +// original function: SubEntity* getSubEntity(const String& name); +void cE_getSubEntity2_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); +// original function: unsigned int getNumSubEntities(); +void cE_getNumSubEntities_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: Entity* clone(const String& newName); +void cE_clone_c(struct hg3dclass_struct *classptr_c, char * newName_c, struct hg3dclass_struct * result_c); +// original function: void setMaterialName(const String& name, const String& groupName); +void cE_setMaterialName_c(struct hg3dclass_struct *classptr_c, char * name_c, char * groupName_c); +// original function: void _notifyCurrentCamera(Camera* cam); +void cE__notifyCurrentCamera_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * cam_c); +// original function: const String& getMovableType(); +void cE_getMovableType_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: AnimationState* getAnimationState(const String& name); +void cE_getAnimationState_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); +// original function: void setDisplaySkeleton(bool display); +void cE_setDisplaySkeleton_c(struct hg3dclass_struct *classptr_c, int display_c); +// original function: bool getDisplaySkeleton(); +void cE_getDisplaySkeleton_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: Entity* getManualLodLevel(size_t index); +void cE_getManualLodLevel_c(struct hg3dclass_struct *classptr_c, int index_c, struct hg3dclass_struct * result_c); +// original function: size_t getNumManualLodLevels(); +void cE_getNumManualLodLevels_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setPolygonModeOverrideable(bool PolygonModeOverrideable); +void cE_setPolygonModeOverrideable_c(struct hg3dclass_struct *classptr_c, int PolygonModeOverrideable_c); +// original function: MovableObject* detachObjectFromBone(const String & movableName); +void cE_detachObjectFromBone_c(struct hg3dclass_struct *classptr_c, char * movableName_c, struct hg3dclass_struct * result_c); +// original function: void detachObjectFromBone(MovableObject* obj); +void cE_detachObjectFromBone2_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * obj_c); +// original function: void detachAllObjectsFromBone(); +void cE_detachAllObjectsFromBone_c(struct hg3dclass_struct *classptr_c); +// original function: Real getBoundingRadius(); +void cE_getBoundingRadius_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: bool hasEdgeList(); +void cE_hasEdgeList_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: unsigned short _getNumBoneMatrices(); +void cE__getNumBoneMatrices_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: bool hasSkeleton(); +void cE_hasSkeleton_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: SkeletonInstance* getSkeleton(); +void cE_getSkeleton_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: bool isHardwareAnimationEnabled(); +void cE_isHardwareAnimationEnabled_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void _notifyAttached(Node* parent, bool isTagPoint); +void cE__notifyAttached_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * parent_c, int isTagPoint_c); +// original function: int getSoftwareAnimationRequests(); +void cE_getSoftwareAnimationRequests_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: int getSoftwareAnimationNormalsRequests(); +void cE_getSoftwareAnimationNormalsRequests_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void addSoftwareAnimationRequest(bool normalsAlso); +void cE_addSoftwareAnimationRequest_c(struct hg3dclass_struct *classptr_c, int normalsAlso_c); +// original function: void removeSoftwareAnimationRequest(bool normalsAlso); +void cE_removeSoftwareAnimationRequest_c(struct hg3dclass_struct *classptr_c, int normalsAlso_c); +// original function: void shareSkeletonInstanceWith(Entity* entity); +void cE_shareSkeletonInstanceWith_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * entity_c); +// original function: bool hasVertexAnimation(); +void cE_hasVertexAnimation_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void stopSharingSkeletonInstance(); +void cE_stopSharingSkeletonInstance_c(struct hg3dclass_struct *classptr_c); +// original function: void refreshAvailableAnimationState(); +void cE_refreshAvailableAnimationState_c(struct hg3dclass_struct *classptr_c); +// original function: void _updateAnimation(); +void cE__updateAnimation_c(struct hg3dclass_struct *classptr_c); +// original function: bool _isAnimated(); +void cE__isAnimated_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool _isSkeletonAnimated(); +void cE__isSkeletonAnimated_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: TempBlendedBufferInfo* _getSkelAnimTempBufferInfo(); +void cE__getSkelAnimTempBufferInfo_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: TempBlendedBufferInfo* _getVertexAnimTempBufferInfo(); +void cE__getVertexAnimTempBufferInfo_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: uint32 getTypeFlags(); +void cE_getTypeFlags_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: VertexDataBindChoice chooseVertexDataForBinding(bool hasVertexAnim); +void cE_chooseVertexDataForBinding_c(struct hg3dclass_struct *classptr_c, int hasVertexAnim_c, enum EnumVertexDataBindChoice * result_c); +// original function: bool _getBuffersMarkedForAnimation(); +void cE__getBuffersMarkedForAnimation_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void _markBuffersUsedForAnimation(); +void cE__markBuffersUsedForAnimation_c(struct hg3dclass_struct *classptr_c); +// original function: bool isInitialised(); +void cE_isInitialised_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void _initialise(bool forceReinitialise); +void cE__initialise_c(struct hg3dclass_struct *classptr_c, int forceReinitialise_c); +// original function: void _deinitialise(); +void cE__deinitialise_c(struct hg3dclass_struct *classptr_c); +// original function: Real _getMeshLodFactorTransformed(); +void cE__getMeshLodFactorTransformed_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setSkipAnimationStateUpdate(bool skip); +void cE_setSkipAnimationStateUpdate_c(struct hg3dclass_struct *classptr_c, int skip_c); +// original function: bool getSkipAnimationStateUpdate(); +void cE_getSkipAnimationStateUpdate_c(struct hg3dclass_struct *classptr_c, int * result_c);
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassEntityFactory.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreEntity.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,50 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassException.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreException.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: const String& getFullDescription(); +void cEx_getFullDescription_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: int getNumber(); +void cEx_getNumber_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: const String & getSource(); +void cEx_getSource_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: const String & getFile(); +void cEx_getFile_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: const String & getDescription(); +void cEx_getDescription_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: const char* what(); +void cEx_what_c(struct hg3dclass_struct *classptr_c, char* result_c);
@@ -0,0 +1,46 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassFileHandleDataStream.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreDataStream.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: void seek(size_t pos); +void cFhds_seek_c(struct hg3dclass_struct *classptr_c, int pos_c); +// original function: size_t tell(); +void cFhds_tell_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool eof(); +void cFhds_eof_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void close(); +void cFhds_close_c(struct hg3dclass_struct *classptr_c);
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassFileNotFoundException.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreException.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,48 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassFileStreamDataStream.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreDataStream.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: size_t readLine(char* buf, size_t maxCount, const String& delim); +void cFsds_readLine_c(struct hg3dclass_struct *classptr_c, char* buf_c, int maxCount_c, char * delim_c, int * result_c); +// original function: void seek(size_t pos); +void cFsds_seek_c(struct hg3dclass_struct *classptr_c, int pos_c); +// original function: size_t tell(); +void cFsds_tell_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool eof(); +void cFsds_eof_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void close(); +void cFsds_close_c(struct hg3dclass_struct *classptr_c);
@@ -0,0 +1,119 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassFrustum.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreFrustum.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" +#include "TypeRadian.h" +#include "TypeVector2.h" +#include "TypeVector3.h" +#include "EnumFrustumPlane.h" +#include "EnumProjectionType.h" +#include "TypeQuaternion.h" +#include "EnumOrientationMode.h" + + +// original function: void setFOVy(const Radian& fovy); +void cF_setFOVy_c(struct hg3dclass_struct *classptr_c, struct radian_struct * fovy_c); +// original function: const Radian& getFOVy(); +void cF_getFOVy_c(struct hg3dclass_struct *classptr_c, struct radian_struct * result_c); +// original function: void setNearClipDistance(Real nearDist); +void cF_setNearClipDistance_c(struct hg3dclass_struct *classptr_c, float nearDist_c); +// original function: Real getNearClipDistance(); +void cF_getNearClipDistance_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setFarClipDistance(Real farDist); +void cF_setFarClipDistance_c(struct hg3dclass_struct *classptr_c, float farDist_c); +// original function: Real getFarClipDistance(); +void cF_getFarClipDistance_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setAspectRatio(Real ratio); +void cF_setAspectRatio_c(struct hg3dclass_struct *classptr_c, float ratio_c); +// original function: Real getAspectRatio(); +void cF_getAspectRatio_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setFrustumOffset(const Vector2& offset); +void cF_setFrustumOffset_c(struct hg3dclass_struct *classptr_c, struct vector2_struct * offset_c); +// original function: void setFrustumOffset(Real horizontal, Real vertical); +void cF_setFrustumOffset2_c(struct hg3dclass_struct *classptr_c, float horizontal_c, float vertical_c); +// original function: const Vector2& getFrustumOffset(); +void cF_getFrustumOffset_c(struct hg3dclass_struct *classptr_c, struct vector2_struct * result_c); +// original function: void setFocalLength(Real focalLength); +void cF_setFocalLength_c(struct hg3dclass_struct *classptr_c, float focalLength_c); +// original function: Real getFocalLength(); +void cF_getFocalLength_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setFrustumExtents(Real left, Real right, Real top, Real bottom); +void cF_setFrustumExtents_c(struct hg3dclass_struct *classptr_c, float left_c, float right_c, float top_c, float bottom_c); +// original function: void resetFrustumExtents(); +void cF_resetFrustumExtents_c(struct hg3dclass_struct *classptr_c); +// original function: bool isCustomViewMatrixEnabled(); +void cF_isCustomViewMatrixEnabled_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool isCustomProjectionMatrixEnabled(); +void cF_isCustomProjectionMatrixEnabled_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool isVisible(const Vector3& vert, FrustumPlane* culledBy); +void cF_isVisible3_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * vert_c, enum EnumFrustumPlane * culledBy_c, int * result_c); +// original function: uint32 getTypeFlags(); +void cF_getTypeFlags_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: Real getBoundingRadius(); +void cF_getBoundingRadius_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: const String& getMovableType(); +void cF_getMovableType_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: void _notifyCurrentCamera(Camera* cam); +void cF__notifyCurrentCamera_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * cam_c); +// original function: void setProjectionType(ProjectionType pt); +void cF_setProjectionType_c(struct hg3dclass_struct *classptr_c, enum EnumProjectionType pt_c); +// original function: ProjectionType getProjectionType(); +void cF_getProjectionType_c(struct hg3dclass_struct *classptr_c, enum EnumProjectionType * result_c); +// original function: void setOrthoWindow(Real w, Real h); +void cF_setOrthoWindow_c(struct hg3dclass_struct *classptr_c, float w_c, float h_c); +// original function: void setOrthoWindowHeight(Real h); +void cF_setOrthoWindowHeight_c(struct hg3dclass_struct *classptr_c, float h_c); +// original function: void setOrthoWindowWidth(Real w); +void cF_setOrthoWindowWidth_c(struct hg3dclass_struct *classptr_c, float w_c); +// original function: Real getOrthoWindowHeight(); +void cF_getOrthoWindowHeight_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: Real getOrthoWindowWidth(); +void cF_getOrthoWindowWidth_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void disableReflection(); +void cF_disableReflection_c(struct hg3dclass_struct *classptr_c); +// original function: bool isReflected(); +void cF_isReflected_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void disableCustomNearClipPlane(); +void cF_disableCustomNearClipPlane_c(struct hg3dclass_struct *classptr_c); +// original function: bool isCustomNearClipPlaneEnabled(); +void cF_isCustomNearClipPlaneEnabled_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: const Vector3& getPositionForViewUpdate(); +void cF_getPositionForViewUpdate_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * result_c); +// original function: const Quaternion& getOrientationForViewUpdate(); +void cF_getOrientationForViewUpdate_c(struct hg3dclass_struct *classptr_c, struct quaternion_struct * result_c); +// original function: void setOrientationMode(OrientationMode orientationMode); +void cF_setOrientationMode_c(struct hg3dclass_struct *classptr_c, enum EnumOrientationMode orientationMode_c); +// original function: OrientationMode getOrientationMode(); +void cF_getOrientationMode_c(struct hg3dclass_struct *classptr_c, enum EnumOrientationMode * result_c);
@@ -0,0 +1,40 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassGeometryBucket.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreStaticGeometry.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: void build(bool stencilShadows); +void cGb_build_c(struct hg3dclass_struct *classptr_c, int stencilShadows_c);
@@ -0,0 +1,95 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassGpuProgram.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreGpuProgram.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" +#include "EnumGpuProgramType.h" + + +// original function: void setSourceFile(const String& filename); +void cGp_setSourceFile_c(struct hg3dclass_struct *classptr_c, char * filename_c); +// original function: void setSource(const String& source); +void cGp_setSource_c(struct hg3dclass_struct *classptr_c, char * source_c); +// original function: const String& getSyntaxCode(); +void cGp_getSyntaxCode_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: void setSyntaxCode(const String& syntax); +void cGp_setSyntaxCode_c(struct hg3dclass_struct *classptr_c, char * syntax_c); +// original function: const String& getSourceFile(); +void cGp_getSourceFile_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: const String& getSource(); +void cGp_getSource_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: void setType(GpuProgramType t); +void cGp_setType_c(struct hg3dclass_struct *classptr_c, enum EnumGpuProgramType t_c); +// original function: GpuProgramType getType(); +void cGp_getType_c(struct hg3dclass_struct *classptr_c, enum EnumGpuProgramType * result_c); +// original function: GpuProgram* _getBindingDelegate(); +void cGp__getBindingDelegate_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: bool isSupported(); +void cGp_isSupported_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setSkeletalAnimationIncluded(bool included); +void cGp_setSkeletalAnimationIncluded_c(struct hg3dclass_struct *classptr_c, int included_c); +// original function: bool isSkeletalAnimationIncluded(); +void cGp_isSkeletalAnimationIncluded_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setMorphAnimationIncluded(bool included); +void cGp_setMorphAnimationIncluded_c(struct hg3dclass_struct *classptr_c, int included_c); +// original function: bool isMorphAnimationIncluded(); +void cGp_isMorphAnimationIncluded_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool isPoseAnimationIncluded(); +void cGp_isPoseAnimationIncluded_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setVertexTextureFetchRequired(bool r); +void cGp_setVertexTextureFetchRequired_c(struct hg3dclass_struct *classptr_c, int r_c); +// original function: bool isVertexTextureFetchRequired(); +void cGp_isVertexTextureFetchRequired_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setAdjacencyInfoRequired(bool r); +void cGp_setAdjacencyInfoRequired_c(struct hg3dclass_struct *classptr_c, int r_c); +// original function: bool isAdjacencyInfoRequired(); +void cGp_isAdjacencyInfoRequired_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool hasDefaultParameters(); +void cGp_hasDefaultParameters_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool getPassSurfaceAndLightStates(); +void cGp_getPassSurfaceAndLightStates_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool getPassFogStates(); +void cGp_getPassFogStates_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool getPassTransformStates(); +void cGp_getPassTransformStates_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: const String& getLanguage(); +void cGp_getLanguage_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: bool hasCompileError(); +void cGp_hasCompileError_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void resetCompileError(); +void cGp_resetCompileError_c(struct hg3dclass_struct *classptr_c); +// original function: void setManualNamedConstantsFile(const String& paramDefFile); +void cGp_setManualNamedConstantsFile_c(struct hg3dclass_struct *classptr_c, char * paramDefFile_c); +// original function: const String& getManualNamedConstantsFile(); +void cGp_getManualNamedConstantsFile_c(struct hg3dclass_struct *classptr_c, char * result_c);
@@ -0,0 +1,40 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassGpuProgramManager.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreGpuProgramManager.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: bool isSyntaxSupported(const String& syntaxCode); +void cGpm_isSyntaxSupported_c(struct hg3dclass_struct *classptr_c, char * syntaxCode_c, int * result_c);
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassGpuProgramPtr.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreGpuProgram.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassHardwareBufferLicensee.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreHardwareBufferManager.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,44 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassHardwareBufferManager.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreHardwareBufferManager.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: void _freeUnusedBufferCopies(); +void cHbm__freeUnusedBufferCopies_c(struct hg3dclass_struct *classptr_c); +// original function: void _releaseBufferCopies(bool forceFreeUnused); +void cHbm__releaseBufferCopies_c(struct hg3dclass_struct *classptr_c, int forceFreeUnused_c); +// original function: void _notifyIndexBufferDestroyed(HardwareIndexBuffer* buf); +void cHbm__notifyIndexBufferDestroyed_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * buf_c);
@@ -0,0 +1,44 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassHardwareBufferManagerBase.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreHardwareBufferManager.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: void _freeUnusedBufferCopies(); +void cHbmb__freeUnusedBufferCopies_c(struct hg3dclass_struct *classptr_c); +// original function: void _releaseBufferCopies(bool forceFreeUnused); +void cHbmb__releaseBufferCopies_c(struct hg3dclass_struct *classptr_c, int forceFreeUnused_c); +// original function: void _notifyIndexBufferDestroyed(HardwareIndexBuffer* buf); +void cHbmb__notifyIndexBufferDestroyed_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * buf_c);
@@ -0,0 +1,47 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassHardwareIndexBuffer.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreHardwareIndexBuffer.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" +#include "EnumIndexType.h" + + +// original function: HardwareBufferManagerBase* getManager(); +void cHib_getManager_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: IndexType getType(); +void cHib_getType_c(struct hg3dclass_struct *classptr_c, enum EnumIndexType * result_c); +// original function: size_t getNumIndexes(); +void cHib_getNumIndexes_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: size_t getIndexSize(); +void cHib_getIndexSize_c(struct hg3dclass_struct *classptr_c, int * result_c);
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassHardwareIndexBufferSharedPtr.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreHardwareIndexBuffer.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,48 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassHardwareOcclusionQuery.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreHardwareOcclusionQuery.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: void beginOcclusionQuery(); +void cHoq_beginOcclusionQuery_c(struct hg3dclass_struct *classptr_c); +// original function: void endOcclusionQuery(); +void cHoq_endOcclusionQuery_c(struct hg3dclass_struct *classptr_c); +// original function: bool pullOcclusionQuery(unsigned int* NumOfFragments); +void cHoq_pullOcclusionQuery_c(struct hg3dclass_struct *classptr_c, unsigned int * NumOfFragments_c, int * result_c); +// original function: unsigned int getLastQuerysPixelcount(); +void cHoq_getLastQuerysPixelcount_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: bool isStillOutstanding(); +void cHoq_isStillOutstanding_c(struct hg3dclass_struct *classptr_c, int * result_c);
@@ -0,0 +1,49 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassHardwarePixelBuffer.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreHardwarePixelBuffer.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" +#include "EnumPixelFormat.h" + + +// original function: RenderTexture * getRenderTarget(size_t slice); +void cHpb_getRenderTarget_c(struct hg3dclass_struct *classptr_c, int slice_c, struct hg3dclass_struct * result_c); +// original function: size_t getWidth(); +void cHpb_getWidth_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: size_t getHeight(); +void cHpb_getHeight_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: size_t getDepth(); +void cHpb_getDepth_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: PixelFormat getFormat(); +void cHpb_getFormat_c(struct hg3dclass_struct *classptr_c, enum EnumPixelFormat * result_c);
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassHardwarePixelBufferSharedPtr.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreHardwarePixelBuffer.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,40 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassHighLevelGpuProgram.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreHighLevelGpuProgram.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: GpuProgram* _getBindingDelegate(); +void cHlgp__getBindingDelegate_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c);
@@ -0,0 +1,40 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassHighLevelGpuProgramFactory.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreHighLevelGpuProgramManager.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: const String& getLanguage(); +void cHlgpf_getLanguage_c(struct hg3dclass_struct *classptr_c, char * result_c);
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassHighLevelGpuProgramPtr.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreHighLevelGpuProgram.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassIOException.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreException.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassInternalErrorException.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreException.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassInvalidParametersException.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreException.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassInvalidStateException.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreException.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassItemIdentityException.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreException.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,40 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassKeyFrame.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreKeyFrame.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: Real getTime(); +void cKf_getTime_c(struct hg3dclass_struct *classptr_c, float * result_c);
@@ -0,0 +1,42 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassLODBucket.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreStaticGeometry.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: Real getLodValue(); +void cLodb_getLodValue_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void build(bool stencilShadows); +void cLodb_build_c(struct hg3dclass_struct *classptr_c, int stencilShadows_c);
@@ -0,0 +1,51 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassLiSPSMShadowCameraSetup.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreShadowCameraSetupLiSPSM.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" +#include "TypeDegree.h" + + +// original function: void setOptimalAdjustFactor(Real n); +void cLspsmscs_setOptimalAdjustFactor_c(struct hg3dclass_struct *classptr_c, float n_c); +// original function: Real getOptimalAdjustFactor(); +void cLspsmscs_getOptimalAdjustFactor_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setUseSimpleOptimalAdjust(bool s); +void cLspsmscs_setUseSimpleOptimalAdjust_c(struct hg3dclass_struct *classptr_c, int s_c); +// original function: bool getUseSimpleOptimalAdjust(); +void cLspsmscs_getUseSimpleOptimalAdjust_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setCameraLightDirectionThreshold(Degree angle); +void cLspsmscs_setCameraLightDirectionThreshold_c(struct hg3dclass_struct *classptr_c, struct degree_struct * angle_c); +// original function: Degree getCameraLightDirectionThreshold(); +void cLspsmscs_getCameraLightDirectionThreshold_c(struct hg3dclass_struct *classptr_c, struct degree_struct * result_c);
@@ -0,0 +1,143 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassLight.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreLight.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" +#include "TypeVector3.h" +#include "EnumLightTypes.h" +#include "TypeColourValue.h" +#include "TypeRadian.h" +#include "TypeVector4.h" + + +// original function: void _calcTempSquareDist(const Vector3& worldPos); +void cL__calcTempSquareDist_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * worldPos_c); +// original function: void setType(LightTypes type); +void cL_setType_c(struct hg3dclass_struct *classptr_c, enum EnumLightTypes type_c); +// original function: LightTypes getType(); +void cL_getType_c(struct hg3dclass_struct *classptr_c, enum EnumLightTypes * result_c); +// original function: void setDiffuseColour(Real red, Real green, Real blue); +void cL_setDiffuseColour_c(struct hg3dclass_struct *classptr_c, float red_c, float green_c, float blue_c); +// original function: void setDiffuseColour(const ColourValue& colour); +void cL_setDiffuseColour2_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * colour_c); +// original function: const ColourValue& getDiffuseColour(); +void cL_getDiffuseColour_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * result_c); +// original function: void setSpecularColour(Real red, Real green, Real blue); +void cL_setSpecularColour_c(struct hg3dclass_struct *classptr_c, float red_c, float green_c, float blue_c); +// original function: void setSpecularColour(const ColourValue& colour); +void cL_setSpecularColour2_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * colour_c); +// original function: const ColourValue& getSpecularColour(); +void cL_getSpecularColour_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * result_c); +// original function: void setAttenuation(Real range, Real constant, Real linear, Real quadratic); +void cL_setAttenuation_c(struct hg3dclass_struct *classptr_c, float range_c, float constant_c, float linear_c, float quadratic_c); +// original function: Real getAttenuationRange(); +void cL_getAttenuationRange_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: Real getAttenuationConstant(); +void cL_getAttenuationConstant_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: Real getAttenuationLinear(); +void cL_getAttenuationLinear_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: Real getAttenuationQuadric(); +void cL_getAttenuationQuadric_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setPosition(Real x, Real y, Real z); +void cL_setPosition_c(struct hg3dclass_struct *classptr_c, float x_c, float y_c, float z_c); +// original function: void setPosition(const Vector3& vec); +void cL_setPosition2_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * vec_c); +// original function: const Vector3& getPosition(); +void cL_getPosition_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * result_c); +// original function: void setDirection(Real x, Real y, Real z); +void cL_setDirection_c(struct hg3dclass_struct *classptr_c, float x_c, float y_c, float z_c); +// original function: void setDirection(const Vector3& vec); +void cL_setDirection2_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * vec_c); +// original function: const Vector3& getDirection(); +void cL_getDirection_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * result_c); +// original function: void setSpotlightRange(const Radian& innerAngle, const Radian& outerAngle, Real falloff); +void cL_setSpotlightRange_c(struct hg3dclass_struct *classptr_c, struct radian_struct * innerAngle_c, struct radian_struct * outerAngle_c, float falloff_c); +// original function: const Radian& getSpotlightInnerAngle(); +void cL_getSpotlightInnerAngle_c(struct hg3dclass_struct *classptr_c, struct radian_struct * result_c); +// original function: const Radian& getSpotlightOuterAngle(); +void cL_getSpotlightOuterAngle_c(struct hg3dclass_struct *classptr_c, struct radian_struct * result_c); +// original function: Real getSpotlightFalloff(); +void cL_getSpotlightFalloff_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setSpotlightInnerAngle(const Radian& val); +void cL_setSpotlightInnerAngle_c(struct hg3dclass_struct *classptr_c, struct radian_struct * val_c); +// original function: void setSpotlightOuterAngle(const Radian& val); +void cL_setSpotlightOuterAngle_c(struct hg3dclass_struct *classptr_c, struct radian_struct * val_c); +// original function: void setSpotlightFalloff(Real val); +void cL_setSpotlightFalloff_c(struct hg3dclass_struct *classptr_c, float val_c); +// original function: void setPowerScale(Real power); +void cL_setPowerScale_c(struct hg3dclass_struct *classptr_c, float power_c); +// original function: Real getPowerScale(); +void cL_getPowerScale_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void _notifyAttached(Node* parent, bool isTagPoint); +void cL__notifyAttached_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * parent_c, int isTagPoint_c); +// original function: void _notifyMoved(); +void cL__notifyMoved_c(struct hg3dclass_struct *classptr_c); +// original function: const String& getMovableType(); +void cL_getMovableType_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: const Vector3& getDerivedPosition(bool cameraRelativeIfSet); +void cL_getDerivedPosition_c(struct hg3dclass_struct *classptr_c, int cameraRelativeIfSet_c, struct vector3_struct * result_c); +// original function: const Vector3& getDerivedDirection(); +void cL_getDerivedDirection_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * result_c); +// original function: void setVisible(bool visible); +void cL_setVisible_c(struct hg3dclass_struct *classptr_c, int visible_c); +// original function: Real getBoundingRadius(); +void cL_getBoundingRadius_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: Vector4 getAs4DVector(bool cameraRelativeIfSet); +void cL_getAs4DVector_c(struct hg3dclass_struct *classptr_c, int cameraRelativeIfSet_c, struct vector4_struct * result_c); +// original function: uint32 getTypeFlags(); +void cL_getTypeFlags_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: void resetCustomShadowCameraSetup(); +void cL_resetCustomShadowCameraSetup_c(struct hg3dclass_struct *classptr_c); +// original function: size_t _getIndexInFrame(); +void cL__getIndexInFrame_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setShadowFarDistance(Real distance); +void cL_setShadowFarDistance_c(struct hg3dclass_struct *classptr_c, float distance_c); +// original function: void resetShadowFarDistance(); +void cL_resetShadowFarDistance_c(struct hg3dclass_struct *classptr_c); +// original function: Real getShadowFarDistance(); +void cL_getShadowFarDistance_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setShadowNearClipDistance(Real nearClip); +void cL_setShadowNearClipDistance_c(struct hg3dclass_struct *classptr_c, float nearClip_c); +// original function: Real getShadowNearClipDistance(); +void cL_getShadowNearClipDistance_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setShadowFarClipDistance(Real farClip); +void cL_setShadowFarClipDistance_c(struct hg3dclass_struct *classptr_c, float farClip_c); +// original function: Real getShadowFarClipDistance(); +void cL_getShadowFarClipDistance_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void _setCameraRelative(Camera* cam); +void cL__setCameraRelative_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * cam_c); +// original function: void setCustomParameter(uint16 index, const Vector4& value); +void cL_setCustomParameter_c(struct hg3dclass_struct *classptr_c, unsigned int index_c, struct vector4_struct * value_c); +// original function: const Vector4& getCustomParameter(uint16 index); +void cL_getCustomParameter_c(struct hg3dclass_struct *classptr_c, unsigned int index_c, struct vector4_struct * result_c);
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassLightFactory.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreLight.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,48 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassLogManager.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreLogManager.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" +#include "EnumLogMessageLevel.h" +#include "EnumLoggingLevel.h" + + +// original function: void destroyLog(const String& name); +void cLm_destroyLog_c(struct hg3dclass_struct *classptr_c, char * name_c); +// original function: void logMessage(const String& message, LogMessageLevel lml, bool maskDebug); +void cLm_logMessage_c(struct hg3dclass_struct *classptr_c, char * message_c, enum EnumLogMessageLevel lml_c, int maskDebug_c); +// original function: void logMessage(LogMessageLevel lml, const String& message, bool maskDebug); +void cLm_logMessage2_c(struct hg3dclass_struct *classptr_c, enum EnumLogMessageLevel lml_c, char * message_c, int maskDebug_c); +// original function: void setLogDetail(LoggingLevel ll); +void cLm_setLogDetail_c(struct hg3dclass_struct *classptr_c, enum EnumLoggingLevel ll_c);
@@ -0,0 +1,119 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassManualObject.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreManualObject.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" +#include "EnumOperationType.h" +#include "TypeVector3.h" +#include "TypeVector2.h" +#include "TypeVector4.h" +#include "TypeColourValue.h" + + +// original function: void clear(); +void cMno_clear_c(struct hg3dclass_struct *classptr_c); +// original function: void estimateVertexCount(size_t vcount); +void cMno_estimateVertexCount_c(struct hg3dclass_struct *classptr_c, int vcount_c); +// original function: void estimateIndexCount(size_t icount); +void cMno_estimateIndexCount_c(struct hg3dclass_struct *classptr_c, int icount_c); +// original function: void begin(const String& materialName, RenderOperation::OperationType opType, const String & groupName); +void cMno_begin_c(struct hg3dclass_struct *classptr_c, char * materialName_c, enum EnumOperationType opType_c, char * groupName_c); +// original function: void setDynamic(bool dyn); +void cMno_setDynamic_c(struct hg3dclass_struct *classptr_c, int dyn_c); +// original function: bool getDynamic(); +void cMno_getDynamic_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void beginUpdate(size_t sectionIndex); +void cMno_beginUpdate_c(struct hg3dclass_struct *classptr_c, int sectionIndex_c); +// original function: void position(const Vector3& pos); +void cMno_position_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * pos_c); +// original function: void position(Real x, Real y, Real z); +void cMno_position2_c(struct hg3dclass_struct *classptr_c, float x_c, float y_c, float z_c); +// original function: void normal(const Vector3& norm); +void cMno_normal_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * norm_c); +// original function: void normal(Real x, Real y, Real z); +void cMno_normal2_c(struct hg3dclass_struct *classptr_c, float x_c, float y_c, float z_c); +// original function: void tangent(const Vector3& tan); +void cMno_tangent_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * tan_c); +// original function: void tangent(Real x, Real y, Real z); +void cMno_tangent2_c(struct hg3dclass_struct *classptr_c, float x_c, float y_c, float z_c); +// original function: void textureCoord(Real u); +void cMno_textureCoord_c(struct hg3dclass_struct *classptr_c, float u_c); +// original function: void textureCoord(Real u, Real v); +void cMno_textureCoord2_c(struct hg3dclass_struct *classptr_c, float u_c, float v_c); +// original function: void textureCoord(Real u, Real v, Real w); +void cMno_textureCoord3_c(struct hg3dclass_struct *classptr_c, float u_c, float v_c, float w_c); +// original function: void textureCoord(Real x, Real y, Real z, Real w); +void cMno_textureCoord4_c(struct hg3dclass_struct *classptr_c, float x_c, float y_c, float z_c, float w_c); +// original function: void textureCoord(const Vector2& uv); +void cMno_textureCoord5_c(struct hg3dclass_struct *classptr_c, struct vector2_struct * uv_c); +// original function: void textureCoord(const Vector3& uvw); +void cMno_textureCoord6_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * uvw_c); +// original function: void textureCoord(const Vector4& xyzw); +void cMno_textureCoord7_c(struct hg3dclass_struct *classptr_c, struct vector4_struct * xyzw_c); +// original function: void colour(const ColourValue& col); +void cMno_colour_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * col_c); +// original function: void colour(Real r, Real g, Real b, Real a); +void cMno_colour2_c(struct hg3dclass_struct *classptr_c, float r_c, float g_c, float b_c, float a_c); +// original function: void index(uint32 idx); +void cMno_index_c(struct hg3dclass_struct *classptr_c, unsigned int idx_c); +// original function: void triangle(uint32 i1, uint32 i2, uint32 i3); +void cMno_triangle_c(struct hg3dclass_struct *classptr_c, unsigned int i1_c, unsigned int i2_c, unsigned int i3_c); +// original function: void quad(uint32 i1, uint32 i2, uint32 i3, uint32 i4); +void cMno_quad_c(struct hg3dclass_struct *classptr_c, unsigned int i1_c, unsigned int i2_c, unsigned int i3_c, unsigned int i4_c); +// original function: ManualObjectSection* end(); +void cMno_end_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: void setMaterialName(size_t subindex, const String& name, const String & group); +void cMno_setMaterialName_c(struct hg3dclass_struct *classptr_c, int subindex_c, char * name_c, char * group_c); +// original function: void setUseIdentityProjection(bool useIdentityProjection); +void cMno_setUseIdentityProjection_c(struct hg3dclass_struct *classptr_c, int useIdentityProjection_c); +// original function: bool getUseIdentityProjection(); +void cMno_getUseIdentityProjection_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setUseIdentityView(bool useIdentityView); +void cMno_setUseIdentityView_c(struct hg3dclass_struct *classptr_c, int useIdentityView_c); +// original function: bool getUseIdentityView(); +void cMno_getUseIdentityView_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: ManualObjectSection* getSection(unsigned int index); +void cMno_getSection_c(struct hg3dclass_struct *classptr_c, unsigned int index_c, struct hg3dclass_struct * result_c); +// original function: unsigned int getNumSections(); +void cMno_getNumSections_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: void setKeepDeclarationOrder(bool keepOrder); +void cMno_setKeepDeclarationOrder_c(struct hg3dclass_struct *classptr_c, int keepOrder_c); +// original function: bool getKeepDeclarationOrder(); +void cMno_getKeepDeclarationOrder_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: const String& getMovableType(); +void cMno_getMovableType_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: Real getBoundingRadius(); +void cMno_getBoundingRadius_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: bool hasEdgeList(); +void cMno_hasEdgeList_c(struct hg3dclass_struct *classptr_c, int * result_c);
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassManualObjectFactory.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreManualObject.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,48 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassManualObjectSection.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreManualObject.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: const String& getMaterialName(); +void cMos_getMaterialName_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: const String& getMaterialGroup(); +void cMos_getMaterialGroup_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: void setMaterialName(const String& name, const String& groupName); +void cMos_setMaterialName_c(struct hg3dclass_struct *classptr_c, char * name_c, char * groupName_c); +// original function: void set32BitIndices(bool n32); +void cMos_set32BitIndices_c(struct hg3dclass_struct *classptr_c, int n32_c); +// original function: bool get32BitIndices(); +void cMos_get32BitIndices_c(struct hg3dclass_struct *classptr_c, int * result_c);
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassManualObjectSectionShadowRenderable.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreManualObject.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,129 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassMaterial.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreMaterial.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" +#include "TypeColourValue.h" +#include "EnumCompareFunction.h" +#include "EnumCullingMode.h" +#include "EnumManualCullingMode.h" +#include "EnumShadeOptions.h" +#include "EnumFogMode.h" +#include "EnumTextureFilterOptions.h" + + +// original function: bool isTransparent(); +void cMt_isTransparent_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setReceiveShadows(bool enabled); +void cMt_setReceiveShadows_c(struct hg3dclass_struct *classptr_c, int enabled_c); +// original function: bool getReceiveShadows(); +void cMt_getReceiveShadows_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setTransparencyCastsShadows(bool enabled); +void cMt_setTransparencyCastsShadows_c(struct hg3dclass_struct *classptr_c, int enabled_c); +// original function: bool getTransparencyCastsShadows(); +void cMt_getTransparencyCastsShadows_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: Technique* createTechnique(); +void cMt_createTechnique_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: Technique* getTechnique(unsigned short index); +void cMt_getTechnique_c(struct hg3dclass_struct *classptr_c, unsigned int index_c, struct hg3dclass_struct * result_c); +// original function: Technique* getTechnique(const String& name); +void cMt_getTechnique2_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); +// original function: unsigned short getNumTechniques(); +void cMt_getNumTechniques_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: void removeTechnique(unsigned short index); +void cMt_removeTechnique_c(struct hg3dclass_struct *classptr_c, unsigned int index_c); +// original function: void removeAllTechniques(); +void cMt_removeAllTechniques_c(struct hg3dclass_struct *classptr_c); +// original function: Technique* getSupportedTechnique(unsigned short index); +void cMt_getSupportedTechnique_c(struct hg3dclass_struct *classptr_c, unsigned int index_c, struct hg3dclass_struct * result_c); +// original function: unsigned short getNumSupportedTechniques(); +void cMt_getNumSupportedTechniques_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: const String& getUnsupportedTechniquesExplanation(); +void cMt_getUnsupportedTechniquesExplanation_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: unsigned short getNumLodLevels(unsigned short schemeIndex); +void cMt_getNumLodLevels_c(struct hg3dclass_struct *classptr_c, unsigned int schemeIndex_c, unsigned int * result_c); +// original function: unsigned short getNumLodLevels(const String& schemeName); +void cMt_getNumLodLevels2_c(struct hg3dclass_struct *classptr_c, char * schemeName_c, unsigned int * result_c); +// original function: void compile(bool autoManageTextureUnits); +void cMt_compile_c(struct hg3dclass_struct *classptr_c, int autoManageTextureUnits_c); +// original function: void setPointSize(Real ps); +void cMt_setPointSize_c(struct hg3dclass_struct *classptr_c, float ps_c); +// original function: void setAmbient(Real red, Real green, Real blue); +void cMt_setAmbient_c(struct hg3dclass_struct *classptr_c, float red_c, float green_c, float blue_c); +// original function: void setAmbient(const ColourValue& ambient); +void cMt_setAmbient2_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * ambient_c); +// original function: void setDiffuse(Real red, Real green, Real blue, Real alpha); +void cMt_setDiffuse_c(struct hg3dclass_struct *classptr_c, float red_c, float green_c, float blue_c, float alpha_c); +// original function: void setDiffuse(const ColourValue& diffuse); +void cMt_setDiffuse2_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * diffuse_c); +// original function: void setSpecular(Real red, Real green, Real blue, Real alpha); +void cMt_setSpecular_c(struct hg3dclass_struct *classptr_c, float red_c, float green_c, float blue_c, float alpha_c); +// original function: void setSpecular(const ColourValue& specular); +void cMt_setSpecular2_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * specular_c); +// original function: void setShininess(Real val); +void cMt_setShininess_c(struct hg3dclass_struct *classptr_c, float val_c); +// original function: void setSelfIllumination(Real red, Real green, Real blue); +void cMt_setSelfIllumination_c(struct hg3dclass_struct *classptr_c, float red_c, float green_c, float blue_c); +// original function: void setSelfIllumination(const ColourValue& selfIllum); +void cMt_setSelfIllumination2_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * selfIllum_c); +// original function: void setDepthCheckEnabled(bool enabled); +void cMt_setDepthCheckEnabled_c(struct hg3dclass_struct *classptr_c, int enabled_c); +// original function: void setDepthWriteEnabled(bool enabled); +void cMt_setDepthWriteEnabled_c(struct hg3dclass_struct *classptr_c, int enabled_c); +// original function: void setDepthFunction(CompareFunction func); +void cMt_setDepthFunction_c(struct hg3dclass_struct *classptr_c, enum EnumCompareFunction func_c); +// original function: void setColourWriteEnabled(bool enabled); +void cMt_setColourWriteEnabled_c(struct hg3dclass_struct *classptr_c, int enabled_c); +// original function: void setCullingMode(CullingMode mode); +void cMt_setCullingMode_c(struct hg3dclass_struct *classptr_c, enum EnumCullingMode mode_c); +// original function: void setManualCullingMode(ManualCullingMode mode); +void cMt_setManualCullingMode_c(struct hg3dclass_struct *classptr_c, enum EnumManualCullingMode mode_c); +// original function: void setLightingEnabled(bool enabled); +void cMt_setLightingEnabled_c(struct hg3dclass_struct *classptr_c, int enabled_c); +// original function: void setShadingMode(ShadeOptions mode); +void cMt_setShadingMode_c(struct hg3dclass_struct *classptr_c, enum EnumShadeOptions mode_c); +// original function: void setFog(bool overrideScene, FogMode mode, const ColourValue& colour, Real expDensity, Real linearStart, Real linearEnd); +void cMt_setFog_c(struct hg3dclass_struct *classptr_c, int overrideScene_c, enum EnumFogMode mode_c, struct colourvalue_struct * colour_c, float expDensity_c, float linearStart_c, float linearEnd_c); +// original function: void setDepthBias(float constantBias, float slopeScaleBias); +void cMt_setDepthBias_c(struct hg3dclass_struct *classptr_c, float constantBias_c, float slopeScaleBias_c); +// original function: void setTextureFiltering(TextureFilterOptions filterType); +void cMt_setTextureFiltering_c(struct hg3dclass_struct *classptr_c, enum EnumTextureFilterOptions filterType_c); +// original function: void setTextureAnisotropy(int maxAniso); +void cMt_setTextureAnisotropy_c(struct hg3dclass_struct *classptr_c, int maxAniso_c); +// original function: void _notifyNeedsRecompile(); +void cMt__notifyNeedsRecompile_c(struct hg3dclass_struct *classptr_c); +// original function: void touch(); +void cMt_touch_c(struct hg3dclass_struct *classptr_c); +// original function: bool getCompilationRequired(); +void cMt_getCompilationRequired_c(struct hg3dclass_struct *classptr_c, int * result_c);
@@ -0,0 +1,44 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassMaterialBucket.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreStaticGeometry.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: const String& getMaterialName(); +void cMb_getMaterialName_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: void build(bool stencilShadows); +void cMb_build_c(struct hg3dclass_struct *classptr_c, int stencilShadows_c); +// original function: Technique* getCurrentTechnique(); +void cMb_getCurrentTechnique_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c);
@@ -0,0 +1,65 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassMaterialManager.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreMaterialManager.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" +#include "EnumTextureFilterOptions.h" +#include "EnumFilterType.h" +#include "EnumFilterOptions.h" + + +// original function: void initialise(); +void cMtm_initialise_c(struct hg3dclass_struct *classptr_c); +// original function: void setDefaultTextureFiltering(TextureFilterOptions fo); +void cMtm_setDefaultTextureFiltering_c(struct hg3dclass_struct *classptr_c, enum EnumTextureFilterOptions fo_c); +// original function: void setDefaultTextureFiltering(FilterType ftype, FilterOptions opts); +void cMtm_setDefaultTextureFiltering2_c(struct hg3dclass_struct *classptr_c, enum EnumFilterType ftype_c, enum EnumFilterOptions opts_c); +// original function: void setDefaultTextureFiltering(FilterOptions minFilter, FilterOptions magFilter, FilterOptions mipFilter); +void cMtm_setDefaultTextureFiltering3_c(struct hg3dclass_struct *classptr_c, enum EnumFilterOptions minFilter_c, enum EnumFilterOptions magFilter_c, enum EnumFilterOptions mipFilter_c); +// original function: FilterOptions getDefaultTextureFiltering(FilterType ftype); +void cMtm_getDefaultTextureFiltering_c(struct hg3dclass_struct *classptr_c, enum EnumFilterType ftype_c, enum EnumFilterOptions * result_c); +// original function: void setDefaultAnisotropy(unsigned int maxAniso); +void cMtm_setDefaultAnisotropy_c(struct hg3dclass_struct *classptr_c, unsigned int maxAniso_c); +// original function: unsigned int getDefaultAnisotropy(); +void cMtm_getDefaultAnisotropy_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: unsigned short _getSchemeIndex(const String& name); +void cMtm__getSchemeIndex_c(struct hg3dclass_struct *classptr_c, char * name_c, unsigned int * result_c); +// original function: const String& _getSchemeName(unsigned short index); +void cMtm__getSchemeName_c(struct hg3dclass_struct *classptr_c, unsigned int index_c, char * result_c); +// original function: unsigned short _getActiveSchemeIndex(); +void cMtm__getActiveSchemeIndex_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: const String& getActiveScheme(); +void cMtm_getActiveScheme_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: void setActiveScheme(const String& schemeName); +void cMtm_setActiveScheme_c(struct hg3dclass_struct *classptr_c, char * schemeName_c);
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassMaterialPtr.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreMaterial.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,44 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassMaterialSerializer.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreMaterialSerializer.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: void exportQueued(const String& filename, const bool includeProgDef, const String& programFilename); +void cMts_exportQueued_c(struct hg3dclass_struct *classptr_c, char * filename_c, int includeProgDef_c, char * programFilename_c); +// original function: const String & getQueuedAsString(); +void cMts_getQueuedAsString_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: void clearQueue(); +void cMts_clearQueue_c(struct hg3dclass_struct *classptr_c);
@@ -0,0 +1,52 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassMemoryDataStream.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreDataStream.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: size_t readLine(char* buf, size_t maxCount, const String& delim); +void cMds_readLine_c(struct hg3dclass_struct *classptr_c, char* buf_c, int maxCount_c, char * delim_c, int * result_c); +// original function: size_t skipLine(const String& delim); +void cMds_skipLine_c(struct hg3dclass_struct *classptr_c, char * delim_c, int * result_c); +// original function: void seek(size_t pos); +void cMds_seek_c(struct hg3dclass_struct *classptr_c, int pos_c); +// original function: size_t tell(); +void cMds_tell_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool eof(); +void cMds_eof_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void close(); +void cMds_close_c(struct hg3dclass_struct *classptr_c); +// original function: void setFreeOnClose(bool free); +void cMds_setFreeOnClose_c(struct hg3dclass_struct *classptr_c, int free_c);
@@ -0,0 +1,132 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassMesh.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreMesh.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" +#include "EnumVertexElementSemantic.h" +#include "EnumVertexAnimationType.h" + + +// original function: SubMesh* createSubMesh(); +void cM_createSubMesh_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: SubMesh* createSubMesh(const String& name); +void cM_createSubMesh2_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); +// original function: void unnameSubMesh(const String& name); +void cM_unnameSubMesh_c(struct hg3dclass_struct *classptr_c, char * name_c); +// original function: unsigned short getNumSubMeshes(); +void cM_getNumSubMeshes_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: SubMesh* getSubMesh(unsigned short index); +void cM_getSubMesh_c(struct hg3dclass_struct *classptr_c, unsigned int index_c, struct hg3dclass_struct * result_c); +// original function: SubMesh* getSubMesh(const String& name); +void cM_getSubMesh2_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); +// original function: void destroySubMesh(unsigned short index); +void cM_destroySubMesh_c(struct hg3dclass_struct *classptr_c, unsigned int index_c); +// original function: void destroySubMesh(const String& name); +void cM_destroySubMesh2_c(struct hg3dclass_struct *classptr_c, char * name_c); +// original function: Real getBoundingSphereRadius(); +void cM_getBoundingSphereRadius_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void _setBoundingSphereRadius(Real radius); +void cM__setBoundingSphereRadius_c(struct hg3dclass_struct *classptr_c, float radius_c); +// original function: void setSkeletonName(const String& skelName); +void cM_setSkeletonName_c(struct hg3dclass_struct *classptr_c, char * skelName_c); +// original function: bool hasSkeleton(); +void cM_hasSkeleton_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool hasVertexAnimation(); +void cM_hasVertexAnimation_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: const String& getSkeletonName(); +void cM_getSkeletonName_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: void clearBoneAssignments(); +void cM_clearBoneAssignments_c(struct hg3dclass_struct *classptr_c); +// original function: void createManualLodLevel(Real value, const String& meshName, const String& groupName); +void cM_createManualLodLevel_c(struct hg3dclass_struct *classptr_c, float value_c, char * meshName_c, char * groupName_c); +// original function: bool isLodManual(); +void cM_isLodManual_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void _setLodInfo(unsigned short numLevels, bool isManual); +void cM__setLodInfo_c(struct hg3dclass_struct *classptr_c, unsigned int numLevels_c, int isManual_c); +// original function: void removeLodLevels(); +void cM_removeLodLevels_c(struct hg3dclass_struct *classptr_c); +// original function: bool isVertexBufferShadowed(); +void cM_isVertexBufferShadowed_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool isIndexBufferShadowed(); +void cM_isIndexBufferShadowed_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void _compileBoneAssignments(); +void cM__compileBoneAssignments_c(struct hg3dclass_struct *classptr_c); +// original function: void _updateCompiledBoneAssignments(); +void cM__updateCompiledBoneAssignments_c(struct hg3dclass_struct *classptr_c); +// original function: void buildTangentVectors(VertexElementSemantic targetSemantic, unsigned short sourceTexCoordSet, unsigned short index, bool splitMirrored, bool splitRotated, bool storeParityInW); +void cM_buildTangentVectors_c(struct hg3dclass_struct *classptr_c, enum EnumVertexElementSemantic targetSemantic_c, unsigned int sourceTexCoordSet_c, unsigned int index_c, int splitMirrored_c, int splitRotated_c, int storeParityInW_c); +// original function: void buildEdgeList(); +void cM_buildEdgeList_c(struct hg3dclass_struct *classptr_c); +// original function: void freeEdgeList(); +void cM_freeEdgeList_c(struct hg3dclass_struct *classptr_c); +// original function: void prepareForShadowVolume(); +void cM_prepareForShadowVolume_c(struct hg3dclass_struct *classptr_c); +// original function: bool isPreparedForShadowVolumes(); +void cM_isPreparedForShadowVolumes_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool isEdgeListBuilt(); +void cM_isEdgeListBuilt_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setAutoBuildEdgeLists(bool autobuild); +void cM_setAutoBuildEdgeLists_c(struct hg3dclass_struct *classptr_c, int autobuild_c); +// original function: bool getAutoBuildEdgeLists(); +void cM_getAutoBuildEdgeLists_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: VertexAnimationType getSharedVertexDataAnimationType(); +void cM_getSharedVertexDataAnimationType_c(struct hg3dclass_struct *classptr_c, enum EnumVertexAnimationType * result_c); +// original function: Animation* createAnimation(const String& name, Real length); +void cM_createAnimation_c(struct hg3dclass_struct *classptr_c, char * name_c, float length_c, struct hg3dclass_struct * result_c); +// original function: Animation* getAnimation(const String& name); +void cM_getAnimation_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); +// original function: Animation* _getAnimationImpl(const String& name); +void cM__getAnimationImpl_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); +// original function: bool hasAnimation(const String& name); +void cM_hasAnimation_c(struct hg3dclass_struct *classptr_c, char * name_c, int * result_c); +// original function: void removeAnimation(const String& name); +void cM_removeAnimation_c(struct hg3dclass_struct *classptr_c, char * name_c); +// original function: unsigned short getNumAnimations(); +void cM_getNumAnimations_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: Animation* getAnimation(unsigned short index); +void cM_getAnimation2_c(struct hg3dclass_struct *classptr_c, unsigned int index_c, struct hg3dclass_struct * result_c); +// original function: void removeAllAnimations(); +void cM_removeAllAnimations_c(struct hg3dclass_struct *classptr_c); +// original function: void updateMaterialForAllSubMeshes(); +void cM_updateMaterialForAllSubMeshes_c(struct hg3dclass_struct *classptr_c); +// original function: void _determineAnimationTypes(); +void cM__determineAnimationTypes_c(struct hg3dclass_struct *classptr_c); +// original function: bool _getAnimationTypesDirty(); +void cM__getAnimationTypesDirty_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: size_t getPoseCount(); +void cM_getPoseCount_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void removePose(const String& name); +void cM_removePose2_c(struct hg3dclass_struct *classptr_c, char * name_c); +// original function: void removeAllPoses(); +void cM_removeAllPoses_c(struct hg3dclass_struct *classptr_c);
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassMeshPtr.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreMesh.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassMeshSerializer.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreMeshSerializer.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,114 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassMovableObject.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreMovableObject.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: void _notifyCreator(MovableObjectFactory* fact); +void cMo__notifyCreator_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * fact_c); +// original function: MovableObjectFactory* _getCreator(); +void cMo__getCreator_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: void _notifyManager(SceneManager* man); +void cMo__notifyManager_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * man_c); +// original function: SceneManager* _getManager(); +void cMo__getManager_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: const String& getName(); +void cMo_getName_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: const String& getMovableType(); +void cMo_getMovableType_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: Node* getParentNode(); +void cMo_getParentNode_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: SceneNode* getParentSceneNode(); +void cMo_getParentSceneNode_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: bool isParentTagPoint(); +void cMo_isParentTagPoint_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void _notifyAttached(Node* parent, bool isTagPoint); +void cMo__notifyAttached_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * parent_c, int isTagPoint_c); +// original function: bool isAttached(); +void cMo_isAttached_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void detachFromParent(); +void cMo_detachFromParent_c(struct hg3dclass_struct *classptr_c); +// original function: bool isInScene(); +void cMo_isInScene_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void _notifyMoved(); +void cMo__notifyMoved_c(struct hg3dclass_struct *classptr_c); +// original function: void _notifyCurrentCamera(Camera* cam); +void cMo__notifyCurrentCamera_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * cam_c); +// original function: Real getBoundingRadius(); +void cMo_getBoundingRadius_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setVisible(bool visible); +void cMo_setVisible_c(struct hg3dclass_struct *classptr_c, int visible_c); +// original function: bool getVisible(); +void cMo_getVisible_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool isVisible(); +void cMo_isVisible_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setRenderingDistance(Real dist); +void cMo_setRenderingDistance_c(struct hg3dclass_struct *classptr_c, float dist_c); +// original function: Real getRenderingDistance(); +void cMo_getRenderingDistance_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setQueryFlags(uint32 flags); +void cMo_setQueryFlags_c(struct hg3dclass_struct *classptr_c, unsigned int flags_c); +// original function: void addQueryFlags(uint32 flags); +void cMo_addQueryFlags_c(struct hg3dclass_struct *classptr_c, unsigned int flags_c); +// original function: void removeQueryFlags(uint32 flags); +void cMo_removeQueryFlags_c(struct hg3dclass_struct *classptr_c, unsigned int flags_c); +// original function: uint32 getQueryFlags(); +void cMo_getQueryFlags_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: void setVisibilityFlags(uint32 flags); +void cMo_setVisibilityFlags_c(struct hg3dclass_struct *classptr_c, unsigned int flags_c); +// original function: void addVisibilityFlags(uint32 flags); +void cMo_addVisibilityFlags_c(struct hg3dclass_struct *classptr_c, unsigned int flags_c); +// original function: void removeVisibilityFlags(uint32 flags); +void cMo_removeVisibilityFlags_c(struct hg3dclass_struct *classptr_c, unsigned int flags_c); +// original function: uint32 getVisibilityFlags(); +void cMo_getVisibilityFlags_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: uint32 getLightMask(); +void cMo_getLightMask_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: void setLightMask(uint32 lightMask); +void cMo_setLightMask_c(struct hg3dclass_struct *classptr_c, unsigned int lightMask_c); +// original function: bool hasEdgeList(); +void cMo_hasEdgeList_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setCastShadows(bool enabled); +void cMo_setCastShadows_c(struct hg3dclass_struct *classptr_c, int enabled_c); +// original function: bool getCastShadows(); +void cMo_getCastShadows_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool getReceivesShadows(); +void cMo_getReceivesShadows_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: uint32 getTypeFlags(); +void cMo_getTypeFlags_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: void setDebugDisplayEnabled(bool enabled); +void cMo_setDebugDisplayEnabled_c(struct hg3dclass_struct *classptr_c, int enabled_c); +// original function: bool isDebugDisplayEnabled(); +void cMo_isDebugDisplayEnabled_c(struct hg3dclass_struct *classptr_c, int * result_c);
@@ -0,0 +1,46 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassMovableObjectFactory.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreMovableObject.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: const String& getType(); +void cMof_getType_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: void destroyInstance(MovableObject* obj); +void cMof_destroyInstance_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * obj_c); +// original function: bool requestTypeFlags(); +void cMof_requestTypeFlags_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: uint32 getTypeFlags(); +void cMof_getTypeFlags_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c);
@@ -0,0 +1,45 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassMultiRenderTarget.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRenderTexture.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" +#include "EnumPixelFormat.h" + + +// original function: void bindSurface(size_t attachment, RenderTexture * target); +void cMrt_bindSurface_c(struct hg3dclass_struct *classptr_c, int attachment_c, struct hg3dclass_struct * target_c); +// original function: void unbindSurface(size_t attachment); +void cMrt_unbindSurface_c(struct hg3dclass_struct *classptr_c, int attachment_c); +// original function: PixelFormat suggestPixelFormat(); +void cMrt_suggestPixelFormat_c(struct hg3dclass_struct *classptr_c, enum EnumPixelFormat * result_c);
@@ -0,0 +1,148 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassNode.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreNode.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" +#include "TypeQuaternion.h" +#include "TypeVector3.h" +#include "EnumTransformSpace.h" +#include "TypeRadian.h" + + +// original function: const String& getName(); +void cN_getName_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: Node* getParent(); +void cN_getParent_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: const Quaternion & getOrientation(); +void cN_getOrientation_c(struct hg3dclass_struct *classptr_c, struct quaternion_struct * result_c); +// original function: void setOrientation(const Quaternion& q); +void cN_setOrientation_c(struct hg3dclass_struct *classptr_c, struct quaternion_struct * q_c); +// original function: void setOrientation(Real w, Real x, Real y, Real z); +void cN_setOrientation2_c(struct hg3dclass_struct *classptr_c, float w_c, float x_c, float y_c, float z_c); +// original function: void resetOrientation(); +void cN_resetOrientation_c(struct hg3dclass_struct *classptr_c); +// original function: void setPosition(const Vector3& pos); +void cN_setPosition_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * pos_c); +// original function: void setPosition(Real x, Real y, Real z); +void cN_setPosition2_c(struct hg3dclass_struct *classptr_c, float x_c, float y_c, float z_c); +// original function: const Vector3 & getPosition(); +void cN_getPosition_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * result_c); +// original function: void setScale(const Vector3& scale); +void cN_setScale_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * scale_c); +// original function: void setScale(Real x, Real y, Real z); +void cN_setScale2_c(struct hg3dclass_struct *classptr_c, float x_c, float y_c, float z_c); +// original function: const Vector3 & getScale(); +void cN_getScale_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * result_c); +// original function: void setInheritOrientation(bool inherit); +void cN_setInheritOrientation_c(struct hg3dclass_struct *classptr_c, int inherit_c); +// original function: bool getInheritOrientation(); +void cN_getInheritOrientation_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setInheritScale(bool inherit); +void cN_setInheritScale_c(struct hg3dclass_struct *classptr_c, int inherit_c); +// original function: bool getInheritScale(); +void cN_getInheritScale_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void scale(const Vector3& scale); +void cN_scale_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * scale_c); +// original function: void scale(Real x, Real y, Real z); +void cN_scale2_c(struct hg3dclass_struct *classptr_c, float x_c, float y_c, float z_c); +// original function: void translate(const Vector3& d, TransformSpace relativeTo); +void cN_translate_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * d_c, enum EnumTransformSpace relativeTo_c); +// original function: void translate(Real x, Real y, Real z, TransformSpace relativeTo); +void cN_translate2_c(struct hg3dclass_struct *classptr_c, float x_c, float y_c, float z_c, enum EnumTransformSpace relativeTo_c); +// original function: void roll(const Radian& angle, TransformSpace relativeTo); +void cN_roll_c(struct hg3dclass_struct *classptr_c, struct radian_struct * angle_c, enum EnumTransformSpace relativeTo_c); +// original function: void pitch(const Radian& angle, TransformSpace relativeTo); +void cN_pitch_c(struct hg3dclass_struct *classptr_c, struct radian_struct * angle_c, enum EnumTransformSpace relativeTo_c); +// original function: void yaw(const Radian& angle, TransformSpace relativeTo); +void cN_yaw_c(struct hg3dclass_struct *classptr_c, struct radian_struct * angle_c, enum EnumTransformSpace relativeTo_c); +// original function: void rotate(const Vector3& axis, const Radian& angle, TransformSpace relativeTo); +void cN_rotate_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * axis_c, struct radian_struct * angle_c, enum EnumTransformSpace relativeTo_c); +// original function: void rotate(const Quaternion& q, TransformSpace relativeTo); +void cN_rotate2_c(struct hg3dclass_struct *classptr_c, struct quaternion_struct * q_c, enum EnumTransformSpace relativeTo_c); +// original function: Node* createChild(const Vector3& translate, const Quaternion& rotate); +void cN_createChild_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * translate_c, struct quaternion_struct * rotate_c, struct hg3dclass_struct * result_c); +// original function: Node* createChild(const String& name, const Vector3& translate, const Quaternion& rotate); +void cN_createChild2_c(struct hg3dclass_struct *classptr_c, char * name_c, struct vector3_struct * translate_c, struct quaternion_struct * rotate_c, struct hg3dclass_struct * result_c); +// original function: void addChild(Node* child); +void cN_addChild_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * child_c); +// original function: unsigned short numChildren(); +void cN_numChildren_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: Node* getChild(unsigned short index); +void cN_getChild_c(struct hg3dclass_struct *classptr_c, unsigned int index_c, struct hg3dclass_struct * result_c); +// original function: Node* getChild(const String& name); +void cN_getChild2_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); +// original function: Node* removeChild(unsigned short index); +void cN_removeChild_c(struct hg3dclass_struct *classptr_c, unsigned int index_c, struct hg3dclass_struct * result_c); +// original function: Node* removeChild(Node* child); +void cN_removeChild2_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * child_c, struct hg3dclass_struct * result_c); +// original function: Node* removeChild(const String& name); +void cN_removeChild3_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); +// original function: void removeAllChildren(); +void cN_removeAllChildren_c(struct hg3dclass_struct *classptr_c); +// original function: void _setDerivedPosition(const Vector3& pos); +void cN__setDerivedPosition_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * pos_c); +// original function: void _setDerivedOrientation(const Quaternion& q); +void cN__setDerivedOrientation_c(struct hg3dclass_struct *classptr_c, struct quaternion_struct * q_c); +// original function: const Quaternion & _getDerivedOrientation(); +void cN__getDerivedOrientation_c(struct hg3dclass_struct *classptr_c, struct quaternion_struct * result_c); +// original function: const Vector3 & _getDerivedPosition(); +void cN__getDerivedPosition_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * result_c); +// original function: const Vector3 & _getDerivedScale(); +void cN__getDerivedScale_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * result_c); +// original function: void _update(bool updateChildren, bool parentHasChanged); +void cN__update_c(struct hg3dclass_struct *classptr_c, int updateChildren_c, int parentHasChanged_c); +// original function: void setInitialState(); +void cN_setInitialState_c(struct hg3dclass_struct *classptr_c); +// original function: void resetToInitialState(); +void cN_resetToInitialState_c(struct hg3dclass_struct *classptr_c); +// original function: const Vector3& getInitialPosition(); +void cN_getInitialPosition_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * result_c); +// original function: Vector3 convertWorldToLocalPosition(const Vector3 & worldPos); +void cN_convertWorldToLocalPosition_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * worldPos_c, struct vector3_struct * result_c); +// original function: Vector3 convertLocalToWorldPosition(const Vector3 & localPos); +void cN_convertLocalToWorldPosition_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * localPos_c, struct vector3_struct * result_c); +// original function: Quaternion convertWorldToLocalOrientation(const Quaternion & worldOrientation); +void cN_convertWorldToLocalOrientation_c(struct hg3dclass_struct *classptr_c, struct quaternion_struct * worldOrientation_c, struct quaternion_struct * result_c); +// original function: Quaternion convertLocalToWorldOrientation(const Quaternion & localOrientation); +void cN_convertLocalToWorldOrientation_c(struct hg3dclass_struct *classptr_c, struct quaternion_struct * localOrientation_c, struct quaternion_struct * result_c); +// original function: const Quaternion& getInitialOrientation(); +void cN_getInitialOrientation_c(struct hg3dclass_struct *classptr_c, struct quaternion_struct * result_c); +// original function: const Vector3& getInitialScale(); +void cN_getInitialScale_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * result_c); +// original function: void needUpdate(bool forceParentUpdate); +void cN_needUpdate_c(struct hg3dclass_struct *classptr_c, int forceParentUpdate_c); +// original function: void requestUpdate(Node* child, bool forceParentUpdate); +void cN_requestUpdate_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * child_c, int forceParentUpdate_c); +// original function: void cancelUpdate(Node* child); +void cN_cancelUpdate_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * child_c);
@@ -0,0 +1,56 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassNodeAnimationTrack.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreAnimationTrack.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: TransformKeyFrame* createNodeKeyFrame(Real timePos); +void cNoant_createNodeKeyFrame_c(struct hg3dclass_struct *classptr_c, float timePos_c, struct hg3dclass_struct * result_c); +// original function: Node* getAssociatedNode(); +void cNoant_getAssociatedNode_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: void setAssociatedNode(Node* node); +void cNoant_setAssociatedNode_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * node_c); +// original function: void setUseShortestRotationPath(bool useShortestPath); +void cNoant_setUseShortestRotationPath_c(struct hg3dclass_struct *classptr_c, int useShortestPath_c); +// original function: bool getUseShortestRotationPath(); +void cNoant_getUseShortestRotationPath_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void _keyFrameDataChanged(); +void cNoant__keyFrameDataChanged_c(struct hg3dclass_struct *classptr_c); +// original function: TransformKeyFrame* getNodeKeyFrame(unsigned short index); +void cNoant_getNodeKeyFrame_c(struct hg3dclass_struct *classptr_c, unsigned int index_c, struct hg3dclass_struct * result_c); +// original function: bool hasNonZeroKeyFrames(); +void cNoant_hasNonZeroKeyFrames_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void optimise(); +void cNoant_optimise_c(struct hg3dclass_struct *classptr_c);
@@ -0,0 +1,42 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassNumericAnimationTrack.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreAnimationTrack.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: NumericKeyFrame* createNumericKeyFrame(Real timePos); +void cNuant_createNumericKeyFrame_c(struct hg3dclass_struct *classptr_c, float timePos_c, struct hg3dclass_struct * result_c); +// original function: NumericKeyFrame* getNumericKeyFrame(unsigned short index); +void cNuant_getNumericKeyFrame_c(struct hg3dclass_struct *classptr_c, unsigned int index_c, struct hg3dclass_struct * result_c);
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassNumericKeyFrame.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreKeyFrame.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,83 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassOverlay.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreOverlay.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" +#include "TypeRadian.h" + + +// original function: const String& getName(); +void cO_getName_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: bool isVisible(); +void cO_isVisible_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool isInitialised(); +void cO_isInitialised_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void show(); +void cO_show_c(struct hg3dclass_struct *classptr_c); +// original function: void hide(); +void cO_hide_c(struct hg3dclass_struct *classptr_c); +// original function: void add2D(OverlayContainer* cont); +void cO_add2D_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * cont_c); +// original function: void remove2D(OverlayContainer* cont); +void cO_remove2D_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * cont_c); +// original function: void add3D(SceneNode* node); +void cO_add3D_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * node_c); +// original function: void remove3D(SceneNode* node); +void cO_remove3D_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * node_c); +// original function: void clear(); +void cO_clear_c(struct hg3dclass_struct *classptr_c); +// original function: void setScroll(Real x, Real y); +void cO_setScroll_c(struct hg3dclass_struct *classptr_c, float x_c, float y_c); +// original function: Real getScrollX(); +void cO_getScrollX_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: Real getScrollY(); +void cO_getScrollY_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void scroll(Real xoff, Real yoff); +void cO_scroll_c(struct hg3dclass_struct *classptr_c, float xoff_c, float yoff_c); +// original function: void setRotate(const Radian& angle); +void cO_setRotate_c(struct hg3dclass_struct *classptr_c, struct radian_struct * angle_c); +// original function: const Radian & getRotate(); +void cO_getRotate_c(struct hg3dclass_struct *classptr_c, struct radian_struct * result_c); +// original function: void rotate(const Radian& angle); +void cO_rotate_c(struct hg3dclass_struct *classptr_c, struct radian_struct * angle_c); +// original function: void setScale(Real x, Real y); +void cO_setScale_c(struct hg3dclass_struct *classptr_c, float x_c, float y_c); +// original function: Real getScaleX(); +void cO_getScaleX_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: Real getScaleY(); +void cO_getScaleY_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: const String& getOrigin(); +void cO_getOrigin_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: void _notifyOrigin(const String& origin); +void cO__notifyOrigin_c(struct hg3dclass_struct *classptr_c, char * origin_c);
@@ -0,0 +1,52 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassOverlayContainer.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreOverlayContainer.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: void addChildImpl(OverlayContainer* cont); +void cOc_addChildImpl2_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * cont_c); +// original function: void removeChild(const String& name); +void cOc_removeChild_c(struct hg3dclass_struct *classptr_c, char * name_c); +// original function: void initialise(); +void cOc_initialise_c(struct hg3dclass_struct *classptr_c); +// original function: void _positionsOutOfDate(); +void cOc__positionsOutOfDate_c(struct hg3dclass_struct *classptr_c); +// original function: void _update(); +void cOc__update_c(struct hg3dclass_struct *classptr_c); +// original function: void _notifyViewport(); +void cOc__notifyViewport_c(struct hg3dclass_struct *classptr_c); +// original function: void _notifyParent(OverlayContainer* parent, Overlay* overlay); +void cOc__notifyParent_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * parent_c, struct hg3dclass_struct * overlay_c);
@@ -0,0 +1,65 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassOverlayManager.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreOverlayManager.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" +#include "EnumOrientationMode.h" + + +// original function: Real getLoadingOrder(); +void cOm_getLoadingOrder_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: Overlay* create(const String& name); +void cOm_create_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); +// original function: Overlay* getByName(const String& name); +void cOm_getByName_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); +// original function: void destroy(const String& name); +void cOm_destroy_c(struct hg3dclass_struct *classptr_c, char * name_c); +// original function: void destroy(Overlay* overlay); +void cOm_destroy2_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * overlay_c); +// original function: void destroyAll(); +void cOm_destroyAll_c(struct hg3dclass_struct *classptr_c); +// original function: bool hasViewportChanged(); +void cOm_hasViewportChanged_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: int getViewportHeight(); +void cOm_getViewportHeight_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: int getViewportWidth(); +void cOm_getViewportWidth_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: OrientationMode getViewportOrientationMode(); +void cOm_getViewportOrientationMode_c(struct hg3dclass_struct *classptr_c, enum EnumOrientationMode * result_c); +// original function: bool hasOverlayElement(const String& name, bool isTemplate); +void cOm_hasOverlayElement_c(struct hg3dclass_struct *classptr_c, char * name_c, int isTemplate_c, int * result_c); +// original function: void destroyOverlayElement(const String& instanceName, bool isTemplate); +void cOm_destroyOverlayElement_c(struct hg3dclass_struct *classptr_c, char * instanceName_c, int isTemplate_c); +// original function: void destroyAllOverlayElements(bool isTemplate); +void cOm_destroyAllOverlayElements_c(struct hg3dclass_struct *classptr_c, int isTemplate_c);
@@ -0,0 +1,50 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassPSSMShadowCameraSetup.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreShadowCameraSetupPSSM.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: void calculateSplitPoints(size_t splitCount, Real nearDist, Real farDist, Real lambda); +void cPssmscs_calculateSplitPoints_c(struct hg3dclass_struct *classptr_c, int splitCount_c, float nearDist_c, float farDist_c, float lambda_c); +// original function: void setOptimalAdjustFactor(size_t splitIndex, Real factor); +void cPssmscs_setOptimalAdjustFactor_c(struct hg3dclass_struct *classptr_c, int splitIndex_c, float factor_c); +// original function: void setSplitPadding(Real pad); +void cPssmscs_setSplitPadding_c(struct hg3dclass_struct *classptr_c, float pad_c); +// original function: Real getSplitPadding(); +void cPssmscs_getSplitPadding_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: size_t getSplitCount(); +void cPssmscs_getSplitCount_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: Real getOptimalAdjustFactor(); +void cPssmscs_getOptimalAdjustFactor2_c(struct hg3dclass_struct *classptr_c, float * result_c);
@@ -0,0 +1,40 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassParticleAffector.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreParticleAffector.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: const String & getType(); +void cPa_getType_c(struct hg3dclass_struct *classptr_c, char * result_c);
@@ -0,0 +1,151 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassParticleEmitter.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreParticleEmitter.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" +#include "TypeVector3.h" +#include "TypeRadian.h" +#include "TypeColourValue.h" + + +// original function: void setPosition(const Vector3& pos); +void cPe_setPosition_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * pos_c); +// original function: const Vector3& getPosition(); +void cPe_getPosition_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * result_c); +// original function: void setDirection(const Vector3& direction); +void cPe_setDirection_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * direction_c); +// original function: const Vector3& getDirection(); +void cPe_getDirection_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * result_c); +// original function: void setAngle(const Radian& angle); +void cPe_setAngle_c(struct hg3dclass_struct *classptr_c, struct radian_struct * angle_c); +// original function: const Radian& getAngle(); +void cPe_getAngle_c(struct hg3dclass_struct *classptr_c, struct radian_struct * result_c); +// original function: void setParticleVelocity(Real speed); +void cPe_setParticleVelocity_c(struct hg3dclass_struct *classptr_c, float speed_c); +// original function: void setParticleVelocity(Real min, Real max); +void cPe_setParticleVelocity2_c(struct hg3dclass_struct *classptr_c, float min_c, float max_c); +// original function: void setMinParticleVelocity(Real min); +void cPe_setMinParticleVelocity_c(struct hg3dclass_struct *classptr_c, float min_c); +// original function: void setMaxParticleVelocity(Real max); +void cPe_setMaxParticleVelocity_c(struct hg3dclass_struct *classptr_c, float max_c); +// original function: Real getParticleVelocity(); +void cPe_getParticleVelocity_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: Real getMinParticleVelocity(); +void cPe_getMinParticleVelocity_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: Real getMaxParticleVelocity(); +void cPe_getMaxParticleVelocity_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setEmissionRate(Real particlesPerSecond); +void cPe_setEmissionRate_c(struct hg3dclass_struct *classptr_c, float particlesPerSecond_c); +// original function: Real getEmissionRate(); +void cPe_getEmissionRate_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setTimeToLive(Real ttl); +void cPe_setTimeToLive_c(struct hg3dclass_struct *classptr_c, float ttl_c); +// original function: void setTimeToLive(Real minTtl, Real maxTtl); +void cPe_setTimeToLive2_c(struct hg3dclass_struct *classptr_c, float minTtl_c, float maxTtl_c); +// original function: void setMinTimeToLive(Real min); +void cPe_setMinTimeToLive_c(struct hg3dclass_struct *classptr_c, float min_c); +// original function: void setMaxTimeToLive(Real max); +void cPe_setMaxTimeToLive_c(struct hg3dclass_struct *classptr_c, float max_c); +// original function: Real getTimeToLive(); +void cPe_getTimeToLive_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: Real getMinTimeToLive(); +void cPe_getMinTimeToLive_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: Real getMaxTimeToLive(); +void cPe_getMaxTimeToLive_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setColour(const ColourValue& colour); +void cPe_setColour_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * colour_c); +// original function: void setColour(const ColourValue& colourStart, const ColourValue& colourEnd); +void cPe_setColour2_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * colourStart_c, struct colourvalue_struct * colourEnd_c); +// original function: void setColourRangeStart(const ColourValue& colour); +void cPe_setColourRangeStart_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * colour_c); +// original function: void setColourRangeEnd(const ColourValue& colour); +void cPe_setColourRangeEnd_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * colour_c); +// original function: const ColourValue& getColour(); +void cPe_getColour_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * result_c); +// original function: const ColourValue& getColourRangeStart(); +void cPe_getColourRangeStart_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * result_c); +// original function: const ColourValue& getColourRangeEnd(); +void cPe_getColourRangeEnd_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * result_c); +// original function: unsigned short _getEmissionCount(Real timeElapsed); +void cPe__getEmissionCount_c(struct hg3dclass_struct *classptr_c, float timeElapsed_c, unsigned int * result_c); +// original function: const String & getType(); +void cPe_getType_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: void setEnabled(bool enabled); +void cPe_setEnabled_c(struct hg3dclass_struct *classptr_c, int enabled_c); +// original function: bool getEnabled(); +void cPe_getEnabled_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setStartTime(Real startTime); +void cPe_setStartTime_c(struct hg3dclass_struct *classptr_c, float startTime_c); +// original function: Real getStartTime(); +void cPe_getStartTime_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setDuration(Real duration); +void cPe_setDuration_c(struct hg3dclass_struct *classptr_c, float duration_c); +// original function: Real getDuration(); +void cPe_getDuration_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setDuration(Real min, Real max); +void cPe_setDuration2_c(struct hg3dclass_struct *classptr_c, float min_c, float max_c); +// original function: void setMinDuration(Real min); +void cPe_setMinDuration_c(struct hg3dclass_struct *classptr_c, float min_c); +// original function: void setMaxDuration(Real max); +void cPe_setMaxDuration_c(struct hg3dclass_struct *classptr_c, float max_c); +// original function: Real getMinDuration(); +void cPe_getMinDuration_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: Real getMaxDuration(); +void cPe_getMaxDuration_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setRepeatDelay(Real duration); +void cPe_setRepeatDelay_c(struct hg3dclass_struct *classptr_c, float duration_c); +// original function: Real getRepeatDelay(); +void cPe_getRepeatDelay_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setRepeatDelay(Real min, Real max); +void cPe_setRepeatDelay2_c(struct hg3dclass_struct *classptr_c, float min_c, float max_c); +// original function: void setMinRepeatDelay(Real min); +void cPe_setMinRepeatDelay_c(struct hg3dclass_struct *classptr_c, float min_c); +// original function: void setMaxRepeatDelay(Real max); +void cPe_setMaxRepeatDelay_c(struct hg3dclass_struct *classptr_c, float max_c); +// original function: Real getMinRepeatDelay(); +void cPe_getMinRepeatDelay_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: Real getMaxRepeatDelay(); +void cPe_getMaxRepeatDelay_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: const String & getName(); +void cPe_getName_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: void setName(const String& newName); +void cPe_setName_c(struct hg3dclass_struct *classptr_c, char * newName_c); +// original function: const String & getEmittedEmitter(); +void cPe_getEmittedEmitter_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: void setEmittedEmitter(const String& emittedEmitter); +void cPe_setEmittedEmitter_c(struct hg3dclass_struct *classptr_c, char * emittedEmitter_c); +// original function: bool isEmitted(); +void cPe_isEmitted_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setEmitted(bool emitted); +void cPe_setEmitted_c(struct hg3dclass_struct *classptr_c, int emitted_c);
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassParticleSystemFactory.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreParticleSystemManager.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,341 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassPass.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgrePass.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" +#include "TypeColourValue.h" +#include "EnumSceneBlendFactor.h" +#include "EnumSceneBlendOperation.h" +#include "EnumCompareFunction.h" +#include "EnumCullingMode.h" +#include "EnumManualCullingMode.h" +#include "EnumShadeOptions.h" +#include "EnumPolygonMode.h" +#include "EnumFogMode.h" +#include "EnumLightTypes.h" +#include "EnumContentType.h" +#include "EnumTextureFilterOptions.h" +#include "EnumIlluminationStage.h" + + +// original function: bool isProgrammable(); +void cP_isProgrammable_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool hasVertexProgram(); +void cP_hasVertexProgram_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool hasFragmentProgram(); +void cP_hasFragmentProgram_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool hasGeometryProgram(); +void cP_hasGeometryProgram_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool hasShadowCasterVertexProgram(); +void cP_hasShadowCasterVertexProgram_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool hasShadowReceiverVertexProgram(); +void cP_hasShadowReceiverVertexProgram_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool hasShadowReceiverFragmentProgram(); +void cP_hasShadowReceiverFragmentProgram_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: unsigned short getIndex(); +void cP_getIndex_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: const String& getName(); +void cP_getName_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: void setAmbient(Real red, Real green, Real blue); +void cP_setAmbient_c(struct hg3dclass_struct *classptr_c, float red_c, float green_c, float blue_c); +// original function: void setAmbient(const ColourValue& ambient); +void cP_setAmbient2_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * ambient_c); +// original function: void setDiffuse(Real red, Real green, Real blue, Real alpha); +void cP_setDiffuse_c(struct hg3dclass_struct *classptr_c, float red_c, float green_c, float blue_c, float alpha_c); +// original function: void setDiffuse(const ColourValue& diffuse); +void cP_setDiffuse2_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * diffuse_c); +// original function: void setSpecular(Real red, Real green, Real blue, Real alpha); +void cP_setSpecular_c(struct hg3dclass_struct *classptr_c, float red_c, float green_c, float blue_c, float alpha_c); +// original function: void setSpecular(const ColourValue& specular); +void cP_setSpecular2_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * specular_c); +// original function: void setShininess(Real val); +void cP_setShininess_c(struct hg3dclass_struct *classptr_c, float val_c); +// original function: void setSelfIllumination(Real red, Real green, Real blue); +void cP_setSelfIllumination_c(struct hg3dclass_struct *classptr_c, float red_c, float green_c, float blue_c); +// original function: void setSelfIllumination(const ColourValue& selfIllum); +void cP_setSelfIllumination2_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * selfIllum_c); +// original function: Real getPointSize(); +void cP_getPointSize_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setPointSize(Real ps); +void cP_setPointSize_c(struct hg3dclass_struct *classptr_c, float ps_c); +// original function: void setPointSpritesEnabled(bool enabled); +void cP_setPointSpritesEnabled_c(struct hg3dclass_struct *classptr_c, int enabled_c); +// original function: bool getPointSpritesEnabled(); +void cP_getPointSpritesEnabled_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setPointAttenuation(bool enabled, Real constant, Real linear, Real quadratic); +void cP_setPointAttenuation_c(struct hg3dclass_struct *classptr_c, int enabled_c, float constant_c, float linear_c, float quadratic_c); +// original function: bool isPointAttenuationEnabled(); +void cP_isPointAttenuationEnabled_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: Real getPointAttenuationConstant(); +void cP_getPointAttenuationConstant_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: Real getPointAttenuationLinear(); +void cP_getPointAttenuationLinear_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: Real getPointAttenuationQuadratic(); +void cP_getPointAttenuationQuadratic_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setPointMinSize(Real min); +void cP_setPointMinSize_c(struct hg3dclass_struct *classptr_c, float min_c); +// original function: Real getPointMinSize(); +void cP_getPointMinSize_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setPointMaxSize(Real max); +void cP_setPointMaxSize_c(struct hg3dclass_struct *classptr_c, float max_c); +// original function: Real getPointMaxSize(); +void cP_getPointMaxSize_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: const ColourValue& getAmbient(); +void cP_getAmbient_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * result_c); +// original function: const ColourValue& getDiffuse(); +void cP_getDiffuse_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * result_c); +// original function: const ColourValue& getSpecular(); +void cP_getSpecular_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * result_c); +// original function: const ColourValue& getSelfIllumination(); +void cP_getSelfIllumination_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * result_c); +// original function: Real getShininess(); +void cP_getShininess_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: TextureUnitState* createTextureUnitState(); +void cP_createTextureUnitState_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: TextureUnitState* createTextureUnitState(const String& textureName, unsigned short texCoordSet); +void cP_createTextureUnitState2_c(struct hg3dclass_struct *classptr_c, char * textureName_c, unsigned int texCoordSet_c, struct hg3dclass_struct * result_c); +// original function: void addTextureUnitState(TextureUnitState* state); +void cP_addTextureUnitState_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * state_c); +// original function: TextureUnitState* getTextureUnitState(unsigned short index); +void cP_getTextureUnitState_c(struct hg3dclass_struct *classptr_c, unsigned int index_c, struct hg3dclass_struct * result_c); +// original function: TextureUnitState* getTextureUnitState(const String& name); +void cP_getTextureUnitState2_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); +// original function: void removeTextureUnitState(unsigned short index); +void cP_removeTextureUnitState_c(struct hg3dclass_struct *classptr_c, unsigned int index_c); +// original function: void removeAllTextureUnitStates(); +void cP_removeAllTextureUnitStates_c(struct hg3dclass_struct *classptr_c); +// original function: unsigned short getNumTextureUnitStates(); +void cP_getNumTextureUnitStates_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: bool hasSeparateSceneBlending(); +void cP_hasSeparateSceneBlending_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: SceneBlendFactor getSourceBlendFactor(); +void cP_getSourceBlendFactor_c(struct hg3dclass_struct *classptr_c, enum EnumSceneBlendFactor * result_c); +// original function: SceneBlendFactor getDestBlendFactor(); +void cP_getDestBlendFactor_c(struct hg3dclass_struct *classptr_c, enum EnumSceneBlendFactor * result_c); +// original function: SceneBlendFactor getSourceBlendFactorAlpha(); +void cP_getSourceBlendFactorAlpha_c(struct hg3dclass_struct *classptr_c, enum EnumSceneBlendFactor * result_c); +// original function: SceneBlendFactor getDestBlendFactorAlpha(); +void cP_getDestBlendFactorAlpha_c(struct hg3dclass_struct *classptr_c, enum EnumSceneBlendFactor * result_c); +// original function: void setSceneBlendingOperation(SceneBlendOperation op); +void cP_setSceneBlendingOperation_c(struct hg3dclass_struct *classptr_c, enum EnumSceneBlendOperation op_c); +// original function: void setSeparateSceneBlendingOperation(SceneBlendOperation op, SceneBlendOperation alphaOp); +void cP_setSeparateSceneBlendingOperation_c(struct hg3dclass_struct *classptr_c, enum EnumSceneBlendOperation op_c, enum EnumSceneBlendOperation alphaOp_c); +// original function: bool hasSeparateSceneBlendingOperations(); +void cP_hasSeparateSceneBlendingOperations_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: SceneBlendOperation getSceneBlendingOperation(); +void cP_getSceneBlendingOperation_c(struct hg3dclass_struct *classptr_c, enum EnumSceneBlendOperation * result_c); +// original function: SceneBlendOperation getSceneBlendingOperationAlpha(); +void cP_getSceneBlendingOperationAlpha_c(struct hg3dclass_struct *classptr_c, enum EnumSceneBlendOperation * result_c); +// original function: bool isTransparent(); +void cP_isTransparent_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setDepthCheckEnabled(bool enabled); +void cP_setDepthCheckEnabled_c(struct hg3dclass_struct *classptr_c, int enabled_c); +// original function: bool getDepthCheckEnabled(); +void cP_getDepthCheckEnabled_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setDepthWriteEnabled(bool enabled); +void cP_setDepthWriteEnabled_c(struct hg3dclass_struct *classptr_c, int enabled_c); +// original function: bool getDepthWriteEnabled(); +void cP_getDepthWriteEnabled_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setDepthFunction(CompareFunction func); +void cP_setDepthFunction_c(struct hg3dclass_struct *classptr_c, enum EnumCompareFunction func_c); +// original function: CompareFunction getDepthFunction(); +void cP_getDepthFunction_c(struct hg3dclass_struct *classptr_c, enum EnumCompareFunction * result_c); +// original function: void setColourWriteEnabled(bool enabled); +void cP_setColourWriteEnabled_c(struct hg3dclass_struct *classptr_c, int enabled_c); +// original function: bool getColourWriteEnabled(); +void cP_getColourWriteEnabled_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setCullingMode(CullingMode mode); +void cP_setCullingMode_c(struct hg3dclass_struct *classptr_c, enum EnumCullingMode mode_c); +// original function: CullingMode getCullingMode(); +void cP_getCullingMode_c(struct hg3dclass_struct *classptr_c, enum EnumCullingMode * result_c); +// original function: void setManualCullingMode(ManualCullingMode mode); +void cP_setManualCullingMode_c(struct hg3dclass_struct *classptr_c, enum EnumManualCullingMode mode_c); +// original function: ManualCullingMode getManualCullingMode(); +void cP_getManualCullingMode_c(struct hg3dclass_struct *classptr_c, enum EnumManualCullingMode * result_c); +// original function: void setLightingEnabled(bool enabled); +void cP_setLightingEnabled_c(struct hg3dclass_struct *classptr_c, int enabled_c); +// original function: bool getLightingEnabled(); +void cP_getLightingEnabled_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setMaxSimultaneousLights(unsigned short maxLights); +void cP_setMaxSimultaneousLights_c(struct hg3dclass_struct *classptr_c, unsigned int maxLights_c); +// original function: unsigned short getMaxSimultaneousLights(); +void cP_getMaxSimultaneousLights_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: void setStartLight(unsigned short startLight); +void cP_setStartLight_c(struct hg3dclass_struct *classptr_c, unsigned int startLight_c); +// original function: unsigned short getStartLight(); +void cP_getStartLight_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: void setShadingMode(ShadeOptions mode); +void cP_setShadingMode_c(struct hg3dclass_struct *classptr_c, enum EnumShadeOptions mode_c); +// original function: ShadeOptions getShadingMode(); +void cP_getShadingMode_c(struct hg3dclass_struct *classptr_c, enum EnumShadeOptions * result_c); +// original function: void setPolygonMode(PolygonMode mode); +void cP_setPolygonMode_c(struct hg3dclass_struct *classptr_c, enum EnumPolygonMode mode_c); +// original function: PolygonMode getPolygonMode(); +void cP_getPolygonMode_c(struct hg3dclass_struct *classptr_c, enum EnumPolygonMode * result_c); +// original function: void setPolygonModeOverrideable(bool override); +void cP_setPolygonModeOverrideable_c(struct hg3dclass_struct *classptr_c, int override_c); +// original function: bool getPolygonModeOverrideable(); +void cP_getPolygonModeOverrideable_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setFog(bool overrideScene, FogMode mode, const ColourValue& colour, Real expDensity, Real linearStart, Real linearEnd); +void cP_setFog_c(struct hg3dclass_struct *classptr_c, int overrideScene_c, enum EnumFogMode mode_c, struct colourvalue_struct * colour_c, float expDensity_c, float linearStart_c, float linearEnd_c); +// original function: bool getFogOverride(); +void cP_getFogOverride_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: FogMode getFogMode(); +void cP_getFogMode_c(struct hg3dclass_struct *classptr_c, enum EnumFogMode * result_c); +// original function: const ColourValue& getFogColour(); +void cP_getFogColour_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * result_c); +// original function: Real getFogStart(); +void cP_getFogStart_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: Real getFogEnd(); +void cP_getFogEnd_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: Real getFogDensity(); +void cP_getFogDensity_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setDepthBias(float constantBias, float slopeScaleBias); +void cP_setDepthBias_c(struct hg3dclass_struct *classptr_c, float constantBias_c, float slopeScaleBias_c); +// original function: float getDepthBiasConstant(); +void cP_getDepthBiasConstant_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: float getDepthBiasSlopeScale(); +void cP_getDepthBiasSlopeScale_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setIterationDepthBias(float biasPerIteration); +void cP_setIterationDepthBias_c(struct hg3dclass_struct *classptr_c, float biasPerIteration_c); +// original function: float getIterationDepthBias(); +void cP_getIterationDepthBias_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setAlphaRejectFunction(CompareFunction func); +void cP_setAlphaRejectFunction_c(struct hg3dclass_struct *classptr_c, enum EnumCompareFunction func_c); +// original function: CompareFunction getAlphaRejectFunction(); +void cP_getAlphaRejectFunction_c(struct hg3dclass_struct *classptr_c, enum EnumCompareFunction * result_c); +// original function: void setAlphaToCoverageEnabled(bool enabled); +void cP_setAlphaToCoverageEnabled_c(struct hg3dclass_struct *classptr_c, int enabled_c); +// original function: bool isAlphaToCoverageEnabled(); +void cP_isAlphaToCoverageEnabled_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setTransparentSortingEnabled(bool enabled); +void cP_setTransparentSortingEnabled_c(struct hg3dclass_struct *classptr_c, int enabled_c); +// original function: bool getTransparentSortingEnabled(); +void cP_getTransparentSortingEnabled_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setTransparentSortingForced(bool enabled); +void cP_setTransparentSortingForced_c(struct hg3dclass_struct *classptr_c, int enabled_c); +// original function: bool getTransparentSortingForced(); +void cP_getTransparentSortingForced_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setIteratePerLight(bool enabled, bool onlyForOneLightType, Light::LightTypes lightType); +void cP_setIteratePerLight_c(struct hg3dclass_struct *classptr_c, int enabled_c, int onlyForOneLightType_c, enum EnumLightTypes lightType_c); +// original function: bool getIteratePerLight(); +void cP_getIteratePerLight_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool getRunOnlyForOneLightType(); +void cP_getRunOnlyForOneLightType_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: Light::LightTypes getOnlyLightType(); +void cP_getOnlyLightType_c(struct hg3dclass_struct *classptr_c, enum EnumLightTypes * result_c); +// original function: void setLightCountPerIteration(unsigned short c); +void cP_setLightCountPerIteration_c(struct hg3dclass_struct *classptr_c, unsigned int c_c); +// original function: unsigned short getLightCountPerIteration(); +void cP_getLightCountPerIteration_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: Technique* getParent(); +void cP_getParent_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: const String& getResourceGroup(); +void cP_getResourceGroup_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: void setVertexProgram(const String& name, bool resetParams); +void cP_setVertexProgram_c(struct hg3dclass_struct *classptr_c, char * name_c, int resetParams_c); +// original function: const String& getVertexProgramName(); +void cP_getVertexProgramName_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: void setShadowCasterVertexProgram(const String& name); +void cP_setShadowCasterVertexProgram_c(struct hg3dclass_struct *classptr_c, char * name_c); +// original function: const String& getShadowCasterVertexProgramName(); +void cP_getShadowCasterVertexProgramName_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: void setShadowReceiverVertexProgram(const String& name); +void cP_setShadowReceiverVertexProgram_c(struct hg3dclass_struct *classptr_c, char * name_c); +// original function: void setShadowReceiverFragmentProgram(const String& name); +void cP_setShadowReceiverFragmentProgram_c(struct hg3dclass_struct *classptr_c, char * name_c); +// original function: const String& getShadowReceiverVertexProgramName(); +void cP_getShadowReceiverVertexProgramName_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: const String& getShadowReceiverFragmentProgramName(); +void cP_getShadowReceiverFragmentProgramName_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: void setFragmentProgram(const String& name, bool resetParams); +void cP_setFragmentProgram_c(struct hg3dclass_struct *classptr_c, char * name_c, int resetParams_c); +// original function: const String& getFragmentProgramName(); +void cP_getFragmentProgramName_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: void setGeometryProgram(const String& name, bool resetParams); +void cP_setGeometryProgram_c(struct hg3dclass_struct *classptr_c, char * name_c, int resetParams_c); +// original function: const String& getGeometryProgramName(); +void cP_getGeometryProgramName_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: Pass* _split(unsigned short numUnits); +void cP__split_c(struct hg3dclass_struct *classptr_c, unsigned int numUnits_c, struct hg3dclass_struct * result_c); +// original function: void _notifyIndex(unsigned short index); +void cP__notifyIndex_c(struct hg3dclass_struct *classptr_c, unsigned int index_c); +// original function: void _prepare(); +void cP__prepare_c(struct hg3dclass_struct *classptr_c); +// original function: void _unprepare(); +void cP__unprepare_c(struct hg3dclass_struct *classptr_c); +// original function: void _load(); +void cP__load_c(struct hg3dclass_struct *classptr_c); +// original function: void _unload(); +void cP__unload_c(struct hg3dclass_struct *classptr_c); +// original function: bool isLoaded(); +void cP_isLoaded_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: uint32 getHash(); +void cP_getHash_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: void _dirtyHash(); +void cP__dirtyHash_c(struct hg3dclass_struct *classptr_c); +// original function: void _recalculateHash(); +void cP__recalculateHash_c(struct hg3dclass_struct *classptr_c); +// original function: void _notifyNeedsRecompile(); +void cP__notifyNeedsRecompile_c(struct hg3dclass_struct *classptr_c); +// original function: unsigned short _getTextureUnitWithContentTypeIndex(TextureUnitState::ContentType contentType, unsigned short index); +void cP__getTextureUnitWithContentTypeIndex_c(struct hg3dclass_struct *classptr_c, enum EnumContentType contentType_c, unsigned int index_c, unsigned int * result_c); +// original function: void setTextureFiltering(TextureFilterOptions filterType); +void cP_setTextureFiltering_c(struct hg3dclass_struct *classptr_c, enum EnumTextureFilterOptions filterType_c); +// original function: void setTextureAnisotropy(unsigned int maxAniso); +void cP_setTextureAnisotropy_c(struct hg3dclass_struct *classptr_c, unsigned int maxAniso_c); +// original function: void setNormaliseNormals(bool normalise); +void cP_setNormaliseNormals_c(struct hg3dclass_struct *classptr_c, int normalise_c); +// original function: bool getNormaliseNormals(); +void cP_getNormaliseNormals_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void queueForDeletion(); +void cP_queueForDeletion_c(struct hg3dclass_struct *classptr_c); +// original function: bool isAmbientOnly(); +void cP_isAmbientOnly_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setPassIterationCount(const size_t count); +void cP_setPassIterationCount_c(struct hg3dclass_struct *classptr_c, int count_c); +// original function: size_t getPassIterationCount(); +void cP_getPassIterationCount_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setLightScissoringEnabled(bool enabled); +void cP_setLightScissoringEnabled_c(struct hg3dclass_struct *classptr_c, int enabled_c); +// original function: bool getLightScissoringEnabled(); +void cP_getLightScissoringEnabled_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setLightClipPlanesEnabled(bool enabled); +void cP_setLightClipPlanesEnabled_c(struct hg3dclass_struct *classptr_c, int enabled_c); +// original function: bool getLightClipPlanesEnabled(); +void cP_getLightClipPlanesEnabled_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setIlluminationStage(IlluminationStage is); +void cP_setIlluminationStage_c(struct hg3dclass_struct *classptr_c, enum EnumIlluminationStage is_c); +// original function: IlluminationStage getIlluminationStage(); +void cP_getIlluminationStage_c(struct hg3dclass_struct *classptr_c, enum EnumIlluminationStage * result_c);
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassPatchMesh.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgrePatchMesh.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassPatchMeshPtr.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgrePatchMesh.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,54 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassPatchSurface.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgrePatchSurface.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: size_t getRequiredVertexCount(); +void cPs_getRequiredVertexCount_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: size_t getRequiredIndexCount(); +void cPs_getRequiredIndexCount_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: size_t getCurrentIndexCount(); +void cPs_getCurrentIndexCount_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: size_t getIndexOffset(); +void cPs_getIndexOffset_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: size_t getVertexOffset(); +void cPs_getVertexOffset_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: Real getBoundingSphereRadius(); +void cPs_getBoundingSphereRadius_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setSubdivisionFactor(Real factor); +void cPs_setSubdivisionFactor_c(struct hg3dclass_struct *classptr_c, float factor_c); +// original function: Real getSubdivisionFactor(); +void cPs_getSubdivisionFactor_c(struct hg3dclass_struct *classptr_c, float * result_c);
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassPlaneOptimalShadowCameraSetup.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreShadowCameraSetupPlaneOptimal.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,453 @@+/* +This source file is part of HGamer3D +(A project to enable 3D game development in Haskell) +For the latest info, see http://www.althainz.de/HGamer3D.html + +Copyright 2011 Dr. Peter Althainz + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +typedef struct hg3dclass_struct { + void *ptr; + void *fptr; +} hg3dclass_struct; + +void *getOgreClassPtr(hg3dclass_struct inSt, const char* className); + +typedef void ClassItemIdentityException; +hg3dclass_struct getOgreClass_ItemIdentityException(void *ptrIn); + +typedef void ClassResourceGroupManager; +hg3dclass_struct getOgreClass_ResourceGroupManager(void *ptrIn); + +typedef void ClassMultiRenderTarget; +hg3dclass_struct getOgreClass_MultiRenderTarget(void *ptrIn); + +typedef void ClassTempBlendedBufferInfo; +hg3dclass_struct getOgreClass_TempBlendedBufferInfo(void *ptrIn); + +typedef void ClassCompositor; +hg3dclass_struct getOgreClass_Compositor(void *ptrIn); + +typedef void ClassTransformKeyFrame; +hg3dclass_struct getOgreClass_TransformKeyFrame(void *ptrIn); + +typedef void ClassSceneManager; +hg3dclass_struct getOgreClass_SceneManager(void *ptrIn); + +typedef void ClassRenderTarget; +hg3dclass_struct getOgreClass_RenderTarget(void *ptrIn); + +typedef void ClassInvalidStateException; +hg3dclass_struct getOgreClass_InvalidStateException(void *ptrIn); + +typedef void ClassBillboardSet; +hg3dclass_struct getOgreClass_BillboardSet(void *ptrIn); + +typedef void ClassSimpleRenderable; +hg3dclass_struct getOgreClass_SimpleRenderable(void *ptrIn); + +typedef void ClassMovableObjectFactory; +hg3dclass_struct getOgreClass_MovableObjectFactory(void *ptrIn); + +typedef void ClassParticleSystemFactory; +hg3dclass_struct getOgreClass_ParticleSystemFactory(void *ptrIn); + +typedef void ClassWindowEventListener; +hg3dclass_struct getOgreClass_WindowEventListener(void *ptrIn); + +typedef void ClassHardwareBufferLicensee; +hg3dclass_struct getOgreClass_HardwareBufferLicensee(void *ptrIn); + +typedef void ClassGpuProgramPtr; +hg3dclass_struct getOgreClass_GpuProgramPtr(void *ptrIn); + +typedef void ClassFileStreamDataStream; +hg3dclass_struct getOgreClass_FileStreamDataStream(void *ptrIn); + +typedef void ClassMaterialPtr; +hg3dclass_struct getOgreClass_MaterialPtr(void *ptrIn); + +typedef void ClassPatchMesh; +hg3dclass_struct getOgreClass_PatchMesh(void *ptrIn); + +typedef void ClassRenderQueueInvocation; +hg3dclass_struct getOgreClass_RenderQueueInvocation(void *ptrIn); + +typedef void ClassDefaultRaySceneQuery; +hg3dclass_struct getOgreClass_DefaultRaySceneQuery(void *ptrIn); + +typedef void ClassTextureManager; +hg3dclass_struct getOgreClass_TextureManager(void *ptrIn); + +typedef void ClassHardwareBufferManagerBase; +hg3dclass_struct getOgreClass_HardwareBufferManagerBase(void *ptrIn); + +typedef void ClassSubMesh; +hg3dclass_struct getOgreClass_SubMesh(void *ptrIn); + +typedef void ClassHardwarePixelBufferSharedPtr; +hg3dclass_struct getOgreClass_HardwarePixelBufferSharedPtr(void *ptrIn); + +typedef void ClassBillboardChain; +hg3dclass_struct getOgreClass_BillboardChain(void *ptrIn); + +typedef void ClassMeshPtr; +hg3dclass_struct getOgreClass_MeshPtr(void *ptrIn); + +typedef void ClassParticleAffector; +hg3dclass_struct getOgreClass_ParticleAffector(void *ptrIn); + +typedef void ClassMesh; +hg3dclass_struct getOgreClass_Mesh(void *ptrIn); + +typedef void ClassHighLevelGpuProgramFactory; +hg3dclass_struct getOgreClass_HighLevelGpuProgramFactory(void *ptrIn); + +typedef void ClassMaterialBucket; +hg3dclass_struct getOgreClass_MaterialBucket(void *ptrIn); + +typedef void ClassElement; +hg3dclass_struct getOgreClass_Element(void *ptrIn); + +typedef void ClassCompositorInstance; +hg3dclass_struct getOgreClass_CompositorInstance(void *ptrIn); + +typedef void ClassInvalidParametersException; +hg3dclass_struct getOgreClass_InvalidParametersException(void *ptrIn); + +typedef void ClassParticleEmitter; +hg3dclass_struct getOgreClass_ParticleEmitter(void *ptrIn); + +typedef void ClassDefaultSphereSceneQuery; +hg3dclass_struct getOgreClass_DefaultSphereSceneQuery(void *ptrIn); + +typedef void ClassException; +hg3dclass_struct getOgreClass_Exception(void *ptrIn); + +typedef void ClassHardwareBufferManager; +hg3dclass_struct getOgreClass_HardwareBufferManager(void *ptrIn); + +typedef void ClassKeyFrame; +hg3dclass_struct getOgreClass_KeyFrame(void *ptrIn); + +typedef void ClassOverlayManager; +hg3dclass_struct getOgreClass_OverlayManager(void *ptrIn); + +typedef void ClassDefaultSceneManagerFactory; +hg3dclass_struct getOgreClass_DefaultSceneManagerFactory(void *ptrIn); + +typedef void ClassLogManager; +hg3dclass_struct getOgreClass_LogManager(void *ptrIn); + +typedef void ClassCompositionTechnique; +hg3dclass_struct getOgreClass_CompositionTechnique(void *ptrIn); + +typedef void ClassFrustum; +hg3dclass_struct getOgreClass_Frustum(void *ptrIn); + +typedef void ClassMaterial; +hg3dclass_struct getOgreClass_Material(void *ptrIn); + +typedef void ClassFileHandleDataStream; +hg3dclass_struct getOgreClass_FileHandleDataStream(void *ptrIn); + +typedef void ClassDefaultSceneManager; +hg3dclass_struct getOgreClass_DefaultSceneManager(void *ptrIn); + +typedef void ClassGpuProgram; +hg3dclass_struct getOgreClass_GpuProgram(void *ptrIn); + +typedef void ClassCompositorChain; +hg3dclass_struct getOgreClass_CompositorChain(void *ptrIn); + +typedef void ClassBillboardSetFactory; +hg3dclass_struct getOgreClass_BillboardSetFactory(void *ptrIn); + +typedef void ClassMovableObject; +hg3dclass_struct getOgreClass_MovableObject(void *ptrIn); + +typedef void ClassIOException; +hg3dclass_struct getOgreClass_IOException(void *ptrIn); + +typedef void ClassLODBucket; +hg3dclass_struct getOgreClass_LODBucket(void *ptrIn); + +typedef void ClassBone; +hg3dclass_struct getOgreClass_Bone(void *ptrIn); + +typedef void ClassFileNotFoundException; +hg3dclass_struct getOgreClass_FileNotFoundException(void *ptrIn); + +typedef void ClassArchive; +hg3dclass_struct getOgreClass_Archive(void *ptrIn); + +typedef void ClassBillboardChainFactory; +hg3dclass_struct getOgreClass_BillboardChainFactory(void *ptrIn); + +typedef void ClassInternalErrorException; +hg3dclass_struct getOgreClass_InternalErrorException(void *ptrIn); + +typedef void ClassStringConverter; +hg3dclass_struct getOgreClass_StringConverter(void *ptrIn); + +typedef void ClassVertexPoseKeyFrame; +hg3dclass_struct getOgreClass_VertexPoseKeyFrame(void *ptrIn); + +typedef void ClassBillboard; +hg3dclass_struct getOgreClass_Billboard(void *ptrIn); + +typedef void ClassStringUtil; +hg3dclass_struct getOgreClass_StringUtil(void *ptrIn); + +typedef void ClassResourceGroupListener; +hg3dclass_struct getOgreClass_ResourceGroupListener(void *ptrIn); + +typedef void ClassPatchMeshPtr; +hg3dclass_struct getOgreClass_PatchMeshPtr(void *ptrIn); + +typedef void ClassAnimation; +hg3dclass_struct getOgreClass_Animation(void *ptrIn); + +typedef void ClassSceneNode; +hg3dclass_struct getOgreClass_SceneNode(void *ptrIn); + +typedef void ClassTimeIndex; +hg3dclass_struct getOgreClass_TimeIndex(void *ptrIn); + +typedef void ClassAnimationTrack; +hg3dclass_struct getOgreClass_AnimationTrack(void *ptrIn); + +typedef void ClassHighLevelGpuProgram; +hg3dclass_struct getOgreClass_HighLevelGpuProgram(void *ptrIn); + +typedef void ClassLightFactory; +hg3dclass_struct getOgreClass_LightFactory(void *ptrIn); + +typedef void ClassLiSPSMShadowCameraSetup; +hg3dclass_struct getOgreClass_LiSPSMShadowCameraSetup(void *ptrIn); + +typedef void ClassPass; +hg3dclass_struct getOgreClass_Pass(void *ptrIn); + +typedef void ClassTextureUnitState; +hg3dclass_struct getOgreClass_TextureUnitState(void *ptrIn); + +typedef void ClassNumericAnimationTrack; +hg3dclass_struct getOgreClass_NumericAnimationTrack(void *ptrIn); + +typedef void ClassCmdManualNamedConstsFile; +hg3dclass_struct getOgreClass_CmdManualNamedConstsFile(void *ptrIn); + +typedef void ClassSkeletonInstance; +hg3dclass_struct getOgreClass_SkeletonInstance(void *ptrIn); + +typedef void ClassMeshSerializer; +hg3dclass_struct getOgreClass_MeshSerializer(void *ptrIn); + +typedef void ClassAnimationState; +hg3dclass_struct getOgreClass_AnimationState(void *ptrIn); + +typedef void ClassSceneManagerEnumerator; +hg3dclass_struct getOgreClass_SceneManagerEnumerator(void *ptrIn); + +typedef void ClassRenderingAPIException; +hg3dclass_struct getOgreClass_RenderingAPIException(void *ptrIn); + +typedef void ClassCmdPose; +hg3dclass_struct getOgreClass_CmdPose(void *ptrIn); + +typedef void ClassTechnique; +hg3dclass_struct getOgreClass_Technique(void *ptrIn); + +typedef void ClassManualObjectSectionShadowRenderable; +hg3dclass_struct getOgreClass_ManualObjectSectionShadowRenderable(void *ptrIn); + +typedef void ClassEntity; +hg3dclass_struct getOgreClass_Entity(void *ptrIn); + +typedef void ClassSceneManagerFactory; +hg3dclass_struct getOgreClass_SceneManagerFactory(void *ptrIn); + +typedef void ClassPlaneOptimalShadowCameraSetup; +hg3dclass_struct getOgreClass_PlaneOptimalShadowCameraSetup(void *ptrIn); + +typedef void ClassRenderWindow; +hg3dclass_struct getOgreClass_RenderWindow(void *ptrIn); + +typedef void ClassShadowCameraSetup; +hg3dclass_struct getOgreClass_ShadowCameraSetup(void *ptrIn); + +typedef void ClassRuntimeAssertionException; +hg3dclass_struct getOgreClass_RuntimeAssertionException(void *ptrIn); + +typedef void ClassRibbonTrailFactory; +hg3dclass_struct getOgreClass_RibbonTrailFactory(void *ptrIn); + +typedef void ClassSkeletonPtr; +hg3dclass_struct getOgreClass_SkeletonPtr(void *ptrIn); + +typedef void ClassSubEntity; +hg3dclass_struct getOgreClass_SubEntity(void *ptrIn); + +typedef void ClassCompositorPtr; +hg3dclass_struct getOgreClass_CompositorPtr(void *ptrIn); + +typedef void ClassManualObject; +hg3dclass_struct getOgreClass_ManualObject(void *ptrIn); + +typedef void ClassHardwareIndexBufferSharedPtr; +hg3dclass_struct getOgreClass_HardwareIndexBufferSharedPtr(void *ptrIn); + +typedef void ClassHardwareIndexBuffer; +hg3dclass_struct getOgreClass_HardwareIndexBuffer(void *ptrIn); + +typedef void ClassGpuProgramManager; +hg3dclass_struct getOgreClass_GpuProgramManager(void *ptrIn); + +typedef void ClassOverlay; +hg3dclass_struct getOgreClass_Overlay(void *ptrIn); + +typedef void ClassStaticGeometry; +hg3dclass_struct getOgreClass_StaticGeometry(void *ptrIn); + +typedef void ClassRibbonTrail; +hg3dclass_struct getOgreClass_RibbonTrail(void *ptrIn); + +typedef void ClassManualObjectSection; +hg3dclass_struct getOgreClass_ManualObjectSection(void *ptrIn); + +typedef void ClassVertexAnimationTrack; +hg3dclass_struct getOgreClass_VertexAnimationTrack(void *ptrIn); + +typedef void ClassArchiveManager; +hg3dclass_struct getOgreClass_ArchiveManager(void *ptrIn); + +typedef void ClassSkeleton; +hg3dclass_struct getOgreClass_Skeleton(void *ptrIn); + +typedef void ClassSkeletonSerializer; +hg3dclass_struct getOgreClass_SkeletonSerializer(void *ptrIn); + +typedef void ClassConfigFile; +hg3dclass_struct getOgreClass_ConfigFile(void *ptrIn); + +typedef void ClassRoot; +hg3dclass_struct getOgreClass_Root(void *ptrIn); + +typedef void ClassHardwarePixelBuffer; +hg3dclass_struct getOgreClass_HardwarePixelBuffer(void *ptrIn); + +typedef void ClassRegion; +hg3dclass_struct getOgreClass_Region(void *ptrIn); + +typedef void ClassOverlayContainer; +hg3dclass_struct getOgreClass_OverlayContainer(void *ptrIn); + +typedef void ClassWindowEventUtilities; +hg3dclass_struct getOgreClass_WindowEventUtilities(void *ptrIn); + +typedef void ClassControllerManager; +hg3dclass_struct getOgreClass_ControllerManager(void *ptrIn); + +typedef void ClassMaterialSerializer; +hg3dclass_struct getOgreClass_MaterialSerializer(void *ptrIn); + +typedef void ClassNodeAnimationTrack; +hg3dclass_struct getOgreClass_NodeAnimationTrack(void *ptrIn); + +typedef void ClassLight; +hg3dclass_struct getOgreClass_Light(void *ptrIn); + +typedef void ClassDefaultShadowCameraSetup; +hg3dclass_struct getOgreClass_DefaultShadowCameraSetup(void *ptrIn); + +typedef void ClassCompositionTargetPass; +hg3dclass_struct getOgreClass_CompositionTargetPass(void *ptrIn); + +typedef void ClassRenderTexture; +hg3dclass_struct getOgreClass_RenderTexture(void *ptrIn); + +typedef void ClassCompositorManager; +hg3dclass_struct getOgreClass_CompositorManager(void *ptrIn); + +typedef void ClassEntityFactory; +hg3dclass_struct getOgreClass_EntityFactory(void *ptrIn); + +typedef void ClassMemoryDataStream; +hg3dclass_struct getOgreClass_MemoryDataStream(void *ptrIn); + +typedef void ClassHardwareOcclusionQuery; +hg3dclass_struct getOgreClass_HardwareOcclusionQuery(void *ptrIn); + +typedef void ClassPSSMShadowCameraSetup; +hg3dclass_struct getOgreClass_PSSMShadowCameraSetup(void *ptrIn); + +typedef void ClassVertexMorphKeyFrame; +hg3dclass_struct getOgreClass_VertexMorphKeyFrame(void *ptrIn); + +typedef void ClassNode; +hg3dclass_struct getOgreClass_Node(void *ptrIn); + +typedef void ClassPatchSurface; +hg3dclass_struct getOgreClass_PatchSurface(void *ptrIn); + +typedef void ClassManualObjectFactory; +hg3dclass_struct getOgreClass_ManualObjectFactory(void *ptrIn); + +typedef void ClassNumericKeyFrame; +hg3dclass_struct getOgreClass_NumericKeyFrame(void *ptrIn); + +typedef void ClassDataStream; +hg3dclass_struct getOgreClass_DataStream(void *ptrIn); + +typedef void ClassRenderObjectListener; +hg3dclass_struct getOgreClass_RenderObjectListener(void *ptrIn); + +typedef void ClassGeometryBucket; +hg3dclass_struct getOgreClass_GeometryBucket(void *ptrIn); + +typedef void ClassViewport; +hg3dclass_struct getOgreClass_Viewport(void *ptrIn); + +typedef void ClassDefaultPlaneBoundedVolumeListSceneQuery; +hg3dclass_struct getOgreClass_DefaultPlaneBoundedVolumeListSceneQuery(void *ptrIn); + +typedef void ClassCompositionPass; +hg3dclass_struct getOgreClass_CompositionPass(void *ptrIn); + +typedef void ClassSceneMgrQueuedRenderableVisitor; +hg3dclass_struct getOgreClass_SceneMgrQueuedRenderableVisitor(void *ptrIn); + +typedef void ClassRenderSystemOperation; +hg3dclass_struct getOgreClass_RenderSystemOperation(void *ptrIn); + +typedef void ClassHighLevelGpuProgramPtr; +hg3dclass_struct getOgreClass_HighLevelGpuProgramPtr(void *ptrIn); + +typedef void ClassUnimplementedException; +hg3dclass_struct getOgreClass_UnimplementedException(void *ptrIn); + +typedef void ClassRenderQueueInvocationSequence; +hg3dclass_struct getOgreClass_RenderQueueInvocationSequence(void *ptrIn); + +typedef void ClassDefaultAxisAlignedBoxSceneQuery; +hg3dclass_struct getOgreClass_DefaultAxisAlignedBoxSceneQuery(void *ptrIn); + +typedef void ClassMaterialManager; +hg3dclass_struct getOgreClass_MaterialManager(void *ptrIn); + +typedef void ClassCamera; +hg3dclass_struct getOgreClass_Camera(void *ptrIn); +
@@ -0,0 +1,49 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassRegion.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreStaticGeometry.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" +#include "TypeVector3.h" + + +// original function: StaticGeometry* getParent(); +void cRg_getParent_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: void build(bool stencilShadows); +void cRg_build_c(struct hg3dclass_struct *classptr_c, int stencilShadows_c); +// original function: uint32 getID(); +void cRg_getID_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: const Vector3& getCentre(); +void cRg_getCentre_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * result_c); +// original function: bool hasEdgeList(); +void cRg_hasEdgeList_c(struct hg3dclass_struct *classptr_c, int * result_c);
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassRenderObjectListener.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRenderObjectListener.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,48 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassRenderQueueInvocation.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRenderQueueInvocation.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: const String& getInvocationName(); +void cRqi_getInvocationName_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: void setSuppressShadows(bool suppress); +void cRqi_setSuppressShadows_c(struct hg3dclass_struct *classptr_c, int suppress_c); +// original function: bool getSuppressShadows(); +void cRqi_getSuppressShadows_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setSuppressRenderStateChanges(bool suppress); +void cRqi_setSuppressRenderStateChanges_c(struct hg3dclass_struct *classptr_c, int suppress_c); +// original function: bool getSuppressRenderStateChanges(); +void cRqi_getSuppressRenderStateChanges_c(struct hg3dclass_struct *classptr_c, int * result_c);
@@ -0,0 +1,50 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassRenderQueueInvocationSequence.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRenderQueueInvocation.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: const String& getName(); +void cRqis_getName_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: void add(RenderQueueInvocation* i); +void cRqis_add2_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * i_c); +// original function: size_t size(); +void cRqis_size_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void clear(); +void cRqis_clear_c(struct hg3dclass_struct *classptr_c); +// original function: RenderQueueInvocation* get(size_t index); +void cRqis_get_c(struct hg3dclass_struct *classptr_c, int index_c, struct hg3dclass_struct * result_c); +// original function: void remove(size_t index); +void cRqis_remove_c(struct hg3dclass_struct *classptr_c, int index_c);
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassRenderSystemOperation.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCompositorInstance.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,103 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassRenderTarget.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRenderTarget.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" +#include "EnumPixelFormat.h" + + +// original function: const String& getName(); +void cRt_getName_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: void update(bool swapBuffers); +void cRt_update_c(struct hg3dclass_struct *classptr_c, int swapBuffers_c); +// original function: void swapBuffers(bool waitForVSync); +void cRt_swapBuffers_c(struct hg3dclass_struct *classptr_c, int waitForVSync_c); +// original function: Viewport* addViewport(Camera* cam, int ZOrder, float left, float top, float width, float height); +void cRt_addViewport_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * cam_c, int ZOrder_c, float left_c, float top_c, float width_c, float height_c, struct hg3dclass_struct * result_c); +// original function: unsigned short getNumViewports(); +void cRt_getNumViewports_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: Viewport* getViewport(unsigned short index); +void cRt_getViewport_c(struct hg3dclass_struct *classptr_c, unsigned int index_c, struct hg3dclass_struct * result_c); +// original function: void removeViewport(int ZOrder); +void cRt_removeViewport_c(struct hg3dclass_struct *classptr_c, int ZOrder_c); +// original function: void removeAllViewports(); +void cRt_removeAllViewports_c(struct hg3dclass_struct *classptr_c); +// original function: float getLastFPS(); +void cRt_getLastFPS_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: float getAverageFPS(); +void cRt_getAverageFPS_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: float getBestFPS(); +void cRt_getBestFPS_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: float getWorstFPS(); +void cRt_getWorstFPS_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: float getBestFrameTime(); +void cRt_getBestFrameTime_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: float getWorstFrameTime(); +void cRt_getWorstFrameTime_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void resetStatistics(); +void cRt_resetStatistics_c(struct hg3dclass_struct *classptr_c); +// original function: void removeAllListeners(); +void cRt_removeAllListeners_c(struct hg3dclass_struct *classptr_c); +// original function: bool isActive(); +void cRt_isActive_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setActive(bool state); +void cRt_setActive_c(struct hg3dclass_struct *classptr_c, int state_c); +// original function: void setAutoUpdated(bool autoupdate); +void cRt_setAutoUpdated_c(struct hg3dclass_struct *classptr_c, int autoupdate_c); +// original function: bool isAutoUpdated(); +void cRt_isAutoUpdated_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: PixelFormat suggestPixelFormat(); +void cRt_suggestPixelFormat_c(struct hg3dclass_struct *classptr_c, enum EnumPixelFormat * result_c); +// original function: void writeContentsToFile(const String& filename); +void cRt_writeContentsToFile_c(struct hg3dclass_struct *classptr_c, char * filename_c); +// original function: String writeContentsToTimestampedFile(const String& filenamePrefix, const String& filenameSuffix); +void cRt_writeContentsToTimestampedFile_c(struct hg3dclass_struct *classptr_c, char * filenamePrefix_c, char * filenameSuffix_c, char * result_c); +// original function: size_t getTriangleCount(); +void cRt_getTriangleCount_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: size_t getBatchCount(); +void cRt_getBatchCount_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool isPrimary(); +void cRt_isPrimary_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool isHardwareGammaEnabled(); +void cRt_isHardwareGammaEnabled_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: const String& getFSAAHint(); +void cRt_getFSAAHint_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: void _beginUpdate(); +void cRt__beginUpdate_c(struct hg3dclass_struct *classptr_c); +// original function: void _updateViewport(int zorder, bool updateStatistics); +void cRt__updateViewport_c(struct hg3dclass_struct *classptr_c, int zorder_c, int updateStatistics_c); +// original function: void _updateViewport(Viewport* viewport, bool updateStatistics); +void cRt__updateViewport2_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * viewport_c, int updateStatistics_c); +// original function: void _updateAutoUpdatedViewports(bool updateStatistics); +void cRt__updateAutoUpdatedViewports_c(struct hg3dclass_struct *classptr_c, int updateStatistics_c);
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassRenderTexture.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRenderTexture.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,65 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassRenderWindow.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRenderWindow.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" +#include "EnumPixelFormat.h" + + +// original function: void setFullscreen(bool fullScreen, unsigned int width, unsigned int height); +void cRw_setFullscreen_c(struct hg3dclass_struct *classptr_c, int fullScreen_c, unsigned int width_c, unsigned int height_c); +// original function: void destroy(); +void cRw_destroy_c(struct hg3dclass_struct *classptr_c); +// original function: void resize(unsigned int width, unsigned int height); +void cRw_resize_c(struct hg3dclass_struct *classptr_c, unsigned int width_c, unsigned int height_c); +// original function: void windowMovedOrResized(); +void cRw_windowMovedOrResized_c(struct hg3dclass_struct *classptr_c); +// original function: void reposition(int left, int top); +void cRw_reposition_c(struct hg3dclass_struct *classptr_c, int left_c, int top_c); +// original function: bool isVisible(); +void cRw_isVisible_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setVisible(bool visible); +void cRw_setVisible_c(struct hg3dclass_struct *classptr_c, int visible_c); +// original function: bool isActive(); +void cRw_isActive_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool isClosed(); +void cRw_isClosed_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool isPrimary(); +void cRw_isPrimary_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool isFullScreen(); +void cRw_isFullScreen_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: PixelFormat suggestPixelFormat(); +void cRw_suggestPixelFormat_c(struct hg3dclass_struct *classptr_c, enum EnumPixelFormat * result_c); +// original function: bool isDeactivatedOnFocusChange(); +void cRw_isDeactivatedOnFocusChange_c(struct hg3dclass_struct *classptr_c, int * result_c);
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassRenderingAPIException.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreException.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,64 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassResourceGroupListener.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreResourceGroupManager.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: void resourceGroupScriptingStarted(const String& groupName, size_t scriptCount); +void cRgl_resourceGroupScriptingStarted_c(struct hg3dclass_struct *classptr_c, char * groupName_c, int scriptCount_c); +// original function: void scriptParseEnded(const String& scriptName, bool skipped); +void cRgl_scriptParseEnded_c(struct hg3dclass_struct *classptr_c, char * scriptName_c, int skipped_c); +// original function: void resourceGroupScriptingEnded(const String& groupName); +void cRgl_resourceGroupScriptingEnded_c(struct hg3dclass_struct *classptr_c, char * groupName_c); +// original function: void resourceGroupPrepareStarted(const String& groupName, size_t resourceCount); +void cRgl_resourceGroupPrepareStarted_c(struct hg3dclass_struct *classptr_c, char * groupName_c, int resourceCount_c); +// original function: void resourcePrepareEnded(); +void cRgl_resourcePrepareEnded_c(struct hg3dclass_struct *classptr_c); +// original function: void worldGeometryPrepareStageStarted(const String& description); +void cRgl_worldGeometryPrepareStageStarted_c(struct hg3dclass_struct *classptr_c, char * description_c); +// original function: void worldGeometryPrepareStageEnded(); +void cRgl_worldGeometryPrepareStageEnded_c(struct hg3dclass_struct *classptr_c); +// original function: void resourceGroupPrepareEnded(const String& groupName); +void cRgl_resourceGroupPrepareEnded_c(struct hg3dclass_struct *classptr_c, char * groupName_c); +// original function: void resourceGroupLoadStarted(const String& groupName, size_t resourceCount); +void cRgl_resourceGroupLoadStarted_c(struct hg3dclass_struct *classptr_c, char * groupName_c, int resourceCount_c); +// original function: void resourceLoadEnded(); +void cRgl_resourceLoadEnded_c(struct hg3dclass_struct *classptr_c); +// original function: void worldGeometryStageStarted(const String& description); +void cRgl_worldGeometryStageStarted_c(struct hg3dclass_struct *classptr_c, char * description_c); +// original function: void worldGeometryStageEnded(); +void cRgl_worldGeometryStageEnded_c(struct hg3dclass_struct *classptr_c); +// original function: void resourceGroupLoadEnded(const String& groupName); +void cRgl_resourceGroupLoadEnded_c(struct hg3dclass_struct *classptr_c, char * groupName_c);
@@ -0,0 +1,104 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassResourceGroupManager.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreResourceGroupManager.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: void createResourceGroup(const String& name, const bool inGlobalPool); +void cRgm_createResourceGroup_c(struct hg3dclass_struct *classptr_c, char * name_c, int inGlobalPool_c); +// original function: void initialiseResourceGroup(const String& name); +void cRgm_initialiseResourceGroup_c(struct hg3dclass_struct *classptr_c, char * name_c); +// original function: void initialiseAllResourceGroups(); +void cRgm_initialiseAllResourceGroups_c(struct hg3dclass_struct *classptr_c); +// original function: void prepareResourceGroup(const String& name, bool prepareMainResources, bool prepareWorldGeom); +void cRgm_prepareResourceGroup_c(struct hg3dclass_struct *classptr_c, char * name_c, int prepareMainResources_c, int prepareWorldGeom_c); +// original function: void loadResourceGroup(const String& name, bool loadMainResources, bool loadWorldGeom); +void cRgm_loadResourceGroup_c(struct hg3dclass_struct *classptr_c, char * name_c, int loadMainResources_c, int loadWorldGeom_c); +// original function: void unloadResourceGroup(const String& name, bool reloadableOnly); +void cRgm_unloadResourceGroup_c(struct hg3dclass_struct *classptr_c, char * name_c, int reloadableOnly_c); +// original function: void unloadUnreferencedResourcesInGroup(const String& name, bool reloadableOnly); +void cRgm_unloadUnreferencedResourcesInGroup_c(struct hg3dclass_struct *classptr_c, char * name_c, int reloadableOnly_c); +// original function: void clearResourceGroup(const String& name); +void cRgm_clearResourceGroup_c(struct hg3dclass_struct *classptr_c, char * name_c); +// original function: void destroyResourceGroup(const String& name); +void cRgm_destroyResourceGroup_c(struct hg3dclass_struct *classptr_c, char * name_c); +// original function: bool isResourceGroupInitialised(const String& name); +void cRgm_isResourceGroupInitialised_c(struct hg3dclass_struct *classptr_c, char * name_c, int * result_c); +// original function: bool isResourceGroupLoaded(const String& name); +void cRgm_isResourceGroupLoaded_c(struct hg3dclass_struct *classptr_c, char * name_c, int * result_c); +// original function: bool resourceGroupExists(const String& name); +void cRgm_resourceGroupExists_c(struct hg3dclass_struct *classptr_c, char * name_c, int * result_c); +// original function: void addResourceLocation(const String& name, const String& locType, const String& resGroup, bool recursive); +void cRgm_addResourceLocation_c(struct hg3dclass_struct *classptr_c, char * name_c, char * locType_c, char * resGroup_c, int recursive_c); +// original function: void removeResourceLocation(const String& name, const String& resGroup); +void cRgm_removeResourceLocation_c(struct hg3dclass_struct *classptr_c, char * name_c, char * resGroup_c); +// original function: bool resourceLocationExists(const String& name, const String& resGroup); +void cRgm_resourceLocationExists_c(struct hg3dclass_struct *classptr_c, char * name_c, char * resGroup_c, int * result_c); +// original function: void undeclareResource(const String& name, const String& groupName); +void cRgm_undeclareResource_c(struct hg3dclass_struct *classptr_c, char * name_c, char * groupName_c); +// original function: bool resourceExists(const String& group, const String& filename); +void cRgm_resourceExists_c(struct hg3dclass_struct *classptr_c, char * group_c, char * filename_c, int * result_c); +// original function: bool resourceExistsInAnyGroup(const String& filename); +void cRgm_resourceExistsInAnyGroup_c(struct hg3dclass_struct *classptr_c, char * filename_c, int * result_c); +// original function: const String& findGroupContainingResource(const String& filename); +void cRgm_findGroupContainingResource_c(struct hg3dclass_struct *classptr_c, char * filename_c, char * result_c); +// original function: void deleteResource(const String& filename, const String& groupName, const String& locationPattern); +void cRgm_deleteResource_c(struct hg3dclass_struct *classptr_c, char * filename_c, char * groupName_c, char * locationPattern_c); +// original function: void deleteMatchingResources(const String& filePattern, const String& groupName, const String& locationPattern); +void cRgm_deleteMatchingResources_c(struct hg3dclass_struct *classptr_c, char * filePattern_c, char * groupName_c, char * locationPattern_c); +// original function: void addResourceGroupListener(ResourceGroupListener* l); +void cRgm_addResourceGroupListener_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * l_c); +// original function: void removeResourceGroupListener(ResourceGroupListener* l); +void cRgm_removeResourceGroupListener_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * l_c); +// original function: void setWorldResourceGroupName(const String& groupName); +void cRgm_setWorldResourceGroupName_c(struct hg3dclass_struct *classptr_c, char * groupName_c); +// original function: const String& getWorldResourceGroupName(); +void cRgm_getWorldResourceGroupName_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: void linkWorldGeometryToResourceGroup(const String& group, const String& worldGeometry, SceneManager* sceneManager); +void cRgm_linkWorldGeometryToResourceGroup_c(struct hg3dclass_struct *classptr_c, char * group_c, char * worldGeometry_c, struct hg3dclass_struct * sceneManager_c); +// original function: void unlinkWorldGeometryFromResourceGroup(const String& group); +void cRgm_unlinkWorldGeometryFromResourceGroup_c(struct hg3dclass_struct *classptr_c, char * group_c); +// original function: bool isResourceGroupInGlobalPool(const String& name); +void cRgm_isResourceGroupInGlobalPool_c(struct hg3dclass_struct *classptr_c, char * name_c, int * result_c); +// original function: void shutdownAll(); +void cRgm_shutdownAll_c(struct hg3dclass_struct *classptr_c); +// original function: void _unregisterResourceManager(const String& resourceType); +void cRgm__unregisterResourceManager_c(struct hg3dclass_struct *classptr_c, char * resourceType_c); +// original function: void _notifyWorldGeometryStageStarted(const String& description); +void cRgm__notifyWorldGeometryStageStarted_c(struct hg3dclass_struct *classptr_c, char * description_c); +// original function: void _notifyWorldGeometryStageEnded(); +void cRgm__notifyWorldGeometryStageEnded_c(struct hg3dclass_struct *classptr_c); +// created singleton getSingletonPtr function +void cRgm_getSingletonPtr_c(struct hg3dclass_struct *result_c);
@@ -0,0 +1,75 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassRibbonTrail.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRibbonTrail.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" +#include "TypeColourValue.h" + + +// original function: void addNode(Node* n); +void cRtr_addNode_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * n_c); +// original function: void removeNode(Node* n); +void cRtr_removeNode_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * n_c); +// original function: void setTrailLength(Real len); +void cRtr_setTrailLength_c(struct hg3dclass_struct *classptr_c, float len_c); +// original function: Real getTrailLength(); +void cRtr_getTrailLength_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setMaxChainElements(size_t maxElements); +void cRtr_setMaxChainElements_c(struct hg3dclass_struct *classptr_c, int maxElements_c); +// original function: void setNumberOfChains(size_t numChains); +void cRtr_setNumberOfChains_c(struct hg3dclass_struct *classptr_c, int numChains_c); +// original function: void clearChain(size_t chainIndex); +void cRtr_clearChain_c(struct hg3dclass_struct *classptr_c, int chainIndex_c); +// original function: void setInitialColour(size_t chainIndex, const ColourValue& col); +void cRtr_setInitialColour_c(struct hg3dclass_struct *classptr_c, int chainIndex_c, struct colourvalue_struct * col_c); +// original function: void setInitialColour(size_t chainIndex, Real r, Real g, Real b, Real a); +void cRtr_setInitialColour2_c(struct hg3dclass_struct *classptr_c, int chainIndex_c, float r_c, float g_c, float b_c, float a_c); +// original function: const ColourValue& getInitialColour(size_t chainIndex); +void cRtr_getInitialColour_c(struct hg3dclass_struct *classptr_c, int chainIndex_c, struct colourvalue_struct * result_c); +// original function: void setColourChange(size_t chainIndex, const ColourValue& valuePerSecond); +void cRtr_setColourChange_c(struct hg3dclass_struct *classptr_c, int chainIndex_c, struct colourvalue_struct * valuePerSecond_c); +// original function: void setInitialWidth(size_t chainIndex, Real width); +void cRtr_setInitialWidth_c(struct hg3dclass_struct *classptr_c, int chainIndex_c, float width_c); +// original function: Real getInitialWidth(size_t chainIndex); +void cRtr_getInitialWidth_c(struct hg3dclass_struct *classptr_c, int chainIndex_c, float * result_c); +// original function: void setWidthChange(size_t chainIndex, Real widthDeltaPerSecond); +void cRtr_setWidthChange_c(struct hg3dclass_struct *classptr_c, int chainIndex_c, float widthDeltaPerSecond_c); +// original function: Real getWidthChange(size_t chainIndex); +void cRtr_getWidthChange_c(struct hg3dclass_struct *classptr_c, int chainIndex_c, float * result_c); +// original function: void setColourChange(size_t chainIndex, Real r, Real g, Real b, Real a); +void cRtr_setColourChange2_c(struct hg3dclass_struct *classptr_c, int chainIndex_c, float r_c, float g_c, float b_c, float a_c); +// original function: const ColourValue& getColourChange(size_t chainIndex); +void cRtr_getColourChange_c(struct hg3dclass_struct *classptr_c, int chainIndex_c, struct colourvalue_struct * result_c); +// original function: void _timeUpdate(Real time); +void cRtr__timeUpdate_c(struct hg3dclass_struct *classptr_c, float time_c);
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassRibbonTrailFactory.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRibbonTrail.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
@@ -0,0 +1,143 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassRoot.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreRoot.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" +#include "TypeColourValue.h" + + +// original function: void saveConfig(); +void cR_saveConfig_c(struct hg3dclass_struct *classptr_c); +// original function: bool restoreConfig(); +void cR_restoreConfig_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool showConfigDialog(); +void cR_showConfigDialog_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: RenderWindow* initialise(bool autoCreateWindow, const String& windowTitle, const String& customCapabilitiesConfig); +void cR_initialise_c(struct hg3dclass_struct *classptr_c, int autoCreateWindow_c, char * windowTitle_c, char * customCapabilitiesConfig_c, struct hg3dclass_struct * result_c); +// original function: bool isInitialised(); +void cR_isInitialised_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool getRemoveRenderQueueStructuresOnClear(); +void cR_getRemoveRenderQueueStructuresOnClear_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void setRemoveRenderQueueStructuresOnClear(bool r); +void cR_setRemoveRenderQueueStructuresOnClear_c(struct hg3dclass_struct *classptr_c, int r_c); +// original function: void addSceneManagerFactory(SceneManagerFactory* fact); +void cR_addSceneManagerFactory_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * fact_c); +// original function: void removeSceneManagerFactory(SceneManagerFactory* fact); +void cR_removeSceneManagerFactory_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * fact_c); +// original function: SceneManager* createSceneManager(const String& typeName, const String& instanceName); +void cR_createSceneManager_c(struct hg3dclass_struct *classptr_c, char * typeName_c, char * instanceName_c, struct hg3dclass_struct * result_c); +// original function: SceneManager* createSceneManager(SceneTypeMask typeMask, const String& instanceName); +void cR_createSceneManager2_c(struct hg3dclass_struct *classptr_c, unsigned int typeMask_c, char * instanceName_c, struct hg3dclass_struct * result_c); +// original function: void destroySceneManager(SceneManager* sm); +void cR_destroySceneManager_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * sm_c); +// original function: SceneManager* getSceneManager(const String& instanceName); +void cR_getSceneManager_c(struct hg3dclass_struct *classptr_c, char * instanceName_c, struct hg3dclass_struct * result_c); +// original function: bool hasSceneManager(const String& instanceName); +void cR_hasSceneManager_c(struct hg3dclass_struct *classptr_c, char * instanceName_c, int * result_c); +// original function: TextureManager* getTextureManager(); +void cR_getTextureManager_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: void queueEndRendering(); +void cR_queueEndRendering_c(struct hg3dclass_struct *classptr_c); +// original function: void startRendering(); +void cR_startRendering_c(struct hg3dclass_struct *classptr_c); +// original function: bool renderOneFrame(); +void cR_renderOneFrame_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool renderOneFrame(Real timeSinceLastFrame); +void cR_renderOneFrame2_c(struct hg3dclass_struct *classptr_c, float timeSinceLastFrame_c, int * result_c); +// original function: void shutdown(); +void cR_shutdown_c(struct hg3dclass_struct *classptr_c); +// original function: void addResourceLocation(const String& name, const String& locType, const String& groupName, bool recursive); +void cR_addResourceLocation_c(struct hg3dclass_struct *classptr_c, char * name_c, char * locType_c, char * groupName_c, int recursive_c); +// original function: void removeResourceLocation(const String& name, const String& groupName); +void cR_removeResourceLocation_c(struct hg3dclass_struct *classptr_c, char * name_c, char * groupName_c); +// original function: void convertColourValue(const ColourValue& colour, uint32* pDest); +void cR_convertColourValue_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * colour_c, unsigned int * pDest_c); +// original function: RenderWindow* getAutoCreatedWindow(); +void cR_getAutoCreatedWindow_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: void detachRenderTarget(RenderTarget* pWin); +void cR_detachRenderTarget_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * pWin_c); +// original function: void detachRenderTarget(const String & name); +void cR_detachRenderTarget2_c(struct hg3dclass_struct *classptr_c, char * name_c); +// original function: void destroyRenderTarget(RenderTarget* target); +void cR_destroyRenderTarget_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * target_c); +// original function: void destroyRenderTarget(const String & name); +void cR_destroyRenderTarget2_c(struct hg3dclass_struct *classptr_c, char * name_c); +// original function: RenderTarget * getRenderTarget(const String & name); +void cR_getRenderTarget_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); +// original function: void loadPlugin(const String& pluginName); +void cR_loadPlugin_c(struct hg3dclass_struct *classptr_c, char * pluginName_c); +// original function: void unloadPlugin(const String& pluginName); +void cR_unloadPlugin_c(struct hg3dclass_struct *classptr_c, char * pluginName_c); +// original function: bool _fireFrameStarted(); +void cR__fireFrameStarted2_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool _fireFrameRenderingQueued(); +void cR__fireFrameRenderingQueued2_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool _fireFrameEnded(); +void cR__fireFrameEnded2_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: SceneManager* _getCurrentSceneManager(); +void cR__getCurrentSceneManager_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: void _pushCurrentSceneManager(SceneManager* sm); +void cR__pushCurrentSceneManager_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * sm_c); +// original function: void _popCurrentSceneManager(SceneManager* sm); +void cR__popCurrentSceneManager_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * sm_c); +// original function: bool _updateAllRenderTargets(); +void cR__updateAllRenderTargets_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: RenderQueueInvocationSequence* createRenderQueueInvocationSequence(const String& name); +void cR_createRenderQueueInvocationSequence_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); +// original function: RenderQueueInvocationSequence* getRenderQueueInvocationSequence(const String& name); +void cR_getRenderQueueInvocationSequence_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); +// original function: void destroyRenderQueueInvocationSequence(const String& name); +void cR_destroyRenderQueueInvocationSequence_c(struct hg3dclass_struct *classptr_c, char * name_c); +// original function: void destroyAllRenderQueueInvocationSequences(); +void cR_destroyAllRenderQueueInvocationSequences_c(struct hg3dclass_struct *classptr_c); +// original function: void clearEventTimes(); +void cR_clearEventTimes_c(struct hg3dclass_struct *classptr_c); +// original function: void setFrameSmoothingPeriod(Real period); +void cR_setFrameSmoothingPeriod_c(struct hg3dclass_struct *classptr_c, float period_c); +// original function: Real getFrameSmoothingPeriod(); +void cR_getFrameSmoothingPeriod_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void addMovableObjectFactory(MovableObjectFactory* fact, bool overrideExisting); +void cR_addMovableObjectFactory_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * fact_c, int overrideExisting_c); +// original function: void removeMovableObjectFactory(MovableObjectFactory* fact); +void cR_removeMovableObjectFactory_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * fact_c); +// original function: bool hasMovableObjectFactory(const String& typeName); +void cR_hasMovableObjectFactory_c(struct hg3dclass_struct *classptr_c, char * typeName_c, int * result_c); +// original function: MovableObjectFactory* getMovableObjectFactory(const String& typeName); +void cR_getMovableObjectFactory_c(struct hg3dclass_struct *classptr_c, char * typeName_c, struct hg3dclass_struct * result_c); +// original function: uint32 _allocateNextMovableObjectTypeFlag(); +void cR__allocateNextMovableObjectTypeFlag_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// original function: unsigned int getDisplayMonitorCount(); +void cR_getDisplayMonitorCount_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); +// created constructor function from default constructor +void cR_newRoot_c(struct hg3dclass_struct *result_c);
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff