HGamer3D-Ogre-Binding 0.1.5 → 0.5.0
raw patch · 704 files changed
Files
- C2HS.hs +0/−238
- HGamer3D-Ogre-Binding.cabal +23/−26
- HGamer3D/Bindings/Ogre/ClassAnimation.chs +274/−0
- HGamer3D/Bindings/Ogre/ClassAnimation.hs +0/−481
- HGamer3D/Bindings/Ogre/ClassAnimationState.chs +159/−0
- HGamer3D/Bindings/Ogre/ClassAnimationState.hs +0/−259
- HGamer3D/Bindings/Ogre/ClassAnimationStateSet.chs +93/−0
- HGamer3D/Bindings/Ogre/ClassAnimationTrack.chs +87/−0
- HGamer3D/Bindings/Ogre/ClassAnimationTrack.hs +0/−166
- HGamer3D/Bindings/Ogre/ClassArchive.chs +86/−0
- HGamer3D/Bindings/Ogre/ClassArchive.hs +0/−242
- HGamer3D/Bindings/Ogre/ClassArchiveManager.chs +72/−0
- HGamer3D/Bindings/Ogre/ClassArchiveManager.hs +0/−99
- HGamer3D/Bindings/Ogre/ClassBillboard.chs +139/−0
- HGamer3D/Bindings/Ogre/ClassBillboard.hs +0/−269
- HGamer3D/Bindings/Ogre/ClassBillboardChain.chs +181/−0
- HGamer3D/Bindings/Ogre/ClassBillboardChain.hs +0/−295
- HGamer3D/Bindings/Ogre/ClassBillboardChainFactory.chs +61/−0
- HGamer3D/Bindings/Ogre/ClassBillboardChainFactory.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassBillboardSet.chs +312/−0
- HGamer3D/Bindings/Ogre/ClassBillboardSet.hs +0/−687
- HGamer3D/Bindings/Ogre/ClassBillboardSetFactory.chs +61/−0
- HGamer3D/Bindings/Ogre/ClassBillboardSetFactory.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassBone.chs +85/−0
- HGamer3D/Bindings/Ogre/ClassBone.hs +0/−173
- HGamer3D/Bindings/Ogre/ClassCamera.chs +364/−0
- HGamer3D/Bindings/Ogre/ClassCamera.hs +0/−780
- HGamer3D/Bindings/Ogre/ClassCmdManualNamedConstsFile.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassCmdPose.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassCompositionPass.hs +0/−584
- HGamer3D/Bindings/Ogre/ClassCompositionTargetPass.hs +0/−308
- HGamer3D/Bindings/Ogre/ClassCompositionTechnique.hs +0/−237
- HGamer3D/Bindings/Ogre/ClassCompositor.hs +0/−189
- HGamer3D/Bindings/Ogre/ClassCompositorChain.hs +0/−231
- HGamer3D/Bindings/Ogre/ClassCompositorInstance.hs +0/−248
- HGamer3D/Bindings/Ogre/ClassCompositorManager.hs +0/−208
- HGamer3D/Bindings/Ogre/ClassConfigFile.chs +93/−0
- HGamer3D/Bindings/Ogre/ClassConfigFile.hs +0/−147
- HGamer3D/Bindings/Ogre/ClassControllerManager.chs +97/−0
- HGamer3D/Bindings/Ogre/ClassControllerManager.hs +0/−176
- HGamer3D/Bindings/Ogre/ClassDataStream.hs +0/−232
- HGamer3D/Bindings/Ogre/ClassDefaultAxisAlignedBoxSceneQuery.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassDefaultPlaneBoundedVolumeListSceneQuery.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassDefaultRaySceneQuery.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassDefaultSceneManager.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassDefaultSceneManagerFactory.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassDefaultShadowCameraSetup.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassDefaultSphereSceneQuery.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassElement.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassEntity.chs +238/−0
- HGamer3D/Bindings/Ogre/ClassEntity.hs +0/−628
- HGamer3D/Bindings/Ogre/ClassEntityFactory.chs +61/−0
- HGamer3D/Bindings/Ogre/ClassEntityFactory.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassException.chs +89/−0
- HGamer3D/Bindings/Ogre/ClassException.hs +0/−147
- HGamer3D/Bindings/Ogre/ClassFileHandleDataStream.hs +0/−119
- HGamer3D/Bindings/Ogre/ClassFileNotFoundException.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassFileStreamDataStream.hs +0/−134
- HGamer3D/Bindings/Ogre/ClassFrustum.chs +268/−0
- HGamer3D/Bindings/Ogre/ClassFrustum.hs +0/−523
- HGamer3D/Bindings/Ogre/ClassGeometryBucket.hs +0/−88
- HGamer3D/Bindings/Ogre/ClassGpuProgram.hs +0/−390
- HGamer3D/Bindings/Ogre/ClassGpuProgramManager.hs +0/−162
- HGamer3D/Bindings/Ogre/ClassHG3DUtilities.chs +60/−0
- HGamer3D/Bindings/Ogre/ClassHardwareBufferLicensee.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassHardwareBufferManager.hs +0/−95
- HGamer3D/Bindings/Ogre/ClassHardwareBufferManagerBase.hs +0/−95
- HGamer3D/Bindings/Ogre/ClassHardwareIndexBuffer.hs +0/−113
- HGamer3D/Bindings/Ogre/ClassHardwareOcclusionQuery.hs +0/−121
- HGamer3D/Bindings/Ogre/ClassHardwarePixelBuffer.hs +0/−139
- HGamer3D/Bindings/Ogre/ClassHighLevelGpuProgram.hs +0/−75
- HGamer3D/Bindings/Ogre/ClassHighLevelGpuProgramFactory.hs +0/−75
- HGamer3D/Bindings/Ogre/ClassIOException.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassInternalErrorException.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassInvalidParametersException.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassInvalidStateException.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassItemIdentityException.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassKeyFrame.hs +0/−75
- HGamer3D/Bindings/Ogre/ClassLODBucket.hs +0/−86
- HGamer3D/Bindings/Ogre/ClassLiSPSMShadowCameraSetup.hs +0/−134
- HGamer3D/Bindings/Ogre/ClassLight.chs +293/−0
- HGamer3D/Bindings/Ogre/ClassLight.hs +0/−662
- HGamer3D/Bindings/Ogre/ClassLightFactory.chs +61/−0
- HGamer3D/Bindings/Ogre/ClassLightFactory.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassLog.chs +96/−0
- HGamer3D/Bindings/Ogre/ClassLogManager.chs +112/−0
- HGamer3D/Bindings/Ogre/ClassLogManager.hs +0/−115
- HGamer3D/Bindings/Ogre/ClassManualObject.chs +283/−0
- HGamer3D/Bindings/Ogre/ClassManualObject.hs +0/−541
- HGamer3D/Bindings/Ogre/ClassManualObjectFactory.chs +61/−0
- HGamer3D/Bindings/Ogre/ClassManualObjectFactory.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassManualObjectSection.chs +94/−0
- HGamer3D/Bindings/Ogre/ClassManualObjectSection.hs +0/−136
- HGamer3D/Bindings/Ogre/ClassManualObjectSectionShadowRenderable.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassMaterial.chs +228/−0
- HGamer3D/Bindings/Ogre/ClassMaterial.hs +0/−599
- HGamer3D/Bindings/Ogre/ClassMaterialBucket.hs +0/−112
- HGamer3D/Bindings/Ogre/ClassMaterialManager.chs +89/−0
- HGamer3D/Bindings/Ogre/ClassMaterialManager.hs +0/−239
- HGamer3D/Bindings/Ogre/ClassMaterialSerializer.hs +0/−143
- HGamer3D/Bindings/Ogre/ClassMemoryDataStream.hs +0/−158
- HGamer3D/Bindings/Ogre/ClassMesh.chs +235/−0
- HGamer3D/Bindings/Ogre/ClassMesh.hs +0/−643
- HGamer3D/Bindings/Ogre/ClassMeshManager.chs +84/−0
- HGamer3D/Bindings/Ogre/ClassMeshSerializer.hs +0/−78
- HGamer3D/Bindings/Ogre/ClassMovableObject.chs +233/−0
- HGamer3D/Bindings/Ogre/ClassMovableObject.hs +0/−501
- HGamer3D/Bindings/Ogre/ClassMovableObjectFactory.chs +67/−0
- HGamer3D/Bindings/Ogre/ClassMovableObjectFactory.hs +0/−110
- HGamer3D/Bindings/Ogre/ClassMultiRenderTarget.chs +60/−0
- HGamer3D/Bindings/Ogre/ClassMultiRenderTarget.hs +0/−100
- HGamer3D/Bindings/Ogre/ClassNode.chs +330/−0
- HGamer3D/Bindings/Ogre/ClassNode.hs +0/−710
- HGamer3D/Bindings/Ogre/ClassNodeAnimationTrack.chs +97/−0
- HGamer3D/Bindings/Ogre/ClassNodeAnimationTrack.hs +0/−167
- HGamer3D/Bindings/Ogre/ClassNumericAnimationTrack.chs +56/−0
- HGamer3D/Bindings/Ogre/ClassNumericAnimationTrack.hs +0/−89
- HGamer3D/Bindings/Ogre/ClassNumericKeyFrame.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassOverlay.hs +0/−316
- HGamer3D/Bindings/Ogre/ClassOverlayContainer.hs +0/−137
- HGamer3D/Bindings/Ogre/ClassOverlayManager.hs +0/−235
- HGamer3D/Bindings/Ogre/ClassPSSMShadowCameraSetup.hs +0/−136
- HGamer3D/Bindings/Ogre/ClassParticleAffector.hs +0/−75
- HGamer3D/Bindings/Ogre/ClassParticleEmitter.hs +0/−706
- HGamer3D/Bindings/Ogre/ClassParticleSystemFactory.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassPass.hs +0/−1864
- HGamer3D/Bindings/Ogre/ClassPatchMesh.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassPatchSurface.hs +0/−158
- HGamer3D/Bindings/Ogre/ClassPlaneOptimalShadowCameraSetup.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassPtr.chs +154/−0
- HGamer3D/Bindings/Ogre/ClassPtr.hs +0/−438
- HGamer3D/Bindings/Ogre/ClassRegion.hs +0/−124
- HGamer3D/Bindings/Ogre/ClassRenderObjectListener.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassRenderQueueInvocation.hs +0/−121
- HGamer3D/Bindings/Ogre/ClassRenderQueueInvocationSequence.hs +0/−132
- HGamer3D/Bindings/Ogre/ClassRenderSystem.chs +318/−0
- HGamer3D/Bindings/Ogre/ClassRenderSystemOperation.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassRenderTarget.chs +254/−0
- HGamer3D/Bindings/Ogre/ClassRenderTarget.hs +0/−455
- HGamer3D/Bindings/Ogre/ClassRenderTexture.chs +47/−0
- HGamer3D/Bindings/Ogre/ClassRenderTexture.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassRenderWindow.chs +149/−0
- HGamer3D/Bindings/Ogre/ClassRenderWindow.hs +0/−217
- HGamer3D/Bindings/Ogre/ClassRenderable.chs +123/−0
- HGamer3D/Bindings/Ogre/ClassRenderingAPIException.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassResource.chs +143/−0
- HGamer3D/Bindings/Ogre/ClassResourceGroupListener.hs +0/−230
- HGamer3D/Bindings/Ogre/ClassResourceGroupManager.chs +220/−0
- HGamer3D/Bindings/Ogre/ClassResourceGroupManager.hs +0/−638
- HGamer3D/Bindings/Ogre/ClassResourceManager.chs +136/−0
- HGamer3D/Bindings/Ogre/ClassResourceManager.hs +0/−297
- HGamer3D/Bindings/Ogre/ClassRibbonTrail.hs +0/−284
- HGamer3D/Bindings/Ogre/ClassRibbonTrailFactory.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassRoot.chs +343/−0
- HGamer3D/Bindings/Ogre/ClassRoot.hs +0/−726
- HGamer3D/Bindings/Ogre/ClassRuntimeAssertionException.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassSceneManager.chs +946/−0
- HGamer3D/Bindings/Ogre/ClassSceneManager.hs +0/−2414
- HGamer3D/Bindings/Ogre/ClassSceneManagerEnumerator.hs +0/−160
- HGamer3D/Bindings/Ogre/ClassSceneManagerFactory.chs +58/−0
- HGamer3D/Bindings/Ogre/ClassSceneManagerFactory.hs +0/−87
- HGamer3D/Bindings/Ogre/ClassSceneMgrQueuedRenderableVisitor.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassSceneNode.chs +189/−0
- HGamer3D/Bindings/Ogre/ClassSceneNode.hs +0/−490
- HGamer3D/Bindings/Ogre/ClassShadowCameraSetup.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassSimpleRenderable.hs +0/−75
- HGamer3D/Bindings/Ogre/ClassSkeleton.chs +184/−0
- HGamer3D/Bindings/Ogre/ClassSkeleton.hs +0/−375
- HGamer3D/Bindings/Ogre/ClassSkeletonInstance.hs +0/−147
- HGamer3D/Bindings/Ogre/ClassSkeletonManager.chs +59/−0
- HGamer3D/Bindings/Ogre/ClassSkeletonSerializer.hs +0/−78
- HGamer3D/Bindings/Ogre/ClassStaticGeometry.hs +0/−284
- HGamer3D/Bindings/Ogre/ClassStringConverter.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassStringUtil.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassSubEntity.hs +0/−262
- HGamer3D/Bindings/Ogre/ClassSubMesh.hs +0/−201
- HGamer3D/Bindings/Ogre/ClassTechnique.hs +0/−745
- HGamer3D/Bindings/Ogre/ClassTempBlendedBufferInfo.hs +0/−89
- HGamer3D/Bindings/Ogre/ClassTextureManager.chs +65/−0
- HGamer3D/Bindings/Ogre/ClassTextureManager.hs +0/−205
- HGamer3D/Bindings/Ogre/ClassTextureUnitState.hs +0/−1099
- HGamer3D/Bindings/Ogre/ClassTimeIndex.chs +63/−0
- HGamer3D/Bindings/Ogre/ClassTimeIndex.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassTransformKeyFrame.hs +0/−136
- HGamer3D/Bindings/Ogre/ClassUnimplementedException.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassVertexAnimationTrack.chs +88/−0
- HGamer3D/Bindings/Ogre/ClassVertexAnimationTrack.hs +0/−176
- HGamer3D/Bindings/Ogre/ClassVertexMorphKeyFrame.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassVertexPoseKeyFrame.hs +0/−73
- HGamer3D/Bindings/Ogre/ClassViewport.chs +290/−0
- HGamer3D/Bindings/Ogre/ClassViewport.hs +0/−538
- HGamer3D/Bindings/Ogre/ClassWindowEventListener.hs +0/−120
- HGamer3D/Bindings/Ogre/ClassWindowEventUtilities.chs +47/−0
- HGamer3D/Bindings/Ogre/ClassWindowEventUtilities.hs +0/−63
- HGamer3D/Bindings/Ogre/EnumACDataType.hs +0/−56
- HGamer3D/Bindings/Ogre/EnumAbstractNodeType.hs +0/−60
- HGamer3D/Bindings/Ogre/EnumAccessMode.hs +0/−62
- HGamer3D/Bindings/Ogre/EnumAlignment.hs +0/−56
- HGamer3D/Bindings/Ogre/EnumAngleUnit.hs +0/−55
- HGamer3D/Bindings/Ogre/EnumAnimationInterpolationMode.chs +41/−0
- HGamer3D/Bindings/Ogre/EnumAnimationRotationInterpolationMode.chs +41/−0
- HGamer3D/Bindings/Ogre/EnumAutoConstantType.hs +0/−180
- HGamer3D/Bindings/Ogre/EnumAxisAlignedBoxCorner.chs +41/−0
- HGamer3D/Bindings/Ogre/EnumAxisAlignedBoxExtent.chs +41/−0
- HGamer3D/Bindings/Ogre/EnumBillboardChainTexCoordDirection.chs +41/−0
- HGamer3D/Bindings/Ogre/EnumBillboardOrigin.chs +41/−0
- HGamer3D/Bindings/Ogre/EnumBillboardOrigin.hs +0/−62
- HGamer3D/Bindings/Ogre/EnumBillboardRotationType.chs +41/−0
- HGamer3D/Bindings/Ogre/EnumBillboardRotationType.hs +0/−55
- HGamer3D/Bindings/Ogre/EnumBillboardType.chs +41/−0
- HGamer3D/Bindings/Ogre/EnumBillboardType.hs +0/−58
- HGamer3D/Bindings/Ogre/EnumBindingType.hs +0/−62
- HGamer3D/Bindings/Ogre/EnumBorderCellIndex.hs +0/−80
- HGamer3D/Bindings/Ogre/EnumBoxPlane.hs +0/−74
- HGamer3D/Bindings/Ogre/EnumBufferLicenseType.hs +0/−55
- HGamer3D/Bindings/Ogre/EnumBufferType.hs +0/−57
- HGamer3D/Bindings/Ogre/EnumBuiltinHashFunction.hs +0/−55
- HGamer3D/Bindings/Ogre/EnumCacheType.hs +0/−55
- HGamer3D/Bindings/Ogre/EnumCapabilitiesCategory.hs +0/−71
- HGamer3D/Bindings/Ogre/EnumCapabilityKeywordType.hs +0/−77
- HGamer3D/Bindings/Ogre/EnumClipResult.hs +0/−65
- HGamer3D/Bindings/Ogre/EnumCompareFunction.hs +0/−61
- HGamer3D/Bindings/Ogre/EnumConcreteNodeType.hs +0/−61
- HGamer3D/Bindings/Ogre/EnumContentType.hs +0/−65
- HGamer3D/Bindings/Ogre/EnumCpuFeatures.hs +0/−95
- HGamer3D/Bindings/Ogre/EnumCullingMode.hs +0/−65
- HGamer3D/Bindings/Ogre/EnumDataStreamAccessMode.chs +41/−0
- HGamer3D/Bindings/Ogre/EnumDisplayMode.hs +0/−55
- HGamer3D/Bindings/Ogre/EnumElementType.hs +0/−55
- HGamer3D/Bindings/Ogre/EnumEndian.hs +0/−56
- HGamer3D/Bindings/Ogre/EnumEntityVertexDataBindChoice.chs +41/−0
- HGamer3D/Bindings/Ogre/EnumEnvMapType.hs +0/−57
- HGamer3D/Bindings/Ogre/EnumExceptionCode.chs +41/−0
- HGamer3D/Bindings/Ogre/EnumExceptionCodes.hs +0/−63
- HGamer3D/Bindings/Ogre/EnumExtent.hs +0/−56
- HGamer3D/Bindings/Ogre/EnumFaceGroupType.hs +0/−56
- HGamer3D/Bindings/Ogre/EnumFilter.hs +0/−59
- HGamer3D/Bindings/Ogre/EnumFilterOptions.hs +0/−57
- HGamer3D/Bindings/Ogre/EnumFilterType.hs +0/−56
- HGamer3D/Bindings/Ogre/EnumFogMode.hs +0/−57
- HGamer3D/Bindings/Ogre/EnumFontType.hs +0/−62
- HGamer3D/Bindings/Ogre/EnumFrameBuffer.hs +0/−56
- HGamer3D/Bindings/Ogre/EnumFrameBufferType.hs +0/−65
- HGamer3D/Bindings/Ogre/EnumFrameEventTimeType.hs +0/−71
- HGamer3D/Bindings/Ogre/EnumFrustumPlane.chs +41/−0
- HGamer3D/Bindings/Ogre/EnumFrustumPlane.hs +0/−74
- HGamer3D/Bindings/Ogre/EnumGPUVendor.hs +0/−92
- HGamer3D/Bindings/Ogre/EnumGpuConstantType.hs +0/−128
- HGamer3D/Bindings/Ogre/EnumGpuParamVariability.hs +0/−71
- HGamer3D/Bindings/Ogre/EnumGpuProgramType.chs +41/−0
- HGamer3D/Bindings/Ogre/EnumGpuProgramType.hs +0/−56
- HGamer3D/Bindings/Ogre/EnumGuiHorizontalAlignment.hs +0/−56
- HGamer3D/Bindings/Ogre/EnumGuiMetricsMode.hs +0/−56
- HGamer3D/Bindings/Ogre/EnumGuiVerticalAlignment.hs +0/−56
- HGamer3D/Bindings/Ogre/EnumIlluminationPassesState.hs +0/−65
- HGamer3D/Bindings/Ogre/EnumIlluminationRenderStage.hs +0/−56
- HGamer3D/Bindings/Ogre/EnumIlluminationStage.hs +0/−57
- HGamer3D/Bindings/Ogre/EnumImageFlags.hs +0/−65
- HGamer3D/Bindings/Ogre/EnumIncludeOrExclude.hs +0/−62
- HGamer3D/Bindings/Ogre/EnumIndexType.hs +0/−55
- HGamer3D/Bindings/Ogre/EnumInputMode.hs +0/−55
- HGamer3D/Bindings/Ogre/EnumInterpolationMode.hs +0/−55
- HGamer3D/Bindings/Ogre/EnumLayerBlendOperation.hs +0/−57
- HGamer3D/Bindings/Ogre/EnumLayerBlendOperationEx.hs +0/−68
- HGamer3D/Bindings/Ogre/EnumLayerBlendSource.hs +0/−58
- HGamer3D/Bindings/Ogre/EnumLayerBlendType.hs +0/−55
- HGamer3D/Bindings/Ogre/EnumLightType.chs +41/−0
- HGamer3D/Bindings/Ogre/EnumLightTypes.hs +0/−65
- HGamer3D/Bindings/Ogre/EnumLoadingState.hs +0/−59
- HGamer3D/Bindings/Ogre/EnumLockOptions.hs +0/−57
- HGamer3D/Bindings/Ogre/EnumLogMessageLevel.chs +41/−0
- HGamer3D/Bindings/Ogre/EnumLogMessageLevel.hs +0/−65
- HGamer3D/Bindings/Ogre/EnumLoggingLevel.chs +41/−0
- HGamer3D/Bindings/Ogre/EnumLoggingLevel.hs +0/−65
- HGamer3D/Bindings/Ogre/EnumManualCullingMode.hs +0/−65
- HGamer3D/Bindings/Ogre/EnumMaterialScriptSection.hs +0/−62
- HGamer3D/Bindings/Ogre/EnumMathAngleUnit.chs +41/−0
- HGamer3D/Bindings/Ogre/EnumMemoryCategory.hs +0/−83
- HGamer3D/Bindings/Ogre/EnumMeshBuildType.hs +0/−56
- HGamer3D/Bindings/Ogre/EnumMeshManagerMeshBuildType.chs +41/−0
- HGamer3D/Bindings/Ogre/EnumNodeTransformSpace.chs +41/−0
- HGamer3D/Bindings/Ogre/EnumOperationType.hs +0/−74
- HGamer3D/Bindings/Ogre/EnumOrganisationMode.hs +0/−65
- HGamer3D/Bindings/Ogre/EnumOrientationMode.chs +41/−0
- HGamer3D/Bindings/Ogre/EnumOrientationMode.hs +0/−77
- HGamer3D/Bindings/Ogre/EnumParameterType.hs +0/−67
- HGamer3D/Bindings/Ogre/EnumParseAction.hs +0/−56
- HGamer3D/Bindings/Ogre/EnumParticleType.hs +0/−55
- HGamer3D/Bindings/Ogre/EnumPassType.hs +0/−58
- HGamer3D/Bindings/Ogre/EnumPatchSurfaceType.hs +0/−54
- HGamer3D/Bindings/Ogre/EnumPixelComponentType.hs +0/−71
- HGamer3D/Bindings/Ogre/EnumPixelFormat.hs +0/−206
- HGamer3D/Bindings/Ogre/EnumPixelFormatFlags.hs +0/−74
- HGamer3D/Bindings/Ogre/EnumPolygonMode.hs +0/−65
- HGamer3D/Bindings/Ogre/EnumPrefabType.hs +0/−56
- HGamer3D/Bindings/Ogre/EnumProfileGroupMask.hs +0/−71
- HGamer3D/Bindings/Ogre/EnumPrograms.hs +0/−80
- HGamer3D/Bindings/Ogre/EnumProjectionType.chs +41/−0
- HGamer3D/Bindings/Ogre/EnumProjectionType.hs +0/−55
- HGamer3D/Bindings/Ogre/EnumRealStorageFormat.hs +0/−55
- HGamer3D/Bindings/Ogre/EnumRenderOperationOperationType.chs +41/−0
- HGamer3D/Bindings/Ogre/EnumRenderQueueGroupID.hs +0/−104
- HGamer3D/Bindings/Ogre/EnumRenderTargetFrameBuffer.chs +41/−0
- HGamer3D/Bindings/Ogre/EnumRenderTargetStatFlags.chs +41/−0
- HGamer3D/Bindings/Ogre/EnumRequestType.hs +0/−80
- HGamer3D/Bindings/Ogre/EnumResourceType.hs +0/−57
- HGamer3D/Bindings/Ogre/EnumRootFrameEventTimeType.chs +41/−0
- HGamer3D/Bindings/Ogre/EnumRotationInterpolationMode.hs +0/−55
- HGamer3D/Bindings/Ogre/EnumSceneBlendFactor.hs +0/−63
- HGamer3D/Bindings/Ogre/EnumSceneBlendOperation.hs +0/−58
- HGamer3D/Bindings/Ogre/EnumSceneBlendType.hs +0/−58
- HGamer3D/Bindings/Ogre/EnumSceneManagerBoxPlane.chs +41/−0
- HGamer3D/Bindings/Ogre/EnumSceneManagerIlluminationRenderStage.chs +41/−0
- HGamer3D/Bindings/Ogre/EnumSceneManagerPrefabType.chs +41/−0
- HGamer3D/Bindings/Ogre/EnumSceneManagerSpecialCaseRenderQueueMode.chs +41/−0
- HGamer3D/Bindings/Ogre/EnumSceneType.chs +41/−0
- HGamer3D/Bindings/Ogre/EnumSceneType.hs +0/−71
- HGamer3D/Bindings/Ogre/EnumSerializeEvent.hs +0/−57
- HGamer3D/Bindings/Ogre/EnumShadeOptions.hs +0/−56
- HGamer3D/Bindings/Ogre/EnumShadowRenderableFlags.hs +0/−65
- HGamer3D/Bindings/Ogre/EnumShadowTechnique.hs +0/−92
- HGamer3D/Bindings/Ogre/EnumSharedPtrFreeMethod.hs +0/−56
- HGamer3D/Bindings/Ogre/EnumSide.hs +0/−57
- HGamer3D/Bindings/Ogre/EnumSkeletonAnimationBlendMode.chs +41/−0
- HGamer3D/Bindings/Ogre/EnumSkeletonAnimationBlendMode.hs +0/−55
- HGamer3D/Bindings/Ogre/EnumSkeletonChunkID.hs +0/−77
- HGamer3D/Bindings/Ogre/EnumSortMode.hs +0/−55
- HGamer3D/Bindings/Ogre/EnumSpecialCaseRenderQueueMode.hs +0/−55
- HGamer3D/Bindings/Ogre/EnumStatFlags.hs +0/−77
- HGamer3D/Bindings/Ogre/EnumStatus.hs +0/−71
- HGamer3D/Bindings/Ogre/EnumStencilOperation.chs +41/−0
- HGamer3D/Bindings/Ogre/EnumStencilOperation.hs +0/−61
- HGamer3D/Bindings/Ogre/EnumTargetMode.hs +0/−55
- HGamer3D/Bindings/Ogre/EnumTexCoordCalcMethod.chs +41/−0
- HGamer3D/Bindings/Ogre/EnumTexCoordCalcMethod.hs +0/−59
- HGamer3D/Bindings/Ogre/EnumTexCoordDirection.hs +0/−55
- HGamer3D/Bindings/Ogre/EnumTextureAddressingMode.hs +0/−57
- HGamer3D/Bindings/Ogre/EnumTextureCubeFace.hs +0/−74
- HGamer3D/Bindings/Ogre/EnumTextureEffectType.hs +0/−60
- HGamer3D/Bindings/Ogre/EnumTextureFilterOptions.hs +0/−57
- HGamer3D/Bindings/Ogre/EnumTextureMipmap.hs +0/−62
- HGamer3D/Bindings/Ogre/EnumTextureScope.hs +0/−56
- HGamer3D/Bindings/Ogre/EnumTextureTransformType.hs +0/−58
- HGamer3D/Bindings/Ogre/EnumTextureType.hs +0/−68
- HGamer3D/Bindings/Ogre/EnumTrackVertexColourEnum.hs +0/−71
- HGamer3D/Bindings/Ogre/EnumTransformSpace.hs +0/−56
- HGamer3D/Bindings/Ogre/EnumUsage.hs +0/−77
- HGamer3D/Bindings/Ogre/EnumValueType.hs +0/−62
- HGamer3D/Bindings/Ogre/EnumVertexAnimationTrackTargetMode.chs +41/−0
- HGamer3D/Bindings/Ogre/EnumVertexAnimationType.chs +41/−0
- HGamer3D/Bindings/Ogre/EnumVertexAnimationType.hs +0/−65
- HGamer3D/Bindings/Ogre/EnumVertexDataBindChoice.hs +0/−57
- HGamer3D/Bindings/Ogre/EnumVertexElementSemantic.hs +0/−83
- HGamer3D/Bindings/Ogre/EnumVertexElementType.hs +0/−92
- HGamer3D/Bindings/Ogre/EnumVertexReductionQuota.hs +0/−55
- HGamer3D/Bindings/Ogre/EnumVisibleSide.hs +0/−56
- HGamer3D/Bindings/Ogre/EnumWaveformType.hs +0/−59
- HGamer3D/Bindings/Ogre/EnumWorldFragmentType.hs +0/−58
- HGamer3D/Bindings/Ogre/EnumeTexturePlayMode.hs +0/−65
- HGamer3D/Bindings/Ogre/StructColour.chs +67/−0
- HGamer3D/Bindings/Ogre/StructDegrees.chs +61/−0
- HGamer3D/Bindings/Ogre/StructHG3DClass.chs +54/−0
- HGamer3D/Bindings/Ogre/StructQuaternion.chs +76/−0
- HGamer3D/Bindings/Ogre/StructRadians.chs +62/−0
- HGamer3D/Bindings/Ogre/StructSharedPtr.chs +70/−0
- HGamer3D/Bindings/Ogre/StructVec2.chs +72/−0
- HGamer3D/Bindings/Ogre/StructVec3.chs +72/−0
- HGamer3D/Bindings/Ogre/TypeColour.hs +0/−75
- HGamer3D/Bindings/Ogre/TypeDegree.hs +0/−69
- HGamer3D/Bindings/Ogre/TypeHG3DClass.hs +0/−59
- HGamer3D/Bindings/Ogre/TypeQuaternion.hs +0/−76
- HGamer3D/Bindings/Ogre/TypeRadian.hs +0/−69
- HGamer3D/Bindings/Ogre/TypeSharedPtr.hs +0/−78
- HGamer3D/Bindings/Ogre/TypeVector2.hs +0/−71
- HGamer3D/Bindings/Ogre/TypeVector3.hs +0/−74
- HGamer3D/Bindings/Ogre/TypeVector4.hs +0/−75
- HGamer3D/Bindings/Ogre/Utils.chs +132/−0
- HGamer3D/Bindings/Ogre/Utils.hs +0/−108
- LICENSE +13/−13
- Setup.hs +21/−22
- include/ClassAnimation.h +140/−84
- include/ClassAnimationState.h +73/−48
- include/ClassAnimationStateSet.h +58/−0
- include/ClassAnimationTrack.h +34/−31
- include/ClassArchive.h +33/−43
- include/ClassArchiveManager.h +26/−21
- include/ClassBillboard.h +62/−50
- include/ClassBillboardChain.h +89/−54
- include/ClassBillboardChainFactory.h +22/−17
- include/ClassBillboardSet.h +166/−126
- include/ClassBillboardSetFactory.h +22/−17
- include/ClassBone.h +31/−33
- include/ClassCamera.h +197/−138
- include/ClassCmdManualNamedConstsFile.h +0/−38
- include/ClassCmdPose.h +0/−38
- include/ClassCompositionPass.h +0/−131
- include/ClassCompositionTargetPass.h +0/−81
- include/ClassCompositionTechnique.h +0/−68
- include/ClassCompositor.h +0/−59
- include/ClassCompositorChain.h +0/−67
- include/ClassCompositorInstance.h +0/−69
- include/ClassCompositorManager.h +0/−63
- include/ClassConfigFile.h +33/−30
- include/ClassControllerManager.h +41/−33
- include/ClassDataStream.h +0/−66
- include/ClassDefaultAxisAlignedBoxSceneQuery.h +0/−38
- include/ClassDefaultPlaneBoundedVolumeListSceneQuery.h +0/−38
- include/ClassDefaultRaySceneQuery.h +0/−38
- include/ClassDefaultSceneManager.h +0/−38
- include/ClassDefaultSceneManagerFactory.h +0/−38
- include/ClassDefaultShadowCameraSetup.h +0/−38
- include/ClassDefaultSphereSceneQuery.h +0/−38
- include/ClassElement.h +0/−38
- include/ClassEntity.h +125/−111
- include/ClassEntityFactory.h +22/−17
- include/ClassException.h +32/−27
- include/ClassFileHandleDataStream.h +0/−48
- include/ClassFileNotFoundException.h +0/−38
- include/ClassFileStreamDataStream.h +0/−50
- include/ClassFrustum.h +140/−97
- include/ClassGeometryBucket.h +0/−43
- include/ClassGpuProgram.h +0/−95
- include/ClassGpuProgramManager.h +0/−52
- include/ClassHG3DUtilities.h +44/−0
- include/ClassHardwareBufferLicensee.h +0/−38
- include/ClassHardwareBufferManager.h +0/−44
- include/ClassHardwareBufferManagerBase.h +0/−44
- include/ClassHardwareIndexBuffer.h +0/−47
- include/ClassHardwareOcclusionQuery.h +0/−48
- include/ClassHardwarePixelBuffer.h +0/−52
- include/ClassHighLevelGpuProgram.h +0/−40
- include/ClassHighLevelGpuProgramFactory.h +0/−40
- include/ClassIOException.h +0/−38
- include/ClassInternalErrorException.h +0/−38
- include/ClassInvalidParametersException.h +0/−38
- include/ClassInvalidStateException.h +0/−38
- include/ClassItemIdentityException.h +0/−38
- include/ClassKeyFrame.h +0/−40
- include/ClassLODBucket.h +0/−42
- include/ClassLiSPSMShadowCameraSetup.h +0/−51
- include/ClassLight.h +150/−118
- include/ClassLightFactory.h +22/−17
- include/ClassLog.h +62/−0
- include/ClassLogManager.h +44/−23
- include/ClassManualObject.h +137/−97
- include/ClassManualObjectFactory.h +22/−17
- include/ClassManualObjectSection.h +40/−30
- include/ClassManualObjectSectionShadowRenderable.h +0/−38
- include/ClassMaterial.h +109/−109
- include/ClassMaterialBucket.h +0/−47
- include/ClassMaterialManager.h +36/−45
- include/ClassMaterialSerializer.h +0/−51
- include/ClassMemoryDataStream.h +0/−54
- include/ClassMesh.h +122/−114
- include/ClassMeshManager.h +58/−0
- include/ClassMeshSerializer.h +0/−41
- include/ClassMovableObject.h +125/−89
- include/ClassMovableObjectFactory.h +25/−25
- include/ClassMultiRenderTarget.h +19/−24
- include/ClassNode.h +163/−123
- include/ClassNodeAnimationTrack.h +38/−31
- include/ClassNumericAnimationTrack.h +17/−21
- include/ClassNumericKeyFrame.h +0/−38
- include/ClassOverlay.h +0/−83
- include/ClassOverlayContainer.h +0/−52
- include/ClassOverlayManager.h +0/−68
- include/ClassPSSMShadowCameraSetup.h +0/−50
- include/ClassParticleAffector.h +0/−40
- include/ClassParticleEmitter.h +0/−151
- include/ClassParticleSystemFactory.h +0/−38
- include/ClassPass.h +0/−354
- include/ClassPatchMesh.h +0/−38
- include/ClassPatchSurface.h +0/−54
- include/ClassPlaneOptimalShadowCameraSetup.h +0/−38
- include/ClassPtr.h +130/−353
- include/ClassRegion.h +0/−49
- include/ClassRenderObjectListener.h +0/−38
- include/ClassRenderQueueInvocation.h +0/−48
- include/ClassRenderQueueInvocationSequence.h +0/−50
- include/ClassRenderSystem.h +190/−0
- include/ClassRenderSystemOperation.h +0/−38
- include/ClassRenderTarget.h +127/−80
- include/ClassRenderTexture.h +12/−17
- include/ClassRenderWindow.h +65/−40
- include/ClassRenderable.h +79/−0
- include/ClassRenderingAPIException.h +0/−38
- include/ClassResource.h +94/−0
- include/ClassResourceGroupListener.h +0/−69
- include/ClassResourceGroupManager.h +99/−106
- include/ClassResourceManager.h +62/−54
- include/ClassRibbonTrail.h +0/−75
- include/ClassRibbonTrailFactory.h +0/−38
- include/ClassRoot.h +185/−125
- include/ClassRuntimeAssertionException.h +0/−38
- include/ClassSceneManager.h +530/−416
- include/ClassSceneManagerEnumerator.h +0/−54
- include/ClassSceneManagerFactory.h +19/−21
- include/ClassSceneMgrQueuedRenderableVisitor.h +0/−38
- include/ClassSceneNode.h +90/−87
- include/ClassShadowCameraSetup.h +0/−38
- include/ClassSimpleRenderable.h +0/−40
- include/ClassSkeleton.h +87/−66
- include/ClassSkeletonInstance.h +0/−52
- include/ClassSkeletonManager.h +42/−0
- include/ClassSkeletonSerializer.h +0/−41
- include/ClassStaticGeometry.h +0/−78
- include/ClassStringConverter.h +0/−38
- include/ClassStringUtil.h +0/−38
- include/ClassSubEntity.h +0/−73
- include/ClassSubMesh.h +0/−63
- include/ClassTechnique.h +0/−161
- include/ClassTempBlendedBufferInfo.h +0/−42
- include/ClassTextureManager.h +23/−37
- include/ClassTextureUnitState.h +0/−225
- include/ClassTimeIndex.h +21/−17
- include/ClassTransformKeyFrame.h +0/−52
- include/ClassUnimplementedException.h +0/−38
- include/ClassVertexAnimationTrack.h +36/−36
- include/ClassVertexMorphKeyFrame.h +0/−38
- include/ClassVertexPoseKeyFrame.h +0/−40
- include/ClassViewport.h +145/−95
- include/ClassWindowEventListener.h +0/−48
- include/ClassWindowEventUtilities.h +12/−17
- include/EnumACDataType.h +0/−46
- include/EnumAbstractNodeType.h +0/−48
- include/EnumAccessMode.h +0/−43
- include/EnumAlignment.h +0/−44
- include/EnumAngleUnit.h +0/−43
- include/EnumAnimationInterpolationMode.h +33/−0
- include/EnumAnimationRotationInterpolationMode.h +33/−0
- include/EnumAutoConstantType.h +0/−481
- include/EnumAxisAlignedBoxCorner.h +39/−0
- include/EnumAxisAlignedBoxExtent.h +34/−0
- include/EnumBillboardChainTexCoordDirection.h +33/−0
- include/EnumBillboardOrigin.h +20/−30
- include/EnumBillboardRotationType.h +13/−25
- include/EnumBillboardType.h +16/−31
- include/EnumBindingType.h +0/−47
- include/EnumBorderCellIndex.h +0/−48
- include/EnumBoxPlane.h +0/−47
- include/EnumBufferLicenseType.h +0/−45
- include/EnumBufferType.h +0/−44
- include/EnumBuiltinHashFunction.h +0/−48
- include/EnumCacheType.h +0/−41
- include/EnumCapabilitiesCategory.h +0/−47
- include/EnumCapabilityKeywordType.h +0/−40
- include/EnumClipResult.h +0/−47
- include/EnumCompareFunction.h +0/−49
- include/EnumConcreteNodeType.h +0/−49
- include/EnumContentType.h +0/−47
- include/EnumCpuFeatures.h +0/−60
- include/EnumCullingMode.h +0/−47
- include/EnumDataStreamAccessMode.h +33/−0
- include/EnumDisplayMode.h +0/−45
- include/EnumElementType.h +0/−42
- include/EnumEndian.h +0/−47
- include/EnumEntityVertexDataBindChoice.h +35/−0
- include/EnumEnvMapType.h +0/−49
- include/EnumExceptionCode.h +41/−0
- include/EnumExceptionCodes.h +0/−50
- include/EnumExtent.h +0/−44
- include/EnumFaceGroupType.h +0/−43
- include/EnumFilter.h +0/−47
- include/EnumFilterOptions.h +0/−49
- include/EnumFilterType.h +0/−47
- include/EnumFogMode.h +0/−49
- include/EnumFontType.h +0/−45
- include/EnumFrameBuffer.h +0/−44
- include/EnumFrameBufferType.h +0/−43
- include/EnumFrameEventTimeType.h +0/−45
- include/EnumFrustumPlane.h +17/−27
- include/EnumGPUVendor.h +0/−55
- include/EnumGpuConstantType.h +0/−65
- include/EnumGpuParamVariability.h +0/−54
- include/EnumGpuProgramType.h +14/−24
- include/EnumGuiHorizontalAlignment.h +0/−44
- include/EnumGuiMetricsMode.h +0/−47
- include/EnumGuiVerticalAlignment.h +0/−44
- include/EnumIlluminationPassesState.h +0/−44
- include/EnumIlluminationRenderStage.h +0/−47
- include/EnumIlluminationStage.h +0/−49
- include/EnumImageFlags.h +0/−44
- include/EnumIncludeOrExclude.h +0/−45
- include/EnumIndexType.h +0/−42
- include/EnumInputMode.h +0/−43
- include/EnumInterpolationMode.h +0/−45
- include/EnumLayerBlendOperation.h +0/−49
- include/EnumLayerBlendOperationEx.h +0/−70
- include/EnumLayerBlendSource.h +0/−51
- include/EnumLayerBlendType.h +0/−43
- include/EnumLightType.h +34/−0
- include/EnumLightTypes.h +0/−47
- include/EnumLoadingState.h +0/−53
- include/EnumLockOptions.h +0/−57
- include/EnumLogMessageLevel.h +14/−24
- include/EnumLoggingLevel.h +14/−24
- include/EnumManualCullingMode.h +0/−47
- include/EnumMaterialScriptSection.h +0/−50
- include/EnumMathAngleUnit.h +33/−0
- include/EnumMemoryCategory.h +0/−61
- include/EnumMeshBuildType.h +0/−44
- include/EnumMeshManagerMeshBuildType.h +34/−0
- include/EnumNodeTransformSpace.h +34/−0
- include/EnumOperationType.h +0/−52
- include/EnumOrganisationMode.h +0/−49
- include/EnumOrientationMode.h +18/−29
- include/EnumParameterType.h +0/−55
- include/EnumParseAction.h +0/−39
- include/EnumParticleType.h +0/−43
- include/EnumPassType.h +0/−46
- include/EnumPatchSurfaceType.h +0/−43
- include/EnumPixelComponentType.h +0/−46
- include/EnumPixelFormat.h +0/−151
- include/EnumPixelFormatFlags.h +0/−55
- include/EnumPolygonMode.h +0/−47
- include/EnumPrefabType.h +0/−43
- include/EnumProfileGroupMask.h +0/−51
- include/EnumPrograms.h +0/−58
- include/EnumProjectionType.h +13/−23
- include/EnumRealStorageFormat.h +0/−45
- include/EnumRenderOperationOperationType.h +37/−0
- include/EnumRenderQueueGroupID.h +0/−63
- include/EnumRenderTargetFrameBuffer.h +34/−0
- include/EnumRenderTargetStatFlags.h +38/−0
- include/EnumRequestType.h +0/−49
- include/EnumResourceType.h +0/−45
- include/EnumRootFrameEventTimeType.h +36/−0
- include/EnumRotationInterpolationMode.h +0/−49
- include/EnumSceneBlendFactor.h +0/−52
- include/EnumSceneBlendOperation.h +0/−46
- include/EnumSceneBlendType.h +0/−52
- include/EnumSceneManagerBoxPlane.h +37/−0
- include/EnumSceneManagerIlluminationRenderStage.h +34/−0
- include/EnumSceneManagerPrefabType.h +34/−0
- include/EnumSceneManagerSpecialCaseRenderQueueMode.h +33/−0
- include/EnumSceneType.h +16/−26
- include/EnumSerializeEvent.h +0/−45
- include/EnumShadeOptions.h +0/−44
- include/EnumShadowRenderableFlags.h +0/−47
- include/EnumShadowTechnique.h +0/−122
- include/EnumSharedPtrFreeMethod.h +0/−47
- include/EnumSide.h +0/−45
- include/EnumSkeletonAnimationBlendMode.h +13/−24
- include/EnumSkeletonChunkID.h +0/−86
- include/EnumSortMode.h +0/−45
- include/EnumSpecialCaseRenderQueueMode.h +0/−45
- include/EnumStatFlags.h +0/−48
- include/EnumStatus.h +0/−46
- include/EnumStencilOperation.h +19/−37
- include/EnumTargetMode.h +0/−46
- include/EnumTexCoordCalcMethod.h +17/−31
- include/EnumTexCoordDirection.h +0/−45
- include/EnumTextureAddressingMode.h +0/−49
- include/EnumTextureCubeFace.h +0/−47
- include/EnumTextureEffectType.h +0/−56
- include/EnumTextureFilterOptions.h +0/−49
- include/EnumTextureMipmap.h +0/−45
- include/EnumTextureScope.h +0/−46
- include/EnumTextureTransformType.h +0/−46
- include/EnumTextureType.h +0/−49
- include/EnumTrackVertexColourEnum.h +0/−45
- include/EnumTransformSpace.h +0/−47
- include/EnumUsage.h +0/−79
- include/EnumValueType.h +0/−50
- include/EnumVertexAnimationTrackTargetMode.h +33/−0
- include/EnumVertexAnimationType.h +14/−27
- include/EnumVertexDataBindChoice.h +0/−45
- include/EnumVertexElementSemantic.h +0/−59
- include/EnumVertexElementType.h +0/−56
- include/EnumVertexReductionQuota.h +0/−45
- include/EnumVisibleSide.h +0/−46
- include/EnumWaveformType.h +0/−54
- include/EnumWorldFragmentType.h +0/−50
- include/EnumeTexturePlayMode.h +0/−44
- include/HG3DUtilities.h +31/−0
- include/OgreDllDefines.h +20/−24
- include/StructColour.h +36/−0
- include/StructDegrees.h +34/−0
- include/StructHG3DClass.h +34/−0
- include/StructQuaternion.h +36/−0
- include/StructRadians.h +33/−0
- include/StructSharedPtr.h +35/−0
- include/StructVec2.h +34/−0
- include/StructVec3.h +35/−0
- include/TypeColour.h +0/−43
- include/TypeDegree.h +0/−40
- include/TypeHG3DClass.h +0/−41
- include/TypeQuaternion.h +0/−43
- include/TypeRadian.h +0/−40
- include/TypeSharedPtr.h +0/−42
- include/TypeVector2.h +0/−41
- include/TypeVector3.h +0/−42
- include/TypeVector4.h +0/−43
- include/Utils.h +0/−22
- include/WindowUtilsHG3D.h +66/−0
- include/colorvalue_struct.h +6/−0
- include/degree_struct.h +3/−0
- include/hg3dstruct.h +4/−0
- include/quaternion_struct.h +6/−0
- include/radian_struct.h +3/−0
- include/sharedptr_struct.h +5/−0
- include/vector2_struct.h +4/−0
- include/vector3_struct.h +5/−0
- include/vector4_struct.h +6/−0
− C2HS.hs
@@ -1,238 +0,0 @@--- 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
HGamer3D-Ogre-Binding.cabal view
@@ -1,41 +1,38 @@ Name: HGamer3D-Ogre-Binding -Version: 0.1.5 -Synopsis: Library to enable 3D game development for Haskell - Ogre Bindings +Version: 0.5.0 +Synopsis: Ogre Binding for HGamer3D Description: - Library, to enable 3D game development for Haskell, - based on bindings to 3D Graphics, Audio and GUI libraries. - THIS MODULE: Ogre Bindings - List of features and modules: - Data Module (Basic Data Types), - OGRE Binding (3D Graphics Engine), - OIS Binding (Input System), - cAudio Binding (Audio), - CEGUI Binding (GUI System), - APIs (Haskell style APIs, different ways, to approach API) - Platform: Windows only - License: Apache License, Version 2.0 - Install: see http://www.althainz.de/HGamer3D/Download-and-Installation.html + HGamer3D is a toolset for developing 3D games in the programming + language Haskell. This package provides the Ogre binding. + HGamer3D-Ogre-Binding is available on Windows and Linux. + This binding does not claim to have full coverage of Ogre + functionality, but only to support what is needed for the + HGamer3D-Graphics3D package. + License: OtherLicense License-file: LICENSE Author: Peter Althainz -Maintainer: althainz@googlemail.com +Maintainer: althainz@gmail.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/TypeVector4.h,include/TypeVector2.h,include/TypeVector3.h,include/TypeQuaternion.h,include/TypeHG3DClass.h,include/TypeRadian.h,include/TypeColour.h,include/TypeSharedPtr.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/ClassHardwareBufferLicensee.h,include/ClassPlaneOptimalShadowCameraSetup.h,include/ClassFileStreamDataStream.h,include/ClassPatchMesh.h,include/ClassRenderQueueInvocation.h,include/ClassDefaultRaySceneQuery.h,include/ClassTextureManager.h,include/ClassHardwareBufferManagerBase.h,include/ClassSubMesh.h,include/ClassBillboardChain.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/ClassAnimation.h,include/ClassSceneNode.h,include/ClassTimeIndex.h,include/ClassAnimationTrack.h,include/ClassRegion.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/ClassRenderWindow.h,include/ClassShadowCameraSetup.h,include/ClassRuntimeAssertionException.h,include/ClassRibbonTrailFactory.h,include/ClassSubEntity.h,include/ClassManualObject.h,include/ClassWindowEventListener.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/ClassResourceManager.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/ClassUnimplementedException.h,include/ClassRenderQueueInvocationSequence.h,include/ClassDefaultAxisAlignedBoxSceneQuery.h,include/ClassMaterialManager.h,include/ClassCamera.h +Cabal-Version: >=1.4 +Homepage: http://www.hgamer3d.org +Category: Game Engine, Graphics +Extra-source-files: Setup.hs, include/ClassAnimation.h, include/ClassAnimationState.h, include/ClassAnimationStateSet.h, include/ClassAnimationTrack.h, include/ClassArchive.h, include/ClassArchiveManager.h, include/ClassBillboard.h, include/ClassBillboardChain.h, include/ClassBillboardChainFactory.h, include/ClassBillboardSet.h, include/ClassBillboardSetFactory.h, include/ClassBone.h, include/ClassCamera.h, include/ClassConfigFile.h, include/ClassControllerManager.h, include/ClassEntity.h, include/ClassEntityFactory.h, include/ClassException.h, include/ClassFrustum.h, include/ClassHG3DUtilities.h, include/ClassLight.h, include/ClassLightFactory.h, include/ClassLog.h, include/ClassLogManager.h, include/ClassManualObject.h, include/ClassManualObjectFactory.h, include/ClassManualObjectSection.h, include/ClassMaterial.h, include/ClassMaterialManager.h, include/ClassMesh.h, include/ClassMeshManager.h, include/ClassMovableObject.h, include/ClassMovableObjectFactory.h, include/ClassMultiRenderTarget.h, include/ClassNode.h, include/ClassNodeAnimationTrack.h, include/ClassNumericAnimationTrack.h, include/ClassPtr.h, include/ClassRenderable.h, include/ClassRenderSystem.h, include/ClassRenderTarget.h, include/ClassRenderTexture.h, include/ClassRenderWindow.h, include/ClassResource.h, include/ClassResourceGroupManager.h, include/ClassResourceManager.h, include/ClassRoot.h, include/ClassSceneManager.h, include/ClassSceneManagerFactory.h, include/ClassSceneNode.h, include/ClassSkeleton.h, include/ClassSkeletonManager.h, include/ClassTextureManager.h, include/ClassTimeIndex.h, include/ClassVertexAnimationTrack.h, include/ClassViewport.h, include/ClassWindowEventUtilities.h, include/colorvalue_struct.h, include/degree_struct.h, include/EnumAnimationInterpolationMode.h, include/EnumAnimationRotationInterpolationMode.h, include/EnumAxisAlignedBoxCorner.h, include/EnumAxisAlignedBoxExtent.h, include/EnumBillboardChainTexCoordDirection.h, include/EnumBillboardOrigin.h, include/EnumBillboardRotationType.h, include/EnumBillboardType.h, include/EnumDataStreamAccessMode.h, include/EnumEntityVertexDataBindChoice.h, include/EnumExceptionCode.h, include/EnumFrustumPlane.h, include/EnumGpuProgramType.h, include/EnumLightType.h, include/EnumLoggingLevel.h, include/EnumLogMessageLevel.h, include/EnumMathAngleUnit.h, include/EnumMeshManagerMeshBuildType.h, include/EnumNodeTransformSpace.h, include/EnumOrientationMode.h, include/EnumProjectionType.h, include/EnumRenderOperationOperationType.h, include/EnumRenderTargetFrameBuffer.h, include/EnumRenderTargetStatFlags.h, include/EnumRootFrameEventTimeType.h, include/EnumSceneManagerBoxPlane.h, include/EnumSceneManagerIlluminationRenderStage.h, include/EnumSceneManagerPrefabType.h, include/EnumSceneManagerSpecialCaseRenderQueueMode.h, include/EnumSceneType.h, include/EnumSkeletonAnimationBlendMode.h, include/EnumStencilOperation.h, include/EnumTexCoordCalcMethod.h, include/EnumVertexAnimationTrackTargetMode.h, include/EnumVertexAnimationType.h, include/hg3dstruct.h, include/HG3DUtilities.h, include/OgreDllDefines.h, include/quaternion_struct.h, include/radian_struct.h, include/sharedptr_struct.h, include/StructColour.h, include/StructDegrees.h, include/StructHG3DClass.h, include/StructQuaternion.h, include/StructRadians.h, include/StructSharedPtr.h, include/StructVec2.h, include/StructVec3.h, include/vector2_struct.h, include/vector3_struct.h, include/vector4_struct.h, include/WindowUtilsHG3D.h Library - Build-Depends: base >= 3 && < 5, HGamer3D-Data == 0.1.5 + Build-Depends: base >= 3 && < 5, transformers>=0.3.0,mtl, HGamer3D-Data >= 0.3.0 - 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.TypeVector4,HGamer3D.Bindings.Ogre.TypeVector2,HGamer3D.Bindings.Ogre.TypeVector3,HGamer3D.Bindings.Ogre.TypeQuaternion,HGamer3D.Bindings.Ogre.TypeHG3DClass,HGamer3D.Bindings.Ogre.TypeRadian,HGamer3D.Bindings.Ogre.TypeColour,HGamer3D.Bindings.Ogre.TypeSharedPtr,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.ClassHardwareBufferLicensee,HGamer3D.Bindings.Ogre.ClassPlaneOptimalShadowCameraSetup,HGamer3D.Bindings.Ogre.ClassFileStreamDataStream,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.ClassBillboardChain,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.ClassAnimation,HGamer3D.Bindings.Ogre.ClassSceneNode,HGamer3D.Bindings.Ogre.ClassTimeIndex,HGamer3D.Bindings.Ogre.ClassAnimationTrack,HGamer3D.Bindings.Ogre.ClassRegion,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.ClassRenderWindow,HGamer3D.Bindings.Ogre.ClassShadowCameraSetup,HGamer3D.Bindings.Ogre.ClassRuntimeAssertionException,HGamer3D.Bindings.Ogre.ClassRibbonTrailFactory,HGamer3D.Bindings.Ogre.ClassSubEntity,HGamer3D.Bindings.Ogre.ClassManualObject,HGamer3D.Bindings.Ogre.ClassWindowEventListener,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.ClassResourceManager,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.ClassUnimplementedException,HGamer3D.Bindings.Ogre.ClassRenderQueueInvocationSequence,HGamer3D.Bindings.Ogre.ClassDefaultAxisAlignedBoxSceneQuery,HGamer3D.Bindings.Ogre.ClassMaterialManager,HGamer3D.Bindings.Ogre.ClassCamera - Other-modules: C2HS + Exposed-modules: HGamer3D.Bindings.Ogre.Utils, HGamer3D.Bindings.Ogre.ClassPtr, HGamer3D.Bindings.Ogre.StructHG3DClass, HGamer3D.Bindings.Ogre.EnumAnimationInterpolationMode, HGamer3D.Bindings.Ogre.EnumAnimationRotationInterpolationMode, HGamer3D.Bindings.Ogre.EnumAxisAlignedBoxCorner, HGamer3D.Bindings.Ogre.EnumAxisAlignedBoxExtent, HGamer3D.Bindings.Ogre.EnumBillboardChainTexCoordDirection, HGamer3D.Bindings.Ogre.EnumBillboardOrigin, HGamer3D.Bindings.Ogre.EnumBillboardRotationType, HGamer3D.Bindings.Ogre.EnumBillboardType, HGamer3D.Bindings.Ogre.EnumDataStreamAccessMode, HGamer3D.Bindings.Ogre.EnumEntityVertexDataBindChoice, HGamer3D.Bindings.Ogre.EnumExceptionCode, HGamer3D.Bindings.Ogre.EnumFrustumPlane, HGamer3D.Bindings.Ogre.EnumGpuProgramType, HGamer3D.Bindings.Ogre.EnumLightType, HGamer3D.Bindings.Ogre.EnumLoggingLevel, HGamer3D.Bindings.Ogre.EnumLogMessageLevel, HGamer3D.Bindings.Ogre.EnumMathAngleUnit, HGamer3D.Bindings.Ogre.EnumMeshManagerMeshBuildType, HGamer3D.Bindings.Ogre.EnumNodeTransformSpace, HGamer3D.Bindings.Ogre.EnumOrientationMode, HGamer3D.Bindings.Ogre.EnumProjectionType, HGamer3D.Bindings.Ogre.EnumRenderOperationOperationType, HGamer3D.Bindings.Ogre.EnumRenderTargetFrameBuffer, HGamer3D.Bindings.Ogre.EnumRenderTargetStatFlags, HGamer3D.Bindings.Ogre.EnumRootFrameEventTimeType, HGamer3D.Bindings.Ogre.EnumSceneManagerBoxPlane, HGamer3D.Bindings.Ogre.EnumSceneManagerIlluminationRenderStage, HGamer3D.Bindings.Ogre.EnumSceneManagerPrefabType, HGamer3D.Bindings.Ogre.EnumSceneManagerSpecialCaseRenderQueueMode, HGamer3D.Bindings.Ogre.EnumSceneType, HGamer3D.Bindings.Ogre.EnumSkeletonAnimationBlendMode, HGamer3D.Bindings.Ogre.EnumStencilOperation, HGamer3D.Bindings.Ogre.EnumTexCoordCalcMethod, HGamer3D.Bindings.Ogre.EnumVertexAnimationTrackTargetMode, HGamer3D.Bindings.Ogre.EnumVertexAnimationType, HGamer3D.Bindings.Ogre.StructColour, HGamer3D.Bindings.Ogre.StructDegrees, HGamer3D.Bindings.Ogre.StructQuaternion, HGamer3D.Bindings.Ogre.StructRadians, HGamer3D.Bindings.Ogre.StructSharedPtr, HGamer3D.Bindings.Ogre.StructVec2, HGamer3D.Bindings.Ogre.StructVec3, HGamer3D.Bindings.Ogre.ClassAnimation, HGamer3D.Bindings.Ogre.ClassAnimationState, HGamer3D.Bindings.Ogre.ClassAnimationStateSet, HGamer3D.Bindings.Ogre.ClassAnimationTrack, HGamer3D.Bindings.Ogre.ClassArchive, HGamer3D.Bindings.Ogre.ClassArchiveManager, HGamer3D.Bindings.Ogre.ClassBillboard, HGamer3D.Bindings.Ogre.ClassBillboardChain, HGamer3D.Bindings.Ogre.ClassBillboardChainFactory, HGamer3D.Bindings.Ogre.ClassBillboardSet, HGamer3D.Bindings.Ogre.ClassBillboardSetFactory, HGamer3D.Bindings.Ogre.ClassBone, HGamer3D.Bindings.Ogre.ClassCamera, HGamer3D.Bindings.Ogre.ClassConfigFile, HGamer3D.Bindings.Ogre.ClassControllerManager, HGamer3D.Bindings.Ogre.ClassEntity, HGamer3D.Bindings.Ogre.ClassEntityFactory, HGamer3D.Bindings.Ogre.ClassException, HGamer3D.Bindings.Ogre.ClassFrustum, HGamer3D.Bindings.Ogre.ClassHG3DUtilities, HGamer3D.Bindings.Ogre.ClassLight, HGamer3D.Bindings.Ogre.ClassLightFactory, HGamer3D.Bindings.Ogre.ClassLog, HGamer3D.Bindings.Ogre.ClassLogManager, HGamer3D.Bindings.Ogre.ClassManualObject, HGamer3D.Bindings.Ogre.ClassManualObjectFactory, HGamer3D.Bindings.Ogre.ClassManualObjectSection, HGamer3D.Bindings.Ogre.ClassMaterial, HGamer3D.Bindings.Ogre.ClassMaterialManager, HGamer3D.Bindings.Ogre.ClassMesh, HGamer3D.Bindings.Ogre.ClassMeshManager, HGamer3D.Bindings.Ogre.ClassMovableObject, HGamer3D.Bindings.Ogre.ClassMovableObjectFactory, HGamer3D.Bindings.Ogre.ClassMultiRenderTarget, HGamer3D.Bindings.Ogre.ClassNode, HGamer3D.Bindings.Ogre.ClassNodeAnimationTrack, HGamer3D.Bindings.Ogre.ClassNumericAnimationTrack, HGamer3D.Bindings.Ogre.ClassRenderable, HGamer3D.Bindings.Ogre.ClassRenderSystem, HGamer3D.Bindings.Ogre.ClassRenderTarget, HGamer3D.Bindings.Ogre.ClassRenderTexture, HGamer3D.Bindings.Ogre.ClassRenderWindow, HGamer3D.Bindings.Ogre.ClassResource, HGamer3D.Bindings.Ogre.ClassResourceGroupManager, HGamer3D.Bindings.Ogre.ClassResourceManager, HGamer3D.Bindings.Ogre.ClassRoot, HGamer3D.Bindings.Ogre.ClassSceneManager, HGamer3D.Bindings.Ogre.ClassSceneManagerFactory, HGamer3D.Bindings.Ogre.ClassSceneNode, HGamer3D.Bindings.Ogre.ClassSkeleton, HGamer3D.Bindings.Ogre.ClassSkeletonManager, HGamer3D.Bindings.Ogre.ClassTextureManager, HGamer3D.Bindings.Ogre.ClassTimeIndex, HGamer3D.Bindings.Ogre.ClassVertexAnimationTrack, HGamer3D.Bindings.Ogre.ClassViewport, HGamer3D.Bindings.Ogre.ClassWindowEventUtilities + Other-modules: - ghc-options: + ghc-options: -O2 cc-options: -Wno-attributes hs-source-dirs: . Include-dirs: include Build-tools: - build-depends: haskell98 - extra-libraries: HGamer3DOgre015 + build-depends: + if os(windows) + extra-libraries: hg3dogre050 + else + extra-libraries: hg3dogre050,OgreMain,OgrePaging,OgreProperty,OgreRTShaderSystem,OgreTerrain
+ HGamer3D/Bindings/Ogre/ClassAnimation.chs view
@@ -0,0 +1,274 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassAnimation where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}+{# import HGamer3D.Bindings.Ogre.EnumVertexAnimationType #}+{# import HGamer3D.Bindings.Ogre.EnumAnimationInterpolationMode #}+{# import HGamer3D.Bindings.Ogre.EnumAnimationRotationInterpolationMode #}++#include "ClassAnimation.h"+{- function ~Animation -}+{#fun ogre_anm_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getName -}+{#fun ogre_anm_getName as getName +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function getLength -}+{#fun ogre_anm_getLength as getLength +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function setLength -}+{#fun ogre_anm_setLength as setLength +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' } -> `()' #}++{- function createNodeTrack -}+{#fun ogre_anm_createNodeTrack as createNodeTrack +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function createNumericTrack -}+{#fun ogre_anm_createNumericTrack as createNumericTrack +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function createVertexTrack -}+{#fun ogre_anm_createVertexTrack as createVertexTrack +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ cIntFromEnum `EnumVertexAnimationType' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function createNodeTrack2 -}+{#fun ogre_anm_createNodeTrack2 as createNodeTrack2 +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getNumNodeTracks -}+{#fun ogre_anm_getNumNodeTracks as getNumNodeTracks +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function getNodeTrack -}+{#fun ogre_anm_getNodeTrack as getNodeTrack +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function hasNodeTrack -}+{#fun ogre_anm_hasNodeTrack as hasNodeTrack +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getNumNumericTracks -}+{#fun ogre_anm_getNumNumericTracks as getNumNumericTracks +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function getNumericTrack -}+{#fun ogre_anm_getNumericTrack as getNumericTrack +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function hasNumericTrack -}+{#fun ogre_anm_hasNumericTrack as hasNumericTrack +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getNumVertexTracks -}+{#fun ogre_anm_getNumVertexTracks as getNumVertexTracks +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function getVertexTrack -}+{#fun ogre_anm_getVertexTrack as getVertexTrack +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function hasVertexTrack -}+{#fun ogre_anm_hasVertexTrack as hasVertexTrack +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function destroyNodeTrack -}+{#fun ogre_anm_destroyNodeTrack as destroyNodeTrack +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function destroyNumericTrack -}+{#fun ogre_anm_destroyNumericTrack as destroyNumericTrack +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function destroyVertexTrack -}+{#fun ogre_anm_destroyVertexTrack as destroyVertexTrack +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function destroyAllTracks -}+{#fun ogre_anm_destroyAllTracks as destroyAllTracks +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function destroyAllNodeTracks -}+{#fun ogre_anm_destroyAllNodeTracks as destroyAllNodeTracks +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function destroyAllNumericTracks -}+{#fun ogre_anm_destroyAllNumericTracks as destroyAllNumericTracks +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function destroyAllVertexTracks -}+{#fun ogre_anm_destroyAllVertexTracks as destroyAllVertexTracks +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function apply -}+{#fun ogre_anm_apply as apply +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function applyToNode -}+{#fun ogre_anm_applyToNode as applyToNode +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function apply2 -}+{#fun ogre_anm_apply2 as apply2 +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function apply4 -}+{#fun ogre_anm_apply4 as apply4 +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ fromBool `Bool' ,+ fromBool `Bool' } -> `()' #}++{- function setInterpolationMode -}+{#fun ogre_anm_setInterpolationMode as setInterpolationMode +{ withHG3DClass* `HG3DClass' ,+ cIntFromEnum `EnumAnimationInterpolationMode' } -> `()' #}++{- function getInterpolationMode -}+{#fun ogre_anm_getInterpolationMode as getInterpolationMode +{ withHG3DClass* `HG3DClass' ,+ alloca- `EnumAnimationInterpolationMode' peekEnumUtil*} -> `()' #}++{- function setRotationInterpolationMode -}+{#fun ogre_anm_setRotationInterpolationMode as setRotationInterpolationMode +{ withHG3DClass* `HG3DClass' ,+ cIntFromEnum `EnumAnimationRotationInterpolationMode' } -> `()' #}++{- function getRotationInterpolationMode -}+{#fun ogre_anm_getRotationInterpolationMode as getRotationInterpolationMode +{ withHG3DClass* `HG3DClass' ,+ alloca- `EnumAnimationRotationInterpolationMode' peekEnumUtil*} -> `()' #}++{- function optimise -}+{#fun ogre_anm_optimise as optimise +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function clone -}+{#fun ogre_anm_clone as clone +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function setUseBaseKeyFrame -}+{#fun ogre_anm_setUseBaseKeyFrame as setUseBaseKeyFrame +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' ,+ realToFrac `Float' ,+ withCString* `String' } -> `()' #}++{- function getUseBaseKeyFrame -}+{#fun ogre_anm_getUseBaseKeyFrame as getUseBaseKeyFrame +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getBaseKeyFrameTime -}+{#fun ogre_anm_getBaseKeyFrameTime as getBaseKeyFrameTime +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function getBaseKeyFrameAnimationName -}+{#fun ogre_anm_getBaseKeyFrameAnimationName as getBaseKeyFrameAnimationName +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function setDefaultInterpolationMode -}+{#fun ogre_anm_setDefaultInterpolationMode as setDefaultInterpolationMode +{ cIntFromEnum `EnumAnimationInterpolationMode' } -> `()' #}++{- function getDefaultInterpolationMode -}+{#fun ogre_anm_getDefaultInterpolationMode as getDefaultInterpolationMode +{ alloca- `EnumAnimationInterpolationMode' peekEnumUtil*} -> `()' #}++{- function setDefaultRotationInterpolationMode -}+{#fun ogre_anm_setDefaultRotationInterpolationMode as setDefaultRotationInterpolationMode +{ cIntFromEnum `EnumAnimationRotationInterpolationMode' } -> `()' #}++{- function getDefaultRotationInterpolationMode -}+{#fun ogre_anm_getDefaultRotationInterpolationMode as getDefaultRotationInterpolationMode +{ alloca- `EnumAnimationRotationInterpolationMode' peekEnumUtil*} -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassAnimation.hs
@@ -1,481 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -import HGamer3D.Bindings.Ogre.EnumVertexAnimationType -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -import HGamer3D.Bindings.Ogre.EnumInterpolationMode -{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -import HGamer3D.Bindings.Ogre.EnumRotationInterpolationMode -{-# LINE 57 "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 63 "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 67 "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 71 "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 76 "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 81 "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 87 "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 93 "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 97 "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 102 "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 107 "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 111 "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 116 "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 121 "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 125 "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 130 "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 135 "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 139 "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 143 "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 147 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -; -cAnDestroyAllTracks :: HG3DClass -> IO () -cAnDestroyAllTracks a1 = - withHG3DClass a1 $ \a1' -> - cAnDestroyAllTracks'_ a1' >>= \res -> - return () -{-# LINE 150 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -; -cAnDestroyAllNodeTracks :: HG3DClass -> IO () -cAnDestroyAllNodeTracks a1 = - withHG3DClass a1 $ \a1' -> - cAnDestroyAllNodeTracks'_ a1' >>= \res -> - return () -{-# LINE 153 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -; -cAnDestroyAllNumericTracks :: HG3DClass -> IO () -cAnDestroyAllNumericTracks a1 = - withHG3DClass a1 $ \a1' -> - cAnDestroyAllNumericTracks'_ a1' >>= \res -> - return () -{-# LINE 156 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -; -cAnDestroyAllVertexTracks :: HG3DClass -> IO () -cAnDestroyAllVertexTracks a1 = - withHG3DClass a1 $ \a1' -> - cAnDestroyAllVertexTracks'_ a1' >>= \res -> - return () -{-# LINE 159 "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 165 "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 172 "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 179 "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 187 "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 191 "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 195 "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 199 "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 203 "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 207 "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 212 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -; -cAnKeyFrameListChanged :: HG3DClass -> IO () -cAnKeyFrameListChanged a1 = - withHG3DClass a1 $ \a1' -> - cAnKeyFrameListChanged'_ a1' >>= \res -> - return () -{-# LINE 215 "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) -> (CUShort -> ((HG3DClassPtr) -> (IO ())))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_createNumericTrack_c" - cAnCreateNumericTrack'_ :: ((HG3DClassPtr) -> (CUShort -> ((HG3DClassPtr) -> (IO ())))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_createVertexTrack_c" - cAnCreateVertexTrack'_ :: ((HG3DClassPtr) -> (CUShort -> (CInt -> ((HG3DClassPtr) -> (IO ()))))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_createNodeTrack2_c" - cAnCreateNodeTrack2'_ :: ((HG3DClassPtr) -> (CUShort -> ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_getNumNodeTracks_c" - cAnGetNumNodeTracks'_ :: ((HG3DClassPtr) -> ((Ptr CUShort) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_getNodeTrack_c" - cAnGetNodeTrack'_ :: ((HG3DClassPtr) -> (CUShort -> ((HG3DClassPtr) -> (IO ())))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_hasNodeTrack_c" - cAnHasNodeTrack'_ :: ((HG3DClassPtr) -> (CUShort -> ((Ptr CInt) -> (IO ())))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_getNumNumericTracks_c" - cAnGetNumNumericTracks'_ :: ((HG3DClassPtr) -> ((Ptr CUShort) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_getNumericTrack_c" - cAnGetNumericTrack'_ :: ((HG3DClassPtr) -> (CUShort -> ((HG3DClassPtr) -> (IO ())))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_hasNumericTrack_c" - cAnHasNumericTrack'_ :: ((HG3DClassPtr) -> (CUShort -> ((Ptr CInt) -> (IO ())))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_getNumVertexTracks_c" - cAnGetNumVertexTracks'_ :: ((HG3DClassPtr) -> ((Ptr CUShort) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_getVertexTrack_c" - cAnGetVertexTrack'_ :: ((HG3DClassPtr) -> (CUShort -> ((HG3DClassPtr) -> (IO ())))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_hasVertexTrack_c" - cAnHasVertexTrack'_ :: ((HG3DClassPtr) -> (CUShort -> ((Ptr CInt) -> (IO ())))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_destroyNodeTrack_c" - cAnDestroyNodeTrack'_ :: ((HG3DClassPtr) -> (CUShort -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_destroyNumericTrack_c" - cAnDestroyNumericTrack'_ :: ((HG3DClassPtr) -> (CUShort -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_destroyVertexTrack_c" - cAnDestroyVertexTrack'_ :: ((HG3DClassPtr) -> (CUShort -> (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 ()))
+ HGamer3D/Bindings/Ogre/ClassAnimationState.chs view
@@ -0,0 +1,159 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassAnimationState where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}++#include "ClassAnimationState.h"+{- function AnimationState -}+{#fun ogre_anms_construct as new +{ withCString* `String' ,+ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ fromBool `Bool' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function ~AnimationState -}+{#fun ogre_anms_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getAnimationName -}+{#fun ogre_anms_getAnimationName as getAnimationName +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function getTimePosition -}+{#fun ogre_anms_getTimePosition as getTimePosition +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function setTimePosition -}+{#fun ogre_anms_setTimePosition as setTimePosition +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' } -> `()' #}++{- function getLength -}+{#fun ogre_anms_getLength as getLength +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function setLength -}+{#fun ogre_anms_setLength as setLength +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' } -> `()' #}++{- function getWeight -}+{#fun ogre_anms_getWeight as getWeight +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function setWeight -}+{#fun ogre_anms_setWeight as setWeight +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' } -> `()' #}++{- function addTime -}+{#fun ogre_anms_addTime as addTime +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' } -> `()' #}++{- function hasEnded -}+{#fun ogre_anms_hasEnded as hasEnded +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getEnabled -}+{#fun ogre_anms_getEnabled as getEnabled +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setEnabled -}+{#fun ogre_anms_setEnabled as setEnabled +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function setLoop -}+{#fun ogre_anms_setLoop as setLoop +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getLoop -}+{#fun ogre_anms_getLoop as getLoop +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function copyStateFrom -}+{#fun ogre_anms_copyStateFrom as copyStateFrom +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getParent -}+{#fun ogre_anms_getParent as getParent +{ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function createBlendMask -}+{#fun ogre_anms_createBlendMask as createBlendMask +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ realToFrac `Float' } -> `()' #}++{- function destroyBlendMask -}+{#fun ogre_anms_destroyBlendMask as destroyBlendMask +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function hasBlendMask -}+{#fun ogre_anms_hasBlendMask as hasBlendMask +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setBlendMaskEntry -}+{#fun ogre_anms_setBlendMaskEntry as setBlendMaskEntry +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ realToFrac `Float' } -> `()' #}++{- function getBlendMaskEntry -}+{#fun ogre_anms_getBlendMaskEntry as getBlendMaskEntry +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ alloca- `Float' peekFloatConv*} -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassAnimationState.hs
@@ -1,259 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "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 60 "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 64 "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 68 "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 72 "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 76 "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 80 "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 84 "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 88 "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 92 "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 96 "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 100 "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 104 "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 108 "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 113 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} -; -cAnsDestroyBlendMask :: HG3DClass -> IO () -cAnsDestroyBlendMask a1 = - withHG3DClass a1 $ \a1' -> - cAnsDestroyBlendMask'_ a1' >>= \res -> - return () -{-# LINE 116 "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 120 "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 125 "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 ()))))
+ HGamer3D/Bindings/Ogre/ClassAnimationStateSet.chs view
@@ -0,0 +1,93 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- ClassAnimationStateSet.chs++-- ++module HGamer3D.Bindings.Ogre.ClassAnimationStateSet where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}++#include "ClassAnimationStateSet.h"+{- function ~AnimationStateSet -}+{#fun ogre_ass_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function createAnimationState -}+{#fun ogre_ass_createAnimationState as createAnimationState +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ fromBool `Bool' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getAnimationState -}+{#fun ogre_ass_getAnimationState as getAnimationState +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function hasAnimationState -}+{#fun ogre_ass_hasAnimationState as hasAnimationState +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function removeAnimationState -}+{#fun ogre_ass_removeAnimationState as removeAnimationState +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function removeAllAnimationStates -}+{#fun ogre_ass_removeAllAnimationStates as removeAllAnimationStates +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function copyMatchingState -}+{#fun ogre_ass_copyMatchingState as copyMatchingState +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getDirtyFrameNumber -}+{#fun ogre_ass_getDirtyFrameNumber as getDirtyFrameNumber +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function hasEnabledAnimationState -}+{#fun ogre_ass_hasEnabledAnimationState as hasEnabledAnimationState +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}+
+ HGamer3D/Bindings/Ogre/ClassAnimationTrack.chs view
@@ -0,0 +1,87 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassAnimationTrack where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}++#include "ClassAnimationTrack.h"+{- function ~AnimationTrack -}+{#fun ogre_at_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getHandle -}+{#fun ogre_at_getHandle as getHandle +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function getNumKeyFrames -}+{#fun ogre_at_getNumKeyFrames as getNumKeyFrames +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function removeKeyFrame -}+{#fun ogre_at_removeKeyFrame as removeKeyFrame +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function removeAllKeyFrames -}+{#fun ogre_at_removeAllKeyFrames as removeAllKeyFrames +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function apply -}+{#fun ogre_at_apply as apply +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function hasNonZeroKeyFrames -}+{#fun ogre_at_hasNonZeroKeyFrames as hasNonZeroKeyFrames +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function optimise -}+{#fun ogre_at_optimise as optimise +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getParent -}+{#fun ogre_at_getParent as getParent +{ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassAnimationTrack.hs
@@ -1,166 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "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 60 "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 64 "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 69 "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 74 "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 78 "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-} -; -cAntRemoveAllKeyFrames :: HG3DClass -> IO () -cAntRemoveAllKeyFrames a1 = - withHG3DClass a1 $ \a1' -> - cAntRemoveAllKeyFrames'_ a1' >>= \res -> - return () -{-# LINE 81 "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-} -; -cAntKeyFrameDataChanged :: HG3DClass -> IO () -cAntKeyFrameDataChanged a1 = - withHG3DClass a1 $ \a1' -> - cAntKeyFrameDataChanged'_ a1' >>= \res -> - return () -{-# LINE 84 "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 88 "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-} -; -cAntOptimise :: HG3DClass -> IO () -cAntOptimise a1 = - withHG3DClass a1 $ \a1' -> - cAntOptimise'_ a1' >>= \res -> - return () -{-# LINE 91 "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-} -; - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs.h cAnt_getHandle_c" - cAntGetHandle'_ :: ((HG3DClassPtr) -> ((Ptr CUShort) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs.h cAnt_getNumKeyFrames_c" - cAntGetNumKeyFrames'_ :: ((HG3DClassPtr) -> ((Ptr CUShort) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs.h cAnt_getKeyFrame_c" - cAntGetKeyFrame'_ :: ((HG3DClassPtr) -> (CUShort -> ((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) -> (CUShort -> (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 ()))
+ HGamer3D/Bindings/Ogre/ClassArchive.chs view
@@ -0,0 +1,86 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassArchive where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}++#include "ClassArchive.h"+{- function ~Archive -}+{#fun ogre_arch_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getName -}+{#fun ogre_arch_getName as getName +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function isCaseSensitive -}+{#fun ogre_arch_isCaseSensitive as isCaseSensitive +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function load -}+{#fun ogre_arch_load as load +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function unload -}+{#fun ogre_arch_unload as unload +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function isReadOnly -}+{#fun ogre_arch_isReadOnly as isReadOnly +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function remove -}+{#fun ogre_arch_remove as remove +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function exists -}+{#fun ogre_arch_exists as exists +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getType -}+{#fun ogre_arch_getType as getType +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassArchive.hs
@@ -1,242 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} -import HGamer3D.Bindings.Ogre.TypeSharedPtr -{-# LINE 55 "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 61 "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 65 "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} -; -cArLoad :: HG3DClass -> IO () -cArLoad a1 = - withHG3DClass a1 $ \a1' -> - cArLoad'_ a1' >>= \res -> - return () -{-# LINE 68 "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} -; -cArUnload :: HG3DClass -> IO () -cArUnload a1 = - withHG3DClass a1 $ \a1' -> - cArUnload'_ a1' >>= \res -> - return () -{-# LINE 71 "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 75 "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} -; -cArOpen :: HG3DClass -> String -> Bool -> IO (SharedPtr) -cArOpen a1 a2 a3 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - let {a3' = fromBool a3} in - alloca $ \a4' -> - cArOpen'_ a1' a2' a3' a4' >>= \res -> - peek a4'>>= \a4'' -> - return (a4'') -{-# LINE 81 "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} -; -cArCreate :: HG3DClass -> String -> IO (SharedPtr) -cArCreate a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - alloca $ \a3' -> - cArCreate'_ a1' a2' a3' >>= \res -> - peek a3'>>= \a3'' -> - return (a3'') -{-# LINE 86 "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} -; -cArRemove :: HG3DClass -> String -> IO () -cArRemove a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cArRemove'_ a1' a2' >>= \res -> - return () -{-# LINE 90 "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} -; -cArList :: HG3DClass -> Bool -> Bool -> IO (SharedPtr) -cArList a1 a2 a3 = - withHG3DClass a1 $ \a1' -> - let {a2' = fromBool a2} in - let {a3' = fromBool a3} in - alloca $ \a4' -> - cArList'_ a1' a2' a3' a4' >>= \res -> - peek a4'>>= \a4'' -> - return (a4'') -{-# LINE 96 "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} -; -cArListFileInfo :: HG3DClass -> Bool -> Bool -> IO (SharedPtr) -cArListFileInfo a1 a2 a3 = - withHG3DClass a1 $ \a1' -> - let {a2' = fromBool a2} in - let {a3' = fromBool a3} in - alloca $ \a4' -> - cArListFileInfo'_ a1' a2' a3' a4' >>= \res -> - peek a4'>>= \a4'' -> - return (a4'') -{-# LINE 102 "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} -; -cArFind :: HG3DClass -> String -> Bool -> Bool -> IO (SharedPtr) -cArFind a1 a2 a3 a4 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - let {a3' = fromBool a3} in - let {a4' = fromBool a4} in - alloca $ \a5' -> - cArFind'_ a1' a2' a3' a4' a5' >>= \res -> - peek a5'>>= \a5'' -> - return (a5'') -{-# LINE 109 "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 114 "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} -; -cArFindFileInfo :: HG3DClass -> String -> Bool -> Bool -> IO (SharedPtr) -cArFindFileInfo a1 a2 a3 a4 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - let {a3' = fromBool a3} in - let {a4' = fromBool a4} in - alloca $ \a5' -> - cArFindFileInfo'_ a1' a2' a3' a4' a5' >>= \res -> - peek a5'>>= \a5'' -> - return (a5'') -{-# LINE 121 "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 125 "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_open_c" - cArOpen'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> ((SharedPtrPtr) -> (IO ()))))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs.h cAr_create_c" - cArCreate'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((SharedPtrPtr) -> (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_list_c" - cArList'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> ((SharedPtrPtr) -> (IO ()))))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs.h cAr_listFileInfo_c" - cArListFileInfo'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> ((SharedPtrPtr) -> (IO ()))))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs.h cAr_find_c" - cArFind'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> (CInt -> ((SharedPtrPtr) -> (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_findFileInfo_c" - cArFindFileInfo'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> (CInt -> ((SharedPtrPtr) -> (IO ())))))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs.h cAr_getType_c" - cArGetType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ())))
+ HGamer3D/Bindings/Ogre/ClassArchiveManager.chs view
@@ -0,0 +1,72 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassArchiveManager where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}++#include "ClassArchiveManager.h"+{- function ~ArchiveManager -}+{#fun ogre_archm_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function load -}+{#fun ogre_archm_load as load +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function unload -}+{#fun ogre_archm_unload as unload +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function unload2 -}+{#fun ogre_archm_unload2 as unload2 +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function getSingleton -}+{#fun ogre_archm_getSingleton as getSingleton +{ alloca- `HG3DClass' peek*} -> `()' #}++{- function getSingletonPtr -}+{#fun ogre_archm_getSingletonPtr as getSingletonPtr +{ alloca- `HG3DClass' peek*} -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassArchiveManager.hs
@@ -1,99 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassArchiveManager.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassArchiveManager.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "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 62 "HGamer3D\\Bindings\\Ogre\\ClassArchiveManager.chs" #-} -; -cArmUnload :: HG3DClass -> HG3DClass -> IO () -cArmUnload a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cArmUnload'_ a1' a2' >>= \res -> - return () -{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassArchiveManager.chs" #-} -; -cArmUnload2 :: HG3DClass -> String -> IO () -cArmUnload2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cArmUnload2'_ a1' a2' >>= \res -> - return () -{-# LINE 70 "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 ())))
+ HGamer3D/Bindings/Ogre/ClassBillboard.chs view
@@ -0,0 +1,139 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassBillboard where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}+{# import HGamer3D.Bindings.Ogre.StructRadians #}+{# import HGamer3D.Bindings.Ogre.StructVec3 #}+{# import HGamer3D.Bindings.Ogre.StructColour #}++#include "ClassBillboard.h"+{- function Billboard -}+{#fun ogre_bbd_construct as new +{ alloca- `HG3DClass' peek*} -> `()' #}++{- function ~Billboard -}+{#fun ogre_bbd_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getRotation -}+{#fun ogre_bbd_getRotation as getRotation +{ withHG3DClass* `HG3DClass' ,+ alloca- `Radians' peekRadians*} -> `()' #}++{- function setRotation -}+{#fun ogre_bbd_setRotation as setRotation +{ withHG3DClass* `HG3DClass' ,+ withRadians* `Radians' } -> `()' #}++{- function setPosition -}+{#fun ogre_bbd_setPosition as setPosition +{ withHG3DClass* `HG3DClass' ,+ withVec3* `Vec3' } -> `()' #}++{- function setPosition2 -}+{#fun ogre_bbd_setPosition2 as setPosition2 +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function getPosition -}+{#fun ogre_bbd_getPosition as getPosition +{ withHG3DClass* `HG3DClass' ,+ alloca- `Vec3' peekVec3*} -> `()' #}++{- function setDimensions -}+{#fun ogre_bbd_setDimensions as setDimensions +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function resetDimensions -}+{#fun ogre_bbd_resetDimensions as resetDimensions +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function setColour -}+{#fun ogre_bbd_setColour as setColour +{ withHG3DClass* `HG3DClass' ,+ withColour* `Colour' } -> `()' #}++{- function getColour -}+{#fun ogre_bbd_getColour as getColour +{ withHG3DClass* `HG3DClass' ,+ alloca- `Colour' peekColour*} -> `()' #}++{- function hasOwnDimensions -}+{#fun ogre_bbd_hasOwnDimensions as hasOwnDimensions +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getOwnWidth -}+{#fun ogre_bbd_getOwnWidth as getOwnWidth +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function getOwnHeight -}+{#fun ogre_bbd_getOwnHeight as getOwnHeight +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function isUseTexcoordRect -}+{#fun ogre_bbd_isUseTexcoordRect as isUseTexcoordRect +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setTexcoordIndex -}+{#fun ogre_bbd_setTexcoordIndex as setTexcoordIndex +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function getTexcoordIndex -}+{#fun ogre_bbd_getTexcoordIndex as getTexcoordIndex +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function setTexcoordRect2 -}+{#fun ogre_bbd_setTexcoordRect2 as setTexcoordRect2 +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassBillboard.hs
@@ -1,269 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} -import HGamer3D.Bindings.Ogre.TypeRadian -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} -import HGamer3D.Bindings.Ogre.TypeVector3 -{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} -import HGamer3D.Bindings.Ogre.TypeColour -{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} - - -cBbGetRotation :: HG3DClass -> IO (Radians) -cBbGetRotation a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cBbGetRotation'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 63 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} -; -cBbSetRotation :: HG3DClass -> Radians -> IO () -cBbSetRotation a1 a2 = - withHG3DClass a1 $ \a1' -> - withRadians a2 $ \a2' -> - cBbSetRotation'_ a1' a2' >>= \res -> - return () -{-# LINE 67 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} -; -cBbSetPosition :: HG3DClass -> Vector3 -> IO () -cBbSetPosition a1 a2 = - withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> - cBbSetPosition'_ a1' a2' >>= \res -> - return () -{-# LINE 71 "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 77 "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 81 "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 86 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} -; -cBbResetDimensions :: HG3DClass -> IO () -cBbResetDimensions a1 = - withHG3DClass a1 $ \a1' -> - cBbResetDimensions'_ a1' >>= \res -> - return () -{-# LINE 89 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} -; -cBbSetColour :: HG3DClass -> Colour -> IO () -cBbSetColour a1 a2 = - withHG3DClass a1 $ \a1' -> - withColour a2 $ \a2' -> - cBbSetColour'_ a1' a2' >>= \res -> - return () -{-# LINE 93 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} -; -cBbGetColour :: HG3DClass -> IO (Colour) -cBbGetColour a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cBbGetColour'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 97 "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 101 "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 105 "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 109 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} -; -cBbNotifyOwner :: HG3DClass -> HG3DClass -> IO () -cBbNotifyOwner a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cBbNotifyOwner'_ a1' a2' >>= \res -> - return () -{-# LINE 113 "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 117 "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 121 "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 125 "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 132 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} -; - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs.h cBb_getRotation_c" - cBbGetRotation'_ :: ((HG3DClassPtr) -> ((RadiansPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs.h cBb_setRotation_c" - cBbSetRotation'_ :: ((HG3DClassPtr) -> ((RadiansPtr) -> (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) -> ((ColourPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs.h cBb_getColour_c" - cBbGetColour'_ :: ((HG3DClassPtr) -> ((ColourPtr) -> (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) -> (CUShort -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs.h cBb_getTexcoordIndex_c" - cBbGetTexcoordIndex'_ :: ((HG3DClassPtr) -> ((Ptr CUShort) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs.h cBb_setTexcoordRect2_c" - cBbSetTexcoordRect2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))))
+ HGamer3D/Bindings/Ogre/ClassBillboardChain.chs view
@@ -0,0 +1,181 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassBillboardChain where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}+{# import HGamer3D.Bindings.Ogre.EnumBillboardChainTexCoordDirection #}+{# import HGamer3D.Bindings.Ogre.StructVec3 #}+{# import HGamer3D.Bindings.Ogre.StructSharedPtr #}++#include "ClassBillboardChain.h"+{- function ~BillboardChain -}+{#fun ogre_bbdc_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function setMaxChainElements -}+{#fun ogre_bbdc_setMaxChainElements as setMaxChainElements +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function getMaxChainElements -}+{#fun ogre_bbdc_getMaxChainElements as getMaxChainElements +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function setNumberOfChains -}+{#fun ogre_bbdc_setNumberOfChains as setNumberOfChains +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function getNumberOfChains -}+{#fun ogre_bbdc_getNumberOfChains as getNumberOfChains +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function setUseTextureCoords -}+{#fun ogre_bbdc_setUseTextureCoords as setUseTextureCoords +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getUseTextureCoords -}+{#fun ogre_bbdc_getUseTextureCoords as getUseTextureCoords +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setTextureCoordDirection -}+{#fun ogre_bbdc_setTextureCoordDirection as setTextureCoordDirection +{ withHG3DClass* `HG3DClass' ,+ cIntFromEnum `EnumBillboardChainTexCoordDirection' } -> `()' #}++{- function getTextureCoordDirection -}+{#fun ogre_bbdc_getTextureCoordDirection as getTextureCoordDirection +{ withHG3DClass* `HG3DClass' ,+ alloca- `EnumBillboardChainTexCoordDirection' peekEnumUtil*} -> `()' #}++{- function setOtherTextureCoordRange -}+{#fun ogre_bbdc_setOtherTextureCoordRange as setOtherTextureCoordRange +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function setUseVertexColours -}+{#fun ogre_bbdc_setUseVertexColours as setUseVertexColours +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getUseVertexColours -}+{#fun ogre_bbdc_getUseVertexColours as getUseVertexColours +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setDynamic -}+{#fun ogre_bbdc_setDynamic as setDynamic +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getDynamic -}+{#fun ogre_bbdc_getDynamic as getDynamic +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function removeChainElement -}+{#fun ogre_bbdc_removeChainElement as removeChainElement +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function getNumChainElements -}+{#fun ogre_bbdc_getNumChainElements as getNumChainElements +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function clearChain -}+{#fun ogre_bbdc_clearChain as clearChain +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function clearAllChains -}+{#fun ogre_bbdc_clearAllChains as clearAllChains +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function setFaceCamera -}+{#fun ogre_bbdc_setFaceCamera as setFaceCamera +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' ,+ withVec3* `Vec3' } -> `()' #}++{- function getMaterialName -}+{#fun ogre_bbdc_getMaterialName as getMaterialName +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function setMaterialName -}+{#fun ogre_bbdc_setMaterialName as setMaterialName +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ withCString* `String' } -> `()' #}++{- function getSquaredViewDepth -}+{#fun ogre_bbdc_getSquaredViewDepth as getSquaredViewDepth +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function getBoundingRadius -}+{#fun ogre_bbdc_getBoundingRadius as getBoundingRadius +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function getMaterial -}+{#fun ogre_bbdc_getMaterial as getMaterial +{ withHG3DClass* `HG3DClass' ,+ alloca- `SharedPtr' peekSharedPtr*} -> `()' #}++{- function getMovableType -}+{#fun ogre_bbdc_getMovableType as getMovableType +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function preRender -}+{#fun ogre_bbdc_preRender as preRender +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassBillboardChain.hs
@@ -1,295 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} -import HGamer3D.Bindings.Ogre.EnumTexCoordDirection -{-# LINE 55 "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 61 "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 65 "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 69 "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 73 "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 77 "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 81 "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 85 "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 89 "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 94 "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 98 "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 102 "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 106 "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 110 "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 114 "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 119 "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 123 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} -; -cBcClearAllChains :: HG3DClass -> IO () -cBcClearAllChains a1 = - withHG3DClass a1 $ \a1' -> - cBcClearAllChains'_ a1' >>= \res -> - return () -{-# LINE 126 "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 130 "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 135 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} -; -cBcNotifyCurrentCamera :: HG3DClass -> HG3DClass -> IO () -cBcNotifyCurrentCamera a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cBcNotifyCurrentCamera'_ a1' a2' >>= \res -> - return () -{-# LINE 139 "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 ())))
+ HGamer3D/Bindings/Ogre/ClassBillboardChainFactory.chs view
@@ -0,0 +1,61 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassBillboardChainFactory where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}++#include "ClassBillboardChainFactory.h"+{- function BillboardChainFactory -}+{#fun ogre_bbdcf_construct as new +{ alloca- `HG3DClass' peek*} -> `()' #}++{- function ~BillboardChainFactory -}+{#fun ogre_bbdcf_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getType -}+{#fun ogre_bbdcf_getType as getType +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function destroyInstance -}+{#fun ogre_bbdcf_destroyInstance as destroyInstance +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassBillboardChainFactory.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChainFactory.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChainFactory.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChainFactory.chs" #-} - -
+ HGamer3D/Bindings/Ogre/ClassBillboardSet.chs view
@@ -0,0 +1,312 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassBillboardSet where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}+{# import HGamer3D.Bindings.Ogre.StructVec3 #}+{# import HGamer3D.Bindings.Ogre.StructColour #}+{# import HGamer3D.Bindings.Ogre.EnumBillboardOrigin #}+{# import HGamer3D.Bindings.Ogre.EnumBillboardRotationType #}+{# import HGamer3D.Bindings.Ogre.StructSharedPtr #}+{# import HGamer3D.Bindings.Ogre.EnumBillboardType #}++#include "ClassBillboardSet.h"+{- function BillboardSet2 -}+{#fun ogre_bbs_construct as new +{ withCString* `String' ,+ fromIntegral `Int' ,+ fromBool `Bool' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function ~BillboardSet -}+{#fun ogre_bbs_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function createBillboard -}+{#fun ogre_bbs_createBillboard as createBillboard +{ withHG3DClass* `HG3DClass' ,+ withVec3* `Vec3' ,+ withColour* `Colour' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function createBillboard2 -}+{#fun ogre_bbs_createBillboard2 as createBillboard2 +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ withColour* `Colour' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getNumBillboards -}+{#fun ogre_bbs_getNumBillboards as getNumBillboards +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function setAutoextend -}+{#fun ogre_bbs_setAutoextend as setAutoextend +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getAutoextend -}+{#fun ogre_bbs_getAutoextend as getAutoextend +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setSortingEnabled -}+{#fun ogre_bbs_setSortingEnabled as setSortingEnabled +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getSortingEnabled -}+{#fun ogre_bbs_getSortingEnabled as getSortingEnabled +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setPoolSize -}+{#fun ogre_bbs_setPoolSize as setPoolSize +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function getPoolSize -}+{#fun ogre_bbs_getPoolSize as getPoolSize +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function clear -}+{#fun ogre_bbs_clear as clear +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getBillboard -}+{#fun ogre_bbs_getBillboard as getBillboard +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function removeBillboard -}+{#fun ogre_bbs_removeBillboard as removeBillboard +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function removeBillboard2 -}+{#fun ogre_bbs_removeBillboard2 as removeBillboard2 +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function setBillboardOrigin -}+{#fun ogre_bbs_setBillboardOrigin as setBillboardOrigin +{ withHG3DClass* `HG3DClass' ,+ cIntFromEnum `EnumBillboardOrigin' } -> `()' #}++{- function getBillboardOrigin -}+{#fun ogre_bbs_getBillboardOrigin as getBillboardOrigin +{ withHG3DClass* `HG3DClass' ,+ alloca- `EnumBillboardOrigin' peekEnumUtil*} -> `()' #}++{- function setBillboardRotationType -}+{#fun ogre_bbs_setBillboardRotationType as setBillboardRotationType +{ withHG3DClass* `HG3DClass' ,+ cIntFromEnum `EnumBillboardRotationType' } -> `()' #}++{- function getBillboardRotationType -}+{#fun ogre_bbs_getBillboardRotationType as getBillboardRotationType +{ withHG3DClass* `HG3DClass' ,+ alloca- `EnumBillboardRotationType' peekEnumUtil*} -> `()' #}++{- function setDefaultDimensions -}+{#fun ogre_bbs_setDefaultDimensions as setDefaultDimensions +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function setDefaultWidth -}+{#fun ogre_bbs_setDefaultWidth as setDefaultWidth +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' } -> `()' #}++{- function getDefaultWidth -}+{#fun ogre_bbs_getDefaultWidth as getDefaultWidth +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function setDefaultHeight -}+{#fun ogre_bbs_setDefaultHeight as setDefaultHeight +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' } -> `()' #}++{- function getDefaultHeight -}+{#fun ogre_bbs_getDefaultHeight as getDefaultHeight +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function setMaterialName -}+{#fun ogre_bbs_setMaterialName as setMaterialName +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ withCString* `String' } -> `()' #}++{- function getMaterialName -}+{#fun ogre_bbs_getMaterialName as getMaterialName +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function beginBillboards -}+{#fun ogre_bbs_beginBillboards as beginBillboards +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function injectBillboard -}+{#fun ogre_bbs_injectBillboard as injectBillboard +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function endBillboards -}+{#fun ogre_bbs_endBillboards as endBillboards +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getBoundingRadius -}+{#fun ogre_bbs_getBoundingRadius as getBoundingRadius +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function getMaterial -}+{#fun ogre_bbs_getMaterial as getMaterial +{ withHG3DClass* `HG3DClass' ,+ alloca- `SharedPtr' peekSharedPtr*} -> `()' #}++{- function setMaterial -}+{#fun ogre_bbs_setMaterial as setMaterial +{ withHG3DClass* `HG3DClass' ,+ withSharedPtr* `SharedPtr' } -> `()' #}++{- function getCullIndividually -}+{#fun ogre_bbs_getCullIndividually as getCullIndividually +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setCullIndividually -}+{#fun ogre_bbs_setCullIndividually as setCullIndividually +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function setBillboardType -}+{#fun ogre_bbs_setBillboardType as setBillboardType +{ withHG3DClass* `HG3DClass' ,+ cIntFromEnum `EnumBillboardType' } -> `()' #}++{- function getBillboardType -}+{#fun ogre_bbs_getBillboardType as getBillboardType +{ withHG3DClass* `HG3DClass' ,+ alloca- `EnumBillboardType' peekEnumUtil*} -> `()' #}++{- function setCommonDirection -}+{#fun ogre_bbs_setCommonDirection as setCommonDirection +{ withHG3DClass* `HG3DClass' ,+ withVec3* `Vec3' } -> `()' #}++{- function getCommonDirection -}+{#fun ogre_bbs_getCommonDirection as getCommonDirection +{ withHG3DClass* `HG3DClass' ,+ alloca- `Vec3' peekVec3*} -> `()' #}++{- function setCommonUpVector -}+{#fun ogre_bbs_setCommonUpVector as setCommonUpVector +{ withHG3DClass* `HG3DClass' ,+ withVec3* `Vec3' } -> `()' #}++{- function getCommonUpVector -}+{#fun ogre_bbs_getCommonUpVector as getCommonUpVector +{ withHG3DClass* `HG3DClass' ,+ alloca- `Vec3' peekVec3*} -> `()' #}++{- function setUseAccurateFacing -}+{#fun ogre_bbs_setUseAccurateFacing as setUseAccurateFacing +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getUseAccurateFacing -}+{#fun ogre_bbs_getUseAccurateFacing as getUseAccurateFacing +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getMovableType -}+{#fun ogre_bbs_getMovableType as getMovableType +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function getSquaredViewDepth -}+{#fun ogre_bbs_getSquaredViewDepth as getSquaredViewDepth +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function setBillboardsInWorldSpace -}+{#fun ogre_bbs_setBillboardsInWorldSpace as setBillboardsInWorldSpace +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function setPointRenderingEnabled -}+{#fun ogre_bbs_setPointRenderingEnabled as setPointRenderingEnabled +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function isPointRenderingEnabled -}+{#fun ogre_bbs_isPointRenderingEnabled as isPointRenderingEnabled +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getTypeFlags -}+{#fun ogre_bbs_getTypeFlags as getTypeFlags +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function setAutoUpdate -}+{#fun ogre_bbs_setAutoUpdate as setAutoUpdate +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getAutoUpdate -}+{#fun ogre_bbs_getAutoUpdate as getAutoUpdate +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function notifyBillboardDataChanged -}+{#fun ogre_bbs_notifyBillboardDataChanged as notifyBillboardDataChanged +{ withHG3DClass* `HG3DClass' } -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassBillboardSet.hs
@@ -1,687 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} -import HGamer3D.Bindings.Ogre.TypeVector3 -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} -import HGamer3D.Bindings.Ogre.TypeColour -{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} -import HGamer3D.Bindings.Ogre.EnumBillboardOrigin -{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} -import HGamer3D.Bindings.Ogre.EnumBillboardRotationType -{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} -import HGamer3D.Bindings.Ogre.TypeSharedPtr -{-# LINE 59 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} -import HGamer3D.Bindings.Ogre.EnumBillboardType -{-# LINE 60 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} -import HGamer3D.Bindings.Ogre.EnumSortMode -{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} - - -cBsCreateBillboard :: HG3DClass -> Vector3 -> Colour -> IO (HG3DClass) -cBsCreateBillboard a1 a2 a3 = - withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> - withColour a3 $ \a3' -> - alloca $ \a4' -> - cBsCreateBillboard'_ a1' a2' a3' a4' >>= \res -> - peek a4'>>= \a4'' -> - return (a4'') -{-# LINE 69 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} -; -cBsCreateBillboard2 :: HG3DClass -> Float -> Float -> Float -> Colour -> 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 - withColour a5 $ \a5' -> - alloca $ \a6' -> - cBsCreateBillboard2'_ a1' a2' a3' a4' a5' a6' >>= \res -> - peek a6'>>= \a6'' -> - return (a6'') -{-# LINE 77 "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 81 "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 85 "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 89 "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 93 "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 97 "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 101 "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 105 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} -; -cBsClear :: HG3DClass -> IO () -cBsClear a1 = - withHG3DClass a1 $ \a1' -> - cBsClear'_ a1' >>= \res -> - return () -{-# LINE 108 "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 113 "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 117 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} -; -cBsRemoveBillboard2 :: HG3DClass -> HG3DClass -> IO () -cBsRemoveBillboard2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cBsRemoveBillboard2'_ a1' a2' >>= \res -> - return () -{-# LINE 121 "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 125 "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 129 "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 133 "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 137 "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 142 "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 146 "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 150 "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 154 "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 158 "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 163 "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 167 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} -; -cBsNotifyCurrentCamera :: HG3DClass -> HG3DClass -> IO () -cBsNotifyCurrentCamera a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cBsNotifyCurrentCamera'_ a1' a2' >>= \res -> - return () -{-# LINE 171 "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 175 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} -; -cBsEndBillboards :: HG3DClass -> IO () -cBsEndBillboards a1 = - withHG3DClass a1 $ \a1' -> - cBsEndBillboards'_ a1' >>= \res -> - return () -{-# LINE 178 "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 182 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} -; -cBsGetMaterial :: HG3DClass -> IO (SharedPtr) -cBsGetMaterial a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cBsGetMaterial'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 186 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} -; -cBsSetMaterial :: HG3DClass -> SharedPtr -> IO () -cBsSetMaterial a1 a2 = - withHG3DClass a1 $ \a1' -> - withSharedPtr a2 $ \a2' -> - cBsSetMaterial'_ a1' a2' >>= \res -> - return () -{-# LINE 190 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} -; -cBsNotifyBillboardResized :: HG3DClass -> IO () -cBsNotifyBillboardResized a1 = - withHG3DClass a1 $ \a1' -> - cBsNotifyBillboardResized'_ a1' >>= \res -> - return () -{-# LINE 193 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} -; -cBsNotifyBillboardRotated :: HG3DClass -> IO () -cBsNotifyBillboardRotated a1 = - withHG3DClass a1 $ \a1' -> - cBsNotifyBillboardRotated'_ a1' >>= \res -> - return () -{-# LINE 196 "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 200 "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 204 "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 208 "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 212 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} -; -cBsSetCommonDirection :: HG3DClass -> Vector3 -> IO () -cBsSetCommonDirection a1 a2 = - withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> - cBsSetCommonDirection'_ a1' a2' >>= \res -> - return () -{-# LINE 216 "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 220 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} -; -cBsSetCommonUpVector :: HG3DClass -> Vector3 -> IO () -cBsSetCommonUpVector a1 a2 = - withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> - cBsSetCommonUpVector'_ a1' a2' >>= \res -> - return () -{-# LINE 224 "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 228 "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 232 "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 236 "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 240 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} -; -cBsUpdateBounds :: HG3DClass -> IO () -cBsUpdateBounds a1 = - withHG3DClass a1 $ \a1' -> - cBsUpdateBounds'_ a1' >>= \res -> - return () -{-# LINE 243 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} -; -cBsSortBillboards :: HG3DClass -> HG3DClass -> IO () -cBsSortBillboards a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cBsSortBillboards'_ a1' a2' >>= \res -> - return () -{-# LINE 247 "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 251 "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 255 "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 259 "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 263 "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 267 "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 271 "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 275 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} -; -cBsNotifyBillboardDataChanged :: HG3DClass -> IO () -cBsNotifyBillboardDataChanged a1 = - withHG3DClass a1 $ \a1' -> - cBsNotifyBillboardDataChanged'_ a1' >>= \res -> - return () -{-# LINE 278 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} -; - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_createBillboard_c" - cBsCreateBillboard'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> ((ColourPtr) -> ((HG3DClassPtr) -> (IO ()))))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_createBillboard2_c" - cBsCreateBillboard2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> ((ColourPtr) -> ((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_getMaterial_c" - cBsGetMaterial'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h cBs_setMaterial_c" - cBsSetMaterial'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (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 ()))
+ HGamer3D/Bindings/Ogre/ClassBillboardSetFactory.chs view
@@ -0,0 +1,61 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassBillboardSetFactory where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}++#include "ClassBillboardSetFactory.h"+{- function BillboardSetFactory -}+{#fun ogre_bbsf_construct as new +{ alloca- `HG3DClass' peek*} -> `()' #}++{- function ~BillboardSetFactory -}+{#fun ogre_bbsf_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getType -}+{#fun ogre_bbsf_getType as getType +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function destroyInstance -}+{#fun ogre_bbsf_destroyInstance as destroyInstance +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassBillboardSetFactory.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSetFactory.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSetFactory.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSetFactory.chs" #-} - -
+ HGamer3D/Bindings/Ogre/ClassBone.chs view
@@ -0,0 +1,85 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassBone where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}+{# import HGamer3D.Bindings.Ogre.StructVec3 #}+{# import HGamer3D.Bindings.Ogre.StructQuaternion #}++#include "ClassBone.h"+{- function ~Bone -}+{#fun ogre_bn_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function createChild -}+{#fun ogre_bn_createChild as createChild +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ withVec3* `Vec3' ,+ withQuaternion* `Quaternion' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getHandle -}+{#fun ogre_bn_getHandle as getHandle +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function setBindingPose -}+{#fun ogre_bn_setBindingPose as setBindingPose +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function reset -}+{#fun ogre_bn_reset as reset +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function setManuallyControlled -}+{#fun ogre_bn_setManuallyControlled as setManuallyControlled +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function isManuallyControlled -}+{#fun ogre_bn_isManuallyControlled as isManuallyControlled +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function needUpdate -}+{#fun ogre_bn_needUpdate as needUpdate +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassBone.hs
@@ -1,173 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} -import HGamer3D.Bindings.Ogre.TypeVector3 -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} -import HGamer3D.Bindings.Ogre.TypeQuaternion -{-# LINE 56 "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 65 "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 69 "HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} -; -cBSetBindingPose :: HG3DClass -> IO () -cBSetBindingPose a1 = - withHG3DClass a1 $ \a1' -> - cBSetBindingPose'_ a1' >>= \res -> - return () -{-# LINE 72 "HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} -; -cBReset :: HG3DClass -> IO () -cBReset a1 = - withHG3DClass a1 $ \a1' -> - cBReset'_ a1' >>= \res -> - return () -{-# LINE 75 "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 79 "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 83 "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 87 "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 91 "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 95 "HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} -; - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBone.chs.h cB_createChild_c" - cBCreateChild'_ :: ((HG3DClassPtr) -> (CUShort -> ((Vector3Ptr) -> ((QuaternionPtr) -> ((HG3DClassPtr) -> (IO ())))))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBone.chs.h cB_getHandle_c" - cBGetHandle'_ :: ((HG3DClassPtr) -> ((Ptr CUShort) -> (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 ())))
+ HGamer3D/Bindings/Ogre/ClassCamera.chs view
@@ -0,0 +1,364 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassCamera where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}+{# import HGamer3D.Bindings.Ogre.StructVec3 #}+{# import HGamer3D.Bindings.Ogre.StructRadians #}+{# import HGamer3D.Bindings.Ogre.StructQuaternion #}+{# import HGamer3D.Bindings.Ogre.EnumFrustumPlane #}++#include "ClassCamera.h"+{- function Camera -}+{#fun ogre_cam_construct as new +{ withCString* `String' ,+ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function ~Camera -}+{#fun ogre_cam_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getSceneManager -}+{#fun ogre_cam_getSceneManager as getSceneManager +{ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function setPosition -}+{#fun ogre_cam_setPosition as setPosition +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function setPosition2 -}+{#fun ogre_cam_setPosition2 as setPosition2 +{ withHG3DClass* `HG3DClass' ,+ withVec3* `Vec3' } -> `()' #}++{- function getPosition -}+{#fun ogre_cam_getPosition as getPosition +{ withHG3DClass* `HG3DClass' ,+ alloca- `Vec3' peekVec3*} -> `()' #}++{- function move -}+{#fun ogre_cam_move as move +{ withHG3DClass* `HG3DClass' ,+ withVec3* `Vec3' } -> `()' #}++{- function moveRelative -}+{#fun ogre_cam_moveRelative as moveRelative +{ withHG3DClass* `HG3DClass' ,+ withVec3* `Vec3' } -> `()' #}++{- function setDirection -}+{#fun ogre_cam_setDirection as setDirection +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function setDirection2 -}+{#fun ogre_cam_setDirection2 as setDirection2 +{ withHG3DClass* `HG3DClass' ,+ withVec3* `Vec3' } -> `()' #}++{- function getDirection -}+{#fun ogre_cam_getDirection as getDirection +{ withHG3DClass* `HG3DClass' ,+ alloca- `Vec3' peekVec3*} -> `()' #}++{- function getUp -}+{#fun ogre_cam_getUp as getUp +{ withHG3DClass* `HG3DClass' ,+ alloca- `Vec3' peekVec3*} -> `()' #}++{- function getRight -}+{#fun ogre_cam_getRight as getRight +{ withHG3DClass* `HG3DClass' ,+ alloca- `Vec3' peekVec3*} -> `()' #}++{- function lookAt -}+{#fun ogre_cam_lookAt as lookAt +{ withHG3DClass* `HG3DClass' ,+ withVec3* `Vec3' } -> `()' #}++{- function lookAt2 -}+{#fun ogre_cam_lookAt2 as lookAt2 +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function roll -}+{#fun ogre_cam_roll as roll +{ withHG3DClass* `HG3DClass' ,+ withRadians* `Radians' } -> `()' #}++{- function yaw -}+{#fun ogre_cam_yaw as yaw +{ withHG3DClass* `HG3DClass' ,+ withRadians* `Radians' } -> `()' #}++{- function pitch -}+{#fun ogre_cam_pitch as pitch +{ withHG3DClass* `HG3DClass' ,+ withRadians* `Radians' } -> `()' #}++{- function rotate -}+{#fun ogre_cam_rotate as rotate +{ withHG3DClass* `HG3DClass' ,+ withVec3* `Vec3' ,+ withRadians* `Radians' } -> `()' #}++{- function rotate2 -}+{#fun ogre_cam_rotate2 as rotate2 +{ withHG3DClass* `HG3DClass' ,+ withQuaternion* `Quaternion' } -> `()' #}++{- function setFixedYawAxis -}+{#fun ogre_cam_setFixedYawAxis as setFixedYawAxis +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' ,+ withVec3* `Vec3' } -> `()' #}++{- function getOrientation -}+{#fun ogre_cam_getOrientation as getOrientation +{ withHG3DClass* `HG3DClass' ,+ alloca- `Quaternion' peekQuaternion*} -> `()' #}++{- function setOrientation -}+{#fun ogre_cam_setOrientation as setOrientation +{ withHG3DClass* `HG3DClass' ,+ withQuaternion* `Quaternion' } -> `()' #}++{- function getDerivedOrientation -}+{#fun ogre_cam_getDerivedOrientation as getDerivedOrientation +{ withHG3DClass* `HG3DClass' ,+ alloca- `Quaternion' peekQuaternion*} -> `()' #}++{- function getDerivedPosition -}+{#fun ogre_cam_getDerivedPosition as getDerivedPosition +{ withHG3DClass* `HG3DClass' ,+ alloca- `Vec3' peekVec3*} -> `()' #}++{- function getDerivedDirection -}+{#fun ogre_cam_getDerivedDirection as getDerivedDirection +{ withHG3DClass* `HG3DClass' ,+ alloca- `Vec3' peekVec3*} -> `()' #}++{- function getDerivedUp -}+{#fun ogre_cam_getDerivedUp as getDerivedUp +{ withHG3DClass* `HG3DClass' ,+ alloca- `Vec3' peekVec3*} -> `()' #}++{- function getDerivedRight -}+{#fun ogre_cam_getDerivedRight as getDerivedRight +{ withHG3DClass* `HG3DClass' ,+ alloca- `Vec3' peekVec3*} -> `()' #}++{- function getRealOrientation -}+{#fun ogre_cam_getRealOrientation as getRealOrientation +{ withHG3DClass* `HG3DClass' ,+ alloca- `Quaternion' peekQuaternion*} -> `()' #}++{- function getRealPosition -}+{#fun ogre_cam_getRealPosition as getRealPosition +{ withHG3DClass* `HG3DClass' ,+ alloca- `Vec3' peekVec3*} -> `()' #}++{- function getRealDirection -}+{#fun ogre_cam_getRealDirection as getRealDirection +{ withHG3DClass* `HG3DClass' ,+ alloca- `Vec3' peekVec3*} -> `()' #}++{- function getRealUp -}+{#fun ogre_cam_getRealUp as getRealUp +{ withHG3DClass* `HG3DClass' ,+ alloca- `Vec3' peekVec3*} -> `()' #}++{- function getRealRight -}+{#fun ogre_cam_getRealRight as getRealRight +{ withHG3DClass* `HG3DClass' ,+ alloca- `Vec3' peekVec3*} -> `()' #}++{- function getMovableType -}+{#fun ogre_cam_getMovableType as getMovableType +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function setLodBias -}+{#fun ogre_cam_setLodBias as setLodBias +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' } -> `()' #}++{- function getLodBias -}+{#fun ogre_cam_getLodBias as getLodBias +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function setLodCamera -}+{#fun ogre_cam_setLodCamera as setLodCamera +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getLodCamera -}+{#fun ogre_cam_getLodCamera as getLodCamera +{ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function setWindow -}+{#fun ogre_cam_setWindow as setWindow +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function resetWindow -}+{#fun ogre_cam_resetWindow as resetWindow +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function isWindowSet -}+{#fun ogre_cam_isWindowSet as isWindowSet +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getBoundingRadius -}+{#fun ogre_cam_getBoundingRadius as getBoundingRadius +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function getAutoTrackTarget -}+{#fun ogre_cam_getAutoTrackTarget as getAutoTrackTarget +{ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getAutoTrackOffset -}+{#fun ogre_cam_getAutoTrackOffset as getAutoTrackOffset +{ withHG3DClass* `HG3DClass' ,+ alloca- `Vec3' peekVec3*} -> `()' #}++{- function getViewport -}+{#fun ogre_cam_getViewport as getViewport +{ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function setAutoAspectRatio -}+{#fun ogre_cam_setAutoAspectRatio as setAutoAspectRatio +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getAutoAspectRatio -}+{#fun ogre_cam_getAutoAspectRatio as getAutoAspectRatio +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setCullingFrustum -}+{#fun ogre_cam_setCullingFrustum as setCullingFrustum +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getCullingFrustum -}+{#fun ogre_cam_getCullingFrustum as getCullingFrustum +{ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function isVisible3 -}+{#fun ogre_cam_isVisible3 as isVisible3 +{ withHG3DClass* `HG3DClass' ,+ withVec3* `Vec3' ,+ alloca- `EnumFrustumPlane' peekEnumUtil*,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getWorldSpaceCorners -}+{#fun ogre_cam_getWorldSpaceCorners as getWorldSpaceCorners +{ withHG3DClass* `HG3DClass' ,+ alloca- `Vec3' peekVec3*} -> `()' #}++{- function getNearClipDistance -}+{#fun ogre_cam_getNearClipDistance as getNearClipDistance +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function getFarClipDistance -}+{#fun ogre_cam_getFarClipDistance as getFarClipDistance +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function setUseRenderingDistance -}+{#fun ogre_cam_setUseRenderingDistance as setUseRenderingDistance +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getUseRenderingDistance -}+{#fun ogre_cam_getUseRenderingDistance as getUseRenderingDistance +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function synchroniseBaseSettingsWith -}+{#fun ogre_cam_synchroniseBaseSettingsWith as synchroniseBaseSettingsWith +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getPositionForViewUpdate -}+{#fun ogre_cam_getPositionForViewUpdate as getPositionForViewUpdate +{ withHG3DClass* `HG3DClass' ,+ alloca- `Vec3' peekVec3*} -> `()' #}++{- function getOrientationForViewUpdate -}+{#fun ogre_cam_getOrientationForViewUpdate as getOrientationForViewUpdate +{ withHG3DClass* `HG3DClass' ,+ alloca- `Quaternion' peekQuaternion*} -> `()' #}++{- function setUseMinPixelSize -}+{#fun ogre_cam_setUseMinPixelSize as setUseMinPixelSize +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getUseMinPixelSize -}+{#fun ogre_cam_getUseMinPixelSize as getUseMinPixelSize +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getPixelDisplayRatio -}+{#fun ogre_cam_getPixelDisplayRatio as getPixelDisplayRatio +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassCamera.hs
@@ -1,780 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} -import HGamer3D.Bindings.Ogre.EnumPolygonMode -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} -import HGamer3D.Bindings.Ogre.TypeVector3 -{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} -import HGamer3D.Bindings.Ogre.TypeRadian -{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} -import HGamer3D.Bindings.Ogre.TypeQuaternion -{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} -import HGamer3D.Bindings.Ogre.EnumFrustumPlane -{-# LINE 59 "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 65 "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 69 "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 73 "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 79 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} -; -cCSetPosition2 :: HG3DClass -> Vector3 -> IO () -cCSetPosition2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> - cCSetPosition2'_ a1' a2' >>= \res -> - return () -{-# LINE 83 "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 87 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} -; -cCMove :: HG3DClass -> Vector3 -> IO () -cCMove a1 a2 = - withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> - cCMove'_ a1' a2' >>= \res -> - return () -{-# LINE 91 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} -; -cCMoveRelative :: HG3DClass -> Vector3 -> IO () -cCMoveRelative a1 a2 = - withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> - cCMoveRelative'_ a1' a2' >>= \res -> - return () -{-# LINE 95 "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 101 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} -; -cCSetDirection2 :: HG3DClass -> Vector3 -> IO () -cCSetDirection2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> - cCSetDirection2'_ a1' a2' >>= \res -> - return () -{-# LINE 105 "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 109 "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 113 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} -; -cCLookAt :: HG3DClass -> Vector3 -> IO () -cCLookAt a1 a2 = - withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> - cCLookAt'_ a1' a2' >>= \res -> - return () -{-# LINE 117 "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 123 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} -; -cCRoll :: HG3DClass -> Radians -> IO () -cCRoll a1 a2 = - withHG3DClass a1 $ \a1' -> - withRadians a2 $ \a2' -> - cCRoll'_ a1' a2' >>= \res -> - return () -{-# LINE 127 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} -; -cCYaw :: HG3DClass -> Radians -> IO () -cCYaw a1 a2 = - withHG3DClass a1 $ \a1' -> - withRadians a2 $ \a2' -> - cCYaw'_ a1' a2' >>= \res -> - return () -{-# LINE 131 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} -; -cCPitch :: HG3DClass -> Radians -> IO () -cCPitch a1 a2 = - withHG3DClass a1 $ \a1' -> - withRadians a2 $ \a2' -> - cCPitch'_ a1' a2' >>= \res -> - return () -{-# LINE 135 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} -; -cCRotate :: HG3DClass -> Vector3 -> Radians -> IO () -cCRotate a1 a2 a3 = - withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> - withRadians a3 $ \a3' -> - cCRotate'_ a1' a2' a3' >>= \res -> - return () -{-# LINE 140 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} -; -cCRotate2 :: HG3DClass -> Quaternion -> IO () -cCRotate2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withQuaternion a2 $ \a2' -> - cCRotate2'_ a1' a2' >>= \res -> - return () -{-# LINE 144 "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 149 "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 153 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} -; -cCSetOrientation :: HG3DClass -> Quaternion -> IO () -cCSetOrientation a1 a2 = - withHG3DClass a1 $ \a1' -> - withQuaternion a2 $ \a2' -> - cCSetOrientation'_ a1' a2' >>= \res -> - return () -{-# LINE 157 "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 162 "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 166 "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 170 "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 174 "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 178 "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 182 "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 186 "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 190 "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 194 "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 198 "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 202 "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 206 "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 210 "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 214 "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 218 "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 222 "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 228 "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 232 "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 236 "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 240 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} -; -cCAutoTrack :: HG3DClass -> IO () -cCAutoTrack a1 = - withHG3DClass a1 $ \a1' -> - cCAutoTrack'_ a1' >>= \res -> - return () -{-# LINE 243 "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 247 "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 251 "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 255 "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 259 "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 263 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} -; -cCNotifyViewport :: HG3DClass -> HG3DClass -> IO () -cCNotifyViewport a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cCNotifyViewport'_ a1' a2' >>= \res -> - return () -{-# LINE 267 "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 271 "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 275 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} -; -cCSetCullingFrustum :: HG3DClass -> HG3DClass -> IO () -cCSetCullingFrustum a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cCSetCullingFrustum'_ a1' a2' >>= \res -> - return () -{-# LINE 279 "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 283 "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 289 "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 293 "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 297 "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 301 "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 305 "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 309 "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 313 "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) -> ((RadiansPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_yaw_c" - cCYaw'_ :: ((HG3DClassPtr) -> ((RadiansPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_pitch_c" - cCPitch'_ :: ((HG3DClassPtr) -> ((RadiansPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_rotate_c" - cCRotate'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> ((RadiansPtr) -> (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 ())))
− HGamer3D/Bindings/Ogre/ClassCmdManualNamedConstsFile.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassCmdManualNamedConstsFile.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassCmdManualNamedConstsFile.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassCmdManualNamedConstsFile.chs" #-} - -
− HGamer3D/Bindings/Ogre/ClassCmdPose.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassCmdPose.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassCmdPose.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassCmdPose.chs" #-} - -
− HGamer3D/Bindings/Ogre/ClassCompositionPass.hs
@@ -1,584 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} -import HGamer3D.Bindings.Ogre.EnumPassType -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} -import HGamer3D.Bindings.Ogre.TypeSharedPtr -{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} -import HGamer3D.Bindings.Ogre.TypeColour -{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} -import HGamer3D.Bindings.Ogre.EnumCompareFunction -{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} -import HGamer3D.Bindings.Ogre.EnumStencilOperation -{-# LINE 59 "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 65 "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 69 "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 73 "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 77 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} -; -cCopSetMaterial :: HG3DClass -> SharedPtr -> IO () -cCopSetMaterial a1 a2 = - withHG3DClass a1 $ \a1' -> - withSharedPtr a2 $ \a2' -> - cCopSetMaterial'_ a1' a2' >>= \res -> - return () -{-# LINE 81 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} -; -cCopSetMaterialName :: HG3DClass -> String -> IO () -cCopSetMaterialName a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cCopSetMaterialName'_ a1' a2' >>= \res -> - return () -{-# LINE 85 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} -; -cCopGetMaterial :: HG3DClass -> IO (SharedPtr) -cCopGetMaterial a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cCopGetMaterial'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 89 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} -; -cCopSetMaterialScheme :: HG3DClass -> String -> IO () -cCopSetMaterialScheme a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cCopSetMaterialScheme'_ a1' a2' >>= \res -> - return () -{-# LINE 93 "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 97 "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 101 "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 105 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} -; -cCopSetClearColour :: HG3DClass -> Colour -> IO () -cCopSetClearColour a1 a2 = - withHG3DClass a1 $ \a1' -> - withColour a2 $ \a2' -> - cCopSetClearColour'_ a1' a2' >>= \res -> - return () -{-# LINE 109 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} -; -cCopGetClearColour :: HG3DClass -> IO (Colour) -cCopGetClearColour a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cCopGetClearColour'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 113 "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 117 "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 121 "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 125 "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 129 "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 133 "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 137 "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 141 "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 145 "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 149 "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 153 "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 157 "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 161 "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 165 "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 169 "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 173 "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 177 "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 181 "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 185 "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 189 "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 193 "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 199 "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 203 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} -; -cCopClearAllInputs :: HG3DClass -> IO () -cCopClearAllInputs a1 = - withHG3DClass a1 $ \a1' -> - cCopClearAllInputs'_ a1' >>= \res -> - return () -{-# LINE 206 "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 210 "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 214 "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 221 "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 226 "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 230 "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 234 "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs" #-} -; -cCopSetCustomType :: HG3DClass -> String -> IO () -cCopSetCustomType a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cCopSetCustomType'_ a1' a2' >>= \res -> - return () -{-# LINE 238 "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 242 "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_setMaterial_c" - cCopSetMaterial'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (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_getMaterial_c" - cCopGetMaterial'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (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) -> ((ColourPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionPass.chs.h cCop_getClearColour_c" - cCopGetClearColour'_ :: ((HG3DClassPtr) -> ((ColourPtr) -> (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 ())))
− HGamer3D/Bindings/Ogre/ClassCompositionTargetPass.hs
@@ -1,308 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} -import HGamer3D.Bindings.Ogre.EnumInputMode -{-# LINE 55 "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 61 "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 65 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} -; -cCotpSetOutputName :: HG3DClass -> String -> IO () -cCotpSetOutputName a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cCotpSetOutputName'_ a1' a2' >>= \res -> - return () -{-# LINE 69 "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 73 "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 77 "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 81 "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 85 "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 89 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} -; -cCotpSetMaterialScheme :: HG3DClass -> String -> IO () -cCotpSetMaterialScheme a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cCotpSetMaterialScheme'_ a1' a2' >>= \res -> - return () -{-# LINE 93 "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 97 "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 101 "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 105 "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 109 "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 113 "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 117 "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 121 "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 126 "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 130 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} -; -cCotpRemoveAllPasses :: HG3DClass -> IO () -cCotpRemoveAllPasses a1 = - withHG3DClass a1 $ \a1' -> - cCotpRemoveAllPasses'_ a1' >>= \res -> - return () -{-# LINE 133 "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 137 "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 141 "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 ())))
− HGamer3D/Bindings/Ogre/ClassCompositionTechnique.hs
@@ -1,237 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "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 60 "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 64 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs" #-} -; -cCotRemoveAllTextureDefinitions :: HG3DClass -> IO () -cCotRemoveAllTextureDefinitions a1 = - withHG3DClass a1 $ \a1' -> - cCotRemoveAllTextureDefinitions'_ a1' >>= \res -> - return () -{-# LINE 67 "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 71 "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 75 "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 80 "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 84 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs" #-} -; -cCotRemoveAllTargetPasses :: HG3DClass -> IO () -cCotRemoveAllTargetPasses a1 = - withHG3DClass a1 $ \a1' -> - cCotRemoveAllTargetPasses'_ a1' >>= \res -> - return () -{-# LINE 87 "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 91 "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 96 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs" #-} -; -cCotSetSchemeName :: HG3DClass -> String -> IO () -cCotSetSchemeName a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cCotSetSchemeName'_ a1' a2' >>= \res -> - return () -{-# LINE 100 "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 104 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTechnique.chs" #-} -; -cCotSetCompositorLogicName :: HG3DClass -> String -> IO () -cCotSetCompositorLogicName a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cCotSetCompositorLogicName'_ a1' a2' >>= \res -> - return () -{-# LINE 108 "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 112 "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 116 "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 ())))
− HGamer3D/Bindings/Ogre/ClassCompositor.hs
@@ -1,189 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassCompositor.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassCompositor.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassCompositor.chs" #-} -import HGamer3D.Bindings.Ogre.TypeSharedPtr -{-# LINE 55 "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 61 "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 65 "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 70 "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 74 "HGamer3D\\Bindings\\Ogre\\ClassCompositor.chs" #-} -; -cCoRemoveAllTechniques :: HG3DClass -> IO () -cCoRemoveAllTechniques a1 = - withHG3DClass a1 $ \a1' -> - cCoRemoveAllTechniques'_ a1' >>= \res -> - return () -{-# LINE 77 "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 82 "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 86 "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 91 "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 97 "HGamer3D\\Bindings\\Ogre\\ClassCompositor.chs" #-} -; -cCoGetTextureInstance :: HG3DClass -> String -> Int -> IO (SharedPtr) -cCoGetTextureInstance a1 a2 a3 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - let {a3' = fromIntegral a3} in - alloca $ \a4' -> - cCoGetTextureInstance'_ a1' a2' a3' a4' >>= \res -> - peek a4'>>= \a4'' -> - return (a4'') -{-# LINE 103 "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 ()))))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositor.chs.h cCo_getTextureInstance_c" - cCoGetTextureInstance'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> ((SharedPtrPtr) -> (IO ())))))
− HGamer3D/Bindings/Ogre/ClassCompositorChain.hs
@@ -1,231 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} -import HGamer3D.Bindings.Ogre.TypeSharedPtr -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} - - -cCocAddCompositor :: HG3DClass -> SharedPtr -> Int -> String -> IO (HG3DClass) -cCocAddCompositor a1 a2 a3 a4 = - withHG3DClass a1 $ \a1' -> - withSharedPtr a2 $ \a2' -> - let {a3' = fromIntegral a3} in - withCString a4 $ \a4' -> - alloca $ \a5' -> - cCocAddCompositor'_ a1' a2' a3' a4' a5' >>= \res -> - peek a5'>>= \a5'' -> - return (a5'') -{-# LINE 64 "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 68 "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 72 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} -; -cCocRemoveAllCompositors :: HG3DClass -> IO () -cCocRemoveAllCompositors a1 = - withHG3DClass a1 $ \a1' -> - cCocRemoveAllCompositors'_ a1' >>= \res -> - return () -{-# LINE 75 "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 80 "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 85 "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 89 "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 94 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} -; -cCocMarkDirty :: HG3DClass -> IO () -cCocMarkDirty a1 = - withHG3DClass a1 $ \a1' -> - cCocMarkDirty'_ a1' >>= \res -> - return () -{-# LINE 97 "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 101 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} -; -cCocNotifyViewport :: HG3DClass -> HG3DClass -> IO () -cCocNotifyViewport a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cCocNotifyViewport'_ a1' a2' >>= \res -> - return () -{-# LINE 105 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} -; -cCocRemoveInstance :: HG3DClass -> HG3DClass -> IO () -cCocRemoveInstance a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cCocRemoveInstance'_ a1' a2' >>= \res -> - return () -{-# LINE 109 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} -; -cCocCompile :: HG3DClass -> IO () -cCocCompile a1 = - withHG3DClass a1 $ \a1' -> - cCocCompile'_ a1' >>= \res -> - return () -{-# LINE 112 "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 118 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} -; - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs.h cCoc_addCompositor_c" - cCocAddCompositor'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (CInt -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))))) - -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 ())))))
− HGamer3D/Bindings/Ogre/ClassCompositorInstance.hs
@@ -1,248 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} -import HGamer3D.Bindings.Ogre.TypeSharedPtr -{-# LINE 55 "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 61 "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 65 "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 71 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} -; -cCoiGetTextureInstance :: HG3DClass -> String -> Int -> IO (SharedPtr) -cCoiGetTextureInstance a1 a2 a3 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - let {a3' = fromIntegral a3} in - alloca $ \a4' -> - cCoiGetTextureInstance'_ a1' a2' a3' a4' >>= \res -> - peek a4'>>= \a4'' -> - return (a4'') -{-# LINE 77 "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 82 "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 86 "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 90 "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 95 "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 100 "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 104 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} -; -cCoiNotifyResized :: HG3DClass -> IO () -cCoiNotifyResized a1 = - withHG3DClass a1 $ \a1' -> - cCoiNotifyResized'_ a1' >>= \res -> - return () -{-# LINE 107 "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 111 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} -; -cCoiFireNotifyMaterialSetup :: HG3DClass -> Int -> IO (SharedPtr) -cCoiFireNotifyMaterialSetup a1 a2 = - withHG3DClass a1 $ \a1' -> - let {a2' = fromIntegral a2} in - alloca $ \a3' -> - cCoiFireNotifyMaterialSetup'_ a1' a2' a3' >>= \res -> - peek a3'>>= \a3'' -> - return (a3'') -{-# LINE 116 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} -; -cCoiFireNotifyMaterialRender :: HG3DClass -> Int -> IO (SharedPtr) -cCoiFireNotifyMaterialRender a1 a2 = - withHG3DClass a1 $ \a1' -> - let {a2' = fromIntegral a2} in - alloca $ \a3' -> - cCoiFireNotifyMaterialRender'_ a1' a2' a3' >>= \res -> - peek a3'>>= \a3'' -> - return (a3'') -{-# LINE 121 "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 125 "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_getTextureInstance_c" - cCoiGetTextureInstance'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> ((SharedPtrPtr) -> (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__fireNotifyMaterialSetup_c" - cCoiFireNotifyMaterialSetup'_ :: ((HG3DClassPtr) -> (CUInt -> ((SharedPtrPtr) -> (IO ())))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs.h cCoi__fireNotifyMaterialRender_c" - cCoiFireNotifyMaterialRender'_ :: ((HG3DClassPtr) -> (CUInt -> ((SharedPtrPtr) -> (IO ())))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs.h cCoi__fireNotifyResourcesCreated_c" - cCoiFireNotifyResourcesCreated'_ :: ((HG3DClassPtr) -> (CInt -> (IO ())))
− HGamer3D/Bindings/Ogre/ClassCompositorManager.hs
@@ -1,208 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-} -import HGamer3D.Bindings.Ogre.TypeSharedPtr -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-} - - -cComInitialise :: HG3DClass -> IO () -cComInitialise a1 = - withHG3DClass a1 $ \a1' -> - cComInitialise'_ a1' >>= \res -> - return () -{-# LINE 60 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-} -; -cComParseScript :: HG3DClass -> String -> IO (SharedPtr) -cComParseScript a1 a3 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - withCString a3 $ \a3' -> - cComParseScript'_ a1' a2' a3' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 65 "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 70 "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 75 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-} -; -cComRemoveCompositorChain :: HG3DClass -> HG3DClass -> IO () -cComRemoveCompositorChain a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cComRemoveCompositorChain'_ a1' a2' >>= \res -> - return () -{-# LINE 79 "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 86 "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 91 "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 97 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-} -; -cComRemoveAll :: HG3DClass -> IO () -cComRemoveAll a1 = - withHG3DClass a1 $ \a1' -> - cComRemoveAll'_ a1' >>= \res -> - return () -{-# LINE 100 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-} -; -cComReconstructAllCompositorResources :: HG3DClass -> IO () -cComReconstructAllCompositorResources a1 = - withHG3DClass a1 $ \a1' -> - cComReconstructAllCompositorResources'_ a1' >>= \res -> - return () -{-# LINE 103 "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 107 "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 112 "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_parseScript_c" - cComParseScript'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> ((Ptr CChar) -> (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 ()))))
+ HGamer3D/Bindings/Ogre/ClassConfigFile.chs view
@@ -0,0 +1,93 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassConfigFile where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}++#include "ClassConfigFile.h"+{- function ConfigFile -}+{#fun ogre_cf_construct as new +{ alloca- `HG3DClass' peek*} -> `()' #}++{- function ~ConfigFile -}+{#fun ogre_cf_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function load -}+{#fun ogre_cf_load as load +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ withCString* `String' ,+ fromBool `Bool' } -> `()' #}++{- function load2 -}+{#fun ogre_cf_load2 as load2 +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ withCString* `String' ,+ withCString* `String' ,+ fromBool `Bool' } -> `()' #}++{- function loadDirect -}+{#fun ogre_cf_loadDirect as loadDirect +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ withCString* `String' ,+ fromBool `Bool' } -> `()' #}++{- function loadFromResourceSystem -}+{#fun ogre_cf_loadFromResourceSystem as loadFromResourceSystem +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ withCString* `String' ,+ withCString* `String' ,+ fromBool `Bool' } -> `()' #}++{- function getSetting -}+{#fun ogre_cf_getSetting as getSetting +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ withCString* `String' ,+ withCString* `String' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function clear -}+{#fun ogre_cf_clear as clear +{ withHG3DClass* `HG3DClass' } -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassConfigFile.hs
@@ -1,147 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs" #-} -import HGamer3D.Bindings.Ogre.TypeSharedPtr -{-# LINE 55 "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 63 "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 70 "HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs" #-} -; -cCfLoad3 :: HG3DClass -> SharedPtr -> String -> Bool -> IO () -cCfLoad3 a1 a2 a3 a4 = - withHG3DClass a1 $ \a1' -> - withSharedPtr a2 $ \a2' -> - withCString a3 $ \a3' -> - let {a4' = fromBool a4} in - cCfLoad3'_ a1' a2' a3' a4' >>= \res -> - return () -{-# LINE 76 "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 82 "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 89 "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 96 "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_load3_c" - cCfLoad3'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> ((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 ()))))))
+ HGamer3D/Bindings/Ogre/ClassControllerManager.chs view
@@ -0,0 +1,97 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassControllerManager where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}++#include "ClassControllerManager.h"+{- function ControllerManager -}+{#fun ogre_cmgr_construct as new +{ alloca- `HG3DClass' peek*} -> `()' #}++{- function ~ControllerManager -}+{#fun ogre_cmgr_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function clearControllers -}+{#fun ogre_cmgr_clearControllers as clearControllers +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function updateAllControllers -}+{#fun ogre_cmgr_updateAllControllers as updateAllControllers +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getTimeFactor -}+{#fun ogre_cmgr_getTimeFactor as getTimeFactor +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function setTimeFactor -}+{#fun ogre_cmgr_setTimeFactor as setTimeFactor +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' } -> `()' #}++{- function getFrameDelay -}+{#fun ogre_cmgr_getFrameDelay as getFrameDelay +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function setFrameDelay -}+{#fun ogre_cmgr_setFrameDelay as setFrameDelay +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' } -> `()' #}++{- function getElapsedTime -}+{#fun ogre_cmgr_getElapsedTime as getElapsedTime +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function setElapsedTime -}+{#fun ogre_cmgr_setElapsedTime as setElapsedTime +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' } -> `()' #}++{- function getSingleton -}+{#fun ogre_cmgr_getSingleton as getSingleton +{ alloca- `HG3DClass' peek*} -> `()' #}++{- function getSingletonPtr -}+{#fun ogre_cmgr_getSingletonPtr as getSingletonPtr +{ alloca- `HG3DClass' peek*} -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassControllerManager.hs
@@ -1,176 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} - - -cCmClearControllers :: HG3DClass -> IO () -cCmClearControllers a1 = - withHG3DClass a1 $ \a1' -> - cCmClearControllers'_ a1' >>= \res -> - return () -{-# LINE 59 "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} -; -cCmUpdateAllControllers :: HG3DClass -> IO () -cCmUpdateAllControllers a1 = - withHG3DClass a1 $ \a1' -> - cCmUpdateAllControllers'_ a1' >>= \res -> - return () -{-# LINE 62 "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 66 "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 70 "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 74 "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 78 "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 82 "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 86 "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 90 "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 94 "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 ()))
− HGamer3D/Bindings/Ogre/ClassDataStream.hs
@@ -1,232 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassDataStream.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassDataStream.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "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 60 "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 64 "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 68 "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 72 "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 79 "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 84 "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 88 "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 93 "HGamer3D\\Bindings\\Ogre\\ClassDataStream.chs" #-} -; -cDsSkip :: HG3DClass -> Int -> IO () -cDsSkip a1 a2 = - withHG3DClass a1 $ \a1' -> - let {a2' = fromIntegral a2} in - cDsSkip'_ a1' a2' >>= \res -> - return () -{-# LINE 97 "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 101 "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 105 "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 109 "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 113 "HGamer3D\\Bindings\\Ogre\\ClassDataStream.chs" #-} -; -cDsClose :: HG3DClass -> IO () -cDsClose a1 = - withHG3DClass a1 $ \a1' -> - cDsClose'_ a1' >>= \res -> - return () -{-# LINE 116 "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 CUShort) -> (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_skip_c" - cDsSkip'_ :: ((HG3DClassPtr) -> (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 ()))
− HGamer3D/Bindings/Ogre/ClassDefaultAxisAlignedBoxSceneQuery.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassDefaultAxisAlignedBoxSceneQuery.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassDefaultAxisAlignedBoxSceneQuery.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassDefaultAxisAlignedBoxSceneQuery.chs" #-} - -
− HGamer3D/Bindings/Ogre/ClassDefaultPlaneBoundedVolumeListSceneQuery.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassDefaultPlaneBoundedVolumeListSceneQuery.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassDefaultPlaneBoundedVolumeListSceneQuery.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassDefaultPlaneBoundedVolumeListSceneQuery.chs" #-} - -
− HGamer3D/Bindings/Ogre/ClassDefaultRaySceneQuery.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassDefaultRaySceneQuery.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassDefaultRaySceneQuery.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassDefaultRaySceneQuery.chs" #-} - -
− HGamer3D/Bindings/Ogre/ClassDefaultSceneManager.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassDefaultSceneManager.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassDefaultSceneManager.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassDefaultSceneManager.chs" #-} - -
− HGamer3D/Bindings/Ogre/ClassDefaultSceneManagerFactory.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassDefaultSceneManagerFactory.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassDefaultSceneManagerFactory.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassDefaultSceneManagerFactory.chs" #-} - -
− HGamer3D/Bindings/Ogre/ClassDefaultShadowCameraSetup.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassDefaultShadowCameraSetup.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassDefaultShadowCameraSetup.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassDefaultShadowCameraSetup.chs" #-} - -
− HGamer3D/Bindings/Ogre/ClassDefaultSphereSceneQuery.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassDefaultSphereSceneQuery.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassDefaultSphereSceneQuery.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassDefaultSphereSceneQuery.chs" #-} - -
− HGamer3D/Bindings/Ogre/ClassElement.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassElement.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassElement.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassElement.chs" #-} - -
+ HGamer3D/Bindings/Ogre/ClassEntity.chs view
@@ -0,0 +1,238 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassEntity where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}+{# import HGamer3D.Bindings.Ogre.StructSharedPtr #}+{# import HGamer3D.Bindings.Ogre.EnumEntityVertexDataBindChoice #}++#include "ClassEntity.h"+{- function ~Entity -}+{#fun ogre_ent_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getMesh -}+{#fun ogre_ent_getMesh as getMesh +{ withHG3DClass* `HG3DClass' ,+ alloca- `SharedPtr' peekSharedPtr*} -> `()' #}++{- function getNumSubEntities -}+{#fun ogre_ent_getNumSubEntities as getNumSubEntities +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function clone -}+{#fun ogre_ent_clone as clone +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function setMaterialName -}+{#fun ogre_ent_setMaterialName as setMaterialName +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ withCString* `String' } -> `()' #}++{- function setMaterial -}+{#fun ogre_ent_setMaterial as setMaterial +{ withHG3DClass* `HG3DClass' ,+ withSharedPtr* `SharedPtr' } -> `()' #}++{- function getMovableType -}+{#fun ogre_ent_getMovableType as getMovableType +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function getAnimationState -}+{#fun ogre_ent_getAnimationState as getAnimationState +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function hasAnimationState -}+{#fun ogre_ent_hasAnimationState as hasAnimationState +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getAllAnimationStates -}+{#fun ogre_ent_getAllAnimationStates as getAllAnimationStates +{ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function setDisplaySkeleton -}+{#fun ogre_ent_setDisplaySkeleton as setDisplaySkeleton +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getDisplaySkeleton -}+{#fun ogre_ent_getDisplaySkeleton as getDisplaySkeleton +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getManualLodLevel -}+{#fun ogre_ent_getManualLodLevel as getManualLodLevel +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getNumManualLodLevels -}+{#fun ogre_ent_getNumManualLodLevels as getNumManualLodLevels +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function setPolygonModeOverrideable -}+{#fun ogre_ent_setPolygonModeOverrideable as setPolygonModeOverrideable +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function detachObjectFromBone -}+{#fun ogre_ent_detachObjectFromBone as detachObjectFromBone +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function detachObjectFromBone2 -}+{#fun ogre_ent_detachObjectFromBone2 as detachObjectFromBone2 +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function detachAllObjectsFromBone -}+{#fun ogre_ent_detachAllObjectsFromBone as detachAllObjectsFromBone +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getBoundingRadius -}+{#fun ogre_ent_getBoundingRadius as getBoundingRadius +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function hasEdgeList -}+{#fun ogre_ent_hasEdgeList as hasEdgeList +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function hasSkeleton -}+{#fun ogre_ent_hasSkeleton as hasSkeleton +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function isHardwareAnimationEnabled -}+{#fun ogre_ent_isHardwareAnimationEnabled as isHardwareAnimationEnabled +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getSoftwareAnimationRequests -}+{#fun ogre_ent_getSoftwareAnimationRequests as getSoftwareAnimationRequests +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function getSoftwareAnimationNormalsRequests -}+{#fun ogre_ent_getSoftwareAnimationNormalsRequests as getSoftwareAnimationNormalsRequests +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function addSoftwareAnimationRequest -}+{#fun ogre_ent_addSoftwareAnimationRequest as addSoftwareAnimationRequest +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function removeSoftwareAnimationRequest -}+{#fun ogre_ent_removeSoftwareAnimationRequest as removeSoftwareAnimationRequest +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function shareSkeletonInstanceWith -}+{#fun ogre_ent_shareSkeletonInstanceWith as shareSkeletonInstanceWith +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function hasVertexAnimation -}+{#fun ogre_ent_hasVertexAnimation as hasVertexAnimation +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function stopSharingSkeletonInstance -}+{#fun ogre_ent_stopSharingSkeletonInstance as stopSharingSkeletonInstance +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function sharesSkeletonInstance -}+{#fun ogre_ent_sharesSkeletonInstance as sharesSkeletonInstance +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function refreshAvailableAnimationState -}+{#fun ogre_ent_refreshAvailableAnimationState as refreshAvailableAnimationState +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function chooseVertexDataForBinding -}+{#fun ogre_ent_chooseVertexDataForBinding as chooseVertexDataForBinding +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' ,+ alloca- `EnumEntityVertexDataBindChoice' peekEnumUtil*} -> `()' #}++{- function isInitialised -}+{#fun ogre_ent_isInitialised as isInitialised +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function backgroundLoadingComplete -}+{#fun ogre_ent_backgroundLoadingComplete as backgroundLoadingComplete +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function setSkipAnimationStateUpdate -}+{#fun ogre_ent_setSkipAnimationStateUpdate as setSkipAnimationStateUpdate +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getSkipAnimationStateUpdate -}+{#fun ogre_ent_getSkipAnimationStateUpdate as getSkipAnimationStateUpdate +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setAlwaysUpdateMainSkeleton -}+{#fun ogre_ent_setAlwaysUpdateMainSkeleton as setAlwaysUpdateMainSkeleton +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getAlwaysUpdateMainSkeleton -}+{#fun ogre_ent_getAlwaysUpdateMainSkeleton as getAlwaysUpdateMainSkeleton +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassEntity.hs
@@ -1,628 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} -import HGamer3D.Bindings.Ogre.TypeSharedPtr -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} -import HGamer3D.Bindings.Ogre.EnumVertexDataBindChoice -{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} - - -cEGetMesh :: HG3DClass -> IO (SharedPtr) -cEGetMesh a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cEGetMesh'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 62 "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 67 "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 72 "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 76 "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 81 "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 86 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} -; -cESetMaterial :: HG3DClass -> SharedPtr -> IO () -cESetMaterial a1 a2 = - withHG3DClass a1 $ \a1' -> - withSharedPtr a2 $ \a2' -> - cESetMaterial'_ a1' a2' >>= \res -> - return () -{-# LINE 90 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} -; -cENotifyCurrentCamera :: HG3DClass -> HG3DClass -> IO () -cENotifyCurrentCamera a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cENotifyCurrentCamera'_ a1' a2' >>= \res -> - return () -{-# LINE 94 "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 98 "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 103 "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 107 "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 111 "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 116 "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 120 "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 124 "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 129 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} -; -cEDetachObjectFromBone2 :: HG3DClass -> HG3DClass -> IO () -cEDetachObjectFromBone2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cEDetachObjectFromBone2'_ a1' a2' >>= \res -> - return () -{-# LINE 133 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} -; -cEDetachAllObjectsFromBone :: HG3DClass -> IO () -cEDetachAllObjectsFromBone a1 = - withHG3DClass a1 $ \a1' -> - cEDetachAllObjectsFromBone'_ a1' >>= \res -> - return () -{-# LINE 136 "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 140 "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 144 "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 148 "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 152 "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 156 "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 160 "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 165 "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 169 "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 173 "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 177 "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 181 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} -; -cEShareSkeletonInstanceWith :: HG3DClass -> HG3DClass -> IO () -cEShareSkeletonInstanceWith a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cEShareSkeletonInstanceWith'_ a1' a2' >>= \res -> - return () -{-# LINE 185 "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 189 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} -; -cEStopSharingSkeletonInstance :: HG3DClass -> IO () -cEStopSharingSkeletonInstance a1 = - withHG3DClass a1 $ \a1' -> - cEStopSharingSkeletonInstance'_ a1' >>= \res -> - return () -{-# LINE 192 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} -; -cERefreshAvailableAnimationState :: HG3DClass -> IO () -cERefreshAvailableAnimationState a1 = - withHG3DClass a1 $ \a1' -> - cERefreshAvailableAnimationState'_ a1' >>= \res -> - return () -{-# LINE 195 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} -; -cEUpdateAnimation :: HG3DClass -> IO () -cEUpdateAnimation a1 = - withHG3DClass a1 $ \a1' -> - cEUpdateAnimation'_ a1' >>= \res -> - return () -{-# LINE 198 "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 202 "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 206 "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 210 "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 214 "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 218 "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 223 "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 227 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} -; -cEMarkBuffersUsedForAnimation :: HG3DClass -> IO () -cEMarkBuffersUsedForAnimation a1 = - withHG3DClass a1 $ \a1' -> - cEMarkBuffersUsedForAnimation'_ a1' >>= \res -> - return () -{-# LINE 230 "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 234 "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 238 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} -; -cEDeinitialise :: HG3DClass -> IO () -cEDeinitialise a1 = - withHG3DClass a1 $ \a1' -> - cEDeinitialise'_ a1' >>= \res -> - return () -{-# LINE 241 "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 245 "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 249 "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 253 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} -; - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE_getMesh_c" - cEGetMesh'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (IO ()))) - -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_setMaterial_c" - cESetMaterial'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (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 CUShort) -> (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 ())))
+ HGamer3D/Bindings/Ogre/ClassEntityFactory.chs view
@@ -0,0 +1,61 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassEntityFactory where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}++#include "ClassEntityFactory.h"+{- function EntityFactory -}+{#fun ogre_entf_construct as new +{ alloca- `HG3DClass' peek*} -> `()' #}++{- function ~EntityFactory -}+{#fun ogre_entf_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getType -}+{#fun ogre_entf_getType as getType +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function destroyInstance -}+{#fun ogre_entf_destroyInstance as destroyInstance +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassEntityFactory.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassEntityFactory.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassEntityFactory.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassEntityFactory.chs" #-} - -
+ HGamer3D/Bindings/Ogre/ClassException.chs view
@@ -0,0 +1,89 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassException where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}++#include "ClassException.h"+{- function Exception -}+{#fun ogre_exc_construct as new +{ fromIntegral `Int' ,+ withCString* `String' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function ~Exception -}+{#fun ogre_exc_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getFullDescription -}+{#fun ogre_exc_getFullDescription as getFullDescription +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function getNumber -}+{#fun ogre_exc_getNumber as getNumber +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function getSource -}+{#fun ogre_exc_getSource as getSource +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function getFile -}+{#fun ogre_exc_getFile as getFile +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function getLine -}+{#fun ogre_exc_getLine as getLine +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function getDescription -}+{#fun ogre_exc_getDescription as getDescription +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function what -}+{#fun ogre_exc_what as what +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassException.hs
@@ -1,147 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassException.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassException.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "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 60 "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 64 "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 68 "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 72 "HGamer3D\\Bindings\\Ogre\\ClassException.chs" #-} -; -cExGetLine :: HG3DClass -> IO (Int) -cExGetLine a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cExGetLine'_ a1' a2' >>= \res -> - peekIntConv a2'>>= \a2'' -> - return (a2'') -{-# LINE 76 "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 80 "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 84 "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_getLine_c" - cExGetLine'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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 ())))
− HGamer3D/Bindings/Ogre/ClassFileHandleDataStream.hs
@@ -1,119 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassFileHandleDataStream.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassFileHandleDataStream.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassFileHandleDataStream.chs" #-} - - -cFhdsSkip :: HG3DClass -> Int -> IO () -cFhdsSkip a1 a2 = - withHG3DClass a1 $ \a1' -> - let {a2' = fromIntegral a2} in - cFhdsSkip'_ a1' a2' >>= \res -> - return () -{-# LINE 60 "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 64 "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 68 "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 72 "HGamer3D\\Bindings\\Ogre\\ClassFileHandleDataStream.chs" #-} -; -cFhdsClose :: HG3DClass -> IO () -cFhdsClose a1 = - withHG3DClass a1 $ \a1' -> - cFhdsClose'_ a1' >>= \res -> - return () -{-# LINE 75 "HGamer3D\\Bindings\\Ogre\\ClassFileHandleDataStream.chs" #-} -; - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFileHandleDataStream.chs.h cFhds_skip_c" - cFhdsSkip'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) - -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 ()))
− HGamer3D/Bindings/Ogre/ClassFileNotFoundException.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassFileNotFoundException.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassFileNotFoundException.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassFileNotFoundException.chs" #-} - -
− HGamer3D/Bindings/Ogre/ClassFileStreamDataStream.hs
@@ -1,134 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassFileStreamDataStream.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassFileStreamDataStream.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "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 63 "HGamer3D\\Bindings\\Ogre\\ClassFileStreamDataStream.chs" #-} -; -cFsdsSkip :: HG3DClass -> Int -> IO () -cFsdsSkip a1 a2 = - withHG3DClass a1 $ \a1' -> - let {a2' = fromIntegral a2} in - cFsdsSkip'_ a1' a2' >>= \res -> - return () -{-# LINE 67 "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 71 "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 75 "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 79 "HGamer3D\\Bindings\\Ogre\\ClassFileStreamDataStream.chs" #-} -; -cFsdsClose :: HG3DClass -> IO () -cFsdsClose a1 = - withHG3DClass a1 $ \a1' -> - cFsdsClose'_ a1' >>= \res -> - return () -{-# LINE 82 "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_skip_c" - cFsdsSkip'_ :: ((HG3DClassPtr) -> (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 ()))
+ HGamer3D/Bindings/Ogre/ClassFrustum.chs view
@@ -0,0 +1,268 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassFrustum where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}+{# import HGamer3D.Bindings.Ogre.StructRadians #}+{# import HGamer3D.Bindings.Ogre.StructVec2 #}+{# import HGamer3D.Bindings.Ogre.StructVec3 #}+{# import HGamer3D.Bindings.Ogre.EnumFrustumPlane #}+{# import HGamer3D.Bindings.Ogre.StructSharedPtr #}+{# import HGamer3D.Bindings.Ogre.EnumProjectionType #}+{# import HGamer3D.Bindings.Ogre.StructQuaternion #}+{# import HGamer3D.Bindings.Ogre.EnumOrientationMode #}++#include "ClassFrustum.h"+{- function Frustum -}+{#fun ogre_frst_construct as new +{ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function ~Frustum -}+{#fun ogre_frst_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function setFOVy -}+{#fun ogre_frst_setFOVy as setFOVy +{ withHG3DClass* `HG3DClass' ,+ withRadians* `Radians' } -> `()' #}++{- function getFOVy -}+{#fun ogre_frst_getFOVy as getFOVy +{ withHG3DClass* `HG3DClass' ,+ alloca- `Radians' peekRadians*} -> `()' #}++{- function setNearClipDistance -}+{#fun ogre_frst_setNearClipDistance as setNearClipDistance +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' } -> `()' #}++{- function getNearClipDistance -}+{#fun ogre_frst_getNearClipDistance as getNearClipDistance +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function setFarClipDistance -}+{#fun ogre_frst_setFarClipDistance as setFarClipDistance +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' } -> `()' #}++{- function getFarClipDistance -}+{#fun ogre_frst_getFarClipDistance as getFarClipDistance +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function setAspectRatio -}+{#fun ogre_frst_setAspectRatio as setAspectRatio +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' } -> `()' #}++{- function getAspectRatio -}+{#fun ogre_frst_getAspectRatio as getAspectRatio +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function setFrustumOffset -}+{#fun ogre_frst_setFrustumOffset as setFrustumOffset +{ withHG3DClass* `HG3DClass' ,+ withVec2* `Vec2' } -> `()' #}++{- function setFrustumOffset2 -}+{#fun ogre_frst_setFrustumOffset2 as setFrustumOffset2 +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function getFrustumOffset -}+{#fun ogre_frst_getFrustumOffset as getFrustumOffset +{ withHG3DClass* `HG3DClass' ,+ alloca- `Vec2' peekVec2*} -> `()' #}++{- function setFocalLength -}+{#fun ogre_frst_setFocalLength as setFocalLength +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' } -> `()' #}++{- function getFocalLength -}+{#fun ogre_frst_getFocalLength as getFocalLength +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function setFrustumExtents -}+{#fun ogre_frst_setFrustumExtents as setFrustumExtents +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function resetFrustumExtents -}+{#fun ogre_frst_resetFrustumExtents as resetFrustumExtents +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getFrustumExtents -}+{#fun ogre_frst_getFrustumExtents as getFrustumExtents +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*,+ alloca- `Float' peekFloatConv*,+ alloca- `Float' peekFloatConv*,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function isCustomViewMatrixEnabled -}+{#fun ogre_frst_isCustomViewMatrixEnabled as isCustomViewMatrixEnabled +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function isCustomProjectionMatrixEnabled -}+{#fun ogre_frst_isCustomProjectionMatrixEnabled as isCustomProjectionMatrixEnabled +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function isVisible3 -}+{#fun ogre_frst_isVisible3 as isVisible3 +{ withHG3DClass* `HG3DClass' ,+ withVec3* `Vec3' ,+ alloca- `EnumFrustumPlane' peekEnumUtil*,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getTypeFlags -}+{#fun ogre_frst_getTypeFlags as getTypeFlags +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function getBoundingRadius -}+{#fun ogre_frst_getBoundingRadius as getBoundingRadius +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function getMovableType -}+{#fun ogre_frst_getMovableType as getMovableType +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function getMaterial -}+{#fun ogre_frst_getMaterial as getMaterial +{ withHG3DClass* `HG3DClass' ,+ alloca- `SharedPtr' peekSharedPtr*} -> `()' #}++{- function getSquaredViewDepth -}+{#fun ogre_frst_getSquaredViewDepth as getSquaredViewDepth +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function getWorldSpaceCorners -}+{#fun ogre_frst_getWorldSpaceCorners as getWorldSpaceCorners +{ withHG3DClass* `HG3DClass' ,+ alloca- `Vec3' peekVec3*} -> `()' #}++{- function setProjectionType -}+{#fun ogre_frst_setProjectionType as setProjectionType +{ withHG3DClass* `HG3DClass' ,+ cIntFromEnum `EnumProjectionType' } -> `()' #}++{- function getProjectionType -}+{#fun ogre_frst_getProjectionType as getProjectionType +{ withHG3DClass* `HG3DClass' ,+ alloca- `EnumProjectionType' peekEnumUtil*} -> `()' #}++{- function setOrthoWindow -}+{#fun ogre_frst_setOrthoWindow as setOrthoWindow +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function setOrthoWindowHeight -}+{#fun ogre_frst_setOrthoWindowHeight as setOrthoWindowHeight +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' } -> `()' #}++{- function setOrthoWindowWidth -}+{#fun ogre_frst_setOrthoWindowWidth as setOrthoWindowWidth +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' } -> `()' #}++{- function getOrthoWindowHeight -}+{#fun ogre_frst_getOrthoWindowHeight as getOrthoWindowHeight +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function getOrthoWindowWidth -}+{#fun ogre_frst_getOrthoWindowWidth as getOrthoWindowWidth +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function disableReflection -}+{#fun ogre_frst_disableReflection as disableReflection +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function isReflected -}+{#fun ogre_frst_isReflected as isReflected +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function disableCustomNearClipPlane -}+{#fun ogre_frst_disableCustomNearClipPlane as disableCustomNearClipPlane +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function isCustomNearClipPlaneEnabled -}+{#fun ogre_frst_isCustomNearClipPlaneEnabled as isCustomNearClipPlaneEnabled +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getPositionForViewUpdate -}+{#fun ogre_frst_getPositionForViewUpdate as getPositionForViewUpdate +{ withHG3DClass* `HG3DClass' ,+ alloca- `Vec3' peekVec3*} -> `()' #}++{- function getOrientationForViewUpdate -}+{#fun ogre_frst_getOrientationForViewUpdate as getOrientationForViewUpdate +{ withHG3DClass* `HG3DClass' ,+ alloca- `Quaternion' peekQuaternion*} -> `()' #}++{- function setOrientationMode -}+{#fun ogre_frst_setOrientationMode as setOrientationMode +{ withHG3DClass* `HG3DClass' ,+ cIntFromEnum `EnumOrientationMode' } -> `()' #}++{- function getOrientationMode -}+{#fun ogre_frst_getOrientationMode as getOrientationMode +{ withHG3DClass* `HG3DClass' ,+ alloca- `EnumOrientationMode' peekEnumUtil*} -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassFrustum.hs
@@ -1,523 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -import HGamer3D.Bindings.Ogre.TypeRadian -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -import HGamer3D.Bindings.Ogre.TypeVector2 -{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -import HGamer3D.Bindings.Ogre.TypeVector3 -{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -import HGamer3D.Bindings.Ogre.EnumFrustumPlane -{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -import HGamer3D.Bindings.Ogre.TypeSharedPtr -{-# LINE 59 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -import HGamer3D.Bindings.Ogre.EnumProjectionType -{-# LINE 60 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -import HGamer3D.Bindings.Ogre.TypeQuaternion -{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -import HGamer3D.Bindings.Ogre.EnumOrientationMode -{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} - - -cFSetFOVy :: HG3DClass -> Radians -> IO () -cFSetFOVy a1 a2 = - withHG3DClass a1 $ \a1' -> - withRadians a2 $ \a2' -> - cFSetFOVy'_ a1' a2' >>= \res -> - return () -{-# LINE 68 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFGetFOVy :: HG3DClass -> IO (Radians) -cFGetFOVy a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cFGetFOVy'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 72 "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 76 "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 80 "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 84 "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 88 "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 92 "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 96 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFSetFrustumOffset :: HG3DClass -> Vector2 -> IO () -cFSetFrustumOffset a1 a2 = - withHG3DClass a1 $ \a1' -> - withVector2 a2 $ \a2' -> - cFSetFrustumOffset'_ a1' a2' >>= \res -> - return () -{-# LINE 100 "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 105 "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 109 "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 113 "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 117 "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 124 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFResetFrustumExtents :: HG3DClass -> IO () -cFResetFrustumExtents a1 = - withHG3DClass a1 $ \a1' -> - cFResetFrustumExtents'_ a1' >>= \res -> - return () -{-# LINE 127 "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 131 "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 135 "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 141 "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 145 "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 149 "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 153 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFNotifyCurrentCamera :: HG3DClass -> HG3DClass -> IO () -cFNotifyCurrentCamera a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cFNotifyCurrentCamera'_ a1' a2' >>= \res -> - return () -{-# LINE 157 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFGetMaterial :: HG3DClass -> IO (SharedPtr) -cFGetMaterial a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cFGetMaterial'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 161 "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 165 "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 169 "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 174 "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 178 "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 182 "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 186 "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 190 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFDisableReflection :: HG3DClass -> IO () -cFDisableReflection a1 = - withHG3DClass a1 $ \a1' -> - cFDisableReflection'_ a1' >>= \res -> - return () -{-# LINE 193 "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 197 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFDisableCustomNearClipPlane :: HG3DClass -> IO () -cFDisableCustomNearClipPlane a1 = - withHG3DClass a1 $ \a1' -> - cFDisableCustomNearClipPlane'_ a1' >>= \res -> - return () -{-# LINE 200 "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 204 "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 208 "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 212 "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 216 "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 220 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_setFOVy_c" - cFSetFOVy'_ :: ((HG3DClassPtr) -> ((RadiansPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_getFOVy_c" - cFGetFOVy'_ :: ((HG3DClassPtr) -> ((RadiansPtr) -> (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_getMaterial_c" - cFGetMaterial'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (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 ())))
− HGamer3D/Bindings/Ogre/ClassGeometryBucket.hs
@@ -1,88 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassGeometryBucket.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassGeometryBucket.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassGeometryBucket.chs" #-} -import HGamer3D.Bindings.Ogre.TypeSharedPtr -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassGeometryBucket.chs" #-} - - -cGbGetMaterial :: HG3DClass -> IO (SharedPtr) -cGbGetMaterial a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cGbGetMaterial'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 61 "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 65 "HGamer3D\\Bindings\\Ogre\\ClassGeometryBucket.chs" #-} -; - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGeometryBucket.chs.h cGb_getMaterial_c" - cGbGetMaterial'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGeometryBucket.chs.h cGb_build_c" - cGbBuild'_ :: ((HG3DClassPtr) -> (CInt -> (IO ())))
− HGamer3D/Bindings/Ogre/ClassGpuProgram.hs
@@ -1,390 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} -import HGamer3D.Bindings.Ogre.EnumGpuProgramType -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} - - -cGpSetSourceFile :: HG3DClass -> String -> IO () -cGpSetSourceFile a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cGpSetSourceFile'_ a1' a2' >>= \res -> - return () -{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} -; -cGpSetSource :: HG3DClass -> String -> IO () -cGpSetSource a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cGpSetSource'_ a1' a2' >>= \res -> - return () -{-# LINE 65 "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 69 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} -; -cGpSetSyntaxCode :: HG3DClass -> String -> IO () -cGpSetSyntaxCode a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cGpSetSyntaxCode'_ a1' a2' >>= \res -> - return () -{-# LINE 73 "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 77 "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 81 "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 85 "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 89 "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 93 "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 97 "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 101 "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 105 "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 109 "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 113 "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 117 "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 121 "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 125 "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 129 "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 133 "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 137 "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 141 "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 145 "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 149 "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 153 "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 157 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} -; -cGpResetCompileError :: HG3DClass -> IO () -cGpResetCompileError a1 = - withHG3DClass a1 $ \a1' -> - cGpResetCompileError'_ a1' >>= \res -> - return () -{-# LINE 160 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} -; -cGpSetManualNamedConstantsFile :: HG3DClass -> String -> IO () -cGpSetManualNamedConstantsFile a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cGpSetManualNamedConstantsFile'_ a1' a2' >>= \res -> - return () -{-# LINE 164 "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 168 "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 ())))
− HGamer3D/Bindings/Ogre/ClassGpuProgramManager.hs
@@ -1,162 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs" #-} -import HGamer3D.Bindings.Ogre.TypeSharedPtr -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs" #-} -import HGamer3D.Bindings.Ogre.EnumGpuProgramType -{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs" #-} - - -cGpmLoad :: HG3DClass -> String -> String -> String -> EnumGpuProgramType -> String -> IO (SharedPtr) -cGpmLoad a1 a2 a3 a4 a5 a6 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - withCString a3 $ \a3' -> - withCString a4 $ \a4' -> - let {a5' = cIntFromEnum a5} in - withCString a6 $ \a6' -> - alloca $ \a7' -> - cGpmLoad'_ a1' a2' a3' a4' a5' a6' a7' >>= \res -> - peek a7'>>= \a7'' -> - return (a7'') -{-# LINE 67 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs" #-} -; -cGpmLoadFromString :: HG3DClass -> String -> String -> String -> EnumGpuProgramType -> String -> IO (SharedPtr) -cGpmLoadFromString a1 a2 a3 a4 a5 a6 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - withCString a3 $ \a3' -> - withCString a4 $ \a4' -> - let {a5' = cIntFromEnum a5} in - withCString a6 $ \a6' -> - alloca $ \a7' -> - cGpmLoadFromString'_ a1' a2' a3' a4' a5' a6' a7' >>= \res -> - peek a7'>>= \a7'' -> - return (a7'') -{-# LINE 76 "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 81 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs" #-} -; -cGpmCreateProgram :: HG3DClass -> String -> String -> String -> EnumGpuProgramType -> String -> IO (SharedPtr) -cGpmCreateProgram a1 a2 a3 a4 a5 a6 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - withCString a3 $ \a3' -> - withCString a4 $ \a4' -> - let {a5' = cIntFromEnum a5} in - withCString a6 $ \a6' -> - alloca $ \a7' -> - cGpmCreateProgram'_ a1' a2' a3' a4' a5' a6' a7' >>= \res -> - peek a7'>>= \a7'' -> - return (a7'') -{-# LINE 90 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs" #-} -; -cGpmCreateProgramFromString :: HG3DClass -> String -> String -> String -> EnumGpuProgramType -> String -> IO (SharedPtr) -cGpmCreateProgramFromString a1 a2 a3 a4 a5 a6 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - withCString a3 $ \a3' -> - withCString a4 $ \a4' -> - let {a5' = cIntFromEnum a5} in - withCString a6 $ \a6' -> - alloca $ \a7' -> - cGpmCreateProgramFromString'_ a1' a2' a3' a4' a5' a6' a7' >>= \res -> - peek a7'>>= \a7'' -> - return (a7'') -{-# LINE 99 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs" #-} -; -cGpmGetByName :: HG3DClass -> String -> Bool -> IO (SharedPtr) -cGpmGetByName a1 a2 a3 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - let {a3' = fromBool a3} in - alloca $ \a4' -> - cGpmGetByName'_ a1' a2' a3' a4' >>= \res -> - peek a4'>>= \a4'' -> - return (a4'') -{-# LINE 105 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs" #-} -; - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs.h cGpm_load_c" - cGpmLoad'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CChar) -> (CInt -> ((Ptr CChar) -> ((SharedPtrPtr) -> (IO ())))))))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs.h cGpm_loadFromString_c" - cGpmLoadFromString'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CChar) -> (CInt -> ((Ptr CChar) -> ((SharedPtrPtr) -> (IO ())))))))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs.h cGpm_isSyntaxSupported_c" - cGpmIsSyntaxSupported'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs.h cGpm_createProgram_c" - cGpmCreateProgram'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CChar) -> (CInt -> ((Ptr CChar) -> ((SharedPtrPtr) -> (IO ())))))))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs.h cGpm_createProgramFromString_c" - cGpmCreateProgramFromString'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CChar) -> (CInt -> ((Ptr CChar) -> ((SharedPtrPtr) -> (IO ())))))))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs.h cGpm_getByName_c" - cGpmGetByName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> ((SharedPtrPtr) -> (IO ())))))
+ HGamer3D/Bindings/Ogre/ClassHG3DUtilities.chs view
@@ -0,0 +1,60 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- ClassHG3DUtilities.chs++-- ++module HGamer3D.Bindings.Ogre.ClassHG3DUtilities where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}++#include "ClassHG3DUtilities.h"+{- function getWindowHandle -}+{#fun ogre_hg3dutl_getWindowHandle as getWindowHandle +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function setupCloseEventHandler -}+{#fun ogre_hg3dutl_setupCloseEventHandler as setupCloseEventHandler +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function checkQuitReceived -}+{#fun ogre_hg3dutl_checkQuitReceived as checkQuitReceived +{ alloca- `Int' peekIntConv*} -> `()' #}++{- function buildTangentVectors -}+{#fun ogre_hg3dutl_buildTangentVectors as buildTangentVectors +{ withHG3DClass* `HG3DClass' } -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassHardwareBufferLicensee.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassHardwareBufferLicensee.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassHardwareBufferLicensee.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassHardwareBufferLicensee.chs" #-} - -
− HGamer3D/Bindings/Ogre/ClassHardwareBufferManager.hs
@@ -1,95 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassHardwareBufferManager.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassHardwareBufferManager.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassHardwareBufferManager.chs" #-} - - -cHbmFreeUnusedBufferCopies :: HG3DClass -> IO () -cHbmFreeUnusedBufferCopies a1 = - withHG3DClass a1 $ \a1' -> - cHbmFreeUnusedBufferCopies'_ a1' >>= \res -> - return () -{-# LINE 59 "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 63 "HGamer3D\\Bindings\\Ogre\\ClassHardwareBufferManager.chs" #-} -; -cHbmNotifyIndexBufferDestroyed :: HG3DClass -> HG3DClass -> IO () -cHbmNotifyIndexBufferDestroyed a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cHbmNotifyIndexBufferDestroyed'_ a1' a2' >>= \res -> - return () -{-# LINE 67 "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 ())))
− HGamer3D/Bindings/Ogre/ClassHardwareBufferManagerBase.hs
@@ -1,95 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassHardwareBufferManagerBase.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassHardwareBufferManagerBase.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassHardwareBufferManagerBase.chs" #-} - - -cHbmbFreeUnusedBufferCopies :: HG3DClass -> IO () -cHbmbFreeUnusedBufferCopies a1 = - withHG3DClass a1 $ \a1' -> - cHbmbFreeUnusedBufferCopies'_ a1' >>= \res -> - return () -{-# LINE 59 "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 63 "HGamer3D\\Bindings\\Ogre\\ClassHardwareBufferManagerBase.chs" #-} -; -cHbmbNotifyIndexBufferDestroyed :: HG3DClass -> HG3DClass -> IO () -cHbmbNotifyIndexBufferDestroyed a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cHbmbNotifyIndexBufferDestroyed'_ a1' a2' >>= \res -> - return () -{-# LINE 67 "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 ())))
− HGamer3D/Bindings/Ogre/ClassHardwareIndexBuffer.hs
@@ -1,113 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassHardwareIndexBuffer.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassHardwareIndexBuffer.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassHardwareIndexBuffer.chs" #-} -import HGamer3D.Bindings.Ogre.EnumIndexType -{-# LINE 55 "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 61 "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 65 "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 69 "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 73 "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 ())))
− HGamer3D/Bindings/Ogre/ClassHardwareOcclusionQuery.hs
@@ -1,121 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassHardwareOcclusionQuery.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassHardwareOcclusionQuery.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassHardwareOcclusionQuery.chs" #-} - - -cHoqBeginOcclusionQuery :: HG3DClass -> IO () -cHoqBeginOcclusionQuery a1 = - withHG3DClass a1 $ \a1' -> - cHoqBeginOcclusionQuery'_ a1' >>= \res -> - return () -{-# LINE 59 "HGamer3D\\Bindings\\Ogre\\ClassHardwareOcclusionQuery.chs" #-} -; -cHoqEndOcclusionQuery :: HG3DClass -> IO () -cHoqEndOcclusionQuery a1 = - withHG3DClass a1 $ \a1' -> - cHoqEndOcclusionQuery'_ a1' >>= \res -> - return () -{-# LINE 62 "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 67 "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 71 "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 75 "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 ())))
− HGamer3D/Bindings/Ogre/ClassHardwarePixelBuffer.hs
@@ -1,139 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassHardwarePixelBuffer.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassHardwarePixelBuffer.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassHardwarePixelBuffer.chs" #-} -import HGamer3D.Bindings.Ogre.TypeSharedPtr -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassHardwarePixelBuffer.chs" #-} -import HGamer3D.Bindings.Ogre.EnumPixelFormat -{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassHardwarePixelBuffer.chs" #-} - - -cHpbBlit2 :: HG3DClass -> SharedPtr -> IO () -cHpbBlit2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withSharedPtr a2 $ \a2' -> - cHpbBlit2'_ a1' a2' >>= \res -> - return () -{-# LINE 62 "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 67 "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 71 "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 75 "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 79 "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 83 "HGamer3D\\Bindings\\Ogre\\ClassHardwarePixelBuffer.chs" #-} -; - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassHardwarePixelBuffer.chs.h cHpb_blit2_c" - cHpbBlit2'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (IO ()))) - -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 ())))
− HGamer3D/Bindings/Ogre/ClassHighLevelGpuProgram.hs
@@ -1,75 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassHighLevelGpuProgram.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassHighLevelGpuProgram.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "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 60 "HGamer3D\\Bindings\\Ogre\\ClassHighLevelGpuProgram.chs" #-} -; - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassHighLevelGpuProgram.chs.h cHlgp__getBindingDelegate_c" - cHlgpGetBindingDelegate'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
− HGamer3D/Bindings/Ogre/ClassHighLevelGpuProgramFactory.hs
@@ -1,75 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassHighLevelGpuProgramFactory.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassHighLevelGpuProgramFactory.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "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 60 "HGamer3D\\Bindings\\Ogre\\ClassHighLevelGpuProgramFactory.chs" #-} -; - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassHighLevelGpuProgramFactory.chs.h cHlgpf_getLanguage_c" - cHlgpfGetLanguage'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ())))
− HGamer3D/Bindings/Ogre/ClassIOException.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassIOException.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassIOException.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassIOException.chs" #-} - -
− HGamer3D/Bindings/Ogre/ClassInternalErrorException.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassInternalErrorException.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassInternalErrorException.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassInternalErrorException.chs" #-} - -
− HGamer3D/Bindings/Ogre/ClassInvalidParametersException.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassInvalidParametersException.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassInvalidParametersException.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassInvalidParametersException.chs" #-} - -
− HGamer3D/Bindings/Ogre/ClassInvalidStateException.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassInvalidStateException.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassInvalidStateException.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassInvalidStateException.chs" #-} - -
− HGamer3D/Bindings/Ogre/ClassItemIdentityException.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassItemIdentityException.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassItemIdentityException.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassItemIdentityException.chs" #-} - -
− HGamer3D/Bindings/Ogre/ClassKeyFrame.hs
@@ -1,75 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassKeyFrame.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassKeyFrame.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "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 60 "HGamer3D\\Bindings\\Ogre\\ClassKeyFrame.chs" #-} -; - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassKeyFrame.chs.h cKf_getTime_c" - cKfGetTime'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ())))
− HGamer3D/Bindings/Ogre/ClassLODBucket.hs
@@ -1,86 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassLODBucket.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassLODBucket.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "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 60 "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 64 "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 ())))
− HGamer3D/Bindings/Ogre/ClassLiSPSMShadowCameraSetup.hs
@@ -1,134 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassLiSPSMShadowCameraSetup.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassLiSPSMShadowCameraSetup.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassLiSPSMShadowCameraSetup.chs" #-} -import HGamer3D.Bindings.Ogre.TypeDegree -{-# LINE 55 "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 61 "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 65 "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 69 "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 73 "HGamer3D\\Bindings\\Ogre\\ClassLiSPSMShadowCameraSetup.chs" #-} -; -cLspsmscsSetCameraLightDirectionThreshold :: HG3DClass -> Degrees -> IO () -cLspsmscsSetCameraLightDirectionThreshold a1 a2 = - withHG3DClass a1 $ \a1' -> - withDegrees a2 $ \a2' -> - cLspsmscsSetCameraLightDirectionThreshold'_ a1' a2' >>= \res -> - return () -{-# LINE 77 "HGamer3D\\Bindings\\Ogre\\ClassLiSPSMShadowCameraSetup.chs" #-} -; -cLspsmscsGetCameraLightDirectionThreshold :: HG3DClass -> IO (Degrees) -cLspsmscsGetCameraLightDirectionThreshold a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cLspsmscsGetCameraLightDirectionThreshold'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 81 "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) -> ((DegreesPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLiSPSMShadowCameraSetup.chs.h cLspsmscs_getCameraLightDirectionThreshold_c" - cLspsmscsGetCameraLightDirectionThreshold'_ :: ((HG3DClassPtr) -> ((DegreesPtr) -> (IO ())))
+ HGamer3D/Bindings/Ogre/ClassLight.chs view
@@ -0,0 +1,293 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassLight where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}+{# import HGamer3D.Bindings.Ogre.EnumLightType #}+{# import HGamer3D.Bindings.Ogre.StructColour #}+{# import HGamer3D.Bindings.Ogre.StructVec3 #}+{# import HGamer3D.Bindings.Ogre.StructRadians #}++#include "ClassLight.h"+{- function Light2 -}+{#fun ogre_lgt_construct as new +{ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function ~Light -}+{#fun ogre_lgt_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function setType -}+{#fun ogre_lgt_setType as setType +{ withHG3DClass* `HG3DClass' ,+ cIntFromEnum `EnumLightType' } -> `()' #}++{- function getType -}+{#fun ogre_lgt_getType as getType +{ withHG3DClass* `HG3DClass' ,+ alloca- `EnumLightType' peekEnumUtil*} -> `()' #}++{- function setDiffuseColour -}+{#fun ogre_lgt_setDiffuseColour as setDiffuseColour +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function setDiffuseColour2 -}+{#fun ogre_lgt_setDiffuseColour2 as setDiffuseColour2 +{ withHG3DClass* `HG3DClass' ,+ withColour* `Colour' } -> `()' #}++{- function getDiffuseColour -}+{#fun ogre_lgt_getDiffuseColour as getDiffuseColour +{ withHG3DClass* `HG3DClass' ,+ alloca- `Colour' peekColour*} -> `()' #}++{- function setSpecularColour -}+{#fun ogre_lgt_setSpecularColour as setSpecularColour +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function setSpecularColour2 -}+{#fun ogre_lgt_setSpecularColour2 as setSpecularColour2 +{ withHG3DClass* `HG3DClass' ,+ withColour* `Colour' } -> `()' #}++{- function getSpecularColour -}+{#fun ogre_lgt_getSpecularColour as getSpecularColour +{ withHG3DClass* `HG3DClass' ,+ alloca- `Colour' peekColour*} -> `()' #}++{- function setAttenuation -}+{#fun ogre_lgt_setAttenuation as setAttenuation +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function getAttenuationRange -}+{#fun ogre_lgt_getAttenuationRange as getAttenuationRange +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function getAttenuationConstant -}+{#fun ogre_lgt_getAttenuationConstant as getAttenuationConstant +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function getAttenuationLinear -}+{#fun ogre_lgt_getAttenuationLinear as getAttenuationLinear +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function getAttenuationQuadric -}+{#fun ogre_lgt_getAttenuationQuadric as getAttenuationQuadric +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function setPosition -}+{#fun ogre_lgt_setPosition as setPosition +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function setPosition2 -}+{#fun ogre_lgt_setPosition2 as setPosition2 +{ withHG3DClass* `HG3DClass' ,+ withVec3* `Vec3' } -> `()' #}++{- function getPosition -}+{#fun ogre_lgt_getPosition as getPosition +{ withHG3DClass* `HG3DClass' ,+ alloca- `Vec3' peekVec3*} -> `()' #}++{- function setDirection -}+{#fun ogre_lgt_setDirection as setDirection +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function setDirection2 -}+{#fun ogre_lgt_setDirection2 as setDirection2 +{ withHG3DClass* `HG3DClass' ,+ withVec3* `Vec3' } -> `()' #}++{- function getDirection -}+{#fun ogre_lgt_getDirection as getDirection +{ withHG3DClass* `HG3DClass' ,+ alloca- `Vec3' peekVec3*} -> `()' #}++{- function setSpotlightRange -}+{#fun ogre_lgt_setSpotlightRange as setSpotlightRange +{ withHG3DClass* `HG3DClass' ,+ withRadians* `Radians' ,+ withRadians* `Radians' ,+ realToFrac `Float' } -> `()' #}++{- function getSpotlightInnerAngle -}+{#fun ogre_lgt_getSpotlightInnerAngle as getSpotlightInnerAngle +{ withHG3DClass* `HG3DClass' ,+ alloca- `Radians' peekRadians*} -> `()' #}++{- function getSpotlightOuterAngle -}+{#fun ogre_lgt_getSpotlightOuterAngle as getSpotlightOuterAngle +{ withHG3DClass* `HG3DClass' ,+ alloca- `Radians' peekRadians*} -> `()' #}++{- function getSpotlightFalloff -}+{#fun ogre_lgt_getSpotlightFalloff as getSpotlightFalloff +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function setSpotlightInnerAngle -}+{#fun ogre_lgt_setSpotlightInnerAngle as setSpotlightInnerAngle +{ withHG3DClass* `HG3DClass' ,+ withRadians* `Radians' } -> `()' #}++{- function setSpotlightOuterAngle -}+{#fun ogre_lgt_setSpotlightOuterAngle as setSpotlightOuterAngle +{ withHG3DClass* `HG3DClass' ,+ withRadians* `Radians' } -> `()' #}++{- function setSpotlightFalloff -}+{#fun ogre_lgt_setSpotlightFalloff as setSpotlightFalloff +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' } -> `()' #}++{- function setSpotlightNearClipDistance -}+{#fun ogre_lgt_setSpotlightNearClipDistance as setSpotlightNearClipDistance +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' } -> `()' #}++{- function getSpotlightNearClipDistance -}+{#fun ogre_lgt_getSpotlightNearClipDistance as getSpotlightNearClipDistance +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function setPowerScale -}+{#fun ogre_lgt_setPowerScale as setPowerScale +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' } -> `()' #}++{- function getPowerScale -}+{#fun ogre_lgt_getPowerScale as getPowerScale +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function getMovableType -}+{#fun ogre_lgt_getMovableType as getMovableType +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function getDerivedPosition -}+{#fun ogre_lgt_getDerivedPosition as getDerivedPosition +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' ,+ alloca- `Vec3' peekVec3*} -> `()' #}++{- function getDerivedDirection -}+{#fun ogre_lgt_getDerivedDirection as getDerivedDirection +{ withHG3DClass* `HG3DClass' ,+ alloca- `Vec3' peekVec3*} -> `()' #}++{- function setVisible -}+{#fun ogre_lgt_setVisible as setVisible +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getBoundingRadius -}+{#fun ogre_lgt_getBoundingRadius as getBoundingRadius +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function getTypeFlags -}+{#fun ogre_lgt_getTypeFlags as getTypeFlags +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function resetCustomShadowCameraSetup -}+{#fun ogre_lgt_resetCustomShadowCameraSetup as resetCustomShadowCameraSetup +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function setShadowFarDistance -}+{#fun ogre_lgt_setShadowFarDistance as setShadowFarDistance +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' } -> `()' #}++{- function resetShadowFarDistance -}+{#fun ogre_lgt_resetShadowFarDistance as resetShadowFarDistance +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getShadowFarDistance -}+{#fun ogre_lgt_getShadowFarDistance as getShadowFarDistance +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function getShadowFarDistanceSquared -}+{#fun ogre_lgt_getShadowFarDistanceSquared as getShadowFarDistanceSquared +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function setShadowNearClipDistance -}+{#fun ogre_lgt_setShadowNearClipDistance as setShadowNearClipDistance +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' } -> `()' #}++{- function getShadowNearClipDistance -}+{#fun ogre_lgt_getShadowNearClipDistance as getShadowNearClipDistance +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function setShadowFarClipDistance -}+{#fun ogre_lgt_setShadowFarClipDistance as setShadowFarClipDistance +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' } -> `()' #}++{- function getShadowFarClipDistance -}+{#fun ogre_lgt_getShadowFarClipDistance as getShadowFarClipDistance +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassLight.hs
@@ -1,662 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -import HGamer3D.Bindings.Ogre.TypeVector3 -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -import HGamer3D.Bindings.Ogre.EnumLightTypes -{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -import HGamer3D.Bindings.Ogre.TypeColour -{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -import HGamer3D.Bindings.Ogre.TypeRadian -{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -import HGamer3D.Bindings.Ogre.TypeVector4 -{-# LINE 59 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} - - -cLCalcTempSquareDist :: HG3DClass -> Vector3 -> IO () -cLCalcTempSquareDist a1 a2 = - withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> - cLCalcTempSquareDist'_ a1' a2' >>= \res -> - return () -{-# LINE 65 "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 69 "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 73 "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 79 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLSetDiffuseColour2 :: HG3DClass -> Colour -> IO () -cLSetDiffuseColour2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withColour a2 $ \a2' -> - cLSetDiffuseColour2'_ a1' a2' >>= \res -> - return () -{-# LINE 83 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLGetDiffuseColour :: HG3DClass -> IO (Colour) -cLGetDiffuseColour a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cLGetDiffuseColour'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 87 "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 93 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLSetSpecularColour2 :: HG3DClass -> Colour -> IO () -cLSetSpecularColour2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withColour a2 $ \a2' -> - cLSetSpecularColour2'_ a1' a2' >>= \res -> - return () -{-# LINE 97 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLGetSpecularColour :: HG3DClass -> IO (Colour) -cLGetSpecularColour a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cLGetSpecularColour'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 101 "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 108 "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 112 "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 116 "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 120 "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 124 "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 130 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLSetPosition2 :: HG3DClass -> Vector3 -> IO () -cLSetPosition2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> - cLSetPosition2'_ a1' a2' >>= \res -> - return () -{-# LINE 134 "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 138 "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 144 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLSetDirection2 :: HG3DClass -> Vector3 -> IO () -cLSetDirection2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> - cLSetDirection2'_ a1' a2' >>= \res -> - return () -{-# LINE 148 "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 152 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLSetSpotlightRange :: HG3DClass -> Radians -> Radians -> Float -> IO () -cLSetSpotlightRange a1 a2 a3 a4 = - withHG3DClass a1 $ \a1' -> - withRadians a2 $ \a2' -> - withRadians a3 $ \a3' -> - let {a4' = realToFrac a4} in - cLSetSpotlightRange'_ a1' a2' a3' a4' >>= \res -> - return () -{-# LINE 158 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLGetSpotlightInnerAngle :: HG3DClass -> IO (Radians) -cLGetSpotlightInnerAngle a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cLGetSpotlightInnerAngle'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 162 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLGetSpotlightOuterAngle :: HG3DClass -> IO (Radians) -cLGetSpotlightOuterAngle a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cLGetSpotlightOuterAngle'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 166 "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 170 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLSetSpotlightInnerAngle :: HG3DClass -> Radians -> IO () -cLSetSpotlightInnerAngle a1 a2 = - withHG3DClass a1 $ \a1' -> - withRadians a2 $ \a2' -> - cLSetSpotlightInnerAngle'_ a1' a2' >>= \res -> - return () -{-# LINE 174 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLSetSpotlightOuterAngle :: HG3DClass -> Radians -> IO () -cLSetSpotlightOuterAngle a1 a2 = - withHG3DClass a1 $ \a1' -> - withRadians a2 $ \a2' -> - cLSetSpotlightOuterAngle'_ a1' a2' >>= \res -> - return () -{-# LINE 178 "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 182 "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 186 "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 190 "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 195 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLNotifyMoved :: HG3DClass -> IO () -cLNotifyMoved a1 = - withHG3DClass a1 $ \a1' -> - cLNotifyMoved'_ a1' >>= \res -> - return () -{-# LINE 198 "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 202 "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 207 "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 211 "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 215 "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 219 "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 224 "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 228 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLResetCustomShadowCameraSetup :: HG3DClass -> IO () -cLResetCustomShadowCameraSetup a1 = - withHG3DClass a1 $ \a1' -> - cLResetCustomShadowCameraSetup'_ a1' >>= \res -> - return () -{-# LINE 231 "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 235 "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 239 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLResetShadowFarDistance :: HG3DClass -> IO () -cLResetShadowFarDistance a1 = - withHG3DClass a1 $ \a1' -> - cLResetShadowFarDistance'_ a1' >>= \res -> - return () -{-# LINE 242 "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 246 "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 250 "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 254 "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 258 "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 262 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLSetCameraRelative :: HG3DClass -> HG3DClass -> IO () -cLSetCameraRelative a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cLSetCameraRelative'_ a1' a2' >>= \res -> - return () -{-# LINE 266 "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 271 "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 276 "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) -> ((ColourPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_getDiffuseColour_c" - cLGetDiffuseColour'_ :: ((HG3DClassPtr) -> ((ColourPtr) -> (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) -> ((ColourPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_getSpecularColour_c" - cLGetSpecularColour'_ :: ((HG3DClassPtr) -> ((ColourPtr) -> (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) -> ((RadiansPtr) -> ((RadiansPtr) -> (CFloat -> (IO ()))))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_getSpotlightInnerAngle_c" - cLGetSpotlightInnerAngle'_ :: ((HG3DClassPtr) -> ((RadiansPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_getSpotlightOuterAngle_c" - cLGetSpotlightOuterAngle'_ :: ((HG3DClassPtr) -> ((RadiansPtr) -> (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) -> ((RadiansPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_setSpotlightOuterAngle_c" - cLSetSpotlightOuterAngle'_ :: ((HG3DClassPtr) -> ((RadiansPtr) -> (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) -> (CUShort -> ((Vector4Ptr) -> (IO ())))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_getCustomParameter_c" - cLGetCustomParameter'_ :: ((HG3DClassPtr) -> (CUShort -> ((Vector4Ptr) -> (IO ()))))
+ HGamer3D/Bindings/Ogre/ClassLightFactory.chs view
@@ -0,0 +1,61 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassLightFactory where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}++#include "ClassLightFactory.h"+{- function LightFactory -}+{#fun ogre_lgtf_construct as new +{ alloca- `HG3DClass' peek*} -> `()' #}++{- function ~LightFactory -}+{#fun ogre_lgtf_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getType -}+{#fun ogre_lgtf_getType as getType +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function destroyInstance -}+{#fun ogre_lgtf_destroyInstance as destroyInstance +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassLightFactory.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassLightFactory.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassLightFactory.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassLightFactory.chs" #-} - -
+ HGamer3D/Bindings/Ogre/ClassLog.chs view
@@ -0,0 +1,96 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- ClassLog.chs++-- ++module HGamer3D.Bindings.Ogre.ClassLog where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}+{# import HGamer3D.Bindings.Ogre.EnumLogMessageLevel #}+{# import HGamer3D.Bindings.Ogre.EnumLoggingLevel #}++#include "ClassLog.h"+{- function ~Log -}+{#fun ogre_lg_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getName -}+{#fun ogre_lg_getName as getName +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function isDebugOutputEnabled -}+{#fun ogre_lg_isDebugOutputEnabled as isDebugOutputEnabled +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function isFileOutputSuppressed -}+{#fun ogre_lg_isFileOutputSuppressed as isFileOutputSuppressed +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function isTimeStampEnabled -}+{#fun ogre_lg_isTimeStampEnabled as isTimeStampEnabled +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function logMessage -}+{#fun ogre_lg_logMessage as logMessage +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ cIntFromEnum `EnumLogMessageLevel' ,+ fromBool `Bool' } -> `()' #}++{- function setDebugOutputEnabled -}+{#fun ogre_lg_setDebugOutputEnabled as setDebugOutputEnabled +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function setLogDetail -}+{#fun ogre_lg_setLogDetail as setLogDetail +{ withHG3DClass* `HG3DClass' ,+ cIntFromEnum `EnumLoggingLevel' } -> `()' #}++{- function setTimeStampEnabled -}+{#fun ogre_lg_setTimeStampEnabled as setTimeStampEnabled +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getLogDetail -}+{#fun ogre_lg_getLogDetail as getLogDetail +{ withHG3DClass* `HG3DClass' ,+ alloca- `EnumLoggingLevel' peekEnumUtil*} -> `()' #}+
+ HGamer3D/Bindings/Ogre/ClassLogManager.chs view
@@ -0,0 +1,112 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassLogManager where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}+{# import HGamer3D.Bindings.Ogre.EnumLogMessageLevel #}+{# import HGamer3D.Bindings.Ogre.EnumLoggingLevel #}++#include "ClassLogManager.h"+{- function ~LogManager -}+{#fun ogre_lmgr_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function createLog -}+{#fun ogre_lmgr_createLog as createLog +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ fromBool `Bool' ,+ fromBool `Bool' ,+ fromBool `Bool' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getLog -}+{#fun ogre_lmgr_getLog as getLog +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getDefaultLog -}+{#fun ogre_lmgr_getDefaultLog as getDefaultLog +{ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function destroyLog -}+{#fun ogre_lmgr_destroyLog as destroyLog +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function destroyLog2 -}+{#fun ogre_lmgr_destroyLog2 as destroyLog2 +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function setDefaultLog -}+{#fun ogre_lmgr_setDefaultLog as setDefaultLog +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function logMessage -}+{#fun ogre_lmgr_logMessage as logMessage +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ cIntFromEnum `EnumLogMessageLevel' ,+ fromBool `Bool' } -> `()' #}++{- function logMessage2 -}+{#fun ogre_lmgr_logMessage2 as logMessage2 +{ withHG3DClass* `HG3DClass' ,+ cIntFromEnum `EnumLogMessageLevel' ,+ withCString* `String' ,+ fromBool `Bool' } -> `()' #}++{- function setLogDetail -}+{#fun ogre_lmgr_setLogDetail as setLogDetail +{ withHG3DClass* `HG3DClass' ,+ cIntFromEnum `EnumLoggingLevel' } -> `()' #}++{- function getSingleton -}+{#fun ogre_lmgr_getSingleton as getSingleton +{ alloca- `HG3DClass' peek*} -> `()' #}++{- function getSingletonPtr -}+{#fun ogre_lmgr_getSingletonPtr as getSingletonPtr +{ alloca- `HG3DClass' peek*} -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassLogManager.hs
@@ -1,115 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-} -import HGamer3D.Bindings.Ogre.EnumLogMessageLevel -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-} -import HGamer3D.Bindings.Ogre.EnumLoggingLevel -{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-} - - -cLmDestroyLog :: HG3DClass -> String -> IO () -cLmDestroyLog a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cLmDestroyLog'_ a1' a2' >>= \res -> - return () -{-# LINE 62 "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 68 "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 74 "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 78 "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 ())))
+ HGamer3D/Bindings/Ogre/ClassManualObject.chs view
@@ -0,0 +1,283 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassManualObject where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}+{# import HGamer3D.Bindings.Ogre.EnumRenderOperationOperationType #}+{# import HGamer3D.Bindings.Ogre.StructVec3 #}+{# import HGamer3D.Bindings.Ogre.StructVec2 #}+{# import HGamer3D.Bindings.Ogre.StructColour #}+{# import HGamer3D.Bindings.Ogre.StructSharedPtr #}++#include "ClassManualObject.h"+{- function ManualObject -}+{#fun ogre_mno_construct as new +{ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function ~ManualObject -}+{#fun ogre_mno_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function clear -}+{#fun ogre_mno_clear as clear +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function estimateVertexCount -}+{#fun ogre_mno_estimateVertexCount as estimateVertexCount +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function estimateIndexCount -}+{#fun ogre_mno_estimateIndexCount as estimateIndexCount +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function begin -}+{#fun ogre_mno_begin as begin +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ cIntFromEnum `EnumRenderOperationOperationType' ,+ withCString* `String' } -> `()' #}++{- function setDynamic -}+{#fun ogre_mno_setDynamic as setDynamic +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getDynamic -}+{#fun ogre_mno_getDynamic as getDynamic +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function beginUpdate -}+{#fun ogre_mno_beginUpdate as beginUpdate +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function position -}+{#fun ogre_mno_position as position +{ withHG3DClass* `HG3DClass' ,+ withVec3* `Vec3' } -> `()' #}++{- function position2 -}+{#fun ogre_mno_position2 as position2 +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function normal -}+{#fun ogre_mno_normal as normal +{ withHG3DClass* `HG3DClass' ,+ withVec3* `Vec3' } -> `()' #}++{- function normal2 -}+{#fun ogre_mno_normal2 as normal2 +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function tangent -}+{#fun ogre_mno_tangent as tangent +{ withHG3DClass* `HG3DClass' ,+ withVec3* `Vec3' } -> `()' #}++{- function tangent2 -}+{#fun ogre_mno_tangent2 as tangent2 +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function textureCoord -}+{#fun ogre_mno_textureCoord as textureCoord +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' } -> `()' #}++{- function textureCoord2 -}+{#fun ogre_mno_textureCoord2 as textureCoord2 +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function textureCoord3 -}+{#fun ogre_mno_textureCoord3 as textureCoord3 +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function textureCoord4 -}+{#fun ogre_mno_textureCoord4 as textureCoord4 +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function textureCoord5 -}+{#fun ogre_mno_textureCoord5 as textureCoord5 +{ withHG3DClass* `HG3DClass' ,+ withVec2* `Vec2' } -> `()' #}++{- function textureCoord6 -}+{#fun ogre_mno_textureCoord6 as textureCoord6 +{ withHG3DClass* `HG3DClass' ,+ withVec3* `Vec3' } -> `()' #}++{- function colour -}+{#fun ogre_mno_colour as colour +{ withHG3DClass* `HG3DClass' ,+ withColour* `Colour' } -> `()' #}++{- function colour2 -}+{#fun ogre_mno_colour2 as colour2 +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function index -}+{#fun ogre_mno_index as index +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function triangle -}+{#fun ogre_mno_triangle as triangle +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ fromIntegral `Int' ,+ fromIntegral `Int' } -> `()' #}++{- function quad -}+{#fun ogre_mno_quad as quad +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ fromIntegral `Int' ,+ fromIntegral `Int' ,+ fromIntegral `Int' } -> `()' #}++{- function getCurrentVertexCount -}+{#fun ogre_mno_getCurrentVertexCount as getCurrentVertexCount +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function getCurrentIndexCount -}+{#fun ogre_mno_getCurrentIndexCount as getCurrentIndexCount +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function end -}+{#fun ogre_mno_end as end +{ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function setMaterialName -}+{#fun ogre_mno_setMaterialName as setMaterialName +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ withCString* `String' ,+ withCString* `String' } -> `()' #}++{- function convertToMesh -}+{#fun ogre_mno_convertToMesh as convertToMesh +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ withCString* `String' ,+ alloca- `SharedPtr' peekSharedPtr*} -> `()' #}++{- function setUseIdentityProjection -}+{#fun ogre_mno_setUseIdentityProjection as setUseIdentityProjection +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getUseIdentityProjection -}+{#fun ogre_mno_getUseIdentityProjection as getUseIdentityProjection +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setUseIdentityView -}+{#fun ogre_mno_setUseIdentityView as setUseIdentityView +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getUseIdentityView -}+{#fun ogre_mno_getUseIdentityView as getUseIdentityView +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getSection -}+{#fun ogre_mno_getSection as getSection +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getNumSections -}+{#fun ogre_mno_getNumSections as getNumSections +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function setKeepDeclarationOrder -}+{#fun ogre_mno_setKeepDeclarationOrder as setKeepDeclarationOrder +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getKeepDeclarationOrder -}+{#fun ogre_mno_getKeepDeclarationOrder as getKeepDeclarationOrder +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getMovableType -}+{#fun ogre_mno_getMovableType as getMovableType +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function getBoundingRadius -}+{#fun ogre_mno_getBoundingRadius as getBoundingRadius +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function hasEdgeList -}+{#fun ogre_mno_hasEdgeList as hasEdgeList +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassManualObject.hs
@@ -1,541 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -import HGamer3D.Bindings.Ogre.EnumOperationType -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -import HGamer3D.Bindings.Ogre.TypeVector3 -{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -import HGamer3D.Bindings.Ogre.TypeVector2 -{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -import HGamer3D.Bindings.Ogre.TypeVector4 -{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -import HGamer3D.Bindings.Ogre.TypeColour -{-# LINE 59 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -import HGamer3D.Bindings.Ogre.TypeSharedPtr -{-# LINE 60 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} - - -cMnoClear :: HG3DClass -> IO () -cMnoClear a1 = - withHG3DClass a1 $ \a1' -> - cMnoClear'_ a1' >>= \res -> - return () -{-# LINE 65 "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 69 "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 73 "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 79 "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 83 "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 87 "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 91 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoPosition :: HG3DClass -> Vector3 -> IO () -cMnoPosition a1 a2 = - withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> - cMnoPosition'_ a1' a2' >>= \res -> - return () -{-# LINE 95 "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 101 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoNormal :: HG3DClass -> Vector3 -> IO () -cMnoNormal a1 a2 = - withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> - cMnoNormal'_ a1' a2' >>= \res -> - return () -{-# LINE 105 "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 111 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoTangent :: HG3DClass -> Vector3 -> IO () -cMnoTangent a1 a2 = - withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> - cMnoTangent'_ a1' a2' >>= \res -> - return () -{-# LINE 115 "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 121 "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 125 "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 130 "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 136 "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 143 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoTextureCoord5 :: HG3DClass -> Vector2 -> IO () -cMnoTextureCoord5 a1 a2 = - withHG3DClass a1 $ \a1' -> - withVector2 a2 $ \a2' -> - cMnoTextureCoord5'_ a1' a2' >>= \res -> - return () -{-# LINE 147 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoTextureCoord6 :: HG3DClass -> Vector3 -> IO () -cMnoTextureCoord6 a1 a2 = - withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> - cMnoTextureCoord6'_ a1' a2' >>= \res -> - return () -{-# LINE 151 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoTextureCoord7 :: HG3DClass -> Vector4 -> IO () -cMnoTextureCoord7 a1 a2 = - withHG3DClass a1 $ \a1' -> - withVector4 a2 $ \a2' -> - cMnoTextureCoord7'_ a1' a2' >>= \res -> - return () -{-# LINE 155 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoColour :: HG3DClass -> Colour -> IO () -cMnoColour a1 a2 = - withHG3DClass a1 $ \a1' -> - withColour a2 $ \a2' -> - cMnoColour'_ a1' a2' >>= \res -> - return () -{-# LINE 159 "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 166 "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 170 "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 176 "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 183 "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 187 "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 193 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoConvertToMesh :: HG3DClass -> String -> String -> IO (SharedPtr) -cMnoConvertToMesh a1 a2 a3 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - withCString a3 $ \a3' -> - alloca $ \a4' -> - cMnoConvertToMesh'_ a1' a2' a3' a4' >>= \res -> - peek a4'>>= \a4'' -> - return (a4'') -{-# LINE 199 "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 203 "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 207 "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 211 "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 215 "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 220 "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 224 "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 228 "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 232 "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 236 "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 240 "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 244 "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) -> ((ColourPtr) -> (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_convertToMesh_c" - cMnoConvertToMesh'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((SharedPtrPtr) -> (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 ())))
+ HGamer3D/Bindings/Ogre/ClassManualObjectFactory.chs view
@@ -0,0 +1,61 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassManualObjectFactory where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}++#include "ClassManualObjectFactory.h"+{- function ManualObjectFactory -}+{#fun ogre_mnof_construct as new +{ alloca- `HG3DClass' peek*} -> `()' #}++{- function ~ManualObjectFactory -}+{#fun ogre_mnof_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getType -}+{#fun ogre_mnof_getType as getType +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function destroyInstance -}+{#fun ogre_mnof_destroyInstance as destroyInstance +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassManualObjectFactory.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassManualObjectFactory.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassManualObjectFactory.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassManualObjectFactory.chs" #-} - -
+ HGamer3D/Bindings/Ogre/ClassManualObjectSection.chs view
@@ -0,0 +1,94 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassManualObjectSection where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}+{# import HGamer3D.Bindings.Ogre.EnumRenderOperationOperationType #}+{# import HGamer3D.Bindings.Ogre.StructSharedPtr #}++#include "ClassManualObjectSection.h"+{- function ManualObjectSection -}+{#fun ogre_mnos_construct as new +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ cIntFromEnum `EnumRenderOperationOperationType' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function ~ManualObjectSection -}+{#fun ogre_mnos_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getMaterialName -}+{#fun ogre_mnos_getMaterialName as getMaterialName +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function getMaterialGroup -}+{#fun ogre_mnos_getMaterialGroup as getMaterialGroup +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function setMaterialName -}+{#fun ogre_mnos_setMaterialName as setMaterialName +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ withCString* `String' } -> `()' #}++{- function set32BitIndices -}+{#fun ogre_mnos_set32BitIndices as set32BitIndices +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function get32BitIndices -}+{#fun ogre_mnos_get32BitIndices as get32BitIndices +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getMaterial -}+{#fun ogre_mnos_getMaterial as getMaterial +{ withHG3DClass* `HG3DClass' ,+ alloca- `SharedPtr' peekSharedPtr*} -> `()' #}++{- function getSquaredViewDepth -}+{#fun ogre_mnos_getSquaredViewDepth as getSquaredViewDepth +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassManualObjectSection.hs
@@ -1,136 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs" #-} -import HGamer3D.Bindings.Ogre.TypeSharedPtr -{-# LINE 55 "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 61 "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 65 "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 70 "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 74 "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 78 "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs" #-} -; -cMosGetMaterial :: HG3DClass -> IO (SharedPtr) -cMosGetMaterial a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cMosGetMaterial'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 82 "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 ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs.h cMos_getMaterial_c" - cMosGetMaterial'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (IO ())))
− HGamer3D/Bindings/Ogre/ClassManualObjectSectionShadowRenderable.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSectionShadowRenderable.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSectionShadowRenderable.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSectionShadowRenderable.chs" #-} - -
+ HGamer3D/Bindings/Ogre/ClassMaterial.chs view
@@ -0,0 +1,228 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassMaterial where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}+{# import HGamer3D.Bindings.Ogre.StructSharedPtr #}+{# import HGamer3D.Bindings.Ogre.StructColour #}++#include "ClassMaterial.h"+{- function ~Material -}+{#fun ogre_mtrl_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function isTransparent -}+{#fun ogre_mtrl_isTransparent as isTransparent +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setReceiveShadows -}+{#fun ogre_mtrl_setReceiveShadows as setReceiveShadows +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getReceiveShadows -}+{#fun ogre_mtrl_getReceiveShadows as getReceiveShadows +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setTransparencyCastsShadows -}+{#fun ogre_mtrl_setTransparencyCastsShadows as setTransparencyCastsShadows +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getTransparencyCastsShadows -}+{#fun ogre_mtrl_getTransparencyCastsShadows as getTransparencyCastsShadows +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getNumTechniques -}+{#fun ogre_mtrl_getNumTechniques as getNumTechniques +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function removeTechnique -}+{#fun ogre_mtrl_removeTechnique as removeTechnique +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function removeAllTechniques -}+{#fun ogre_mtrl_removeAllTechniques as removeAllTechniques +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getNumSupportedTechniques -}+{#fun ogre_mtrl_getNumSupportedTechniques as getNumSupportedTechniques +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function getUnsupportedTechniquesExplanation -}+{#fun ogre_mtrl_getUnsupportedTechniquesExplanation as getUnsupportedTechniquesExplanation +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function getNumLodLevels -}+{#fun ogre_mtrl_getNumLodLevels as getNumLodLevels +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function getNumLodLevels2 -}+{#fun ogre_mtrl_getNumLodLevels2 as getNumLodLevels2 +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function clone -}+{#fun ogre_mtrl_clone as clone +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ fromBool `Bool' ,+ withCString* `String' ,+ alloca- `SharedPtr' peekSharedPtr*} -> `()' #}++{- function copyDetailsTo -}+{#fun ogre_mtrl_copyDetailsTo as copyDetailsTo +{ withHG3DClass* `HG3DClass' ,+ alloca- `SharedPtr' peekSharedPtr*} -> `()' #}++{- function compile -}+{#fun ogre_mtrl_compile as compile +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function setPointSize -}+{#fun ogre_mtrl_setPointSize as setPointSize +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' } -> `()' #}++{- function setAmbient -}+{#fun ogre_mtrl_setAmbient as setAmbient +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function setAmbient2 -}+{#fun ogre_mtrl_setAmbient2 as setAmbient2 +{ withHG3DClass* `HG3DClass' ,+ withColour* `Colour' } -> `()' #}++{- function setDiffuse -}+{#fun ogre_mtrl_setDiffuse as setDiffuse +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function setDiffuse2 -}+{#fun ogre_mtrl_setDiffuse2 as setDiffuse2 +{ withHG3DClass* `HG3DClass' ,+ withColour* `Colour' } -> `()' #}++{- function setSpecular -}+{#fun ogre_mtrl_setSpecular as setSpecular +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function setSpecular2 -}+{#fun ogre_mtrl_setSpecular2 as setSpecular2 +{ withHG3DClass* `HG3DClass' ,+ withColour* `Colour' } -> `()' #}++{- function setShininess -}+{#fun ogre_mtrl_setShininess as setShininess +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' } -> `()' #}++{- function setSelfIllumination -}+{#fun ogre_mtrl_setSelfIllumination as setSelfIllumination +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function setSelfIllumination2 -}+{#fun ogre_mtrl_setSelfIllumination2 as setSelfIllumination2 +{ withHG3DClass* `HG3DClass' ,+ withColour* `Colour' } -> `()' #}++{- function setDepthCheckEnabled -}+{#fun ogre_mtrl_setDepthCheckEnabled as setDepthCheckEnabled +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function setDepthWriteEnabled -}+{#fun ogre_mtrl_setDepthWriteEnabled as setDepthWriteEnabled +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function setColourWriteEnabled -}+{#fun ogre_mtrl_setColourWriteEnabled as setColourWriteEnabled +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function setLightingEnabled -}+{#fun ogre_mtrl_setLightingEnabled as setLightingEnabled +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function setDepthBias -}+{#fun ogre_mtrl_setDepthBias as setDepthBias +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function setTextureAnisotropy -}+{#fun ogre_mtrl_setTextureAnisotropy as setTextureAnisotropy +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function touch -}+{#fun ogre_mtrl_touch as touch +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getCompilationRequired -}+{#fun ogre_mtrl_getCompilationRequired as getCompilationRequired +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassMaterial.hs
@@ -1,599 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -import HGamer3D.Bindings.Ogre.TypeSharedPtr -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -import HGamer3D.Bindings.Ogre.TypeColour -{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -import HGamer3D.Bindings.Ogre.EnumCompareFunction -{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -import HGamer3D.Bindings.Ogre.EnumCullingMode -{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -import HGamer3D.Bindings.Ogre.EnumManualCullingMode -{-# LINE 59 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -import HGamer3D.Bindings.Ogre.EnumShadeOptions -{-# LINE 60 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -import HGamer3D.Bindings.Ogre.EnumFogMode -{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -import HGamer3D.Bindings.Ogre.EnumTextureFilterOptions -{-# LINE 62 "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 68 "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 72 "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 76 "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 80 "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 84 "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 88 "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 93 "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 98 "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 102 "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 106 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtRemoveAllTechniques :: HG3DClass -> IO () -cMtRemoveAllTechniques a1 = - withHG3DClass a1 $ \a1' -> - cMtRemoveAllTechniques'_ a1' >>= \res -> - return () -{-# LINE 109 "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 114 "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 118 "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 122 "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 127 "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 132 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtClone :: HG3DClass -> String -> Bool -> String -> IO (SharedPtr) -cMtClone a1 a2 a3 a4 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - let {a3' = fromBool a3} in - withCString a4 $ \a4' -> - alloca $ \a5' -> - cMtClone'_ a1' a2' a3' a4' a5' >>= \res -> - peek a5'>>= \a5'' -> - return (a5'') -{-# LINE 139 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtCopyDetailsTo :: HG3DClass -> IO (SharedPtr) -cMtCopyDetailsTo a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cMtCopyDetailsTo'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 143 "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 147 "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 151 "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 157 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtSetAmbient2 :: HG3DClass -> Colour -> IO () -cMtSetAmbient2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withColour a2 $ \a2' -> - cMtSetAmbient2'_ a1' a2' >>= \res -> - return () -{-# LINE 161 "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 168 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtSetDiffuse2 :: HG3DClass -> Colour -> IO () -cMtSetDiffuse2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withColour a2 $ \a2' -> - cMtSetDiffuse2'_ a1' a2' >>= \res -> - return () -{-# LINE 172 "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 179 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtSetSpecular2 :: HG3DClass -> Colour -> IO () -cMtSetSpecular2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withColour a2 $ \a2' -> - cMtSetSpecular2'_ a1' a2' >>= \res -> - return () -{-# LINE 183 "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 187 "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 193 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtSetSelfIllumination2 :: HG3DClass -> Colour -> IO () -cMtSetSelfIllumination2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withColour a2 $ \a2' -> - cMtSetSelfIllumination2'_ a1' a2' >>= \res -> - return () -{-# LINE 197 "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 201 "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 205 "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 209 "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 213 "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 217 "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 221 "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 225 "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 229 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtSetFog :: HG3DClass -> Bool -> EnumFogMode -> Colour -> 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 - withColour 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 238 "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 243 "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 247 "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 251 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtNotifyNeedsRecompile :: HG3DClass -> IO () -cMtNotifyNeedsRecompile a1 = - withHG3DClass a1 $ \a1' -> - cMtNotifyNeedsRecompile'_ a1' >>= \res -> - return () -{-# LINE 254 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtTouch :: HG3DClass -> IO () -cMtTouch a1 = - withHG3DClass a1 $ \a1' -> - cMtTouch'_ a1' >>= \res -> - return () -{-# LINE 257 "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 261 "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) -> (CUShort -> ((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 CUShort) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_removeTechnique_c" - cMtRemoveTechnique'_ :: ((HG3DClassPtr) -> (CUShort -> (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) -> (CUShort -> ((HG3DClassPtr) -> (IO ())))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_getNumSupportedTechniques_c" - cMtGetNumSupportedTechniques'_ :: ((HG3DClassPtr) -> ((Ptr CUShort) -> (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) -> (CUShort -> ((Ptr CUShort) -> (IO ())))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_getNumLodLevels2_c" - cMtGetNumLodLevels2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CUShort) -> (IO ())))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_clone_c" - cMtClone'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> ((Ptr CChar) -> ((SharedPtrPtr) -> (IO ())))))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_copyDetailsTo_c" - cMtCopyDetailsTo'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (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) -> ((ColourPtr) -> (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) -> ((ColourPtr) -> (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) -> ((ColourPtr) -> (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) -> ((ColourPtr) -> (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 -> ((ColourPtr) -> (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 ())))
− HGamer3D/Bindings/Ogre/ClassMaterialBucket.hs
@@ -1,112 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassMaterialBucket.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassMaterialBucket.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassMaterialBucket.chs" #-} -import HGamer3D.Bindings.Ogre.TypeSharedPtr -{-# LINE 55 "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 61 "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 65 "HGamer3D\\Bindings\\Ogre\\ClassMaterialBucket.chs" #-} -; -cMbGetMaterial :: HG3DClass -> IO (SharedPtr) -cMbGetMaterial a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cMbGetMaterial'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 69 "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 73 "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_getMaterial_c" - cMbGetMaterial'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialBucket.chs.h cMb_getCurrentTechnique_c" - cMbGetCurrentTechnique'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
+ HGamer3D/Bindings/Ogre/ClassMaterialManager.chs view
@@ -0,0 +1,89 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassMaterialManager where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}+{# import HGamer3D.Bindings.Ogre.StructSharedPtr #}++#include "ClassMaterialManager.h"+{- function MaterialManager -}+{#fun ogre_mtrlmgr_construct as new +{ alloca- `HG3DClass' peek*} -> `()' #}++{- function ~MaterialManager -}+{#fun ogre_mtrlmgr_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function initialise -}+{#fun ogre_mtrlmgr_initialise as initialise +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function setDefaultAnisotropy -}+{#fun ogre_mtrlmgr_setDefaultAnisotropy as setDefaultAnisotropy +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function getDefaultAnisotropy -}+{#fun ogre_mtrlmgr_getDefaultAnisotropy as getDefaultAnisotropy +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function getDefaultSettings -}+{#fun ogre_mtrlmgr_getDefaultSettings as getDefaultSettings +{ withHG3DClass* `HG3DClass' ,+ alloca- `SharedPtr' peekSharedPtr*} -> `()' #}++{- function getActiveScheme -}+{#fun ogre_mtrlmgr_getActiveScheme as getActiveScheme +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function setActiveScheme -}+{#fun ogre_mtrlmgr_setActiveScheme as setActiveScheme +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function getSingleton -}+{#fun ogre_mtrlmgr_getSingleton as getSingleton +{ alloca- `HG3DClass' peek*} -> `()' #}++{- function getSingletonPtr -}+{#fun ogre_mtrlmgr_getSingletonPtr as getSingletonPtr +{ alloca- `HG3DClass' peek*} -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassMaterialManager.hs
@@ -1,239 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} -import HGamer3D.Bindings.Ogre.TypeSharedPtr -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} -import HGamer3D.Bindings.Ogre.EnumTextureFilterOptions -{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} -import HGamer3D.Bindings.Ogre.EnumFilterType -{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} -import HGamer3D.Bindings.Ogre.EnumFilterOptions -{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} - - -cMtmInitialise :: HG3DClass -> IO () -cMtmInitialise a1 = - withHG3DClass a1 $ \a1' -> - cMtmInitialise'_ a1' >>= \res -> - return () -{-# LINE 63 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} -; -cMtmParseScript :: HG3DClass -> String -> IO (SharedPtr) -cMtmParseScript a1 a3 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - withCString a3 $ \a3' -> - cMtmParseScript'_ a1' a2' a3' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 68 "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 72 "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 77 "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 83 "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 88 "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 92 "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 96 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} -; -cMtmGetDefaultSettings :: HG3DClass -> IO (SharedPtr) -cMtmGetDefaultSettings a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cMtmGetDefaultSettings'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 100 "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 105 "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 110 "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 114 "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 118 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} -; -cMtmSetActiveScheme :: HG3DClass -> String -> IO () -cMtmSetActiveScheme a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cMtmSetActiveScheme'_ a1' a2' >>= \res -> - return () -{-# LINE 122 "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_parseScript_c" - cMtmParseScript'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> ((Ptr CChar) -> (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_getDefaultSettings_c" - cMtmGetDefaultSettings'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs.h cMtm__getSchemeIndex_c" - cMtmGetSchemeIndex'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CUShort) -> (IO ())))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs.h cMtm__getSchemeName_c" - cMtmGetSchemeName'_ :: ((HG3DClassPtr) -> (CUShort -> ((Ptr CChar) -> (IO ())))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs.h cMtm__getActiveSchemeIndex_c" - cMtmGetActiveSchemeIndex'_ :: ((HG3DClassPtr) -> ((Ptr CUShort) -> (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 ())))
− HGamer3D/Bindings/Ogre/ClassMaterialSerializer.hs
@@ -1,143 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassMaterialSerializer.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassMaterialSerializer.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassMaterialSerializer.chs" #-} -import HGamer3D.Bindings.Ogre.TypeSharedPtr -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassMaterialSerializer.chs" #-} - - -cMtsQueueForExport :: HG3DClass -> SharedPtr -> Bool -> Bool -> String -> IO () -cMtsQueueForExport a1 a2 a3 a4 a5 = - withHG3DClass a1 $ \a1' -> - withSharedPtr a2 $ \a2' -> - let {a3' = fromBool a3} in - let {a4' = fromBool a4} in - withCString a5 $ \a5' -> - cMtsQueueForExport'_ a1' a2' a3' a4' a5' >>= \res -> - return () -{-# LINE 64 "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 70 "HGamer3D\\Bindings\\Ogre\\ClassMaterialSerializer.chs" #-} -; -cMtsExportMaterial :: HG3DClass -> SharedPtr -> String -> Bool -> Bool -> String -> String -> IO () -cMtsExportMaterial a1 a2 a3 a4 a5 a6 a7 = - withHG3DClass a1 $ \a1' -> - withSharedPtr a2 $ \a2' -> - withCString a3 $ \a3' -> - let {a4' = fromBool a4} in - let {a5' = fromBool a5} in - withCString a6 $ \a6' -> - withCString a7 $ \a7' -> - cMtsExportMaterial'_ a1' a2' a3' a4' a5' a6' a7' >>= \res -> - return () -{-# LINE 79 "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 83 "HGamer3D\\Bindings\\Ogre\\ClassMaterialSerializer.chs" #-} -; -cMtsClearQueue :: HG3DClass -> IO () -cMtsClearQueue a1 = - withHG3DClass a1 $ \a1' -> - cMtsClearQueue'_ a1' >>= \res -> - return () -{-# LINE 86 "HGamer3D\\Bindings\\Ogre\\ClassMaterialSerializer.chs" #-} -; -cMtsParseScript :: HG3DClass -> String -> IO (SharedPtr) -cMtsParseScript a1 a3 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - withCString a3 $ \a3' -> - cMtsParseScript'_ a1' a2' a3' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 91 "HGamer3D\\Bindings\\Ogre\\ClassMaterialSerializer.chs" #-} -; - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialSerializer.chs.h cMts_queueForExport_c" - cMtsQueueForExport'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (CInt -> (CInt -> ((Ptr CChar) -> (IO ())))))) - -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_exportMaterial_c" - cMtsExportMaterial'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> ((Ptr CChar) -> (CInt -> (CInt -> ((Ptr CChar) -> ((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 ())) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialSerializer.chs.h cMts_parseScript_c" - cMtsParseScript'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> ((Ptr CChar) -> (IO ()))))
− HGamer3D/Bindings/Ogre/ClassMemoryDataStream.hs
@@ -1,158 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassMemoryDataStream.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassMemoryDataStream.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "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 63 "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 68 "HGamer3D\\Bindings\\Ogre\\ClassMemoryDataStream.chs" #-} -; -cMdsSkip :: HG3DClass -> Int -> IO () -cMdsSkip a1 a2 = - withHG3DClass a1 $ \a1' -> - let {a2' = fromIntegral a2} in - cMdsSkip'_ a1' a2' >>= \res -> - return () -{-# LINE 72 "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 76 "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 80 "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 84 "HGamer3D\\Bindings\\Ogre\\ClassMemoryDataStream.chs" #-} -; -cMdsClose :: HG3DClass -> IO () -cMdsClose a1 = - withHG3DClass a1 $ \a1' -> - cMdsClose'_ a1' >>= \res -> - return () -{-# LINE 87 "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 91 "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_skip_c" - cMdsSkip'_ :: ((HG3DClassPtr) -> (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 ())))
+ HGamer3D/Bindings/Ogre/ClassMesh.chs view
@@ -0,0 +1,235 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassMesh where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}+{# import HGamer3D.Bindings.Ogre.StructSharedPtr #}+{# import HGamer3D.Bindings.Ogre.EnumVertexAnimationType #}++#include "ClassMesh.h"+{- function ~Mesh -}+{#fun ogre_msh_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function unnameSubMesh -}+{#fun ogre_msh_unnameSubMesh as unnameSubMesh +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function getNumSubMeshes -}+{#fun ogre_msh_getNumSubMeshes as getNumSubMeshes +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function destroySubMesh -}+{#fun ogre_msh_destroySubMesh as destroySubMesh +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function destroySubMesh2 -}+{#fun ogre_msh_destroySubMesh2 as destroySubMesh2 +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function clone -}+{#fun ogre_msh_clone as clone +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ withCString* `String' ,+ alloca- `SharedPtr' peekSharedPtr*} -> `()' #}++{- function getBoundingSphereRadius -}+{#fun ogre_msh_getBoundingSphereRadius as getBoundingSphereRadius +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function setSkeletonName -}+{#fun ogre_msh_setSkeletonName as setSkeletonName +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function hasSkeleton -}+{#fun ogre_msh_hasSkeleton as hasSkeleton +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function hasVertexAnimation -}+{#fun ogre_msh_hasVertexAnimation as hasVertexAnimation +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getSkeleton -}+{#fun ogre_msh_getSkeleton as getSkeleton +{ withHG3DClass* `HG3DClass' ,+ alloca- `SharedPtr' peekSharedPtr*} -> `()' #}++{- function getSkeletonName -}+{#fun ogre_msh_getSkeletonName as getSkeletonName +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function clearBoneAssignments -}+{#fun ogre_msh_clearBoneAssignments as clearBoneAssignments +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function createManualLodLevel -}+{#fun ogre_msh_createManualLodLevel as createManualLodLevel +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ withCString* `String' ,+ withCString* `String' } -> `()' #}++{- function isLodManual -}+{#fun ogre_msh_isLodManual as isLodManual +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function removeLodLevels -}+{#fun ogre_msh_removeLodLevels as removeLodLevels +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function isVertexBufferShadowed -}+{#fun ogre_msh_isVertexBufferShadowed as isVertexBufferShadowed +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function isIndexBufferShadowed -}+{#fun ogre_msh_isIndexBufferShadowed as isIndexBufferShadowed +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function buildEdgeList -}+{#fun ogre_msh_buildEdgeList as buildEdgeList +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function freeEdgeList -}+{#fun ogre_msh_freeEdgeList as freeEdgeList +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function prepareForShadowVolume -}+{#fun ogre_msh_prepareForShadowVolume as prepareForShadowVolume +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function isPreparedForShadowVolumes -}+{#fun ogre_msh_isPreparedForShadowVolumes as isPreparedForShadowVolumes +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function isEdgeListBuilt -}+{#fun ogre_msh_isEdgeListBuilt as isEdgeListBuilt +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setAutoBuildEdgeLists -}+{#fun ogre_msh_setAutoBuildEdgeLists as setAutoBuildEdgeLists +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getAutoBuildEdgeLists -}+{#fun ogre_msh_getAutoBuildEdgeLists as getAutoBuildEdgeLists +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getSharedVertexDataAnimationType -}+{#fun ogre_msh_getSharedVertexDataAnimationType as getSharedVertexDataAnimationType +{ withHG3DClass* `HG3DClass' ,+ alloca- `EnumVertexAnimationType' peekEnumUtil*} -> `()' #}++{- function getSharedVertexDataAnimationIncludesNormals -}+{#fun ogre_msh_getSharedVertexDataAnimationIncludesNormals as getSharedVertexDataAnimationIncludesNormals +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function createAnimation -}+{#fun ogre_msh_createAnimation as createAnimation +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ realToFrac `Float' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getAnimation -}+{#fun ogre_msh_getAnimation as getAnimation +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function hasAnimation -}+{#fun ogre_msh_hasAnimation as hasAnimation +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function removeAnimation -}+{#fun ogre_msh_removeAnimation as removeAnimation +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function getNumAnimations -}+{#fun ogre_msh_getNumAnimations as getNumAnimations +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function getAnimation2 -}+{#fun ogre_msh_getAnimation2 as getAnimation2 +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function removeAllAnimations -}+{#fun ogre_msh_removeAllAnimations as removeAllAnimations +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function updateMaterialForAllSubMeshes -}+{#fun ogre_msh_updateMaterialForAllSubMeshes as updateMaterialForAllSubMeshes +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getPoseCount -}+{#fun ogre_msh_getPoseCount as getPoseCount +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function removePose2 -}+{#fun ogre_msh_removePose2 as removePose2 +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function removeAllPoses -}+{#fun ogre_msh_removeAllPoses as removeAllPoses +{ withHG3DClass* `HG3DClass' } -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassMesh.hs
@@ -1,643 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -import HGamer3D.Bindings.Ogre.TypeSharedPtr -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -import HGamer3D.Bindings.Ogre.EnumVertexElementSemantic -{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -import HGamer3D.Bindings.Ogre.EnumVertexAnimationType -{-# LINE 57 "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 63 "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 68 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMUnnameSubMesh :: HG3DClass -> String -> IO () -cMUnnameSubMesh a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cMUnnameSubMesh'_ a1' a2' >>= \res -> - return () -{-# LINE 72 "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 76 "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 81 "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 86 "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 90 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMDestroySubMesh2 :: HG3DClass -> String -> IO () -cMDestroySubMesh2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cMDestroySubMesh2'_ a1' a2' >>= \res -> - return () -{-# LINE 94 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMClone :: HG3DClass -> String -> String -> IO (SharedPtr) -cMClone a1 a2 a3 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - withCString a3 $ \a3' -> - alloca $ \a4' -> - cMClone'_ a1' a2' a3' a4' >>= \res -> - peek a4'>>= \a4'' -> - return (a4'') -{-# LINE 100 "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 104 "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 108 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMSetSkeletonName :: HG3DClass -> String -> IO () -cMSetSkeletonName a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cMSetSkeletonName'_ a1' a2' >>= \res -> - return () -{-# LINE 112 "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 116 "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 120 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMGetSkeleton :: HG3DClass -> IO (SharedPtr) -cMGetSkeleton a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cMGetSkeleton'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 124 "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 128 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMClearBoneAssignments :: HG3DClass -> IO () -cMClearBoneAssignments a1 = - withHG3DClass a1 $ \a1' -> - cMClearBoneAssignments'_ a1' >>= \res -> - return () -{-# LINE 131 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMNotifySkeleton :: HG3DClass -> IO (SharedPtr) -cMNotifySkeleton a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cMNotifySkeleton'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 135 "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 141 "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 145 "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 150 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMRemoveLodLevels :: HG3DClass -> IO () -cMRemoveLodLevels a1 = - withHG3DClass a1 $ \a1' -> - cMRemoveLodLevels'_ a1' >>= \res -> - return () -{-# LINE 153 "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 157 "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 161 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMCompileBoneAssignments :: HG3DClass -> IO () -cMCompileBoneAssignments a1 = - withHG3DClass a1 $ \a1' -> - cMCompileBoneAssignments'_ a1' >>= \res -> - return () -{-# LINE 164 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMUpdateCompiledBoneAssignments :: HG3DClass -> IO () -cMUpdateCompiledBoneAssignments a1 = - withHG3DClass a1 $ \a1' -> - cMUpdateCompiledBoneAssignments'_ a1' >>= \res -> - return () -{-# LINE 167 "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 176 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMBuildEdgeList :: HG3DClass -> IO () -cMBuildEdgeList a1 = - withHG3DClass a1 $ \a1' -> - cMBuildEdgeList'_ a1' >>= \res -> - return () -{-# LINE 179 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMFreeEdgeList :: HG3DClass -> IO () -cMFreeEdgeList a1 = - withHG3DClass a1 $ \a1' -> - cMFreeEdgeList'_ a1' >>= \res -> - return () -{-# LINE 182 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMPrepareForShadowVolume :: HG3DClass -> IO () -cMPrepareForShadowVolume a1 = - withHG3DClass a1 $ \a1' -> - cMPrepareForShadowVolume'_ a1' >>= \res -> - return () -{-# LINE 185 "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 189 "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 193 "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 197 "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 201 "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 205 "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 211 "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 216 "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 221 "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 226 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMRemoveAnimation :: HG3DClass -> String -> IO () -cMRemoveAnimation a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cMRemoveAnimation'_ a1' a2' >>= \res -> - return () -{-# LINE 230 "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 234 "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 239 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMRemoveAllAnimations :: HG3DClass -> IO () -cMRemoveAllAnimations a1 = - withHG3DClass a1 $ \a1' -> - cMRemoveAllAnimations'_ a1' >>= \res -> - return () -{-# LINE 242 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMUpdateMaterialForAllSubMeshes :: HG3DClass -> IO () -cMUpdateMaterialForAllSubMeshes a1 = - withHG3DClass a1 $ \a1' -> - cMUpdateMaterialForAllSubMeshes'_ a1' >>= \res -> - return () -{-# LINE 245 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMDetermineAnimationTypes :: HG3DClass -> IO () -cMDetermineAnimationTypes a1 = - withHG3DClass a1 $ \a1' -> - cMDetermineAnimationTypes'_ a1' >>= \res -> - return () -{-# LINE 248 "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 252 "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 256 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMRemovePose2 :: HG3DClass -> String -> IO () -cMRemovePose2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cMRemovePose2'_ a1' a2' >>= \res -> - return () -{-# LINE 260 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMRemoveAllPoses :: HG3DClass -> IO () -cMRemoveAllPoses a1 = - withHG3DClass a1 $ \a1' -> - cMRemoveAllPoses'_ a1' >>= \res -> - return () -{-# LINE 263 "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 CUShort) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_getSubMesh_c" - cMGetSubMesh'_ :: ((HG3DClassPtr) -> (CUShort -> ((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) -> (CUShort -> (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_clone_c" - cMClone'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((SharedPtrPtr) -> (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_getSkeleton_c" - cMGetSkeleton'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (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__notifySkeleton_c" - cMNotifySkeleton'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (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) -> (CUShort -> (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 -> (CUShort -> (CUShort -> (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 CUShort) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_getAnimation2_c" - cMGetAnimation2'_ :: ((HG3DClassPtr) -> (CUShort -> ((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 ()))
+ HGamer3D/Bindings/Ogre/ClassMeshManager.chs view
@@ -0,0 +1,84 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- ClassMeshManager.chs++-- ++module HGamer3D.Bindings.Ogre.ClassMeshManager where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}++#include "ClassMeshManager.h"+{- function MeshManager -}+{#fun ogre_mshmgr_construct as new +{ alloca- `HG3DClass' peek*} -> `()' #}++{- function ~MeshManager -}+{#fun ogre_mshmgr_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function setPrepareAllMeshesForShadowVolumes -}+{#fun ogre_mshmgr_setPrepareAllMeshesForShadowVolumes as setPrepareAllMeshesForShadowVolumes +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getPrepareAllMeshesForShadowVolumes -}+{#fun ogre_mshmgr_getPrepareAllMeshesForShadowVolumes as getPrepareAllMeshesForShadowVolumes +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getBoundsPaddingFactor -}+{#fun ogre_mshmgr_getBoundsPaddingFactor as getBoundsPaddingFactor +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function setBoundsPaddingFactor -}+{#fun ogre_mshmgr_setBoundsPaddingFactor as setBoundsPaddingFactor +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' } -> `()' #}++{- function loadResource -}+{#fun ogre_mshmgr_loadResource as loadResource +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getSingleton -}+{#fun ogre_mshmgr_getSingleton as getSingleton +{ alloca- `HG3DClass' peek*} -> `()' #}++{- function getSingletonPtr -}+{#fun ogre_mshmgr_getSingletonPtr as getSingletonPtr +{ alloca- `HG3DClass' peek*} -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassMeshSerializer.hs
@@ -1,78 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassMeshSerializer.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassMeshSerializer.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassMeshSerializer.chs" #-} -import HGamer3D.Bindings.Ogre.TypeSharedPtr -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassMeshSerializer.chs" #-} - - -cMsImportMesh :: HG3DClass -> HG3DClass -> IO (SharedPtr) -cMsImportMesh a1 a3 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - withHG3DClass a3 $ \a3' -> - cMsImportMesh'_ a1' a2' a3' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassMeshSerializer.chs" #-} -; - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMeshSerializer.chs.h cMs_importMesh_c" - cMsImportMesh'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> ((HG3DClassPtr) -> (IO ()))))
+ HGamer3D/Bindings/Ogre/ClassMovableObject.chs view
@@ -0,0 +1,233 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassMovableObject where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}++#include "ClassMovableObject.h"+{- function ~MovableObject -}+{#fun ogre_mvo_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getName -}+{#fun ogre_mvo_getName as getName +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function getMovableType -}+{#fun ogre_mvo_getMovableType as getMovableType +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function getParentNode -}+{#fun ogre_mvo_getParentNode as getParentNode +{ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getParentSceneNode -}+{#fun ogre_mvo_getParentSceneNode as getParentSceneNode +{ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function isParentTagPoint -}+{#fun ogre_mvo_isParentTagPoint as isParentTagPoint +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function isAttached -}+{#fun ogre_mvo_isAttached as isAttached +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function detachFromParent -}+{#fun ogre_mvo_detachFromParent as detachFromParent +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function isInScene -}+{#fun ogre_mvo_isInScene as isInScene +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getBoundingRadius -}+{#fun ogre_mvo_getBoundingRadius as getBoundingRadius +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function setVisible -}+{#fun ogre_mvo_setVisible as setVisible +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getVisible -}+{#fun ogre_mvo_getVisible as getVisible +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function isVisible -}+{#fun ogre_mvo_isVisible as isVisible +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setRenderingDistance -}+{#fun ogre_mvo_setRenderingDistance as setRenderingDistance +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' } -> `()' #}++{- function getRenderingDistance -}+{#fun ogre_mvo_getRenderingDistance as getRenderingDistance +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function setRenderingMinPixelSize -}+{#fun ogre_mvo_setRenderingMinPixelSize as setRenderingMinPixelSize +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' } -> `()' #}++{- function getRenderingMinPixelSize -}+{#fun ogre_mvo_getRenderingMinPixelSize as getRenderingMinPixelSize +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function setQueryFlags -}+{#fun ogre_mvo_setQueryFlags as setQueryFlags +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function addQueryFlags -}+{#fun ogre_mvo_addQueryFlags as addQueryFlags +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function removeQueryFlags -}+{#fun ogre_mvo_removeQueryFlags as removeQueryFlags +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function getQueryFlags -}+{#fun ogre_mvo_getQueryFlags as getQueryFlags +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function setVisibilityFlags -}+{#fun ogre_mvo_setVisibilityFlags as setVisibilityFlags +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function addVisibilityFlags -}+{#fun ogre_mvo_addVisibilityFlags as addVisibilityFlags +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function removeVisibilityFlags -}+{#fun ogre_mvo_removeVisibilityFlags as removeVisibilityFlags +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function getVisibilityFlags -}+{#fun ogre_mvo_getVisibilityFlags as getVisibilityFlags +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function getLightMask -}+{#fun ogre_mvo_getLightMask as getLightMask +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function setLightMask -}+{#fun ogre_mvo_setLightMask as setLightMask +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function hasEdgeList -}+{#fun ogre_mvo_hasEdgeList as hasEdgeList +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setCastShadows -}+{#fun ogre_mvo_setCastShadows as setCastShadows +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getCastShadows -}+{#fun ogre_mvo_getCastShadows as getCastShadows +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getReceivesShadows -}+{#fun ogre_mvo_getReceivesShadows as getReceivesShadows +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getPointExtrusionDistance -}+{#fun ogre_mvo_getPointExtrusionDistance as getPointExtrusionDistance +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function getTypeFlags -}+{#fun ogre_mvo_getTypeFlags as getTypeFlags +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function setDebugDisplayEnabled -}+{#fun ogre_mvo_setDebugDisplayEnabled as setDebugDisplayEnabled +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function isDebugDisplayEnabled -}+{#fun ogre_mvo_isDebugDisplayEnabled as isDebugDisplayEnabled +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setDefaultQueryFlags -}+{#fun ogre_mvo_setDefaultQueryFlags as setDefaultQueryFlags +{ fromIntegral `Int' } -> `()' #}++{- function getDefaultQueryFlags -}+{#fun ogre_mvo_getDefaultQueryFlags as getDefaultQueryFlags +{ alloca- `Int' peekIntConv*} -> `()' #}++{- function setDefaultVisibilityFlags -}+{#fun ogre_mvo_setDefaultVisibilityFlags as setDefaultVisibilityFlags +{ fromIntegral `Int' } -> `()' #}++{- function getDefaultVisibilityFlags -}+{#fun ogre_mvo_getDefaultVisibilityFlags as getDefaultVisibilityFlags +{ alloca- `Int' peekIntConv*} -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassMovableObject.hs
@@ -1,501 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} - - -cMoNotifyCreator :: HG3DClass -> HG3DClass -> IO () -cMoNotifyCreator a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cMoNotifyCreator'_ a1' a2' >>= \res -> - return () -{-# LINE 60 "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 64 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -; -cMoNotifyManager :: HG3DClass -> HG3DClass -> IO () -cMoNotifyManager a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cMoNotifyManager'_ a1' a2' >>= \res -> - return () -{-# LINE 68 "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 72 "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 76 "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 80 "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 84 "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 88 "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 92 "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 97 "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 101 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -; -cMoDetachFromParent :: HG3DClass -> IO () -cMoDetachFromParent a1 = - withHG3DClass a1 $ \a1' -> - cMoDetachFromParent'_ a1' >>= \res -> - return () -{-# LINE 104 "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 108 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -; -cMoNotifyMoved :: HG3DClass -> IO () -cMoNotifyMoved a1 = - withHG3DClass a1 $ \a1' -> - cMoNotifyMoved'_ a1' >>= \res -> - return () -{-# LINE 111 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -; -cMoNotifyCurrentCamera :: HG3DClass -> HG3DClass -> IO () -cMoNotifyCurrentCamera a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cMoNotifyCurrentCamera'_ a1' a2' >>= \res -> - return () -{-# LINE 115 "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 119 "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 123 "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 127 "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 131 "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 135 "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 139 "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 143 "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 147 "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 151 "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 155 "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 159 "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 163 "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 167 "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 171 "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 175 "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 179 "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 183 "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 187 "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 191 "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 195 "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 199 "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 203 "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 207 "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 ())))
+ HGamer3D/Bindings/Ogre/ClassMovableObjectFactory.chs view
@@ -0,0 +1,67 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassMovableObjectFactory where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}++#include "ClassMovableObjectFactory.h"+{- function ~MovableObjectFactory -}+{#fun ogre_mvof_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getType -}+{#fun ogre_mvof_getType as getType +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function destroyInstance -}+{#fun ogre_mvof_destroyInstance as destroyInstance +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function requestTypeFlags -}+{#fun ogre_mvof_requestTypeFlags as requestTypeFlags +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getTypeFlags -}+{#fun ogre_mvof_getTypeFlags as getTypeFlags +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassMovableObjectFactory.hs
@@ -1,110 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassMovableObjectFactory.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassMovableObjectFactory.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "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 60 "HGamer3D\\Bindings\\Ogre\\ClassMovableObjectFactory.chs" #-} -; -cMofDestroyInstance :: HG3DClass -> HG3DClass -> IO () -cMofDestroyInstance a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cMofDestroyInstance'_ a1' a2' >>= \res -> - return () -{-# LINE 64 "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 68 "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 72 "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 ())))
+ HGamer3D/Bindings/Ogre/ClassMultiRenderTarget.chs view
@@ -0,0 +1,60 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassMultiRenderTarget where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}++#include "ClassMultiRenderTarget.h"+{- function bindSurface -}+{#fun ogre_mrt_bindSurface as bindSurface +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function unbindSurface -}+{#fun ogre_mrt_unbindSurface as unbindSurface +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function getBoundSurface -}+{#fun ogre_mrt_getBoundSurface as getBoundSurface +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ alloca- `HG3DClass' peek*} -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassMultiRenderTarget.hs
@@ -1,100 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassMultiRenderTarget.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassMultiRenderTarget.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassMultiRenderTarget.chs" #-} -import HGamer3D.Bindings.Ogre.EnumPixelFormat -{-# LINE 55 "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 62 "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 66 "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 70 "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 ())))
+ HGamer3D/Bindings/Ogre/ClassNode.chs view
@@ -0,0 +1,330 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassNode where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}+{# import HGamer3D.Bindings.Ogre.StructQuaternion #}+{# import HGamer3D.Bindings.Ogre.StructVec3 #}+{# import HGamer3D.Bindings.Ogre.EnumNodeTransformSpace #}+{# import HGamer3D.Bindings.Ogre.StructRadians #}++#include "ClassNode.h"+{- function ~Node -}+{#fun ogre_nd_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getName -}+{#fun ogre_nd_getName as getName +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function getParent -}+{#fun ogre_nd_getParent as getParent +{ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getOrientation -}+{#fun ogre_nd_getOrientation as getOrientation +{ withHG3DClass* `HG3DClass' ,+ alloca- `Quaternion' peekQuaternion*} -> `()' #}++{- function setOrientation -}+{#fun ogre_nd_setOrientation as setOrientation +{ withHG3DClass* `HG3DClass' ,+ withQuaternion* `Quaternion' } -> `()' #}++{- function setOrientation2 -}+{#fun ogre_nd_setOrientation2 as setOrientation2 +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function resetOrientation -}+{#fun ogre_nd_resetOrientation as resetOrientation +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function setPosition -}+{#fun ogre_nd_setPosition as setPosition +{ withHG3DClass* `HG3DClass' ,+ withVec3* `Vec3' } -> `()' #}++{- function setPosition2 -}+{#fun ogre_nd_setPosition2 as setPosition2 +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function getPosition -}+{#fun ogre_nd_getPosition as getPosition +{ withHG3DClass* `HG3DClass' ,+ alloca- `Vec3' peekVec3*} -> `()' #}++{- function setScale -}+{#fun ogre_nd_setScale as setScale +{ withHG3DClass* `HG3DClass' ,+ withVec3* `Vec3' } -> `()' #}++{- function setScale2 -}+{#fun ogre_nd_setScale2 as setScale2 +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function getScale -}+{#fun ogre_nd_getScale as getScale +{ withHG3DClass* `HG3DClass' ,+ alloca- `Vec3' peekVec3*} -> `()' #}++{- function setInheritOrientation -}+{#fun ogre_nd_setInheritOrientation as setInheritOrientation +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getInheritOrientation -}+{#fun ogre_nd_getInheritOrientation as getInheritOrientation +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setInheritScale -}+{#fun ogre_nd_setInheritScale as setInheritScale +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getInheritScale -}+{#fun ogre_nd_getInheritScale as getInheritScale +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function scale -}+{#fun ogre_nd_scale as scale +{ withHG3DClass* `HG3DClass' ,+ withVec3* `Vec3' } -> `()' #}++{- function scale2 -}+{#fun ogre_nd_scale2 as scale2 +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function translate -}+{#fun ogre_nd_translate as translate +{ withHG3DClass* `HG3DClass' ,+ withVec3* `Vec3' ,+ cIntFromEnum `EnumNodeTransformSpace' } -> `()' #}++{- function translate2 -}+{#fun ogre_nd_translate2 as translate2 +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ cIntFromEnum `EnumNodeTransformSpace' } -> `()' #}++{- function roll -}+{#fun ogre_nd_roll as roll +{ withHG3DClass* `HG3DClass' ,+ withRadians* `Radians' ,+ cIntFromEnum `EnumNodeTransformSpace' } -> `()' #}++{- function pitch -}+{#fun ogre_nd_pitch as pitch +{ withHG3DClass* `HG3DClass' ,+ withRadians* `Radians' ,+ cIntFromEnum `EnumNodeTransformSpace' } -> `()' #}++{- function yaw -}+{#fun ogre_nd_yaw as yaw +{ withHG3DClass* `HG3DClass' ,+ withRadians* `Radians' ,+ cIntFromEnum `EnumNodeTransformSpace' } -> `()' #}++{- function rotate -}+{#fun ogre_nd_rotate as rotate +{ withHG3DClass* `HG3DClass' ,+ withVec3* `Vec3' ,+ withRadians* `Radians' ,+ cIntFromEnum `EnumNodeTransformSpace' } -> `()' #}++{- function rotate2 -}+{#fun ogre_nd_rotate2 as rotate2 +{ withHG3DClass* `HG3DClass' ,+ withQuaternion* `Quaternion' ,+ cIntFromEnum `EnumNodeTransformSpace' } -> `()' #}++{- function createChild -}+{#fun ogre_nd_createChild as createChild +{ withHG3DClass* `HG3DClass' ,+ withVec3* `Vec3' ,+ withQuaternion* `Quaternion' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function createChild2 -}+{#fun ogre_nd_createChild2 as createChild2 +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ withVec3* `Vec3' ,+ withQuaternion* `Quaternion' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function addChild -}+{#fun ogre_nd_addChild as addChild +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function numChildren -}+{#fun ogre_nd_numChildren as numChildren +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function getChild -}+{#fun ogre_nd_getChild as getChild +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getChild2 -}+{#fun ogre_nd_getChild2 as getChild2 +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function removeChild -}+{#fun ogre_nd_removeChild as removeChild +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function removeChild2 -}+{#fun ogre_nd_removeChild2 as removeChild2 +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function removeChild3 -}+{#fun ogre_nd_removeChild3 as removeChild3 +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function removeAllChildren -}+{#fun ogre_nd_removeAllChildren as removeAllChildren +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function setInitialState -}+{#fun ogre_nd_setInitialState as setInitialState +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function resetToInitialState -}+{#fun ogre_nd_resetToInitialState as resetToInitialState +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getInitialPosition -}+{#fun ogre_nd_getInitialPosition as getInitialPosition +{ withHG3DClass* `HG3DClass' ,+ alloca- `Vec3' peekVec3*} -> `()' #}++{- function convertWorldToLocalPosition -}+{#fun ogre_nd_convertWorldToLocalPosition as convertWorldToLocalPosition +{ withHG3DClass* `HG3DClass' ,+ withVec3* `Vec3' ,+ alloca- `Vec3' peekVec3*} -> `()' #}++{- function convertLocalToWorldPosition -}+{#fun ogre_nd_convertLocalToWorldPosition as convertLocalToWorldPosition +{ withHG3DClass* `HG3DClass' ,+ withVec3* `Vec3' ,+ alloca- `Vec3' peekVec3*} -> `()' #}++{- function convertWorldToLocalOrientation -}+{#fun ogre_nd_convertWorldToLocalOrientation as convertWorldToLocalOrientation +{ withHG3DClass* `HG3DClass' ,+ withQuaternion* `Quaternion' ,+ alloca- `Quaternion' peekQuaternion*} -> `()' #}++{- function convertLocalToWorldOrientation -}+{#fun ogre_nd_convertLocalToWorldOrientation as convertLocalToWorldOrientation +{ withHG3DClass* `HG3DClass' ,+ withQuaternion* `Quaternion' ,+ alloca- `Quaternion' peekQuaternion*} -> `()' #}++{- function getInitialOrientation -}+{#fun ogre_nd_getInitialOrientation as getInitialOrientation +{ withHG3DClass* `HG3DClass' ,+ alloca- `Quaternion' peekQuaternion*} -> `()' #}++{- function getInitialScale -}+{#fun ogre_nd_getInitialScale as getInitialScale +{ withHG3DClass* `HG3DClass' ,+ alloca- `Vec3' peekVec3*} -> `()' #}++{- function getSquaredViewDepth -}+{#fun ogre_nd_getSquaredViewDepth as getSquaredViewDepth +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function needUpdate -}+{#fun ogre_nd_needUpdate as needUpdate +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function requestUpdate -}+{#fun ogre_nd_requestUpdate as requestUpdate +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function cancelUpdate -}+{#fun ogre_nd_cancelUpdate as cancelUpdate +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function queueNeedUpdate -}+{#fun ogre_nd_queueNeedUpdate as queueNeedUpdate +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function processQueuedUpdates -}+{#fun ogre_nd_processQueuedUpdates as processQueuedUpdates +{ } -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassNode.hs
@@ -1,710 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} -import HGamer3D.Bindings.Ogre.TypeQuaternion -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} -import HGamer3D.Bindings.Ogre.TypeVector3 -{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} -import HGamer3D.Bindings.Ogre.EnumTransformSpace -{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} -import HGamer3D.Bindings.Ogre.TypeRadian -{-# LINE 58 "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 64 "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 68 "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 72 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} -; -cNSetOrientation :: HG3DClass -> Quaternion -> IO () -cNSetOrientation a1 a2 = - withHG3DClass a1 $ \a1' -> - withQuaternion a2 $ \a2' -> - cNSetOrientation'_ a1' a2' >>= \res -> - return () -{-# LINE 76 "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 83 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} -; -cNResetOrientation :: HG3DClass -> IO () -cNResetOrientation a1 = - withHG3DClass a1 $ \a1' -> - cNResetOrientation'_ a1' >>= \res -> - return () -{-# LINE 86 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} -; -cNSetPosition :: HG3DClass -> Vector3 -> IO () -cNSetPosition a1 a2 = - withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> - cNSetPosition'_ a1' a2' >>= \res -> - return () -{-# LINE 90 "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 96 "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 100 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} -; -cNSetScale :: HG3DClass -> Vector3 -> IO () -cNSetScale a1 a2 = - withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> - cNSetScale'_ a1' a2' >>= \res -> - return () -{-# LINE 104 "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 110 "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 114 "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 118 "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 122 "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 126 "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 130 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} -; -cNScale :: HG3DClass -> Vector3 -> IO () -cNScale a1 a2 = - withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> - cNScale'_ a1' a2' >>= \res -> - return () -{-# LINE 134 "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 140 "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 145 "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 152 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} -; -cNRoll :: HG3DClass -> Radians -> EnumTransformSpace -> IO () -cNRoll a1 a2 a3 = - withHG3DClass a1 $ \a1' -> - withRadians a2 $ \a2' -> - let {a3' = cIntFromEnum a3} in - cNRoll'_ a1' a2' a3' >>= \res -> - return () -{-# LINE 157 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} -; -cNPitch :: HG3DClass -> Radians -> EnumTransformSpace -> IO () -cNPitch a1 a2 a3 = - withHG3DClass a1 $ \a1' -> - withRadians a2 $ \a2' -> - let {a3' = cIntFromEnum a3} in - cNPitch'_ a1' a2' a3' >>= \res -> - return () -{-# LINE 162 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} -; -cNYaw :: HG3DClass -> Radians -> EnumTransformSpace -> IO () -cNYaw a1 a2 a3 = - withHG3DClass a1 $ \a1' -> - withRadians a2 $ \a2' -> - let {a3' = cIntFromEnum a3} in - cNYaw'_ a1' a2' a3' >>= \res -> - return () -{-# LINE 167 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} -; -cNRotate :: HG3DClass -> Vector3 -> Radians -> EnumTransformSpace -> IO () -cNRotate a1 a2 a3 a4 = - withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> - withRadians a3 $ \a3' -> - let {a4' = cIntFromEnum a4} in - cNRotate'_ a1' a2' a3' a4' >>= \res -> - return () -{-# LINE 173 "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 178 "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 184 "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 191 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} -; -cNAddChild :: HG3DClass -> HG3DClass -> IO () -cNAddChild a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cNAddChild'_ a1' a2' >>= \res -> - return () -{-# LINE 195 "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 199 "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 204 "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 209 "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 214 "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 219 "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 224 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} -; -cNRemoveAllChildren :: HG3DClass -> IO () -cNRemoveAllChildren a1 = - withHG3DClass a1 $ \a1' -> - cNRemoveAllChildren'_ a1' >>= \res -> - return () -{-# LINE 227 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} -; -cNSetDerivedPosition :: HG3DClass -> Vector3 -> IO () -cNSetDerivedPosition a1 a2 = - withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> - cNSetDerivedPosition'_ a1' a2' >>= \res -> - return () -{-# LINE 231 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} -; -cNSetDerivedOrientation :: HG3DClass -> Quaternion -> IO () -cNSetDerivedOrientation a1 a2 = - withHG3DClass a1 $ \a1' -> - withQuaternion a2 $ \a2' -> - cNSetDerivedOrientation'_ a1' a2' >>= \res -> - return () -{-# LINE 235 "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 239 "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 243 "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 247 "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 252 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} -; -cNSetInitialState :: HG3DClass -> IO () -cNSetInitialState a1 = - withHG3DClass a1 $ \a1' -> - cNSetInitialState'_ a1' >>= \res -> - return () -{-# LINE 255 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} -; -cNResetToInitialState :: HG3DClass -> IO () -cNResetToInitialState a1 = - withHG3DClass a1 $ \a1' -> - cNResetToInitialState'_ a1' >>= \res -> - return () -{-# LINE 258 "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 262 "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 267 "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 272 "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 277 "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 282 "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 286 "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 290 "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 294 "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 299 "HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} -; -cNCancelUpdate :: HG3DClass -> HG3DClass -> IO () -cNCancelUpdate a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cNCancelUpdate'_ a1' a2' >>= \res -> - return () -{-# LINE 303 "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) -> ((RadiansPtr) -> (CInt -> (IO ())))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_pitch_c" - cNPitch'_ :: ((HG3DClassPtr) -> ((RadiansPtr) -> (CInt -> (IO ())))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_yaw_c" - cNYaw'_ :: ((HG3DClassPtr) -> ((RadiansPtr) -> (CInt -> (IO ())))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_rotate_c" - cNRotate'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> ((RadiansPtr) -> (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 CUShort) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h cN_getChild_c" - cNGetChild'_ :: ((HG3DClassPtr) -> (CUShort -> ((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) -> (CUShort -> ((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 ())))
+ HGamer3D/Bindings/Ogre/ClassNodeAnimationTrack.chs view
@@ -0,0 +1,97 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassNodeAnimationTrack where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}++#include "ClassNodeAnimationTrack.h"+{- function NodeAnimationTrack -}+{#fun ogre_noat_construct as new +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function ~NodeAnimationTrack -}+{#fun ogre_noat_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getAssociatedNode -}+{#fun ogre_noat_getAssociatedNode as getAssociatedNode +{ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function setAssociatedNode -}+{#fun ogre_noat_setAssociatedNode as setAssociatedNode +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function applyToNode -}+{#fun ogre_noat_applyToNode as applyToNode +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function setUseShortestRotationPath -}+{#fun ogre_noat_setUseShortestRotationPath as setUseShortestRotationPath +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getUseShortestRotationPath -}+{#fun ogre_noat_getUseShortestRotationPath as getUseShortestRotationPath +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function apply -}+{#fun ogre_noat_apply as apply +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function hasNonZeroKeyFrames -}+{#fun ogre_noat_hasNonZeroKeyFrames as hasNonZeroKeyFrames +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function optimise -}+{#fun ogre_noat_optimise as optimise +{ withHG3DClass* `HG3DClass' } -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassNodeAnimationTrack.hs
@@ -1,167 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "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 61 "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 65 "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-} -; -cNoantSetAssociatedNode :: HG3DClass -> HG3DClass -> IO () -cNoantSetAssociatedNode a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cNoantSetAssociatedNode'_ a1' a2' >>= \res -> - return () -{-# LINE 69 "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 73 "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 77 "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-} -; -cNoantKeyFrameDataChanged :: HG3DClass -> IO () -cNoantKeyFrameDataChanged a1 = - withHG3DClass a1 $ \a1' -> - cNoantKeyFrameDataChanged'_ a1' >>= \res -> - return () -{-# LINE 80 "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 85 "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 89 "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-} -; -cNoantOptimise :: HG3DClass -> IO () -cNoantOptimise a1 = - withHG3DClass a1 $ \a1' -> - cNoantOptimise'_ a1' >>= \res -> - return () -{-# LINE 92 "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) -> (CUShort -> ((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 ()))
+ HGamer3D/Bindings/Ogre/ClassNumericAnimationTrack.chs view
@@ -0,0 +1,56 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassNumericAnimationTrack where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}++#include "ClassNumericAnimationTrack.h"+{- function NumericAnimationTrack -}+{#fun ogre_nuat_construct as new +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function apply -}+{#fun ogre_nuat_apply as apply +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassNumericAnimationTrack.hs
@@ -1,89 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassNumericAnimationTrack.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassNumericAnimationTrack.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "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 61 "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 66 "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) -> (CUShort -> ((HG3DClassPtr) -> (IO ()))))
− HGamer3D/Bindings/Ogre/ClassNumericKeyFrame.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassNumericKeyFrame.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassNumericKeyFrame.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassNumericKeyFrame.chs" #-} - -
− HGamer3D/Bindings/Ogre/ClassOverlay.hs
@@ -1,316 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} -import HGamer3D.Bindings.Ogre.TypeRadian -{-# LINE 55 "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 61 "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 65 "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 69 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} -; -cOShow :: HG3DClass -> IO () -cOShow a1 = - withHG3DClass a1 $ \a1' -> - cOShow'_ a1' >>= \res -> - return () -{-# LINE 72 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} -; -cOHide :: HG3DClass -> IO () -cOHide a1 = - withHG3DClass a1 $ \a1' -> - cOHide'_ a1' >>= \res -> - return () -{-# LINE 75 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} -; -cOAdd2D :: HG3DClass -> HG3DClass -> IO () -cOAdd2D a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cOAdd2D'_ a1' a2' >>= \res -> - return () -{-# LINE 79 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} -; -cORemove2D :: HG3DClass -> HG3DClass -> IO () -cORemove2D a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cORemove2D'_ a1' a2' >>= \res -> - return () -{-# LINE 83 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} -; -cOAdd3D :: HG3DClass -> HG3DClass -> IO () -cOAdd3D a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cOAdd3D'_ a1' a2' >>= \res -> - return () -{-# LINE 87 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} -; -cORemove3D :: HG3DClass -> HG3DClass -> IO () -cORemove3D a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cORemove3D'_ a1' a2' >>= \res -> - return () -{-# LINE 91 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} -; -cOClear :: HG3DClass -> IO () -cOClear a1 = - withHG3DClass a1 $ \a1' -> - cOClear'_ a1' >>= \res -> - return () -{-# LINE 94 "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 99 "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 103 "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 107 "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 112 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} -; -cOSetRotate :: HG3DClass -> Radians -> IO () -cOSetRotate a1 a2 = - withHG3DClass a1 $ \a1' -> - withRadians a2 $ \a2' -> - cOSetRotate'_ a1' a2' >>= \res -> - return () -{-# LINE 116 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} -; -cOGetRotate :: HG3DClass -> IO (Radians) -cOGetRotate a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cOGetRotate'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 120 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} -; -cORotate :: HG3DClass -> Radians -> IO () -cORotate a1 a2 = - withHG3DClass a1 $ \a1' -> - withRadians a2 $ \a2' -> - cORotate'_ a1' a2' >>= \res -> - return () -{-# LINE 124 "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 129 "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 133 "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 137 "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 141 "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs" #-} -; -cONotifyOrigin :: HG3DClass -> String -> IO () -cONotifyOrigin a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cONotifyOrigin'_ a1' a2' >>= \res -> - return () -{-# LINE 145 "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) -> ((RadiansPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs.h cO_getRotate_c" - cOGetRotate'_ :: ((HG3DClassPtr) -> ((RadiansPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlay.chs.h cO_rotate_c" - cORotate'_ :: ((HG3DClassPtr) -> ((RadiansPtr) -> (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 ())))
− HGamer3D/Bindings/Ogre/ClassOverlayContainer.hs
@@ -1,137 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassOverlayContainer.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassOverlayContainer.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassOverlayContainer.chs" #-} - - -cOcAddChildImpl2 :: HG3DClass -> HG3DClass -> IO () -cOcAddChildImpl2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cOcAddChildImpl2'_ a1' a2' >>= \res -> - return () -{-# LINE 60 "HGamer3D\\Bindings\\Ogre\\ClassOverlayContainer.chs" #-} -; -cOcRemoveChild :: HG3DClass -> String -> IO () -cOcRemoveChild a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cOcRemoveChild'_ a1' a2' >>= \res -> - return () -{-# LINE 64 "HGamer3D\\Bindings\\Ogre\\ClassOverlayContainer.chs" #-} -; -cOcInitialise :: HG3DClass -> IO () -cOcInitialise a1 = - withHG3DClass a1 $ \a1' -> - cOcInitialise'_ a1' >>= \res -> - return () -{-# LINE 67 "HGamer3D\\Bindings\\Ogre\\ClassOverlayContainer.chs" #-} -; -cOcPositionsOutOfDate :: HG3DClass -> IO () -cOcPositionsOutOfDate a1 = - withHG3DClass a1 $ \a1' -> - cOcPositionsOutOfDate'_ a1' >>= \res -> - return () -{-# LINE 70 "HGamer3D\\Bindings\\Ogre\\ClassOverlayContainer.chs" #-} -; -cOcUpdate :: HG3DClass -> IO () -cOcUpdate a1 = - withHG3DClass a1 $ \a1' -> - cOcUpdate'_ a1' >>= \res -> - return () -{-# LINE 73 "HGamer3D\\Bindings\\Ogre\\ClassOverlayContainer.chs" #-} -; -cOcNotifyViewport :: HG3DClass -> IO () -cOcNotifyViewport a1 = - withHG3DClass a1 $ \a1' -> - cOcNotifyViewport'_ a1' >>= \res -> - return () -{-# LINE 76 "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 81 "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 ()))))
− HGamer3D/Bindings/Ogre/ClassOverlayManager.hs
@@ -1,235 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs" #-} -import HGamer3D.Bindings.Ogre.TypeSharedPtr -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs" #-} -import HGamer3D.Bindings.Ogre.EnumOrientationMode -{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs" #-} - - -cOmParseScript :: HG3DClass -> String -> IO (SharedPtr) -cOmParseScript a1 a3 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - withCString a3 $ \a3' -> - cOmParseScript'_ a1' a2' a3' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 63 "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 67 "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 72 "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 77 "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs" #-} -; -cOmDestroy :: HG3DClass -> String -> IO () -cOmDestroy a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cOmDestroy'_ a1' a2' >>= \res -> - return () -{-# LINE 81 "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs" #-} -; -cOmDestroy2 :: HG3DClass -> HG3DClass -> IO () -cOmDestroy2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cOmDestroy2'_ a1' a2' >>= \res -> - return () -{-# LINE 85 "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs" #-} -; -cOmDestroyAll :: HG3DClass -> IO () -cOmDestroyAll a1 = - withHG3DClass a1 $ \a1' -> - cOmDestroyAll'_ a1' >>= \res -> - return () -{-# LINE 88 "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 92 "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 96 "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 100 "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 104 "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 110 "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 115 "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 119 "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs" #-} -; - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassOverlayManager.chs.h cOm_parseScript_c" - cOmParseScript'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> ((Ptr CChar) -> (IO ())))) - -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 ())))
− HGamer3D/Bindings/Ogre/ClassPSSMShadowCameraSetup.hs
@@ -1,136 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassPSSMShadowCameraSetup.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassPSSMShadowCameraSetup.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "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 63 "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 68 "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 72 "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 76 "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 80 "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 84 "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 ())))
− HGamer3D/Bindings/Ogre/ClassParticleAffector.hs
@@ -1,75 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassParticleAffector.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassParticleAffector.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "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 60 "HGamer3D\\Bindings\\Ogre\\ClassParticleAffector.chs" #-} -; - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleAffector.chs.h cPa_getType_c" - cPaGetType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ())))
− HGamer3D/Bindings/Ogre/ClassParticleEmitter.hs
@@ -1,706 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} -import HGamer3D.Bindings.Ogre.TypeVector3 -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} -import HGamer3D.Bindings.Ogre.TypeRadian -{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} -import HGamer3D.Bindings.Ogre.TypeColour -{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} - - -cPeSetPosition :: HG3DClass -> Vector3 -> IO () -cPeSetPosition a1 a2 = - withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> - cPeSetPosition'_ a1' a2' >>= \res -> - return () -{-# LINE 63 "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 67 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} -; -cPeSetDirection :: HG3DClass -> Vector3 -> IO () -cPeSetDirection a1 a2 = - withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> - cPeSetDirection'_ a1' a2' >>= \res -> - return () -{-# LINE 71 "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 75 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} -; -cPeSetAngle :: HG3DClass -> Radians -> IO () -cPeSetAngle a1 a2 = - withHG3DClass a1 $ \a1' -> - withRadians a2 $ \a2' -> - cPeSetAngle'_ a1' a2' >>= \res -> - return () -{-# LINE 79 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} -; -cPeGetAngle :: HG3DClass -> IO (Radians) -cPeGetAngle a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cPeGetAngle'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 83 "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 87 "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 92 "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 96 "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 100 "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 104 "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 108 "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 112 "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 116 "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 120 "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 124 "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 129 "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 133 "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 137 "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 141 "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 145 "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 149 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} -; -cPeSetColour :: HG3DClass -> Colour -> IO () -cPeSetColour a1 a2 = - withHG3DClass a1 $ \a1' -> - withColour a2 $ \a2' -> - cPeSetColour'_ a1' a2' >>= \res -> - return () -{-# LINE 153 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} -; -cPeSetColour2 :: HG3DClass -> Colour -> Colour -> IO () -cPeSetColour2 a1 a2 a3 = - withHG3DClass a1 $ \a1' -> - withColour a2 $ \a2' -> - withColour a3 $ \a3' -> - cPeSetColour2'_ a1' a2' a3' >>= \res -> - return () -{-# LINE 158 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} -; -cPeSetColourRangeStart :: HG3DClass -> Colour -> IO () -cPeSetColourRangeStart a1 a2 = - withHG3DClass a1 $ \a1' -> - withColour a2 $ \a2' -> - cPeSetColourRangeStart'_ a1' a2' >>= \res -> - return () -{-# LINE 162 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} -; -cPeSetColourRangeEnd :: HG3DClass -> Colour -> IO () -cPeSetColourRangeEnd a1 a2 = - withHG3DClass a1 $ \a1' -> - withColour a2 $ \a2' -> - cPeSetColourRangeEnd'_ a1' a2' >>= \res -> - return () -{-# LINE 166 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} -; -cPeGetColour :: HG3DClass -> IO (Colour) -cPeGetColour a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cPeGetColour'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 170 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} -; -cPeGetColourRangeStart :: HG3DClass -> IO (Colour) -cPeGetColourRangeStart a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cPeGetColourRangeStart'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 174 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} -; -cPeGetColourRangeEnd :: HG3DClass -> IO (Colour) -cPeGetColourRangeEnd a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cPeGetColourRangeEnd'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 178 "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 183 "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 187 "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 191 "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 195 "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 199 "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 203 "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 207 "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 211 "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 216 "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 220 "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 224 "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 228 "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 232 "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 236 "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 240 "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 245 "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 249 "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 253 "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 257 "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 261 "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 265 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} -; -cPeSetName :: HG3DClass -> String -> IO () -cPeSetName a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cPeSetName'_ a1' a2' >>= \res -> - return () -{-# LINE 269 "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 273 "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs" #-} -; -cPeSetEmittedEmitter :: HG3DClass -> String -> IO () -cPeSetEmittedEmitter a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cPeSetEmittedEmitter'_ a1' a2' >>= \res -> - return () -{-# LINE 277 "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 281 "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 285 "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) -> ((RadiansPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_getAngle_c" - cPeGetAngle'_ :: ((HG3DClassPtr) -> ((RadiansPtr) -> (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) -> ((ColourPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_setColour2_c" - cPeSetColour2'_ :: ((HG3DClassPtr) -> ((ColourPtr) -> ((ColourPtr) -> (IO ())))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_setColourRangeStart_c" - cPeSetColourRangeStart'_ :: ((HG3DClassPtr) -> ((ColourPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_setColourRangeEnd_c" - cPeSetColourRangeEnd'_ :: ((HG3DClassPtr) -> ((ColourPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_getColour_c" - cPeGetColour'_ :: ((HG3DClassPtr) -> ((ColourPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_getColourRangeStart_c" - cPeGetColourRangeStart'_ :: ((HG3DClassPtr) -> ((ColourPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe_getColourRangeEnd_c" - cPeGetColourRangeEnd'_ :: ((HG3DClassPtr) -> ((ColourPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassParticleEmitter.chs.h cPe__getEmissionCount_c" - cPeGetEmissionCount'_ :: ((HG3DClassPtr) -> (CFloat -> ((Ptr CUShort) -> (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 ())))
− HGamer3D/Bindings/Ogre/ClassParticleSystemFactory.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassParticleSystemFactory.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassParticleSystemFactory.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassParticleSystemFactory.chs" #-} - -
− HGamer3D/Bindings/Ogre/ClassPass.hs
@@ -1,1864 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -import HGamer3D.Bindings.Ogre.TypeColour -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -import HGamer3D.Bindings.Ogre.EnumSceneBlendFactor -{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -import HGamer3D.Bindings.Ogre.EnumSceneBlendOperation -{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -import HGamer3D.Bindings.Ogre.EnumCompareFunction -{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -import HGamer3D.Bindings.Ogre.EnumCullingMode -{-# LINE 59 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -import HGamer3D.Bindings.Ogre.EnumManualCullingMode -{-# LINE 60 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -import HGamer3D.Bindings.Ogre.EnumShadeOptions -{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -import HGamer3D.Bindings.Ogre.EnumPolygonMode -{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -import HGamer3D.Bindings.Ogre.EnumFogMode -{-# LINE 63 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -import HGamer3D.Bindings.Ogre.EnumLightTypes -{-# LINE 64 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -import HGamer3D.Bindings.Ogre.TypeSharedPtr -{-# LINE 65 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -import HGamer3D.Bindings.Ogre.EnumContentType -{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -import HGamer3D.Bindings.Ogre.EnumTextureFilterOptions -{-# LINE 67 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -import HGamer3D.Bindings.Ogre.EnumIlluminationStage -{-# LINE 68 "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 74 "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 78 "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 82 "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 86 "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 90 "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 94 "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 98 "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 102 "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 106 "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 112 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -; -cPSetAmbient2 :: HG3DClass -> Colour -> IO () -cPSetAmbient2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withColour a2 $ \a2' -> - cPSetAmbient2'_ a1' a2' >>= \res -> - return () -{-# LINE 116 "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 123 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -; -cPSetDiffuse2 :: HG3DClass -> Colour -> IO () -cPSetDiffuse2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withColour a2 $ \a2' -> - cPSetDiffuse2'_ a1' a2' >>= \res -> - return () -{-# LINE 127 "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 134 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -; -cPSetSpecular2 :: HG3DClass -> Colour -> IO () -cPSetSpecular2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withColour a2 $ \a2' -> - cPSetSpecular2'_ a1' a2' >>= \res -> - return () -{-# LINE 138 "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 142 "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 148 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -; -cPSetSelfIllumination2 :: HG3DClass -> Colour -> IO () -cPSetSelfIllumination2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withColour a2 $ \a2' -> - cPSetSelfIllumination2'_ a1' a2' >>= \res -> - return () -{-# LINE 152 "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 156 "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 160 "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 164 "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 168 "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 175 "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 179 "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 183 "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 187 "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 191 "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 195 "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 199 "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 203 "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 207 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -; -cPGetAmbient :: HG3DClass -> IO (Colour) -cPGetAmbient a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cPGetAmbient'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 211 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -; -cPGetDiffuse :: HG3DClass -> IO (Colour) -cPGetDiffuse a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cPGetDiffuse'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 215 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -; -cPGetSpecular :: HG3DClass -> IO (Colour) -cPGetSpecular a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cPGetSpecular'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 219 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -; -cPGetSelfIllumination :: HG3DClass -> IO (Colour) -cPGetSelfIllumination a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cPGetSelfIllumination'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 223 "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 227 "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 231 "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 237 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -; -cPAddTextureUnitState :: HG3DClass -> HG3DClass -> IO () -cPAddTextureUnitState a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cPAddTextureUnitState'_ a1' a2' >>= \res -> - return () -{-# LINE 241 "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 246 "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 251 "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 255 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -; -cPRemoveAllTextureUnitStates :: HG3DClass -> IO () -cPRemoveAllTextureUnitStates a1 = - withHG3DClass a1 $ \a1' -> - cPRemoveAllTextureUnitStates'_ a1' >>= \res -> - return () -{-# LINE 258 "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 262 "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 266 "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 270 "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 274 "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 278 "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 282 "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 286 "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 291 "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 295 "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 299 "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 303 "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 307 "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 311 "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 315 "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 319 "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 323 "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 327 "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 331 "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 335 "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 339 "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 343 "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 347 "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 351 "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 355 "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 359 "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 363 "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 367 "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 371 "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 375 "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 379 "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 383 "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 387 "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 391 "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 395 "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 399 "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 403 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -; -cPSetFog :: HG3DClass -> Bool -> EnumFogMode -> Colour -> 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 - withColour 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 412 "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 416 "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 420 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -; -cPGetFogColour :: HG3DClass -> IO (Colour) -cPGetFogColour a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cPGetFogColour'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 424 "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 428 "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 432 "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 436 "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 441 "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 445 "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 449 "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 453 "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 457 "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 461 "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 465 "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 469 "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 473 "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 477 "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 481 "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 485 "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 489 "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 495 "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 499 "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 503 "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 507 "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 511 "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 515 "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 519 "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 523 "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 528 "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 532 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -; -cPGetVertexProgram :: HG3DClass -> IO (SharedPtr) -cPGetVertexProgram a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cPGetVertexProgram'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 536 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -; -cPSetShadowCasterVertexProgram :: HG3DClass -> String -> IO () -cPSetShadowCasterVertexProgram a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cPSetShadowCasterVertexProgram'_ a1' a2' >>= \res -> - return () -{-# LINE 540 "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 544 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -; -cPGetShadowCasterVertexProgram :: HG3DClass -> IO (SharedPtr) -cPGetShadowCasterVertexProgram a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cPGetShadowCasterVertexProgram'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 548 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -; -cPSetShadowReceiverVertexProgram :: HG3DClass -> String -> IO () -cPSetShadowReceiverVertexProgram a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cPSetShadowReceiverVertexProgram'_ a1' a2' >>= \res -> - return () -{-# LINE 552 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -; -cPSetShadowReceiverFragmentProgram :: HG3DClass -> String -> IO () -cPSetShadowReceiverFragmentProgram a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cPSetShadowReceiverFragmentProgram'_ a1' a2' >>= \res -> - return () -{-# LINE 556 "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 560 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -; -cPGetShadowReceiverVertexProgram :: HG3DClass -> IO (SharedPtr) -cPGetShadowReceiverVertexProgram a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cPGetShadowReceiverVertexProgram'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 564 "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 568 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -; -cPGetShadowReceiverFragmentProgram :: HG3DClass -> IO (SharedPtr) -cPGetShadowReceiverFragmentProgram a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cPGetShadowReceiverFragmentProgram'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 572 "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 577 "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 581 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -; -cPGetFragmentProgram :: HG3DClass -> IO (SharedPtr) -cPGetFragmentProgram a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cPGetFragmentProgram'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 585 "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 590 "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 594 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -; -cPGetGeometryProgram :: HG3DClass -> IO (SharedPtr) -cPGetGeometryProgram a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cPGetGeometryProgram'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 598 "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 603 "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 607 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -; -cPPrepare :: HG3DClass -> IO () -cPPrepare a1 = - withHG3DClass a1 $ \a1' -> - cPPrepare'_ a1' >>= \res -> - return () -{-# LINE 610 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -; -cPUnprepare :: HG3DClass -> IO () -cPUnprepare a1 = - withHG3DClass a1 $ \a1' -> - cPUnprepare'_ a1' >>= \res -> - return () -{-# LINE 613 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -; -cPLoad :: HG3DClass -> IO () -cPLoad a1 = - withHG3DClass a1 $ \a1' -> - cPLoad'_ a1' >>= \res -> - return () -{-# LINE 616 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -; -cPUnload :: HG3DClass -> IO () -cPUnload a1 = - withHG3DClass a1 $ \a1' -> - cPUnload'_ a1' >>= \res -> - return () -{-# LINE 619 "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 623 "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 627 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -; -cPDirtyHash :: HG3DClass -> IO () -cPDirtyHash a1 = - withHG3DClass a1 $ \a1' -> - cPDirtyHash'_ a1' >>= \res -> - return () -{-# LINE 630 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -; -cPRecalculateHash :: HG3DClass -> IO () -cPRecalculateHash a1 = - withHG3DClass a1 $ \a1' -> - cPRecalculateHash'_ a1' >>= \res -> - return () -{-# LINE 633 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -; -cPNotifyNeedsRecompile :: HG3DClass -> IO () -cPNotifyNeedsRecompile a1 = - withHG3DClass a1 $ \a1' -> - cPNotifyNeedsRecompile'_ a1' >>= \res -> - return () -{-# LINE 636 "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 642 "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 646 "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 650 "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 654 "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 658 "HGamer3D\\Bindings\\Ogre\\ClassPass.chs" #-} -; -cPQueueForDeletion :: HG3DClass -> IO () -cPQueueForDeletion a1 = - withHG3DClass a1 $ \a1' -> - cPQueueForDeletion'_ a1' >>= \res -> - return () -{-# LINE 661 "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 665 "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 669 "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 673 "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 677 "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 681 "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 685 "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 689 "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 693 "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 697 "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 CUShort) -> (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) -> ((ColourPtr) -> (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) -> ((ColourPtr) -> (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) -> ((ColourPtr) -> (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) -> ((ColourPtr) -> (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) -> ((ColourPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getDiffuse_c" - cPGetDiffuse'_ :: ((HG3DClassPtr) -> ((ColourPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getSpecular_c" - cPGetSpecular'_ :: ((HG3DClassPtr) -> ((ColourPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getSelfIllumination_c" - cPGetSelfIllumination'_ :: ((HG3DClassPtr) -> ((ColourPtr) -> (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) -> (CUShort -> ((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) -> (CUShort -> ((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) -> (CUShort -> (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 CUShort) -> (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) -> (CUShort -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getMaxSimultaneousLights_c" - cPGetMaxSimultaneousLights'_ :: ((HG3DClassPtr) -> ((Ptr CUShort) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_setStartLight_c" - cPSetStartLight'_ :: ((HG3DClassPtr) -> (CUShort -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getStartLight_c" - cPGetStartLight'_ :: ((HG3DClassPtr) -> ((Ptr CUShort) -> (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 -> ((ColourPtr) -> (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) -> ((ColourPtr) -> (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) -> (CUShort -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP_getLightCountPerIteration_c" - cPGetLightCountPerIteration'_ :: ((HG3DClassPtr) -> ((Ptr CUShort) -> (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_getVertexProgram_c" - cPGetVertexProgram'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (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_getShadowCasterVertexProgram_c" - cPGetShadowCasterVertexProgram'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (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_getShadowReceiverVertexProgram_c" - cPGetShadowReceiverVertexProgram'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (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_getShadowReceiverFragmentProgram_c" - cPGetShadowReceiverFragmentProgram'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (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_getFragmentProgram_c" - cPGetFragmentProgram'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (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_getGeometryProgram_c" - cPGetGeometryProgram'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP__split_c" - cPSplit'_ :: ((HG3DClassPtr) -> (CUShort -> ((HG3DClassPtr) -> (IO ())))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassPass.chs.h cP__notifyIndex_c" - cPNotifyIndex'_ :: ((HG3DClassPtr) -> (CUShort -> (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 -> (CUShort -> ((Ptr CUShort) -> (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 ())))
− HGamer3D/Bindings/Ogre/ClassPatchMesh.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassPatchMesh.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassPatchMesh.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassPatchMesh.chs" #-} - -
− HGamer3D/Bindings/Ogre/ClassPatchSurface.hs
@@ -1,158 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassPatchSurface.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassPatchSurface.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "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 60 "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 64 "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 68 "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 72 "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 76 "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 80 "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 84 "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 88 "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 ())))
− HGamer3D/Bindings/Ogre/ClassPlaneOptimalShadowCameraSetup.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassPlaneOptimalShadowCameraSetup.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassPlaneOptimalShadowCameraSetup.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassPlaneOptimalShadowCameraSetup.chs" #-} - -
+ HGamer3D/Bindings/Ogre/ClassPtr.chs view
@@ -0,0 +1,154 @@+{-# LANGUAGE EmptyDataDecls #-}+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- Class Ptr Utilities++module HGamer3D.Bindings.Ogre.ClassPtr where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}++#include "ClassPtr.h"+{- class ClassAnimation -}+{#pointer *ClassAnimation as ClassAnimation#}+{- class ClassAnimationState -}+{#pointer *ClassAnimationState as ClassAnimationState#}+{- class ClassAnimationStateSet -}+{#pointer *ClassAnimationStateSet as ClassAnimationStateSet#}+{- class ClassAnimationTrack -}+{#pointer *ClassAnimationTrack as ClassAnimationTrack#}+{- class ClassArchive -}+{#pointer *ClassArchive as ClassArchive#}+{- class ClassArchiveManager -}+{#pointer *ClassArchiveManager as ClassArchiveManager#}+{- class ClassBillboard -}+{#pointer *ClassBillboard as ClassBillboard#}+{- class ClassBillboardChain -}+{#pointer *ClassBillboardChain as ClassBillboardChain#}+{- class ClassBillboardChainFactory -}+{#pointer *ClassBillboardChainFactory as ClassBillboardChainFactory#}+{- class ClassBillboardSet -}+{#pointer *ClassBillboardSet as ClassBillboardSet#}+{- class ClassBillboardSetFactory -}+{#pointer *ClassBillboardSetFactory as ClassBillboardSetFactory#}+{- class ClassBone -}+{#pointer *ClassBone as ClassBone#}+{- class ClassCamera -}+{#pointer *ClassCamera as ClassCamera#}+{- class ClassConfigFile -}+{#pointer *ClassConfigFile as ClassConfigFile#}+{- class ClassControllerManager -}+{#pointer *ClassControllerManager as ClassControllerManager#}+{- class ClassEntity -}+{#pointer *ClassEntity as ClassEntity#}+{- class ClassEntityFactory -}+{#pointer *ClassEntityFactory as ClassEntityFactory#}+{- class ClassException -}+{#pointer *ClassException as ClassException#}+{- class ClassFrustum -}+{#pointer *ClassFrustum as ClassFrustum#}+{- class ClassLight -}+{#pointer *ClassLight as ClassLight#}+{- class ClassLightFactory -}+{#pointer *ClassLightFactory as ClassLightFactory#}+{- class ClassLog -}+{#pointer *ClassLog as ClassLog#}+{- class ClassLogManager -}+{#pointer *ClassLogManager as ClassLogManager#}+{- class ClassManualObject -}+{#pointer *ClassManualObject as ClassManualObject#}+{- class ClassManualObjectFactory -}+{#pointer *ClassManualObjectFactory as ClassManualObjectFactory#}+{- class ClassManualObjectSection -}+{#pointer *ClassManualObjectSection as ClassManualObjectSection#}+{- class ClassMaterial -}+{#pointer *ClassMaterial as ClassMaterial#}+{- class ClassMaterialManager -}+{#pointer *ClassMaterialManager as ClassMaterialManager#}+{- class ClassMesh -}+{#pointer *ClassMesh as ClassMesh#}+{- class ClassMeshManager -}+{#pointer *ClassMeshManager as ClassMeshManager#}+{- class ClassMovableObject -}+{#pointer *ClassMovableObject as ClassMovableObject#}+{- class ClassMovableObjectFactory -}+{#pointer *ClassMovableObjectFactory as ClassMovableObjectFactory#}+{- class ClassMultiRenderTarget -}+{#pointer *ClassMultiRenderTarget as ClassMultiRenderTarget#}+{- class ClassNode -}+{#pointer *ClassNode as ClassNode#}+{- class ClassNodeAnimationTrack -}+{#pointer *ClassNodeAnimationTrack as ClassNodeAnimationTrack#}+{- class ClassNumericAnimationTrack -}+{#pointer *ClassNumericAnimationTrack as ClassNumericAnimationTrack#}+{- class ClassRenderable -}+{#pointer *ClassRenderable as ClassRenderable#}+{- class ClassRenderSystem -}+{#pointer *ClassRenderSystem as ClassRenderSystem#}+{- class ClassRenderTarget -}+{#pointer *ClassRenderTarget as ClassRenderTarget#}+{- class ClassRenderTexture -}+{#pointer *ClassRenderTexture as ClassRenderTexture#}+{- class ClassRenderWindow -}+{#pointer *ClassRenderWindow as ClassRenderWindow#}+{- class ClassResource -}+{#pointer *ClassResource as ClassResource#}+{- class ClassResourceGroupManager -}+{#pointer *ClassResourceGroupManager as ClassResourceGroupManager#}+{- class ClassResourceManager -}+{#pointer *ClassResourceManager as ClassResourceManager#}+{- class ClassRoot -}+{#pointer *ClassRoot as ClassRoot#}+{- class ClassSceneManager -}+{#pointer *ClassSceneManager as ClassSceneManager#}+{- class ClassSceneManagerFactory -}+{#pointer *ClassSceneManagerFactory as ClassSceneManagerFactory#}+{- class ClassSceneNode -}+{#pointer *ClassSceneNode as ClassSceneNode#}+{- class ClassSkeleton -}+{#pointer *ClassSkeleton as ClassSkeleton#}+{- class ClassSkeletonManager -}+{#pointer *ClassSkeletonManager as ClassSkeletonManager#}+{- class ClassTextureManager -}+{#pointer *ClassTextureManager as ClassTextureManager#}+{- class ClassTimeIndex -}+{#pointer *ClassTimeIndex as ClassTimeIndex#}+{- class ClassVertexAnimationTrack -}+{#pointer *ClassVertexAnimationTrack as ClassVertexAnimationTrack#}+{- class ClassViewport -}+{#pointer *ClassViewport as ClassViewport#}+{- class ClassWindowEventUtilities -}+{#pointer *ClassWindowEventUtilities as ClassWindowEventUtilities#}+{- class ClassHG3DUtilities -}+{#pointer *ClassHG3DUtilities as ClassHG3DUtilities#}
− HGamer3D/Bindings/Ogre/ClassPtr.hs
@@ -1,438 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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 ClassHardwareBufferLicensee -} -type ClassHardwareBufferLicensee = Ptr (()) -{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassPlaneOptimalShadowCameraSetup -} -type ClassPlaneOptimalShadowCameraSetup = Ptr (()) -{-# LINE 63 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassFileStreamDataStream -} -type ClassFileStreamDataStream = Ptr (()) -{-# LINE 65 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassPatchMesh -} -type ClassPatchMesh = Ptr (()) -{-# LINE 67 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassRenderQueueInvocation -} -type ClassRenderQueueInvocation = Ptr (()) -{-# LINE 69 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassDefaultRaySceneQuery -} -type ClassDefaultRaySceneQuery = Ptr (()) -{-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassTextureManager -} -type ClassTextureManager = Ptr (()) -{-# LINE 73 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassHardwareBufferManagerBase -} -type ClassHardwareBufferManagerBase = Ptr (()) -{-# LINE 75 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassSubMesh -} -type ClassSubMesh = Ptr (()) -{-# LINE 77 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassBillboardChain -} -type ClassBillboardChain = Ptr (()) -{-# LINE 79 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassParticleAffector -} -type ClassParticleAffector = Ptr (()) -{-# LINE 81 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassMesh -} -type ClassMesh = Ptr (()) -{-# LINE 83 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassHighLevelGpuProgramFactory -} -type ClassHighLevelGpuProgramFactory = Ptr (()) -{-# LINE 85 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassMaterialBucket -} -type ClassMaterialBucket = Ptr (()) -{-# LINE 87 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassElement -} -type ClassElement = Ptr (()) -{-# LINE 89 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassCompositorInstance -} -type ClassCompositorInstance = Ptr (()) -{-# LINE 91 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassInvalidParametersException -} -type ClassInvalidParametersException = Ptr (()) -{-# LINE 93 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassParticleEmitter -} -type ClassParticleEmitter = Ptr (()) -{-# LINE 95 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassDefaultSphereSceneQuery -} -type ClassDefaultSphereSceneQuery = Ptr (()) -{-# LINE 97 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassException -} -type ClassException = Ptr (()) -{-# LINE 99 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassHardwareBufferManager -} -type ClassHardwareBufferManager = Ptr (()) -{-# LINE 101 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassKeyFrame -} -type ClassKeyFrame = Ptr (()) -{-# LINE 103 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassOverlayManager -} -type ClassOverlayManager = Ptr (()) -{-# LINE 105 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassDefaultSceneManagerFactory -} -type ClassDefaultSceneManagerFactory = Ptr (()) -{-# LINE 107 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassLogManager -} -type ClassLogManager = Ptr (()) -{-# LINE 109 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassCompositionTechnique -} -type ClassCompositionTechnique = Ptr (()) -{-# LINE 111 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassFrustum -} -type ClassFrustum = Ptr (()) -{-# LINE 113 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassMaterial -} -type ClassMaterial = Ptr (()) -{-# LINE 115 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassFileHandleDataStream -} -type ClassFileHandleDataStream = Ptr (()) -{-# LINE 117 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassDefaultSceneManager -} -type ClassDefaultSceneManager = Ptr (()) -{-# LINE 119 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassGpuProgram -} -type ClassGpuProgram = Ptr (()) -{-# LINE 121 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassCompositorChain -} -type ClassCompositorChain = Ptr (()) -{-# LINE 123 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassBillboardSetFactory -} -type ClassBillboardSetFactory = Ptr (()) -{-# LINE 125 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassMovableObject -} -type ClassMovableObject = Ptr (()) -{-# LINE 127 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassIOException -} -type ClassIOException = Ptr (()) -{-# LINE 129 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassLODBucket -} -type ClassLODBucket = Ptr (()) -{-# LINE 131 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassBone -} -type ClassBone = Ptr (()) -{-# LINE 133 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassFileNotFoundException -} -type ClassFileNotFoundException = Ptr (()) -{-# LINE 135 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassArchive -} -type ClassArchive = Ptr (()) -{-# LINE 137 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassBillboardChainFactory -} -type ClassBillboardChainFactory = Ptr (()) -{-# LINE 139 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassInternalErrorException -} -type ClassInternalErrorException = Ptr (()) -{-# LINE 141 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassStringConverter -} -type ClassStringConverter = Ptr (()) -{-# LINE 143 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassVertexPoseKeyFrame -} -type ClassVertexPoseKeyFrame = Ptr (()) -{-# LINE 145 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassBillboard -} -type ClassBillboard = Ptr (()) -{-# LINE 147 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassStringUtil -} -type ClassStringUtil = Ptr (()) -{-# LINE 149 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassResourceGroupListener -} -type ClassResourceGroupListener = Ptr (()) -{-# LINE 151 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassAnimation -} -type ClassAnimation = Ptr (()) -{-# LINE 153 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassSceneNode -} -type ClassSceneNode = Ptr (()) -{-# LINE 155 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassTimeIndex -} -type ClassTimeIndex = Ptr (()) -{-# LINE 157 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassAnimationTrack -} -type ClassAnimationTrack = Ptr (()) -{-# LINE 159 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassRegion -} -type ClassRegion = Ptr (()) -{-# LINE 161 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassHighLevelGpuProgram -} -type ClassHighLevelGpuProgram = Ptr (()) -{-# LINE 163 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassLightFactory -} -type ClassLightFactory = Ptr (()) -{-# LINE 165 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassLiSPSMShadowCameraSetup -} -type ClassLiSPSMShadowCameraSetup = Ptr (()) -{-# LINE 167 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassPass -} -type ClassPass = Ptr (()) -{-# LINE 169 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassTextureUnitState -} -type ClassTextureUnitState = Ptr (()) -{-# LINE 171 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassNumericAnimationTrack -} -type ClassNumericAnimationTrack = Ptr (()) -{-# LINE 173 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassCmdManualNamedConstsFile -} -type ClassCmdManualNamedConstsFile = Ptr (()) -{-# LINE 175 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassSkeletonInstance -} -type ClassSkeletonInstance = Ptr (()) -{-# LINE 177 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassMeshSerializer -} -type ClassMeshSerializer = Ptr (()) -{-# LINE 179 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassAnimationState -} -type ClassAnimationState = Ptr (()) -{-# LINE 181 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassSceneManagerEnumerator -} -type ClassSceneManagerEnumerator = Ptr (()) -{-# LINE 183 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassRenderingAPIException -} -type ClassRenderingAPIException = Ptr (()) -{-# LINE 185 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassCmdPose -} -type ClassCmdPose = Ptr (()) -{-# LINE 187 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassTechnique -} -type ClassTechnique = Ptr (()) -{-# LINE 189 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassManualObjectSectionShadowRenderable -} -type ClassManualObjectSectionShadowRenderable = Ptr (()) -{-# LINE 191 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassEntity -} -type ClassEntity = Ptr (()) -{-# LINE 193 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassSceneManagerFactory -} -type ClassSceneManagerFactory = Ptr (()) -{-# LINE 195 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassRenderWindow -} -type ClassRenderWindow = Ptr (()) -{-# LINE 197 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassShadowCameraSetup -} -type ClassShadowCameraSetup = Ptr (()) -{-# LINE 199 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassRuntimeAssertionException -} -type ClassRuntimeAssertionException = Ptr (()) -{-# LINE 201 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassRibbonTrailFactory -} -type ClassRibbonTrailFactory = Ptr (()) -{-# LINE 203 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassSubEntity -} -type ClassSubEntity = Ptr (()) -{-# LINE 205 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassManualObject -} -type ClassManualObject = Ptr (()) -{-# LINE 207 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassWindowEventListener -} -type ClassWindowEventListener = Ptr (()) -{-# LINE 209 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassHardwareIndexBuffer -} -type ClassHardwareIndexBuffer = Ptr (()) -{-# LINE 211 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassGpuProgramManager -} -type ClassGpuProgramManager = Ptr (()) -{-# LINE 213 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassOverlay -} -type ClassOverlay = Ptr (()) -{-# LINE 215 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassStaticGeometry -} -type ClassStaticGeometry = Ptr (()) -{-# LINE 217 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassRibbonTrail -} -type ClassRibbonTrail = Ptr (()) -{-# LINE 219 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassManualObjectSection -} -type ClassManualObjectSection = Ptr (()) -{-# LINE 221 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassVertexAnimationTrack -} -type ClassVertexAnimationTrack = Ptr (()) -{-# LINE 223 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassArchiveManager -} -type ClassArchiveManager = Ptr (()) -{-# LINE 225 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassSkeleton -} -type ClassSkeleton = Ptr (()) -{-# LINE 227 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassSkeletonSerializer -} -type ClassSkeletonSerializer = Ptr (()) -{-# LINE 229 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassConfigFile -} -type ClassConfigFile = Ptr (()) -{-# LINE 231 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassRoot -} -type ClassRoot = Ptr (()) -{-# LINE 233 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassHardwarePixelBuffer -} -type ClassHardwarePixelBuffer = Ptr (()) -{-# LINE 235 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassResourceManager -} -type ClassResourceManager = Ptr (()) -{-# LINE 237 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassOverlayContainer -} -type ClassOverlayContainer = Ptr (()) -{-# LINE 239 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassWindowEventUtilities -} -type ClassWindowEventUtilities = Ptr (()) -{-# LINE 241 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassControllerManager -} -type ClassControllerManager = Ptr (()) -{-# LINE 243 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassMaterialSerializer -} -type ClassMaterialSerializer = Ptr (()) -{-# LINE 245 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassNodeAnimationTrack -} -type ClassNodeAnimationTrack = Ptr (()) -{-# LINE 247 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassLight -} -type ClassLight = Ptr (()) -{-# LINE 249 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassDefaultShadowCameraSetup -} -type ClassDefaultShadowCameraSetup = Ptr (()) -{-# LINE 251 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassCompositionTargetPass -} -type ClassCompositionTargetPass = Ptr (()) -{-# LINE 253 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassRenderTexture -} -type ClassRenderTexture = Ptr (()) -{-# LINE 255 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassCompositorManager -} -type ClassCompositorManager = Ptr (()) -{-# LINE 257 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassEntityFactory -} -type ClassEntityFactory = Ptr (()) -{-# LINE 259 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassMemoryDataStream -} -type ClassMemoryDataStream = Ptr (()) -{-# LINE 261 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassHardwareOcclusionQuery -} -type ClassHardwareOcclusionQuery = Ptr (()) -{-# LINE 263 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassPSSMShadowCameraSetup -} -type ClassPSSMShadowCameraSetup = Ptr (()) -{-# LINE 265 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassVertexMorphKeyFrame -} -type ClassVertexMorphKeyFrame = Ptr (()) -{-# LINE 267 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassNode -} -type ClassNode = Ptr (()) -{-# LINE 269 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassPatchSurface -} -type ClassPatchSurface = Ptr (()) -{-# LINE 271 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassManualObjectFactory -} -type ClassManualObjectFactory = Ptr (()) -{-# LINE 273 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassNumericKeyFrame -} -type ClassNumericKeyFrame = Ptr (()) -{-# LINE 275 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassDataStream -} -type ClassDataStream = Ptr (()) -{-# LINE 277 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassRenderObjectListener -} -type ClassRenderObjectListener = Ptr (()) -{-# LINE 279 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassGeometryBucket -} -type ClassGeometryBucket = Ptr (()) -{-# LINE 281 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassViewport -} -type ClassViewport = Ptr (()) -{-# LINE 283 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassDefaultPlaneBoundedVolumeListSceneQuery -} -type ClassDefaultPlaneBoundedVolumeListSceneQuery = Ptr (()) -{-# LINE 285 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassCompositionPass -} -type ClassCompositionPass = Ptr (()) -{-# LINE 287 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassSceneMgrQueuedRenderableVisitor -} -type ClassSceneMgrQueuedRenderableVisitor = Ptr (()) -{-# LINE 289 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassRenderSystemOperation -} -type ClassRenderSystemOperation = Ptr (()) -{-# LINE 291 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassUnimplementedException -} -type ClassUnimplementedException = Ptr (()) -{-# LINE 293 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassRenderQueueInvocationSequence -} -type ClassRenderQueueInvocationSequence = Ptr (()) -{-# LINE 295 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassDefaultAxisAlignedBoxSceneQuery -} -type ClassDefaultAxisAlignedBoxSceneQuery = Ptr (()) -{-# LINE 297 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassMaterialManager -} -type ClassMaterialManager = Ptr (()) -{-# LINE 299 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} -{- class ClassCamera -} -type ClassCamera = Ptr (()) -{-# LINE 301 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-}
− HGamer3D/Bindings/Ogre/ClassRegion.hs
@@ -1,124 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassRegion.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassRegion.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassRegion.chs" #-} -import HGamer3D.Bindings.Ogre.TypeVector3 -{-# LINE 55 "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 61 "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 65 "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 69 "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 73 "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 77 "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 ())))
− HGamer3D/Bindings/Ogre/ClassRenderObjectListener.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassRenderObjectListener.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassRenderObjectListener.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassRenderObjectListener.chs" #-} - -
− HGamer3D/Bindings/Ogre/ClassRenderQueueInvocation.hs
@@ -1,121 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassRenderQueueInvocation.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassRenderQueueInvocation.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "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 60 "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 64 "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 68 "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 72 "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 76 "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 ())))
− HGamer3D/Bindings/Ogre/ClassRenderQueueInvocationSequence.hs
@@ -1,132 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassRenderQueueInvocationSequence.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassRenderQueueInvocationSequence.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "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 60 "HGamer3D\\Bindings\\Ogre\\ClassRenderQueueInvocationSequence.chs" #-} -; -cRqisAdd2 :: HG3DClass -> HG3DClass -> IO () -cRqisAdd2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cRqisAdd2'_ a1' a2' >>= \res -> - return () -{-# LINE 64 "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 68 "HGamer3D\\Bindings\\Ogre\\ClassRenderQueueInvocationSequence.chs" #-} -; -cRqisClear :: HG3DClass -> IO () -cRqisClear a1 = - withHG3DClass a1 $ \a1' -> - cRqisClear'_ a1' >>= \res -> - return () -{-# LINE 71 "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 76 "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 80 "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 ())))
+ HGamer3D/Bindings/Ogre/ClassRenderSystem.chs view
@@ -0,0 +1,318 @@+{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org . +-- + +-- (c) 2011-2014 Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- + + +-- ClassRenderSystem.chs + +-- + +module HGamer3D.Bindings.Ogre.ClassRenderSystem where + +import Foreign +import Foreign.Ptr +import Foreign.C + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + +{# import HGamer3D.Bindings.Ogre.Utils #} +{# import HGamer3D.Bindings.Ogre.ClassPtr #} +{# import HGamer3D.Bindings.Ogre.StructHG3DClass #} +{# import HGamer3D.Bindings.Ogre.StructColour #} +{# import HGamer3D.Bindings.Ogre.EnumGpuProgramType #} + +#include "ClassRenderSystem.h" +{- function ~RenderSystem -} +{#fun ogre_rds_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #} + +{- function getName -} +{#fun ogre_rds_getName as getName +{ withHG3DClass* `HG3DClass' , + alloc64k- `String' peekCString*} -> `()' #} + +{- function setConfigOption -} +{#fun ogre_rds_setConfigOption as setConfigOption +{ withHG3DClass* `HG3DClass' , + withCString* `String' , + withCString* `String' } -> `()' #} + +{- function validateConfigOptions -} +{#fun ogre_rds_validateConfigOptions as validateConfigOptions +{ withHG3DClass* `HG3DClass' , + alloc64k- `String' peekCString*} -> `()' #} + +{- function reinitialise -} +{#fun ogre_rds_reinitialise as reinitialise +{ withHG3DClass* `HG3DClass' } -> `()' #} + +{- function shutdown -} +{#fun ogre_rds_shutdown as shutdown +{ withHG3DClass* `HG3DClass' } -> `()' #} + +{- function setAmbientLight -} +{#fun ogre_rds_setAmbientLight as setAmbientLight +{ withHG3DClass* `HG3DClass' , + realToFrac `Float' , + realToFrac `Float' , + realToFrac `Float' } -> `()' #} + +{- function setLightingEnabled -} +{#fun ogre_rds_setLightingEnabled as setLightingEnabled +{ withHG3DClass* `HG3DClass' , + fromBool `Bool' } -> `()' #} + +{- function setWBufferEnabled -} +{#fun ogre_rds_setWBufferEnabled as setWBufferEnabled +{ withHG3DClass* `HG3DClass' , + fromBool `Bool' } -> `()' #} + +{- function getWBufferEnabled -} +{#fun ogre_rds_getWBufferEnabled as getWBufferEnabled +{ withHG3DClass* `HG3DClass' , + alloca- `Bool' peekBoolUtil*} -> `()' #} + +{- function createMultiRenderTarget -} +{#fun ogre_rds_createMultiRenderTarget as createMultiRenderTarget +{ withHG3DClass* `HG3DClass' , + withCString* `String' , + alloca- `HG3DClass' peek*} -> `()' #} + +{- function destroyRenderWindow -} +{#fun ogre_rds_destroyRenderWindow as destroyRenderWindow +{ withHG3DClass* `HG3DClass' , + withCString* `String' } -> `()' #} + +{- function destroyRenderTexture -} +{#fun ogre_rds_destroyRenderTexture as destroyRenderTexture +{ withHG3DClass* `HG3DClass' , + withCString* `String' } -> `()' #} + +{- function destroyRenderTarget -} +{#fun ogre_rds_destroyRenderTarget as destroyRenderTarget +{ withHG3DClass* `HG3DClass' , + withCString* `String' } -> `()' #} + +{- function attachRenderTarget -} +{#fun ogre_rds_attachRenderTarget as attachRenderTarget +{ withHG3DClass* `HG3DClass' , + withHG3DClass* `HG3DClass' } -> `()' #} + +{- function getRenderTarget -} +{#fun ogre_rds_getRenderTarget as getRenderTarget +{ withHG3DClass* `HG3DClass' , + withCString* `String' , + alloca- `HG3DClass' peek*} -> `()' #} + +{- function detachRenderTarget -} +{#fun ogre_rds_detachRenderTarget as detachRenderTarget +{ withHG3DClass* `HG3DClass' , + withCString* `String' , + alloca- `HG3DClass' peek*} -> `()' #} + +{- function getErrorDescription -} +{#fun ogre_rds_getErrorDescription as getErrorDescription +{ withHG3DClass* `HG3DClass' , + fromIntegral `Int' , + alloc64k- `String' peekCString*} -> `()' #} + +{- function setWaitForVerticalBlank -} +{#fun ogre_rds_setWaitForVerticalBlank as setWaitForVerticalBlank +{ withHG3DClass* `HG3DClass' , + fromBool `Bool' } -> `()' #} + +{- function getWaitForVerticalBlank -} +{#fun ogre_rds_getWaitForVerticalBlank as getWaitForVerticalBlank +{ withHG3DClass* `HG3DClass' , + alloca- `Bool' peekBoolUtil*} -> `()' #} + +{- function getGlobalNumberOfInstances -} +{#fun ogre_rds_getGlobalNumberOfInstances as getGlobalNumberOfInstances +{ withHG3DClass* `HG3DClass' , + alloca- `Int' peekIntConv*} -> `()' #} + +{- function setGlobalNumberOfInstances -} +{#fun ogre_rds_setGlobalNumberOfInstances as setGlobalNumberOfInstances +{ withHG3DClass* `HG3DClass' , + fromIntegral `Int' } -> `()' #} + +{- function setFixedPipelineEnabled -} +{#fun ogre_rds_setFixedPipelineEnabled as setFixedPipelineEnabled +{ withHG3DClass* `HG3DClass' , + fromBool `Bool' } -> `()' #} + +{- function getFixedPipelineEnabled -} +{#fun ogre_rds_getFixedPipelineEnabled as getFixedPipelineEnabled +{ withHG3DClass* `HG3DClass' , + alloca- `Bool' peekBoolUtil*} -> `()' #} + +{- function setDepthBufferFor -} +{#fun ogre_rds_setDepthBufferFor as setDepthBufferFor +{ withHG3DClass* `HG3DClass' , + withHG3DClass* `HG3DClass' } -> `()' #} + +{- function areFixedFunctionLightsInViewSpace -} +{#fun ogre_rds_areFixedFunctionLightsInViewSpace as areFixedFunctionLightsInViewSpace +{ withHG3DClass* `HG3DClass' , + alloca- `Bool' peekBoolUtil*} -> `()' #} + +{- function convertColourValue -} +{#fun ogre_rds_convertColourValue as convertColourValue +{ withHG3DClass* `HG3DClass' , + withColour* `Colour' , + alloca- `Int' peekIntConv*} -> `()' #} + +{- function setStencilCheckEnabled -} +{#fun ogre_rds_setStencilCheckEnabled as setStencilCheckEnabled +{ withHG3DClass* `HG3DClass' , + fromBool `Bool' } -> `()' #} + +{- function setNormaliseNormals -} +{#fun ogre_rds_setNormaliseNormals as setNormaliseNormals +{ withHG3DClass* `HG3DClass' , + fromBool `Bool' } -> `()' #} + +{- function bindGpuProgramPassIterationParameters -} +{#fun ogre_rds_bindGpuProgramPassIterationParameters as bindGpuProgramPassIterationParameters +{ withHG3DClass* `HG3DClass' , + cIntFromEnum `EnumGpuProgramType' } -> `()' #} + +{- function unbindGpuProgram -} +{#fun ogre_rds_unbindGpuProgram as unbindGpuProgram +{ withHG3DClass* `HG3DClass' , + cIntFromEnum `EnumGpuProgramType' } -> `()' #} + +{- function isGpuProgramBound -} +{#fun ogre_rds_isGpuProgramBound as isGpuProgramBound +{ withHG3DClass* `HG3DClass' , + cIntFromEnum `EnumGpuProgramType' , + alloca- `Bool' peekBoolUtil*} -> `()' #} + +{- function addClipPlane2 -} +{#fun ogre_rds_addClipPlane2 as addClipPlane2 +{ withHG3DClass* `HG3DClass' , + realToFrac `Float' , + realToFrac `Float' , + realToFrac `Float' , + realToFrac `Float' } -> `()' #} + +{- function resetClipPlanes -} +{#fun ogre_rds_resetClipPlanes as resetClipPlanes +{ withHG3DClass* `HG3DClass' } -> `()' #} + +{- function setInvertVertexWinding -} +{#fun ogre_rds_setInvertVertexWinding as setInvertVertexWinding +{ withHG3DClass* `HG3DClass' , + fromBool `Bool' } -> `()' #} + +{- function getInvertVertexWinding -} +{#fun ogre_rds_getInvertVertexWinding as getInvertVertexWinding +{ withHG3DClass* `HG3DClass' , + alloca- `Bool' peekBoolUtil*} -> `()' #} + +{- function setScissorTest -} +{#fun ogre_rds_setScissorTest as setScissorTest +{ withHG3DClass* `HG3DClass' , + fromBool `Bool' , + fromIntegral `Int' , + fromIntegral `Int' , + fromIntegral `Int' , + fromIntegral `Int' } -> `()' #} + +{- function clearFrameBuffer -} +{#fun ogre_rds_clearFrameBuffer as clearFrameBuffer +{ withHG3DClass* `HG3DClass' , + fromIntegral `Int' , + withColour* `Colour' , + realToFrac `Float' , + fromIntegral `Int' } -> `()' #} + +{- function getHorizontalTexelOffset -} +{#fun ogre_rds_getHorizontalTexelOffset as getHorizontalTexelOffset +{ withHG3DClass* `HG3DClass' , + alloca- `Float' peekFloatConv*} -> `()' #} + +{- function getVerticalTexelOffset -} +{#fun ogre_rds_getVerticalTexelOffset as getVerticalTexelOffset +{ withHG3DClass* `HG3DClass' , + alloca- `Float' peekFloatConv*} -> `()' #} + +{- function getMinimumDepthInputValue -} +{#fun ogre_rds_getMinimumDepthInputValue as getMinimumDepthInputValue +{ withHG3DClass* `HG3DClass' , + alloca- `Float' peekFloatConv*} -> `()' #} + +{- function getMaximumDepthInputValue -} +{#fun ogre_rds_getMaximumDepthInputValue as getMaximumDepthInputValue +{ withHG3DClass* `HG3DClass' , + alloca- `Float' peekFloatConv*} -> `()' #} + +{- function setCurrentPassIterationCount -} +{#fun ogre_rds_setCurrentPassIterationCount as setCurrentPassIterationCount +{ withHG3DClass* `HG3DClass' , + fromIntegral `Int' } -> `()' #} + +{- function setDeriveDepthBias -} +{#fun ogre_rds_setDeriveDepthBias as setDeriveDepthBias +{ withHG3DClass* `HG3DClass' , + fromBool `Bool' , + realToFrac `Float' , + realToFrac `Float' , + realToFrac `Float' } -> `()' #} + +{- function preExtraThreadsStarted -} +{#fun ogre_rds_preExtraThreadsStarted as preExtraThreadsStarted +{ withHG3DClass* `HG3DClass' } -> `()' #} + +{- function postExtraThreadsStarted -} +{#fun ogre_rds_postExtraThreadsStarted as postExtraThreadsStarted +{ withHG3DClass* `HG3DClass' } -> `()' #} + +{- function registerThread -} +{#fun ogre_rds_registerThread as registerThread +{ withHG3DClass* `HG3DClass' } -> `()' #} + +{- function unregisterThread -} +{#fun ogre_rds_unregisterThread as unregisterThread +{ withHG3DClass* `HG3DClass' } -> `()' #} + +{- function getDisplayMonitorCount -} +{#fun ogre_rds_getDisplayMonitorCount as getDisplayMonitorCount +{ withHG3DClass* `HG3DClass' , + alloca- `Int' peekIntConv*} -> `()' #} + +{- function beginProfileEvent -} +{#fun ogre_rds_beginProfileEvent as beginProfileEvent +{ withHG3DClass* `HG3DClass' , + withCString* `String' } -> `()' #} + +{- function endProfileEvent -} +{#fun ogre_rds_endProfileEvent as endProfileEvent +{ withHG3DClass* `HG3DClass' } -> `()' #} + +{- function markProfileEvent -} +{#fun ogre_rds_markProfileEvent as markProfileEvent +{ withHG3DClass* `HG3DClass' , + withCString* `String' } -> `()' #} +
− HGamer3D/Bindings/Ogre/ClassRenderSystemOperation.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassRenderSystemOperation.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassRenderSystemOperation.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassRenderSystemOperation.chs" #-} - -
+ HGamer3D/Bindings/Ogre/ClassRenderTarget.chs view
@@ -0,0 +1,254 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassRenderTarget where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}++#include "ClassRenderTarget.h"+{- function ~RenderTarget -}+{#fun ogre_rtgt_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getName -}+{#fun ogre_rtgt_getName as getName +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function getMetrics -}+{#fun ogre_rtgt_getMetrics as getMetrics +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*,+ alloca- `Int' peekIntConv*,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function getWidth -}+{#fun ogre_rtgt_getWidth as getWidth +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function getHeight -}+{#fun ogre_rtgt_getHeight as getHeight +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function getColourDepth -}+{#fun ogre_rtgt_getColourDepth as getColourDepth +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function setDepthBufferPool -}+{#fun ogre_rtgt_setDepthBufferPool as setDepthBufferPool +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function getDepthBufferPool -}+{#fun ogre_rtgt_getDepthBufferPool as getDepthBufferPool +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function detachDepthBuffer -}+{#fun ogre_rtgt_detachDepthBuffer as detachDepthBuffer +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function update -}+{#fun ogre_rtgt_update as update +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function swapBuffers -}+{#fun ogre_rtgt_swapBuffers as swapBuffers +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function addViewport -}+{#fun ogre_rtgt_addViewport as addViewport +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getNumViewports -}+{#fun ogre_rtgt_getNumViewports as getNumViewports +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function getViewport -}+{#fun ogre_rtgt_getViewport as getViewport +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getViewportByZOrder -}+{#fun ogre_rtgt_getViewportByZOrder as getViewportByZOrder +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function hasViewportWithZOrder -}+{#fun ogre_rtgt_hasViewportWithZOrder as hasViewportWithZOrder +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function removeViewport -}+{#fun ogre_rtgt_removeViewport as removeViewport +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function removeAllViewports -}+{#fun ogre_rtgt_removeAllViewports as removeAllViewports +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getStatistics -}+{#fun ogre_rtgt_getStatistics as getStatistics +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*,+ alloca- `Float' peekFloatConv*,+ alloca- `Float' peekFloatConv*,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function getLastFPS -}+{#fun ogre_rtgt_getLastFPS as getLastFPS +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function getAverageFPS -}+{#fun ogre_rtgt_getAverageFPS as getAverageFPS +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function getBestFPS -}+{#fun ogre_rtgt_getBestFPS as getBestFPS +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function getWorstFPS -}+{#fun ogre_rtgt_getWorstFPS as getWorstFPS +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function getBestFrameTime -}+{#fun ogre_rtgt_getBestFrameTime as getBestFrameTime +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function getWorstFrameTime -}+{#fun ogre_rtgt_getWorstFrameTime as getWorstFrameTime +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function resetStatistics -}+{#fun ogre_rtgt_resetStatistics as resetStatistics +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function removeAllListeners -}+{#fun ogre_rtgt_removeAllListeners as removeAllListeners +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function isActive -}+{#fun ogre_rtgt_isActive as isActive +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setActive -}+{#fun ogre_rtgt_setActive as setActive +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function setAutoUpdated -}+{#fun ogre_rtgt_setAutoUpdated as setAutoUpdated +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function isAutoUpdated -}+{#fun ogre_rtgt_isAutoUpdated as isAutoUpdated +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function writeContentsToFile -}+{#fun ogre_rtgt_writeContentsToFile as writeContentsToFile +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function writeContentsToTimestampedFile -}+{#fun ogre_rtgt_writeContentsToTimestampedFile as writeContentsToTimestampedFile +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ withCString* `String' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function requiresTextureFlipping -}+{#fun ogre_rtgt_requiresTextureFlipping as requiresTextureFlipping +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getTriangleCount -}+{#fun ogre_rtgt_getTriangleCount as getTriangleCount +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function getBatchCount -}+{#fun ogre_rtgt_getBatchCount as getBatchCount +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function isPrimary -}+{#fun ogre_rtgt_isPrimary as isPrimary +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function isHardwareGammaEnabled -}+{#fun ogre_rtgt_isHardwareGammaEnabled as isHardwareGammaEnabled +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getFSAA -}+{#fun ogre_rtgt_getFSAA as getFSAA +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function getFSAAHint -}+{#fun ogre_rtgt_getFSAAHint as getFSAAHint +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassRenderTarget.hs
@@ -1,455 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} -import HGamer3D.Bindings.Ogre.EnumPixelFormat -{-# LINE 55 "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 61 "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 65 "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 69 "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 79 "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 83 "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 88 "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 92 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} -; -cRtRemoveAllViewports :: HG3DClass -> IO () -cRtRemoveAllViewports a1 = - withHG3DClass a1 $ \a1' -> - cRtRemoveAllViewports'_ a1' >>= \res -> - return () -{-# LINE 95 "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 99 "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 103 "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 107 "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 111 "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 115 "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 119 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} -; -cRtResetStatistics :: HG3DClass -> IO () -cRtResetStatistics a1 = - withHG3DClass a1 $ \a1' -> - cRtResetStatistics'_ a1' >>= \res -> - return () -{-# LINE 122 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} -; -cRtRemoveAllListeners :: HG3DClass -> IO () -cRtRemoveAllListeners a1 = - withHG3DClass a1 $ \a1' -> - cRtRemoveAllListeners'_ a1' >>= \res -> - return () -{-# LINE 125 "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 129 "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 133 "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 137 "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 141 "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 145 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} -; -cRtWriteContentsToFile :: HG3DClass -> String -> IO () -cRtWriteContentsToFile a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cRtWriteContentsToFile'_ a1' a2' >>= \res -> - return () -{-# LINE 149 "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 155 "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 159 "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 163 "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 167 "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 171 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} -; -cRtGetFSAA :: HG3DClass -> IO (Int) -cRtGetFSAA a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cRtGetFSAA'_ a1' a2' >>= \res -> - peekIntConv a2'>>= \a2'' -> - return (a2'') -{-# LINE 175 "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 179 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} -; -cRtBeginUpdate :: HG3DClass -> IO () -cRtBeginUpdate a1 = - withHG3DClass a1 $ \a1' -> - cRtBeginUpdate'_ a1' >>= \res -> - return () -{-# LINE 182 "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 187 "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 192 "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 196 "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 CUShort) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h cRt_getViewport_c" - cRtGetViewport'_ :: ((HG3DClassPtr) -> (CUShort -> ((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_getFSAA_c" - cRtGetFSAA'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (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 ())))
+ HGamer3D/Bindings/Ogre/ClassRenderTexture.chs view
@@ -0,0 +1,47 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassRenderTexture where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}++#include "ClassRenderTexture.h"+{- function ~RenderTexture -}+{#fun ogre_rtx_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassRenderTexture.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassRenderTexture.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassRenderTexture.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassRenderTexture.chs" #-} - -
+ HGamer3D/Bindings/Ogre/ClassRenderWindow.chs view
@@ -0,0 +1,149 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassRenderWindow where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}++#include "ClassRenderWindow.h"+{- function setFullscreen -}+{#fun ogre_rw_setFullscreen as setFullscreen +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' ,+ fromIntegral `Int' ,+ fromIntegral `Int' } -> `()' #}++{- function destroy -}+{#fun ogre_rw_destroy as destroy +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function resize -}+{#fun ogre_rw_resize as resize +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ fromIntegral `Int' } -> `()' #}++{- function windowMovedOrResized -}+{#fun ogre_rw_windowMovedOrResized as windowMovedOrResized +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function reposition -}+{#fun ogre_rw_reposition as reposition +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ fromIntegral `Int' } -> `()' #}++{- function isVisible -}+{#fun ogre_rw_isVisible as isVisible +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setVisible -}+{#fun ogre_rw_setVisible as setVisible +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function isHidden -}+{#fun ogre_rw_isHidden as isHidden +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setHidden -}+{#fun ogre_rw_setHidden as setHidden +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function setVSyncEnabled -}+{#fun ogre_rw_setVSyncEnabled as setVSyncEnabled +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function isVSyncEnabled -}+{#fun ogre_rw_isVSyncEnabled as isVSyncEnabled +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setVSyncInterval -}+{#fun ogre_rw_setVSyncInterval as setVSyncInterval +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function getVSyncInterval -}+{#fun ogre_rw_getVSyncInterval as getVSyncInterval +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function isActive -}+{#fun ogre_rw_isActive as isActive +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function isClosed -}+{#fun ogre_rw_isClosed as isClosed +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function isPrimary -}+{#fun ogre_rw_isPrimary as isPrimary +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function isFullScreen -}+{#fun ogre_rw_isFullScreen as isFullScreen +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getMetrics -}+{#fun ogre_rw_getMetrics as getMetrics +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*,+ alloca- `Int' peekIntConv*,+ alloca- `Int' peekIntConv*,+ alloca- `Int' peekIntConv*,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function isDeactivatedOnFocusChange -}+{#fun ogre_rw_isDeactivatedOnFocusChange as isDeactivatedOnFocusChange +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setDeactivateOnFocusChange -}+{#fun ogre_rw_setDeactivateOnFocusChange as setDeactivateOnFocusChange +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassRenderWindow.hs
@@ -1,217 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} -import HGamer3D.Bindings.Ogre.EnumPixelFormat -{-# LINE 55 "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 63 "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} -; -cRwDestroy :: HG3DClass -> IO () -cRwDestroy a1 = - withHG3DClass a1 $ \a1' -> - cRwDestroy'_ a1' >>= \res -> - return () -{-# LINE 66 "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 71 "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} -; -cRwWindowMovedOrResized :: HG3DClass -> IO () -cRwWindowMovedOrResized a1 = - withHG3DClass a1 $ \a1' -> - cRwWindowMovedOrResized'_ a1' >>= \res -> - return () -{-# LINE 74 "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 79 "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 83 "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 87 "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 91 "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 95 "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 99 "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 103 "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 107 "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 111 "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 ())))
+ HGamer3D/Bindings/Ogre/ClassRenderable.chs view
@@ -0,0 +1,123 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- ClassRenderable.chs++-- ++module HGamer3D.Bindings.Ogre.ClassRenderable where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}+{# import HGamer3D.Bindings.Ogre.StructSharedPtr #}++#include "ClassRenderable.h"+{- function ~Renderable -}+{#fun ogre_rndl_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getMaterial -}+{#fun ogre_rndl_getMaterial as getMaterial +{ withHG3DClass* `HG3DClass' ,+ alloca- `SharedPtr' peekSharedPtr*} -> `()' #}++{- function preRender -}+{#fun ogre_rndl_preRender as preRender +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function postRender -}+{#fun ogre_rndl_postRender as postRender +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getNumWorldTransforms -}+{#fun ogre_rndl_getNumWorldTransforms as getNumWorldTransforms +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function setUseIdentityProjection -}+{#fun ogre_rndl_setUseIdentityProjection as setUseIdentityProjection +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getUseIdentityProjection -}+{#fun ogre_rndl_getUseIdentityProjection as getUseIdentityProjection +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setUseIdentityView -}+{#fun ogre_rndl_setUseIdentityView as setUseIdentityView +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getUseIdentityView -}+{#fun ogre_rndl_getUseIdentityView as getUseIdentityView +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getSquaredViewDepth -}+{#fun ogre_rndl_getSquaredViewDepth as getSquaredViewDepth +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function getCastsShadows -}+{#fun ogre_rndl_getCastsShadows as getCastsShadows +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function removeCustomParameter -}+{#fun ogre_rndl_removeCustomParameter as removeCustomParameter +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function hasCustomParameter -}+{#fun ogre_rndl_hasCustomParameter as hasCustomParameter +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setPolygonModeOverrideable -}+{#fun ogre_rndl_setPolygonModeOverrideable as setPolygonModeOverrideable +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getPolygonModeOverrideable -}+{#fun ogre_rndl_getPolygonModeOverrideable as getPolygonModeOverrideable +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassRenderingAPIException.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassRenderingAPIException.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassRenderingAPIException.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassRenderingAPIException.chs" #-} - -
+ HGamer3D/Bindings/Ogre/ClassResource.chs view
@@ -0,0 +1,143 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- ClassResource.chs++-- ++module HGamer3D.Bindings.Ogre.ClassResource where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}++#include "ClassResource.h"+{- function ~Resource -}+{#fun ogre_rsrc_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function prepare -}+{#fun ogre_rsrc_prepare as prepare +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function load -}+{#fun ogre_rsrc_load as load +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function reload -}+{#fun ogre_rsrc_reload as reload +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function isReloadable -}+{#fun ogre_rsrc_isReloadable as isReloadable +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function isManuallyLoaded -}+{#fun ogre_rsrc_isManuallyLoaded as isManuallyLoaded +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function unload -}+{#fun ogre_rsrc_unload as unload +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getSize -}+{#fun ogre_rsrc_getSize as getSize +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function touch -}+{#fun ogre_rsrc_touch as touch +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getName -}+{#fun ogre_rsrc_getName as getName +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function isPrepared -}+{#fun ogre_rsrc_isPrepared as isPrepared +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function isLoaded -}+{#fun ogre_rsrc_isLoaded as isLoaded +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function isLoading -}+{#fun ogre_rsrc_isLoading as isLoading +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function isBackgroundLoaded -}+{#fun ogre_rsrc_isBackgroundLoaded as isBackgroundLoaded +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setBackgroundLoaded -}+{#fun ogre_rsrc_setBackgroundLoaded as setBackgroundLoaded +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function escalateLoading -}+{#fun ogre_rsrc_escalateLoading as escalateLoading +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getGroup -}+{#fun ogre_rsrc_getGroup as getGroup +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function changeGroupOwnership -}+{#fun ogre_rsrc_changeGroupOwnership as changeGroupOwnership +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function getCreator -}+{#fun ogre_rsrc_getCreator as getCreator +{ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getOrigin -}+{#fun ogre_rsrc_getOrigin as getOrigin +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function getStateCount -}+{#fun ogre_rsrc_getStateCount as getStateCount +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassResourceGroupListener.hs
@@ -1,230 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs" #-} -import HGamer3D.Bindings.Ogre.TypeSharedPtr -{-# LINE 55 "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 62 "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 67 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs" #-} -; -cRglResourceGroupScriptingEnded :: HG3DClass -> String -> IO () -cRglResourceGroupScriptingEnded a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cRglResourceGroupScriptingEnded'_ a1' a2' >>= \res -> - return () -{-# LINE 71 "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 76 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs" #-} -; -cRglResourcePrepareStarted :: HG3DClass -> SharedPtr -> IO () -cRglResourcePrepareStarted a1 a2 = - withHG3DClass a1 $ \a1' -> - withSharedPtr a2 $ \a2' -> - cRglResourcePrepareStarted'_ a1' a2' >>= \res -> - return () -{-# LINE 80 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs" #-} -; -cRglResourcePrepareEnded :: HG3DClass -> IO () -cRglResourcePrepareEnded a1 = - withHG3DClass a1 $ \a1' -> - cRglResourcePrepareEnded'_ a1' >>= \res -> - return () -{-# LINE 83 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs" #-} -; -cRglWorldGeometryPrepareStageStarted :: HG3DClass -> String -> IO () -cRglWorldGeometryPrepareStageStarted a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cRglWorldGeometryPrepareStageStarted'_ a1' a2' >>= \res -> - return () -{-# LINE 87 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs" #-} -; -cRglWorldGeometryPrepareStageEnded :: HG3DClass -> IO () -cRglWorldGeometryPrepareStageEnded a1 = - withHG3DClass a1 $ \a1' -> - cRglWorldGeometryPrepareStageEnded'_ a1' >>= \res -> - return () -{-# LINE 90 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs" #-} -; -cRglResourceGroupPrepareEnded :: HG3DClass -> String -> IO () -cRglResourceGroupPrepareEnded a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cRglResourceGroupPrepareEnded'_ a1' a2' >>= \res -> - return () -{-# LINE 94 "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 99 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs" #-} -; -cRglResourceLoadStarted :: HG3DClass -> SharedPtr -> IO () -cRglResourceLoadStarted a1 a2 = - withHG3DClass a1 $ \a1' -> - withSharedPtr a2 $ \a2' -> - cRglResourceLoadStarted'_ a1' a2' >>= \res -> - return () -{-# LINE 103 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs" #-} -; -cRglResourceLoadEnded :: HG3DClass -> IO () -cRglResourceLoadEnded a1 = - withHG3DClass a1 $ \a1' -> - cRglResourceLoadEnded'_ a1' >>= \res -> - return () -{-# LINE 106 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs" #-} -; -cRglWorldGeometryStageStarted :: HG3DClass -> String -> IO () -cRglWorldGeometryStageStarted a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cRglWorldGeometryStageStarted'_ a1' a2' >>= \res -> - return () -{-# LINE 110 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs" #-} -; -cRglWorldGeometryStageEnded :: HG3DClass -> IO () -cRglWorldGeometryStageEnded a1 = - withHG3DClass a1 $ \a1' -> - cRglWorldGeometryStageEnded'_ a1' >>= \res -> - return () -{-# LINE 113 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupListener.chs" #-} -; -cRglResourceGroupLoadEnded :: HG3DClass -> String -> IO () -cRglResourceGroupLoadEnded a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cRglResourceGroupLoadEnded'_ a1' a2' >>= \res -> - return () -{-# LINE 117 "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_resourcePrepareStarted_c" - cRglResourcePrepareStarted'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (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_resourceLoadStarted_c" - cRglResourceLoadStarted'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (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 ())))
+ HGamer3D/Bindings/Ogre/ClassResourceGroupManager.chs view
@@ -0,0 +1,220 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassResourceGroupManager where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}++#include "ClassResourceGroupManager.h"+{- function ResourceGroupManager -}+{#fun ogre_rgmgr_construct as new +{ alloca- `HG3DClass' peek*} -> `()' #}++{- function ~ResourceGroupManager -}+{#fun ogre_rgmgr_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function createResourceGroup -}+{#fun ogre_rgmgr_createResourceGroup as createResourceGroup +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ fromBool `Bool' } -> `()' #}++{- function initialiseResourceGroup -}+{#fun ogre_rgmgr_initialiseResourceGroup as initialiseResourceGroup +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function initialiseAllResourceGroups -}+{#fun ogre_rgmgr_initialiseAllResourceGroups as initialiseAllResourceGroups +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function prepareResourceGroup -}+{#fun ogre_rgmgr_prepareResourceGroup as prepareResourceGroup +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ fromBool `Bool' ,+ fromBool `Bool' } -> `()' #}++{- function loadResourceGroup -}+{#fun ogre_rgmgr_loadResourceGroup as loadResourceGroup +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ fromBool `Bool' ,+ fromBool `Bool' } -> `()' #}++{- function unloadResourceGroup -}+{#fun ogre_rgmgr_unloadResourceGroup as unloadResourceGroup +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ fromBool `Bool' } -> `()' #}++{- function unloadUnreferencedResourcesInGroup -}+{#fun ogre_rgmgr_unloadUnreferencedResourcesInGroup as unloadUnreferencedResourcesInGroup +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ fromBool `Bool' } -> `()' #}++{- function clearResourceGroup -}+{#fun ogre_rgmgr_clearResourceGroup as clearResourceGroup +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function destroyResourceGroup -}+{#fun ogre_rgmgr_destroyResourceGroup as destroyResourceGroup +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function isResourceGroupInitialised -}+{#fun ogre_rgmgr_isResourceGroupInitialised as isResourceGroupInitialised +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function isResourceGroupLoaded -}+{#fun ogre_rgmgr_isResourceGroupLoaded as isResourceGroupLoaded +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function resourceGroupExists -}+{#fun ogre_rgmgr_resourceGroupExists as resourceGroupExists +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function addResourceLocation -}+{#fun ogre_rgmgr_addResourceLocation as addResourceLocation +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ withCString* `String' ,+ withCString* `String' ,+ fromBool `Bool' } -> `()' #}++{- function removeResourceLocation -}+{#fun ogre_rgmgr_removeResourceLocation as removeResourceLocation +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ withCString* `String' } -> `()' #}++{- function resourceLocationExists -}+{#fun ogre_rgmgr_resourceLocationExists as resourceLocationExists +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ withCString* `String' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function undeclareResource -}+{#fun ogre_rgmgr_undeclareResource as undeclareResource +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ withCString* `String' } -> `()' #}++{- function resourceExists -}+{#fun ogre_rgmgr_resourceExists as resourceExists +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ withCString* `String' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function resourceExistsInAnyGroup -}+{#fun ogre_rgmgr_resourceExistsInAnyGroup as resourceExistsInAnyGroup +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function findGroupContainingResource -}+{#fun ogre_rgmgr_findGroupContainingResource as findGroupContainingResource +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function deleteResource -}+{#fun ogre_rgmgr_deleteResource as deleteResource +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ withCString* `String' ,+ withCString* `String' } -> `()' #}++{- function deleteMatchingResources -}+{#fun ogre_rgmgr_deleteMatchingResources as deleteMatchingResources +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ withCString* `String' ,+ withCString* `String' } -> `()' #}++{- function setWorldResourceGroupName -}+{#fun ogre_rgmgr_setWorldResourceGroupName as setWorldResourceGroupName +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function getWorldResourceGroupName -}+{#fun ogre_rgmgr_getWorldResourceGroupName as getWorldResourceGroupName +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function linkWorldGeometryToResourceGroup -}+{#fun ogre_rgmgr_linkWorldGeometryToResourceGroup as linkWorldGeometryToResourceGroup +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ withCString* `String' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function unlinkWorldGeometryFromResourceGroup -}+{#fun ogre_rgmgr_unlinkWorldGeometryFromResourceGroup as unlinkWorldGeometryFromResourceGroup +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function isResourceGroupInGlobalPool -}+{#fun ogre_rgmgr_isResourceGroupInGlobalPool as isResourceGroupInGlobalPool +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function shutdownAll -}+{#fun ogre_rgmgr_shutdownAll as shutdownAll +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getSingleton -}+{#fun ogre_rgmgr_getSingleton as getSingleton +{ alloca- `HG3DClass' peek*} -> `()' #}++{- function getSingletonPtr -}+{#fun ogre_rgmgr_getSingletonPtr as getSingletonPtr +{ alloca- `HG3DClass' peek*} -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassResourceGroupManager.hs
@@ -1,638 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -import HGamer3D.Bindings.Ogre.TypeSharedPtr -{-# LINE 55 "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 62 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmInitialiseResourceGroup :: HG3DClass -> String -> IO () -cRgmInitialiseResourceGroup a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cRgmInitialiseResourceGroup'_ a1' a2' >>= \res -> - return () -{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmInitialiseAllResourceGroups :: HG3DClass -> IO () -cRgmInitialiseAllResourceGroups a1 = - withHG3DClass a1 $ \a1' -> - cRgmInitialiseAllResourceGroups'_ a1' >>= \res -> - return () -{-# LINE 69 "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 75 "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 81 "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 86 "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 91 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmClearResourceGroup :: HG3DClass -> String -> IO () -cRgmClearResourceGroup a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cRgmClearResourceGroup'_ a1' a2' >>= \res -> - return () -{-# LINE 95 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmDestroyResourceGroup :: HG3DClass -> String -> IO () -cRgmDestroyResourceGroup a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cRgmDestroyResourceGroup'_ a1' a2' >>= \res -> - return () -{-# LINE 99 "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 104 "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 109 "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 114 "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 121 "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 126 "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 132 "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 137 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmOpenResources :: HG3DClass -> String -> String -> IO (SharedPtr) -cRgmOpenResources a1 a2 a3 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - withCString a3 $ \a3' -> - alloca $ \a4' -> - cRgmOpenResources'_ a1' a2' a3' a4' >>= \res -> - peek a4'>>= \a4'' -> - return (a4'') -{-# LINE 143 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmListResourceNames :: HG3DClass -> String -> Bool -> IO (SharedPtr) -cRgmListResourceNames a1 a2 a3 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - let {a3' = fromBool a3} in - alloca $ \a4' -> - cRgmListResourceNames'_ a1' a2' a3' a4' >>= \res -> - peek a4'>>= \a4'' -> - return (a4'') -{-# LINE 149 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmListResourceFileInfo :: HG3DClass -> String -> Bool -> IO (SharedPtr) -cRgmListResourceFileInfo a1 a2 a3 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - let {a3' = fromBool a3} in - alloca $ \a4' -> - cRgmListResourceFileInfo'_ a1' a2' a3' a4' >>= \res -> - peek a4'>>= \a4'' -> - return (a4'') -{-# LINE 155 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmFindResourceNames :: HG3DClass -> String -> String -> Bool -> IO (SharedPtr) -cRgmFindResourceNames a1 a2 a3 a4 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - withCString a3 $ \a3' -> - let {a4' = fromBool a4} in - alloca $ \a5' -> - cRgmFindResourceNames'_ a1' a2' a3' a4' a5' >>= \res -> - peek a5'>>= \a5'' -> - return (a5'') -{-# LINE 162 "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 168 "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 173 "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 178 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmFindResourceFileInfo :: HG3DClass -> String -> String -> Bool -> IO (SharedPtr) -cRgmFindResourceFileInfo a1 a2 a3 a4 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - withCString a3 $ \a3' -> - let {a4' = fromBool a4} in - alloca $ \a5' -> - cRgmFindResourceFileInfo'_ a1' a2' a3' a4' a5' >>= \res -> - peek a5'>>= \a5'' -> - return (a5'') -{-# LINE 185 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmListResourceLocations :: HG3DClass -> String -> IO (SharedPtr) -cRgmListResourceLocations a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - alloca $ \a3' -> - cRgmListResourceLocations'_ a1' a2' a3' >>= \res -> - peek a3'>>= \a3'' -> - return (a3'') -{-# LINE 190 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmFindResourceLocation :: HG3DClass -> String -> String -> IO (SharedPtr) -cRgmFindResourceLocation a1 a2 a3 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - withCString a3 $ \a3' -> - alloca $ \a4' -> - cRgmFindResourceLocation'_ a1' a2' a3' a4' >>= \res -> - peek a4'>>= \a4'' -> - return (a4'') -{-# LINE 196 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmCreateResource :: HG3DClass -> String -> String -> Bool -> String -> IO (SharedPtr) -cRgmCreateResource a1 a2 a3 a4 a5 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - withCString a3 $ \a3' -> - let {a4' = fromBool a4} in - withCString a5 $ \a5' -> - alloca $ \a6' -> - cRgmCreateResource'_ a1' a2' a3' a4' a5' a6' >>= \res -> - peek a6'>>= \a6'' -> - return (a6'') -{-# LINE 204 "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 210 "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 216 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmAddResourceGroupListener :: HG3DClass -> HG3DClass -> IO () -cRgmAddResourceGroupListener a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cRgmAddResourceGroupListener'_ a1' a2' >>= \res -> - return () -{-# LINE 220 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmRemoveResourceGroupListener :: HG3DClass -> HG3DClass -> IO () -cRgmRemoveResourceGroupListener a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cRgmRemoveResourceGroupListener'_ a1' a2' >>= \res -> - return () -{-# LINE 224 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmSetWorldResourceGroupName :: HG3DClass -> String -> IO () -cRgmSetWorldResourceGroupName a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cRgmSetWorldResourceGroupName'_ a1' a2' >>= \res -> - return () -{-# LINE 228 "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 232 "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 238 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmUnlinkWorldGeometryFromResourceGroup :: HG3DClass -> String -> IO () -cRgmUnlinkWorldGeometryFromResourceGroup a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cRgmUnlinkWorldGeometryFromResourceGroup'_ a1' a2' >>= \res -> - return () -{-# LINE 242 "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 247 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmShutdownAll :: HG3DClass -> IO () -cRgmShutdownAll a1 = - withHG3DClass a1 $ \a1' -> - cRgmShutdownAll'_ a1' >>= \res -> - return () -{-# LINE 250 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmRegisterResourceManager :: HG3DClass -> String -> HG3DClass -> IO () -cRgmRegisterResourceManager a1 a2 a3 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - withHG3DClass a3 $ \a3' -> - cRgmRegisterResourceManager'_ a1' a2' a3' >>= \res -> - return () -{-# LINE 255 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmUnregisterResourceManager :: HG3DClass -> String -> IO () -cRgmUnregisterResourceManager a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cRgmUnregisterResourceManager'_ a1' a2' >>= \res -> - return () -{-# LINE 259 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmGetResourceManager :: HG3DClass -> String -> IO (HG3DClass) -cRgmGetResourceManager a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - alloca $ \a3' -> - cRgmGetResourceManager'_ a1' a2' a3' >>= \res -> - peek a3'>>= \a3'' -> - return (a3'') -{-# LINE 264 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmNotifyResourceCreated :: HG3DClass -> IO (SharedPtr) -cRgmNotifyResourceCreated a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cRgmNotifyResourceCreated'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 268 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmNotifyResourceRemoved :: HG3DClass -> IO (SharedPtr) -cRgmNotifyResourceRemoved a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cRgmNotifyResourceRemoved'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 272 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmNotifyAllResourcesRemoved :: HG3DClass -> HG3DClass -> IO () -cRgmNotifyAllResourcesRemoved a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cRgmNotifyAllResourcesRemoved'_ a1' a2' >>= \res -> - return () -{-# LINE 276 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmNotifyWorldGeometryStageStarted :: HG3DClass -> String -> IO () -cRgmNotifyWorldGeometryStageStarted a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cRgmNotifyWorldGeometryStageStarted'_ a1' a2' >>= \res -> - return () -{-# LINE 280 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmNotifyWorldGeometryStageEnded :: HG3DClass -> IO () -cRgmNotifyWorldGeometryStageEnded a1 = - withHG3DClass a1 $ \a1' -> - cRgmNotifyWorldGeometryStageEnded'_ a1' >>= \res -> - return () -{-# LINE 283 "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 287 "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_openResources_c" - cRgmOpenResources'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((SharedPtrPtr) -> (IO ()))))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_listResourceNames_c" - cRgmListResourceNames'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> ((SharedPtrPtr) -> (IO ()))))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_listResourceFileInfo_c" - cRgmListResourceFileInfo'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> ((SharedPtrPtr) -> (IO ()))))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_findResourceNames_c" - cRgmFindResourceNames'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (CInt -> ((SharedPtrPtr) -> (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_findResourceFileInfo_c" - cRgmFindResourceFileInfo'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (CInt -> ((SharedPtrPtr) -> (IO ())))))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_listResourceLocations_c" - cRgmListResourceLocations'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((SharedPtrPtr) -> (IO ())))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_findResourceLocation_c" - cRgmFindResourceLocation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((SharedPtrPtr) -> (IO ()))))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_createResource_c" - cRgmCreateResource'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (CInt -> ((Ptr CChar) -> ((SharedPtrPtr) -> (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__registerResourceManager_c" - cRgmRegisterResourceManager'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((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__getResourceManager_c" - cRgmGetResourceManager'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm__notifyResourceCreated_c" - cRgmNotifyResourceCreated'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm__notifyResourceRemoved_c" - cRgmNotifyResourceRemoved'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm__notifyAllResourcesRemoved_c" - cRgmNotifyAllResourcesRemoved'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (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 ()))
+ HGamer3D/Bindings/Ogre/ClassResourceManager.chs view
@@ -0,0 +1,136 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- ClassResourceManager.chs++-- ++module HGamer3D.Bindings.Ogre.ClassResourceManager where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}++#include "ClassResourceManager.h"+{- function ~ResourceManager -}+{#fun ogre_rsrcmgr_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function setMemoryBudget -}+{#fun ogre_rsrcmgr_setMemoryBudget as setMemoryBudget +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function getMemoryBudget -}+{#fun ogre_rsrcmgr_getMemoryBudget as getMemoryBudget +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function getMemoryUsage -}+{#fun ogre_rsrcmgr_getMemoryUsage as getMemoryUsage +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function unload -}+{#fun ogre_rsrcmgr_unload as unload +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function unloadAll -}+{#fun ogre_rsrcmgr_unloadAll as unloadAll +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function reloadAll -}+{#fun ogre_rsrcmgr_reloadAll as reloadAll +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function unloadUnreferencedResources -}+{#fun ogre_rsrcmgr_unloadUnreferencedResources as unloadUnreferencedResources +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function reloadUnreferencedResources -}+{#fun ogre_rsrcmgr_reloadUnreferencedResources as reloadUnreferencedResources +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function remove2 -}+{#fun ogre_rsrcmgr_remove2 as remove2 +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function removeAll -}+{#fun ogre_rsrcmgr_removeAll as removeAll +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function removeUnreferencedResources -}+{#fun ogre_rsrcmgr_removeUnreferencedResources as removeUnreferencedResources +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function resourceExists -}+{#fun ogre_rsrcmgr_resourceExists as resourceExists +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getLoadingOrder -}+{#fun ogre_rsrcmgr_getLoadingOrder as getLoadingOrder +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function getResourceType -}+{#fun ogre_rsrcmgr_getResourceType as getResourceType +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function setVerbose -}+{#fun ogre_rsrcmgr_setVerbose as setVerbose +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getVerbose -}+{#fun ogre_rsrcmgr_getVerbose as getVerbose +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function destroyResourcePool2 -}+{#fun ogre_rsrcmgr_destroyResourcePool2 as destroyResourcePool2 +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function destroyAllResourcePools -}+{#fun ogre_rsrcmgr_destroyAllResourcePools as destroyAllResourcePools +{ withHG3DClass* `HG3DClass' } -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassResourceManager.hs
@@ -1,297 +0,0 @@--- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) --- Edit the ORIGNAL .chs file instead! - - -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} -{-# LANGUAGE TypeSynonymInstances #-} - --- This source file is part of HGamer3D --- (A project to enable 3D game development in Haskell) --- For the latest info, see http://www.althainz.de/HGamer3D.html --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. --- See the License for the specific language governing permissions and --- limitations under the License. --- --- ClassResourceManager.chs --- --- --- --- --- File for type, method, enum or function stubs --- in: "Dep-OgreSDK/include/OGRE\OgreResourceManager.h" --- --- each stub combines the following files: --- a C++ implementation file, transforming cpp calls into C-functions --- a C-header file, making this C-functions available for the C2HS parser --- a chs file, give instructions to the C2HS parser. --- --- - -module HGamer3D.Bindings.Ogre.ClassResourceManager 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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -import HGamer3D.Bindings.Ogre.TypeSharedPtr -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} - - -cRmSetMemoryBudget :: HG3DClass -> Int -> IO () -cRmSetMemoryBudget a1 a2 = - withHG3DClass a1 $ \a1' -> - let {a2' = fromIntegral a2} in - cRmSetMemoryBudget'_ a1' a2' >>= \res -> - return () -{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -; -cRmGetMemoryBudget :: HG3DClass -> IO (Int) -cRmGetMemoryBudget a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cRmGetMemoryBudget'_ a1' a2' >>= \res -> - peekIntConv a2'>>= \a2'' -> - return (a2'') -{-# LINE 65 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -; -cRmGetMemoryUsage :: HG3DClass -> IO (Int) -cRmGetMemoryUsage a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cRmGetMemoryUsage'_ a1' a2' >>= \res -> - peekIntConv a2'>>= \a2'' -> - return (a2'') -{-# LINE 69 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -; -cRmUnload :: HG3DClass -> String -> IO () -cRmUnload a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cRmUnload'_ a1' a2' >>= \res -> - return () -{-# LINE 73 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -; -cRmUnloadAll :: HG3DClass -> Bool -> IO () -cRmUnloadAll a1 a2 = - withHG3DClass a1 $ \a1' -> - let {a2' = fromBool a2} in - cRmUnloadAll'_ a1' a2' >>= \res -> - return () -{-# LINE 77 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -; -cRmReloadAll :: HG3DClass -> Bool -> IO () -cRmReloadAll a1 a2 = - withHG3DClass a1 $ \a1' -> - let {a2' = fromBool a2} in - cRmReloadAll'_ a1' a2' >>= \res -> - return () -{-# LINE 81 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -; -cRmUnloadUnreferencedResources :: HG3DClass -> Bool -> IO () -cRmUnloadUnreferencedResources a1 a2 = - withHG3DClass a1 $ \a1' -> - let {a2' = fromBool a2} in - cRmUnloadUnreferencedResources'_ a1' a2' >>= \res -> - return () -{-# LINE 85 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -; -cRmReloadUnreferencedResources :: HG3DClass -> Bool -> IO () -cRmReloadUnreferencedResources a1 a2 = - withHG3DClass a1 $ \a1' -> - let {a2' = fromBool a2} in - cRmReloadUnreferencedResources'_ a1' a2' >>= \res -> - return () -{-# LINE 89 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -; -cRmRemove :: HG3DClass -> IO (SharedPtr) -cRmRemove a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cRmRemove'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 93 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -; -cRmRemove2 :: HG3DClass -> String -> IO () -cRmRemove2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cRmRemove2'_ a1' a2' >>= \res -> - return () -{-# LINE 97 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -; -cRmRemoveAll :: HG3DClass -> IO () -cRmRemoveAll a1 = - withHG3DClass a1 $ \a1' -> - cRmRemoveAll'_ a1' >>= \res -> - return () -{-# LINE 100 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -; -cRmRemoveUnreferencedResources :: HG3DClass -> Bool -> IO () -cRmRemoveUnreferencedResources a1 a2 = - withHG3DClass a1 $ \a1' -> - let {a2' = fromBool a2} in - cRmRemoveUnreferencedResources'_ a1' a2' >>= \res -> - return () -{-# LINE 104 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -; -cRmGetByName :: HG3DClass -> String -> String -> IO (SharedPtr) -cRmGetByName a1 a2 a3 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - withCString a3 $ \a3' -> - alloca $ \a4' -> - cRmGetByName'_ a1' a2' a3' a4' >>= \res -> - peek a4'>>= \a4'' -> - return (a4'') -{-# LINE 110 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -; -cRmResourceExists :: HG3DClass -> String -> IO (Bool) -cRmResourceExists a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - alloca $ \a3' -> - cRmResourceExists'_ a1' a2' a3' >>= \res -> - peekBoolUtil a3'>>= \a3'' -> - return (a3'') -{-# LINE 115 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -; -cRmParseScript :: HG3DClass -> String -> IO (SharedPtr) -cRmParseScript a1 a3 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - withCString a3 $ \a3' -> - cRmParseScript'_ a1' a2' a3' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 120 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -; -cRmGetLoadingOrder :: HG3DClass -> IO (Float) -cRmGetLoadingOrder a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cRmGetLoadingOrder'_ a1' a2' >>= \res -> - peekFloatConv a2'>>= \a2'' -> - return (a2'') -{-# LINE 124 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -; -cRmGetResourceType :: HG3DClass -> IO (String) -cRmGetResourceType a1 = - withHG3DClass a1 $ \a1' -> - alloc64k $ \a2' -> - cRmGetResourceType'_ a1' a2' >>= \res -> - peekCString a2'>>= \a2'' -> - return (a2'') -{-# LINE 128 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -; -cRmSetVerbose :: HG3DClass -> Bool -> IO () -cRmSetVerbose a1 a2 = - withHG3DClass a1 $ \a1' -> - let {a2' = fromBool a2} in - cRmSetVerbose'_ a1' a2' >>= \res -> - return () -{-# LINE 132 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -; -cRmGetVerbose :: HG3DClass -> IO (Bool) -cRmGetVerbose a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cRmGetVerbose'_ a1' a2' >>= \res -> - peekBoolUtil a2'>>= \a2'' -> - return (a2'') -{-# LINE 136 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -; -cRmDestroyResourcePool2 :: HG3DClass -> String -> IO () -cRmDestroyResourcePool2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cRmDestroyResourcePool2'_ a1' a2' >>= \res -> - return () -{-# LINE 140 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -; - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs.h cRm_setMemoryBudget_c" - cRmSetMemoryBudget'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs.h cRm_getMemoryBudget_c" - cRmGetMemoryBudget'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs.h cRm_getMemoryUsage_c" - cRmGetMemoryUsage'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs.h cRm_unload_c" - cRmUnload'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs.h cRm_unloadAll_c" - cRmUnloadAll'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs.h cRm_reloadAll_c" - cRmReloadAll'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs.h cRm_unloadUnreferencedResources_c" - cRmUnloadUnreferencedResources'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs.h cRm_reloadUnreferencedResources_c" - cRmReloadUnreferencedResources'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs.h cRm_remove_c" - cRmRemove'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs.h cRm_remove2_c" - cRmRemove2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs.h cRm_removeAll_c" - cRmRemoveAll'_ :: ((HG3DClassPtr) -> (IO ())) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs.h cRm_removeUnreferencedResources_c" - cRmRemoveUnreferencedResources'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs.h cRm_getByName_c" - cRmGetByName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((SharedPtrPtr) -> (IO ()))))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs.h cRm_resourceExists_c" - cRmResourceExists'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs.h cRm_parseScript_c" - cRmParseScript'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> ((Ptr CChar) -> (IO ())))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs.h cRm_getLoadingOrder_c" - cRmGetLoadingOrder'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs.h cRm_getResourceType_c" - cRmGetResourceType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs.h cRm_setVerbose_c" - cRmSetVerbose'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs.h cRm_getVerbose_c" - cRmGetVerbose'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs.h cRm_destroyResourcePool2_c" - cRmDestroyResourcePool2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ())))
− HGamer3D/Bindings/Ogre/ClassRibbonTrail.hs
@@ -1,284 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs" #-} -import HGamer3D.Bindings.Ogre.TypeColour -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs" #-} - - -cRtrAddNode :: HG3DClass -> HG3DClass -> IO () -cRtrAddNode a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cRtrAddNode'_ a1' a2' >>= \res -> - return () -{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs" #-} -; -cRtrRemoveNode :: HG3DClass -> HG3DClass -> IO () -cRtrRemoveNode a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cRtrRemoveNode'_ a1' a2' >>= \res -> - return () -{-# LINE 65 "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 69 "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 73 "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 77 "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 81 "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 85 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs" #-} -; -cRtrSetInitialColour :: HG3DClass -> Int -> Colour -> IO () -cRtrSetInitialColour a1 a2 a3 = - withHG3DClass a1 $ \a1' -> - let {a2' = fromIntegral a2} in - withColour a3 $ \a3' -> - cRtrSetInitialColour'_ a1' a2' a3' >>= \res -> - return () -{-# LINE 90 "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 98 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs" #-} -; -cRtrGetInitialColour :: HG3DClass -> Int -> IO (Colour) -cRtrGetInitialColour a1 a2 = - withHG3DClass a1 $ \a1' -> - let {a2' = fromIntegral a2} in - alloca $ \a3' -> - cRtrGetInitialColour'_ a1' a2' a3' >>= \res -> - peek a3'>>= \a3'' -> - return (a3'') -{-# LINE 103 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs" #-} -; -cRtrSetColourChange :: HG3DClass -> Int -> Colour -> IO () -cRtrSetColourChange a1 a2 a3 = - withHG3DClass a1 $ \a1' -> - let {a2' = fromIntegral a2} in - withColour a3 $ \a3' -> - cRtrSetColourChange'_ a1' a2' a3' >>= \res -> - return () -{-# LINE 108 "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 113 "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 118 "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 123 "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 128 "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 136 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs" #-} -; -cRtrGetColourChange :: HG3DClass -> Int -> IO (Colour) -cRtrGetColourChange a1 a2 = - withHG3DClass a1 $ \a1' -> - let {a2' = fromIntegral a2} in - alloca $ \a3' -> - cRtrGetColourChange'_ a1' a2' a3' >>= \res -> - peek a3'>>= \a3'' -> - return (a3'') -{-# LINE 141 "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 145 "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 -> ((ColourPtr) -> (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 -> ((ColourPtr) -> (IO ())))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs.h cRtr_setColourChange_c" - cRtrSetColourChange'_ :: ((HG3DClassPtr) -> (CInt -> ((ColourPtr) -> (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 -> ((ColourPtr) -> (IO ())))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrail.chs.h cRtr__timeUpdate_c" - cRtrTimeUpdate'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ())))
− HGamer3D/Bindings/Ogre/ClassRibbonTrailFactory.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrailFactory.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrailFactory.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassRibbonTrailFactory.chs" #-} - -
+ HGamer3D/Bindings/Ogre/ClassRoot.chs view
@@ -0,0 +1,343 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassRoot where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}+{# import HGamer3D.Bindings.Ogre.StructColour #}++#include "ClassRoot.h"+{- function Root -}+{#fun ogre_rt_construct as new +{ withCString* `String' ,+ withCString* `String' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function ~Root -}+{#fun ogre_rt_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function saveConfig -}+{#fun ogre_rt_saveConfig as saveConfig +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function restoreConfig -}+{#fun ogre_rt_restoreConfig as restoreConfig +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function showConfigDialog -}+{#fun ogre_rt_showConfigDialog as showConfigDialog +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function addRenderSystem -}+{#fun ogre_rt_addRenderSystem as addRenderSystem +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getRenderSystemByName -}+{#fun ogre_rt_getRenderSystemByName as getRenderSystemByName +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function setRenderSystem -}+{#fun ogre_rt_setRenderSystem as setRenderSystem +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getRenderSystem -}+{#fun ogre_rt_getRenderSystem as getRenderSystem +{ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function initialise -}+{#fun ogre_rt_initialise as initialise +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' ,+ withCString* `String' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function isInitialised -}+{#fun ogre_rt_isInitialised as isInitialised +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getRemoveRenderQueueStructuresOnClear -}+{#fun ogre_rt_getRemoveRenderQueueStructuresOnClear as getRemoveRenderQueueStructuresOnClear +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setRemoveRenderQueueStructuresOnClear -}+{#fun ogre_rt_setRemoveRenderQueueStructuresOnClear as setRemoveRenderQueueStructuresOnClear +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function addSceneManagerFactory -}+{#fun ogre_rt_addSceneManagerFactory as addSceneManagerFactory +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function removeSceneManagerFactory -}+{#fun ogre_rt_removeSceneManagerFactory as removeSceneManagerFactory +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function createSceneManager -}+{#fun ogre_rt_createSceneManager as createSceneManager +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function destroySceneManager -}+{#fun ogre_rt_destroySceneManager as destroySceneManager +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getSceneManager -}+{#fun ogre_rt_getSceneManager as getSceneManager +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function hasSceneManager -}+{#fun ogre_rt_hasSceneManager as hasSceneManager +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getTextureManager -}+{#fun ogre_rt_getTextureManager as getTextureManager +{ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getMeshManager -}+{#fun ogre_rt_getMeshManager as getMeshManager +{ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getErrorDescription -}+{#fun ogre_rt_getErrorDescription as getErrorDescription +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function queueEndRendering -}+{#fun ogre_rt_queueEndRendering as queueEndRendering +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function startRendering -}+{#fun ogre_rt_startRendering as startRendering +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function renderOneFrame -}+{#fun ogre_rt_renderOneFrame as renderOneFrame +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function renderOneFrame2 -}+{#fun ogre_rt_renderOneFrame2 as renderOneFrame2 +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function shutdown -}+{#fun ogre_rt_shutdown as shutdown +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function addResourceLocation -}+{#fun ogre_rt_addResourceLocation as addResourceLocation +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ withCString* `String' ,+ withCString* `String' ,+ fromBool `Bool' } -> `()' #}++{- function removeResourceLocation -}+{#fun ogre_rt_removeResourceLocation as removeResourceLocation +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ withCString* `String' } -> `()' #}++{- function convertColourValue -}+{#fun ogre_rt_convertColourValue as convertColourValue +{ withHG3DClass* `HG3DClass' ,+ withColour* `Colour' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function getAutoCreatedWindow -}+{#fun ogre_rt_getAutoCreatedWindow as getAutoCreatedWindow +{ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function detachRenderTarget -}+{#fun ogre_rt_detachRenderTarget as detachRenderTarget +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function detachRenderTarget2 -}+{#fun ogre_rt_detachRenderTarget2 as detachRenderTarget2 +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function destroyRenderTarget -}+{#fun ogre_rt_destroyRenderTarget as destroyRenderTarget +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function destroyRenderTarget2 -}+{#fun ogre_rt_destroyRenderTarget2 as destroyRenderTarget2 +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function getRenderTarget -}+{#fun ogre_rt_getRenderTarget as getRenderTarget +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function loadPlugin -}+{#fun ogre_rt_loadPlugin as loadPlugin +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function unloadPlugin -}+{#fun ogre_rt_unloadPlugin as unloadPlugin +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function getNextFrameNumber -}+{#fun ogre_rt_getNextFrameNumber as getNextFrameNumber +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function destroyRenderQueueInvocationSequence -}+{#fun ogre_rt_destroyRenderQueueInvocationSequence as destroyRenderQueueInvocationSequence +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function destroyAllRenderQueueInvocationSequences -}+{#fun ogre_rt_destroyAllRenderQueueInvocationSequences as destroyAllRenderQueueInvocationSequences +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function clearEventTimes -}+{#fun ogre_rt_clearEventTimes as clearEventTimes +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function setFrameSmoothingPeriod -}+{#fun ogre_rt_setFrameSmoothingPeriod as setFrameSmoothingPeriod +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' } -> `()' #}++{- function getFrameSmoothingPeriod -}+{#fun ogre_rt_getFrameSmoothingPeriod as getFrameSmoothingPeriod +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function addMovableObjectFactory -}+{#fun ogre_rt_addMovableObjectFactory as addMovableObjectFactory +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function removeMovableObjectFactory -}+{#fun ogre_rt_removeMovableObjectFactory as removeMovableObjectFactory +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function hasMovableObjectFactory -}+{#fun ogre_rt_hasMovableObjectFactory as hasMovableObjectFactory +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getMovableObjectFactory -}+{#fun ogre_rt_getMovableObjectFactory as getMovableObjectFactory +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getDisplayMonitorCount -}+{#fun ogre_rt_getDisplayMonitorCount as getDisplayMonitorCount +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function setBlendIndicesGpuRedundant -}+{#fun ogre_rt_setBlendIndicesGpuRedundant as setBlendIndicesGpuRedundant +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function isBlendIndicesGpuRedundant -}+{#fun ogre_rt_isBlendIndicesGpuRedundant as isBlendIndicesGpuRedundant +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setBlendWeightsGpuRedundant -}+{#fun ogre_rt_setBlendWeightsGpuRedundant as setBlendWeightsGpuRedundant +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function isBlendWeightsGpuRedundant -}+{#fun ogre_rt_isBlendWeightsGpuRedundant as isBlendWeightsGpuRedundant +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setDefaultMinPixelSize -}+{#fun ogre_rt_setDefaultMinPixelSize as setDefaultMinPixelSize +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' } -> `()' #}++{- function getDefaultMinPixelSize -}+{#fun ogre_rt_getDefaultMinPixelSize as getDefaultMinPixelSize +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function getSingleton -}+{#fun ogre_rt_getSingleton as getSingleton +{ alloca- `HG3DClass' peek*} -> `()' #}++{- function getSingletonPtr -}+{#fun ogre_rt_getSingletonPtr as getSingletonPtr +{ alloca- `HG3DClass' peek*} -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassRoot.hs
@@ -1,726 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} -import HGamer3D.Bindings.Ogre.TypeSharedPtr -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} -import HGamer3D.Bindings.Ogre.TypeColour -{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} - - -cRSaveConfig :: HG3DClass -> IO () -cRSaveConfig a1 = - withHG3DClass a1 $ \a1' -> - cRSaveConfig'_ a1' >>= \res -> - return () -{-# LINE 61 "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 65 "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 69 "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 76 "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 80 "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 84 "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 88 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} -; -cRAddSceneManagerFactory :: HG3DClass -> HG3DClass -> IO () -cRAddSceneManagerFactory a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cRAddSceneManagerFactory'_ a1' a2' >>= \res -> - return () -{-# LINE 92 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} -; -cRRemoveSceneManagerFactory :: HG3DClass -> HG3DClass -> IO () -cRRemoveSceneManagerFactory a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cRRemoveSceneManagerFactory'_ a1' a2' >>= \res -> - return () -{-# LINE 96 "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 102 "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 108 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} -; -cRDestroySceneManager :: HG3DClass -> HG3DClass -> IO () -cRDestroySceneManager a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cRDestroySceneManager'_ a1' a2' >>= \res -> - return () -{-# LINE 112 "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 117 "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 122 "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 126 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} -; -cRGetErrorDescription :: HG3DClass -> Int -> IO (String) -cRGetErrorDescription a1 a2 = - withHG3DClass a1 $ \a1' -> - let {a2' = fromIntegral a2} in - alloc64k $ \a3' -> - cRGetErrorDescription'_ a1' a2' a3' >>= \res -> - peekCString a3'>>= \a3'' -> - return (a3'') -{-# LINE 131 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} -; -cRQueueEndRendering :: HG3DClass -> IO () -cRQueueEndRendering a1 = - withHG3DClass a1 $ \a1' -> - cRQueueEndRendering'_ a1' >>= \res -> - return () -{-# LINE 134 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} -; -cRStartRendering :: HG3DClass -> IO () -cRStartRendering a1 = - withHG3DClass a1 $ \a1' -> - cRStartRendering'_ a1' >>= \res -> - return () -{-# LINE 137 "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 141 "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 146 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} -; -cRShutdown :: HG3DClass -> IO () -cRShutdown a1 = - withHG3DClass a1 $ \a1' -> - cRShutdown'_ a1' >>= \res -> - return () -{-# LINE 149 "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 156 "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 161 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} -; -cRCreateFileStream :: HG3DClass -> String -> String -> Bool -> String -> IO (SharedPtr) -cRCreateFileStream a1 a2 a3 a4 a5 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - withCString a3 $ \a3' -> - let {a4' = fromBool a4} in - withCString a5 $ \a5' -> - alloca $ \a6' -> - cRCreateFileStream'_ a1' a2' a3' a4' a5' a6' >>= \res -> - peek a6'>>= \a6'' -> - return (a6'') -{-# LINE 169 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} -; -cROpenFileStream :: HG3DClass -> String -> String -> String -> IO (SharedPtr) -cROpenFileStream a1 a2 a3 a4 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - withCString a3 $ \a3' -> - withCString a4 $ \a4' -> - alloca $ \a5' -> - cROpenFileStream'_ a1' a2' a3' a4' a5' >>= \res -> - peek a5'>>= \a5'' -> - return (a5'') -{-# LINE 176 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} -; -cRConvertColourValue :: HG3DClass -> Colour -> IO (Int) -cRConvertColourValue a1 a2 = - withHG3DClass a1 $ \a1' -> - withColour a2 $ \a2' -> - alloca $ \a3' -> - cRConvertColourValue'_ a1' a2' a3' >>= \res -> - peekIntConv a3'>>= \a3'' -> - return (a3'') -{-# LINE 181 "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 185 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} -; -cRDetachRenderTarget :: HG3DClass -> HG3DClass -> IO () -cRDetachRenderTarget a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cRDetachRenderTarget'_ a1' a2' >>= \res -> - return () -{-# LINE 189 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} -; -cRDetachRenderTarget2 :: HG3DClass -> String -> IO () -cRDetachRenderTarget2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cRDetachRenderTarget2'_ a1' a2' >>= \res -> - return () -{-# LINE 193 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} -; -cRDestroyRenderTarget :: HG3DClass -> HG3DClass -> IO () -cRDestroyRenderTarget a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cRDestroyRenderTarget'_ a1' a2' >>= \res -> - return () -{-# LINE 197 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} -; -cRDestroyRenderTarget2 :: HG3DClass -> String -> IO () -cRDestroyRenderTarget2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cRDestroyRenderTarget2'_ a1' a2' >>= \res -> - return () -{-# LINE 201 "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 206 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} -; -cRLoadPlugin :: HG3DClass -> String -> IO () -cRLoadPlugin a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cRLoadPlugin'_ a1' a2' >>= \res -> - return () -{-# LINE 210 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} -; -cRUnloadPlugin :: HG3DClass -> String -> IO () -cRUnloadPlugin a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cRUnloadPlugin'_ a1' a2' >>= \res -> - return () -{-# LINE 214 "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 218 "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 222 "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 226 "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 230 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} -; -cRPushCurrentSceneManager :: HG3DClass -> HG3DClass -> IO () -cRPushCurrentSceneManager a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cRPushCurrentSceneManager'_ a1' a2' >>= \res -> - return () -{-# LINE 234 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} -; -cRPopCurrentSceneManager :: HG3DClass -> HG3DClass -> IO () -cRPopCurrentSceneManager a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cRPopCurrentSceneManager'_ a1' a2' >>= \res -> - return () -{-# LINE 238 "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 242 "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 247 "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 252 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} -; -cRDestroyRenderQueueInvocationSequence :: HG3DClass -> String -> IO () -cRDestroyRenderQueueInvocationSequence a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cRDestroyRenderQueueInvocationSequence'_ a1' a2' >>= \res -> - return () -{-# LINE 256 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} -; -cRDestroyAllRenderQueueInvocationSequences :: HG3DClass -> IO () -cRDestroyAllRenderQueueInvocationSequences a1 = - withHG3DClass a1 $ \a1' -> - cRDestroyAllRenderQueueInvocationSequences'_ a1' >>= \res -> - return () -{-# LINE 259 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} -; -cRClearEventTimes :: HG3DClass -> IO () -cRClearEventTimes a1 = - withHG3DClass a1 $ \a1' -> - cRClearEventTimes'_ a1' >>= \res -> - return () -{-# LINE 262 "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 266 "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 270 "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 275 "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} -; -cRRemoveMovableObjectFactory :: HG3DClass -> HG3DClass -> IO () -cRRemoveMovableObjectFactory a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cRRemoveMovableObjectFactory'_ a1' a2' >>= \res -> - return () -{-# LINE 279 "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 284 "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 289 "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 293 "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 297 "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 301 "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) -> (CUShort -> ((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_getErrorDescription_c" - cRGetErrorDescription'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CChar) -> (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_createFileStream_c" - cRCreateFileStream'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (CInt -> ((Ptr CChar) -> ((SharedPtrPtr) -> (IO ()))))))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_openFileStream_c" - cROpenFileStream'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CChar) -> ((SharedPtrPtr) -> (IO ())))))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h cR_convertColourValue_c" - cRConvertColourValue'_ :: ((HG3DClassPtr) -> ((ColourPtr) -> ((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 ()))
− HGamer3D/Bindings/Ogre/ClassRuntimeAssertionException.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassRuntimeAssertionException.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassRuntimeAssertionException.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassRuntimeAssertionException.chs" #-} - -
+ HGamer3D/Bindings/Ogre/ClassSceneManager.chs view
@@ -0,0 +1,946 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassSceneManager where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}+{# import HGamer3D.Bindings.Ogre.StructSharedPtr #}+{# import HGamer3D.Bindings.Ogre.EnumSceneManagerPrefabType #}+{# import HGamer3D.Bindings.Ogre.StructColour #}+{# import HGamer3D.Bindings.Ogre.StructQuaternion #}+{# import HGamer3D.Bindings.Ogre.EnumSceneManagerSpecialCaseRenderQueueMode #}+{# import HGamer3D.Bindings.Ogre.EnumLightType #}++#include "ClassSceneManager.h"+{- function ~SceneManager -}+{#fun ogre_scmgr_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getName -}+{#fun ogre_scmgr_getName as getName +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function getTypeName -}+{#fun ogre_scmgr_getTypeName as getTypeName +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function createCamera -}+{#fun ogre_scmgr_createCamera as createCamera +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getCamera -}+{#fun ogre_scmgr_getCamera as getCamera +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function hasCamera -}+{#fun ogre_scmgr_hasCamera as hasCamera +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function destroyCamera -}+{#fun ogre_scmgr_destroyCamera as destroyCamera +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function destroyCamera2 -}+{#fun ogre_scmgr_destroyCamera2 as destroyCamera2 +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function destroyAllCameras -}+{#fun ogre_scmgr_destroyAllCameras as destroyAllCameras +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function createLight -}+{#fun ogre_scmgr_createLight as createLight +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function createLight2 -}+{#fun ogre_scmgr_createLight2 as createLight2 +{ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getLight -}+{#fun ogre_scmgr_getLight as getLight +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function hasLight -}+{#fun ogre_scmgr_hasLight as hasLight +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function destroyLight -}+{#fun ogre_scmgr_destroyLight as destroyLight +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function destroyLight2 -}+{#fun ogre_scmgr_destroyLight2 as destroyLight2 +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function destroyAllLights -}+{#fun ogre_scmgr_destroyAllLights as destroyAllLights +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function createSceneNode -}+{#fun ogre_scmgr_createSceneNode as createSceneNode +{ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function createSceneNode2 -}+{#fun ogre_scmgr_createSceneNode2 as createSceneNode2 +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function destroySceneNode -}+{#fun ogre_scmgr_destroySceneNode as destroySceneNode +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function destroySceneNode2 -}+{#fun ogre_scmgr_destroySceneNode2 as destroySceneNode2 +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getRootSceneNode -}+{#fun ogre_scmgr_getRootSceneNode as getRootSceneNode +{ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getSceneNode -}+{#fun ogre_scmgr_getSceneNode as getSceneNode +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function hasSceneNode -}+{#fun ogre_scmgr_hasSceneNode as hasSceneNode +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function createEntity -}+{#fun ogre_scmgr_createEntity as createEntity +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ withCString* `String' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function createEntity2 -}+{#fun ogre_scmgr_createEntity2 as createEntity2 +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ withSharedPtr* `SharedPtr' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function createEntity3 -}+{#fun ogre_scmgr_createEntity3 as createEntity3 +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function createEntity4 -}+{#fun ogre_scmgr_createEntity4 as createEntity4 +{ withHG3DClass* `HG3DClass' ,+ withSharedPtr* `SharedPtr' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function createEntity5 -}+{#fun ogre_scmgr_createEntity5 as createEntity5 +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ cIntFromEnum `EnumSceneManagerPrefabType' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function createEntity6 -}+{#fun ogre_scmgr_createEntity6 as createEntity6 +{ withHG3DClass* `HG3DClass' ,+ cIntFromEnum `EnumSceneManagerPrefabType' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getEntity -}+{#fun ogre_scmgr_getEntity as getEntity +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function hasEntity -}+{#fun ogre_scmgr_hasEntity as hasEntity +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function destroyEntity -}+{#fun ogre_scmgr_destroyEntity as destroyEntity +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function destroyEntity2 -}+{#fun ogre_scmgr_destroyEntity2 as destroyEntity2 +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function destroyAllEntities -}+{#fun ogre_scmgr_destroyAllEntities as destroyAllEntities +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function createManualObject -}+{#fun ogre_scmgr_createManualObject as createManualObject +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function createManualObject2 -}+{#fun ogre_scmgr_createManualObject2 as createManualObject2 +{ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getManualObject -}+{#fun ogre_scmgr_getManualObject as getManualObject +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function hasManualObject -}+{#fun ogre_scmgr_hasManualObject as hasManualObject +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function destroyManualObject -}+{#fun ogre_scmgr_destroyManualObject as destroyManualObject +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function destroyManualObject2 -}+{#fun ogre_scmgr_destroyManualObject2 as destroyManualObject2 +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function destroyAllManualObjects -}+{#fun ogre_scmgr_destroyAllManualObjects as destroyAllManualObjects +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function createBillboardChain -}+{#fun ogre_scmgr_createBillboardChain as createBillboardChain +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function createBillboardChain2 -}+{#fun ogre_scmgr_createBillboardChain2 as createBillboardChain2 +{ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getBillboardChain -}+{#fun ogre_scmgr_getBillboardChain as getBillboardChain +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function hasBillboardChain -}+{#fun ogre_scmgr_hasBillboardChain as hasBillboardChain +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function destroyBillboardChain -}+{#fun ogre_scmgr_destroyBillboardChain as destroyBillboardChain +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function destroyBillboardChain2 -}+{#fun ogre_scmgr_destroyBillboardChain2 as destroyBillboardChain2 +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function destroyAllBillboardChains -}+{#fun ogre_scmgr_destroyAllBillboardChains as destroyAllBillboardChains +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function hasRibbonTrail -}+{#fun ogre_scmgr_hasRibbonTrail as hasRibbonTrail +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function destroyRibbonTrail2 -}+{#fun ogre_scmgr_destroyRibbonTrail2 as destroyRibbonTrail2 +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function destroyAllRibbonTrails -}+{#fun ogre_scmgr_destroyAllRibbonTrails as destroyAllRibbonTrails +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function hasParticleSystem -}+{#fun ogre_scmgr_hasParticleSystem as hasParticleSystem +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function destroyParticleSystem2 -}+{#fun ogre_scmgr_destroyParticleSystem2 as destroyParticleSystem2 +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function destroyAllParticleSystems -}+{#fun ogre_scmgr_destroyAllParticleSystems as destroyAllParticleSystems +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function clearScene -}+{#fun ogre_scmgr_clearScene as clearScene +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function setAmbientLight -}+{#fun ogre_scmgr_setAmbientLight as setAmbientLight +{ withHG3DClass* `HG3DClass' ,+ withColour* `Colour' } -> `()' #}++{- function getAmbientLight -}+{#fun ogre_scmgr_getAmbientLight as getAmbientLight +{ withHG3DClass* `HG3DClass' ,+ alloca- `Colour' peekColour*} -> `()' #}++{- function prepareWorldGeometry -}+{#fun ogre_scmgr_prepareWorldGeometry as prepareWorldGeometry +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function setWorldGeometry -}+{#fun ogre_scmgr_setWorldGeometry as setWorldGeometry +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function estimateWorldGeometry -}+{#fun ogre_scmgr_estimateWorldGeometry as estimateWorldGeometry +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function hasOption -}+{#fun ogre_scmgr_hasOption as hasOption +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setSkyPlaneEnabled -}+{#fun ogre_scmgr_setSkyPlaneEnabled as setSkyPlaneEnabled +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function isSkyPlaneEnabled -}+{#fun ogre_scmgr_isSkyPlaneEnabled as isSkyPlaneEnabled +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getSkyPlaneNode -}+{#fun ogre_scmgr_getSkyPlaneNode as getSkyPlaneNode +{ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function setSkyBox -}+{#fun ogre_scmgr_setSkyBox as setSkyBox +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' ,+ withCString* `String' ,+ realToFrac `Float' ,+ fromBool `Bool' ,+ withQuaternion* `Quaternion' ,+ withCString* `String' } -> `()' #}++{- function setSkyBoxEnabled -}+{#fun ogre_scmgr_setSkyBoxEnabled as setSkyBoxEnabled +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function isSkyBoxEnabled -}+{#fun ogre_scmgr_isSkyBoxEnabled as isSkyBoxEnabled +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getSkyBoxNode -}+{#fun ogre_scmgr_getSkyBoxNode as getSkyBoxNode +{ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function setSkyDome -}+{#fun ogre_scmgr_setSkyDome as setSkyDome +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' ,+ withCString* `String' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ fromBool `Bool' ,+ withQuaternion* `Quaternion' ,+ fromIntegral `Int' ,+ fromIntegral `Int' ,+ fromIntegral `Int' ,+ withCString* `String' } -> `()' #}++{- function setSkyDomeEnabled -}+{#fun ogre_scmgr_setSkyDomeEnabled as setSkyDomeEnabled +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function isSkyDomeEnabled -}+{#fun ogre_scmgr_isSkyDomeEnabled as isSkyDomeEnabled +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getSkyDomeNode -}+{#fun ogre_scmgr_getSkyDomeNode as getSkyDomeNode +{ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getFogColour -}+{#fun ogre_scmgr_getFogColour as getFogColour +{ withHG3DClass* `HG3DClass' ,+ alloca- `Colour' peekColour*} -> `()' #}++{- function getFogStart -}+{#fun ogre_scmgr_getFogStart as getFogStart +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function getFogEnd -}+{#fun ogre_scmgr_getFogEnd as getFogEnd +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function getFogDensity -}+{#fun ogre_scmgr_getFogDensity as getFogDensity +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function createBillboardSet -}+{#fun ogre_scmgr_createBillboardSet as createBillboardSet +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ fromIntegral `Int' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function createBillboardSet2 -}+{#fun ogre_scmgr_createBillboardSet2 as createBillboardSet2 +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getBillboardSet -}+{#fun ogre_scmgr_getBillboardSet as getBillboardSet +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function hasBillboardSet -}+{#fun ogre_scmgr_hasBillboardSet as hasBillboardSet +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function destroyBillboardSet -}+{#fun ogre_scmgr_destroyBillboardSet as destroyBillboardSet +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function destroyBillboardSet2 -}+{#fun ogre_scmgr_destroyBillboardSet2 as destroyBillboardSet2 +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function destroyAllBillboardSets -}+{#fun ogre_scmgr_destroyAllBillboardSets as destroyAllBillboardSets +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function setDisplaySceneNodes -}+{#fun ogre_scmgr_setDisplaySceneNodes as setDisplaySceneNodes +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getDisplaySceneNodes -}+{#fun ogre_scmgr_getDisplaySceneNodes as getDisplaySceneNodes +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function createAnimation -}+{#fun ogre_scmgr_createAnimation as createAnimation +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ realToFrac `Float' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getAnimation -}+{#fun ogre_scmgr_getAnimation as getAnimation +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function hasAnimation -}+{#fun ogre_scmgr_hasAnimation as hasAnimation +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function destroyAnimation -}+{#fun ogre_scmgr_destroyAnimation as destroyAnimation +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function destroyAllAnimations -}+{#fun ogre_scmgr_destroyAllAnimations as destroyAllAnimations +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function createAnimationState -}+{#fun ogre_scmgr_createAnimationState as createAnimationState +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getAnimationState -}+{#fun ogre_scmgr_getAnimationState as getAnimationState +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function hasAnimationState -}+{#fun ogre_scmgr_hasAnimationState as hasAnimationState +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function destroyAnimationState -}+{#fun ogre_scmgr_destroyAnimationState as destroyAnimationState +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function destroyAllAnimationStates -}+{#fun ogre_scmgr_destroyAllAnimationStates as destroyAllAnimationStates +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function clearSpecialCaseRenderQueues -}+{#fun ogre_scmgr_clearSpecialCaseRenderQueues as clearSpecialCaseRenderQueues +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function setSpecialCaseRenderQueueMode -}+{#fun ogre_scmgr_setSpecialCaseRenderQueueMode as setSpecialCaseRenderQueueMode +{ withHG3DClass* `HG3DClass' ,+ cIntFromEnum `EnumSceneManagerSpecialCaseRenderQueueMode' } -> `()' #}++{- function getSpecialCaseRenderQueueMode -}+{#fun ogre_scmgr_getSpecialCaseRenderQueueMode as getSpecialCaseRenderQueueMode +{ withHG3DClass* `HG3DClass' ,+ alloca- `EnumSceneManagerSpecialCaseRenderQueueMode' peekEnumUtil*} -> `()' #}++{- function showBoundingBoxes -}+{#fun ogre_scmgr_showBoundingBoxes as showBoundingBoxes +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getShowBoundingBoxes -}+{#fun ogre_scmgr_getShowBoundingBoxes as getShowBoundingBoxes +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setShowDebugShadows -}+{#fun ogre_scmgr_setShowDebugShadows as setShowDebugShadows +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getShowDebugShadows -}+{#fun ogre_scmgr_getShowDebugShadows as getShowDebugShadows +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setShadowColour -}+{#fun ogre_scmgr_setShadowColour as setShadowColour +{ withHG3DClass* `HG3DClass' ,+ withColour* `Colour' } -> `()' #}++{- function getShadowColour -}+{#fun ogre_scmgr_getShadowColour as getShadowColour +{ withHG3DClass* `HG3DClass' ,+ alloca- `Colour' peekColour*} -> `()' #}++{- function setShadowDirectionalLightExtrusionDistance -}+{#fun ogre_scmgr_setShadowDirectionalLightExtrusionDistance as setShadowDirectionalLightExtrusionDistance +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' } -> `()' #}++{- function getShadowDirectionalLightExtrusionDistance -}+{#fun ogre_scmgr_getShadowDirectionalLightExtrusionDistance as getShadowDirectionalLightExtrusionDistance +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function setShadowFarDistance -}+{#fun ogre_scmgr_setShadowFarDistance as setShadowFarDistance +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' } -> `()' #}++{- function getShadowFarDistance -}+{#fun ogre_scmgr_getShadowFarDistance as getShadowFarDistance +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function getShadowFarDistanceSquared -}+{#fun ogre_scmgr_getShadowFarDistanceSquared as getShadowFarDistanceSquared +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function setShadowIndexBufferSize -}+{#fun ogre_scmgr_setShadowIndexBufferSize as setShadowIndexBufferSize +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function getShadowIndexBufferSize -}+{#fun ogre_scmgr_getShadowIndexBufferSize as getShadowIndexBufferSize +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function setShadowTextureSize -}+{#fun ogre_scmgr_setShadowTextureSize as setShadowTextureSize +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function setShadowTextureFSAA -}+{#fun ogre_scmgr_setShadowTextureFSAA as setShadowTextureFSAA +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function setShadowTextureCount -}+{#fun ogre_scmgr_setShadowTextureCount as setShadowTextureCount +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function getShadowTextureCount -}+{#fun ogre_scmgr_getShadowTextureCount as getShadowTextureCount +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function setShadowTextureCountPerLightType -}+{#fun ogre_scmgr_setShadowTextureCountPerLightType as setShadowTextureCountPerLightType +{ withHG3DClass* `HG3DClass' ,+ cIntFromEnum `EnumLightType' ,+ fromIntegral `Int' } -> `()' #}++{- function getShadowTextureCountPerLightType -}+{#fun ogre_scmgr_getShadowTextureCountPerLightType as getShadowTextureCountPerLightType +{ withHG3DClass* `HG3DClass' ,+ cIntFromEnum `EnumLightType' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function getShadowTexture -}+{#fun ogre_scmgr_getShadowTexture as getShadowTexture +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ alloca- `SharedPtr' peekSharedPtr*} -> `()' #}++{- function setShadowDirLightTextureOffset -}+{#fun ogre_scmgr_setShadowDirLightTextureOffset as setShadowDirLightTextureOffset +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' } -> `()' #}++{- function getShadowDirLightTextureOffset -}+{#fun ogre_scmgr_getShadowDirLightTextureOffset as getShadowDirLightTextureOffset +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function setShadowTextureFadeStart -}+{#fun ogre_scmgr_setShadowTextureFadeStart as setShadowTextureFadeStart +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' } -> `()' #}++{- function setShadowTextureFadeEnd -}+{#fun ogre_scmgr_setShadowTextureFadeEnd as setShadowTextureFadeEnd +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' } -> `()' #}++{- function setShadowTextureSelfShadow -}+{#fun ogre_scmgr_setShadowTextureSelfShadow as setShadowTextureSelfShadow +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getShadowTextureSelfShadow -}+{#fun ogre_scmgr_getShadowTextureSelfShadow as getShadowTextureSelfShadow +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setShadowTextureCasterMaterial -}+{#fun ogre_scmgr_setShadowTextureCasterMaterial as setShadowTextureCasterMaterial +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function setShadowTextureReceiverMaterial -}+{#fun ogre_scmgr_setShadowTextureReceiverMaterial as setShadowTextureReceiverMaterial +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function setShadowCasterRenderBackFaces -}+{#fun ogre_scmgr_setShadowCasterRenderBackFaces as setShadowCasterRenderBackFaces +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getShadowCasterRenderBackFaces -}+{#fun ogre_scmgr_getShadowCasterRenderBackFaces as getShadowCasterRenderBackFaces +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setShadowUseInfiniteFarPlane -}+{#fun ogre_scmgr_setShadowUseInfiniteFarPlane as setShadowUseInfiniteFarPlane +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function isShadowTechniqueStencilBased -}+{#fun ogre_scmgr_isShadowTechniqueStencilBased as isShadowTechniqueStencilBased +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function isShadowTechniqueTextureBased -}+{#fun ogre_scmgr_isShadowTechniqueTextureBased as isShadowTechniqueTextureBased +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function isShadowTechniqueModulative -}+{#fun ogre_scmgr_isShadowTechniqueModulative as isShadowTechniqueModulative +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function isShadowTechniqueAdditive -}+{#fun ogre_scmgr_isShadowTechniqueAdditive as isShadowTechniqueAdditive +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function isShadowTechniqueIntegrated -}+{#fun ogre_scmgr_isShadowTechniqueIntegrated as isShadowTechniqueIntegrated +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function isShadowTechniqueInUse -}+{#fun ogre_scmgr_isShadowTechniqueInUse as isShadowTechniqueInUse +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setShadowUseLightClipPlanes -}+{#fun ogre_scmgr_setShadowUseLightClipPlanes as setShadowUseLightClipPlanes +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getShadowUseLightClipPlanes -}+{#fun ogre_scmgr_getShadowUseLightClipPlanes as getShadowUseLightClipPlanes +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setLateMaterialResolving -}+{#fun ogre_scmgr_setLateMaterialResolving as setLateMaterialResolving +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function isLateMaterialResolving -}+{#fun ogre_scmgr_isLateMaterialResolving as isLateMaterialResolving +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function hasStaticGeometry -}+{#fun ogre_scmgr_hasStaticGeometry as hasStaticGeometry +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function destroyStaticGeometry2 -}+{#fun ogre_scmgr_destroyStaticGeometry2 as destroyStaticGeometry2 +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function destroyAllStaticGeometry -}+{#fun ogre_scmgr_destroyAllStaticGeometry as destroyAllStaticGeometry +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function destroyInstancedGeometry2 -}+{#fun ogre_scmgr_destroyInstancedGeometry2 as destroyInstancedGeometry2 +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function destroyAllInstancedGeometry -}+{#fun ogre_scmgr_destroyAllInstancedGeometry as destroyAllInstancedGeometry +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function hasInstanceManager -}+{#fun ogre_scmgr_hasInstanceManager as hasInstanceManager +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function destroyInstanceManager -}+{#fun ogre_scmgr_destroyInstanceManager as destroyInstanceManager +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function destroyAllInstanceManagers -}+{#fun ogre_scmgr_destroyAllInstanceManagers as destroyAllInstanceManagers +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function destroyMovableObject -}+{#fun ogre_scmgr_destroyMovableObject as destroyMovableObject +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ withCString* `String' } -> `()' #}++{- function destroyMovableObject2 -}+{#fun ogre_scmgr_destroyMovableObject2 as destroyMovableObject2 +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function destroyAllMovableObjectsByType -}+{#fun ogre_scmgr_destroyAllMovableObjectsByType as destroyAllMovableObjectsByType +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function destroyAllMovableObjects -}+{#fun ogre_scmgr_destroyAllMovableObjects as destroyAllMovableObjects +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getMovableObject -}+{#fun ogre_scmgr_getMovableObject as getMovableObject +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function hasMovableObject -}+{#fun ogre_scmgr_hasMovableObject as hasMovableObject +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ withCString* `String' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function injectMovableObject -}+{#fun ogre_scmgr_injectMovableObject as injectMovableObject +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function extractMovableObject -}+{#fun ogre_scmgr_extractMovableObject as extractMovableObject +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ withCString* `String' } -> `()' #}++{- function extractMovableObject2 -}+{#fun ogre_scmgr_extractMovableObject2 as extractMovableObject2 +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function extractAllMovableObjectsByType -}+{#fun ogre_scmgr_extractAllMovableObjectsByType as extractAllMovableObjectsByType +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function setVisibilityMask -}+{#fun ogre_scmgr_setVisibilityMask as setVisibilityMask +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function getVisibilityMask -}+{#fun ogre_scmgr_getVisibilityMask as getVisibilityMask +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function setFindVisibleObjects -}+{#fun ogre_scmgr_setFindVisibleObjects as setFindVisibleObjects +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getFindVisibleObjects -}+{#fun ogre_scmgr_getFindVisibleObjects as getFindVisibleObjects +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setNormaliseNormalsOnScale -}+{#fun ogre_scmgr_setNormaliseNormalsOnScale as setNormaliseNormalsOnScale +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getNormaliseNormalsOnScale -}+{#fun ogre_scmgr_getNormaliseNormalsOnScale as getNormaliseNormalsOnScale +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setFlipCullingOnNegativeScale -}+{#fun ogre_scmgr_setFlipCullingOnNegativeScale as setFlipCullingOnNegativeScale +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getFlipCullingOnNegativeScale -}+{#fun ogre_scmgr_getFlipCullingOnNegativeScale as getFlipCullingOnNegativeScale +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getDestinationRenderSystem -}+{#fun ogre_scmgr_getDestinationRenderSystem as getDestinationRenderSystem +{ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getCurrentViewport -}+{#fun ogre_scmgr_getCurrentViewport as getCurrentViewport +{ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function setCameraRelativeRendering -}+{#fun ogre_scmgr_setCameraRelativeRendering as setCameraRelativeRendering +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getCameraRelativeRendering -}+{#fun ogre_scmgr_getCameraRelativeRendering as getCameraRelativeRendering +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassSceneManager.hs
@@ -1,2414 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -import HGamer3D.Bindings.Ogre.EnumPrefabType -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -import HGamer3D.Bindings.Ogre.TypeColour -{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -import HGamer3D.Bindings.Ogre.TypeSharedPtr -{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -import HGamer3D.Bindings.Ogre.TypeQuaternion -{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -import HGamer3D.Bindings.Ogre.EnumFogMode -{-# LINE 59 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -import HGamer3D.Bindings.Ogre.EnumSpecialCaseRenderQueueMode -{-# LINE 60 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -import HGamer3D.Bindings.Ogre.EnumShadowTechnique -{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -import HGamer3D.Bindings.Ogre.EnumPixelFormat -{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -import HGamer3D.Bindings.Ogre.EnumLightTypes -{-# LINE 63 "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 69 "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 73 "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 78 "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 83 "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 88 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmDestroyCamera :: HG3DClass -> HG3DClass -> IO () -cSmDestroyCamera a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cSmDestroyCamera'_ a1' a2' >>= \res -> - return () -{-# LINE 92 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmDestroyCamera2 :: HG3DClass -> String -> IO () -cSmDestroyCamera2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cSmDestroyCamera2'_ a1' a2' >>= \res -> - return () -{-# LINE 96 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmDestroyAllCameras :: HG3DClass -> IO () -cSmDestroyAllCameras a1 = - withHG3DClass a1 $ \a1' -> - cSmDestroyAllCameras'_ a1' >>= \res -> - return () -{-# LINE 99 "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 104 "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 108 "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 113 "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 118 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmDestroyLight :: HG3DClass -> String -> IO () -cSmDestroyLight a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cSmDestroyLight'_ a1' a2' >>= \res -> - return () -{-# LINE 122 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmDestroyLight2 :: HG3DClass -> HG3DClass -> IO () -cSmDestroyLight2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cSmDestroyLight2'_ a1' a2' >>= \res -> - return () -{-# LINE 126 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmDestroyAllLights :: HG3DClass -> IO () -cSmDestroyAllLights a1 = - withHG3DClass a1 $ \a1' -> - cSmDestroyAllLights'_ a1' >>= \res -> - return () -{-# LINE 129 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmNotifyLightsDirty :: HG3DClass -> IO () -cSmNotifyLightsDirty a1 = - withHG3DClass a1 $ \a1' -> - cSmNotifyLightsDirty'_ a1' >>= \res -> - return () -{-# LINE 132 "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 136 "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 141 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmDestroySceneNode :: HG3DClass -> String -> IO () -cSmDestroySceneNode a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cSmDestroySceneNode'_ a1' a2' >>= \res -> - return () -{-# LINE 145 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmDestroySceneNode2 :: HG3DClass -> HG3DClass -> IO () -cSmDestroySceneNode2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cSmDestroySceneNode2'_ a1' a2' >>= \res -> - return () -{-# LINE 149 "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 153 "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 158 "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 163 "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 170 "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 175 "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 181 "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 186 "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 191 "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 196 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmDestroyEntity :: HG3DClass -> HG3DClass -> IO () -cSmDestroyEntity a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cSmDestroyEntity'_ a1' a2' >>= \res -> - return () -{-# LINE 200 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmDestroyEntity2 :: HG3DClass -> String -> IO () -cSmDestroyEntity2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cSmDestroyEntity2'_ a1' a2' >>= \res -> - return () -{-# LINE 204 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmDestroyAllEntities :: HG3DClass -> IO () -cSmDestroyAllEntities a1 = - withHG3DClass a1 $ \a1' -> - cSmDestroyAllEntities'_ a1' >>= \res -> - return () -{-# LINE 207 "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 212 "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 216 "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 221 "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 226 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmDestroyManualObject :: HG3DClass -> HG3DClass -> IO () -cSmDestroyManualObject a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cSmDestroyManualObject'_ a1' a2' >>= \res -> - return () -{-# LINE 230 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmDestroyManualObject2 :: HG3DClass -> String -> IO () -cSmDestroyManualObject2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cSmDestroyManualObject2'_ a1' a2' >>= \res -> - return () -{-# LINE 234 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmDestroyAllManualObjects :: HG3DClass -> IO () -cSmDestroyAllManualObjects a1 = - withHG3DClass a1 $ \a1' -> - cSmDestroyAllManualObjects'_ a1' >>= \res -> - return () -{-# LINE 237 "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 242 "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 246 "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 251 "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 256 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmDestroyBillboardChain :: HG3DClass -> HG3DClass -> IO () -cSmDestroyBillboardChain a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cSmDestroyBillboardChain'_ a1' a2' >>= \res -> - return () -{-# LINE 260 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmDestroyBillboardChain2 :: HG3DClass -> String -> IO () -cSmDestroyBillboardChain2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cSmDestroyBillboardChain2'_ a1' a2' >>= \res -> - return () -{-# LINE 264 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmDestroyAllBillboardChains :: HG3DClass -> IO () -cSmDestroyAllBillboardChains a1 = - withHG3DClass a1 $ \a1' -> - cSmDestroyAllBillboardChains'_ a1' >>= \res -> - return () -{-# LINE 267 "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 272 "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 276 "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 281 "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 286 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmDestroyRibbonTrail :: HG3DClass -> HG3DClass -> IO () -cSmDestroyRibbonTrail a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cSmDestroyRibbonTrail'_ a1' a2' >>= \res -> - return () -{-# LINE 290 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmDestroyRibbonTrail2 :: HG3DClass -> String -> IO () -cSmDestroyRibbonTrail2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cSmDestroyRibbonTrail2'_ a1' a2' >>= \res -> - return () -{-# LINE 294 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmDestroyAllRibbonTrails :: HG3DClass -> IO () -cSmDestroyAllRibbonTrails a1 = - withHG3DClass a1 $ \a1' -> - cSmDestroyAllRibbonTrails'_ a1' >>= \res -> - return () -{-# LINE 297 "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 302 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmDestroyParticleSystem2 :: HG3DClass -> String -> IO () -cSmDestroyParticleSystem2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cSmDestroyParticleSystem2'_ a1' a2' >>= \res -> - return () -{-# LINE 306 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmDestroyAllParticleSystems :: HG3DClass -> IO () -cSmDestroyAllParticleSystems a1 = - withHG3DClass a1 $ \a1' -> - cSmDestroyAllParticleSystems'_ a1' >>= \res -> - return () -{-# LINE 309 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmClearScene :: HG3DClass -> IO () -cSmClearScene a1 = - withHG3DClass a1 $ \a1' -> - cSmClearScene'_ a1' >>= \res -> - return () -{-# LINE 312 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmSetAmbientLight :: HG3DClass -> Colour -> IO () -cSmSetAmbientLight a1 a2 = - withHG3DClass a1 $ \a1' -> - withColour a2 $ \a2' -> - cSmSetAmbientLight'_ a1' a2' >>= \res -> - return () -{-# LINE 316 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmGetAmbientLight :: HG3DClass -> IO (Colour) -cSmGetAmbientLight a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cSmGetAmbientLight'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 320 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmPrepareWorldGeometry :: HG3DClass -> String -> IO () -cSmPrepareWorldGeometry a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cSmPrepareWorldGeometry'_ a1' a2' >>= \res -> - return () -{-# LINE 324 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmPrepareWorldGeometry2 :: HG3DClass -> String -> IO (SharedPtr) -cSmPrepareWorldGeometry2 a1 a3 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - withCString a3 $ \a3' -> - cSmPrepareWorldGeometry2'_ a1' a2' a3' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 329 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmSetWorldGeometry :: HG3DClass -> String -> IO () -cSmSetWorldGeometry a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cSmSetWorldGeometry'_ a1' a2' >>= \res -> - return () -{-# LINE 333 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmSetWorldGeometry2 :: HG3DClass -> String -> IO (SharedPtr) -cSmSetWorldGeometry2 a1 a3 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - withCString a3 $ \a3' -> - cSmSetWorldGeometry2'_ a1' a2' a3' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 338 "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 343 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmEstimateWorldGeometry2 :: HG3DClass -> String -> IO (SharedPtr, Int) -cSmEstimateWorldGeometry2 a1 a3 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - withCString a3 $ \a3' -> - alloca $ \a4' -> - cSmEstimateWorldGeometry2'_ a1' a2' a3' a4' >>= \res -> - peek a2'>>= \a2'' -> - peekIntConv a4'>>= \a4'' -> - return (a2'', a4'') -{-# LINE 349 "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 354 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmUpdateSceneGraph :: HG3DClass -> HG3DClass -> IO () -cSmUpdateSceneGraph a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cSmUpdateSceneGraph'_ a1' a2' >>= \res -> - return () -{-# LINE 358 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmApplySceneAnimations :: HG3DClass -> IO () -cSmApplySceneAnimations a1 = - withHG3DClass a1 $ \a1' -> - cSmApplySceneAnimations'_ a1' >>= \res -> - return () -{-# LINE 361 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmRenderVisibleObjects :: HG3DClass -> IO () -cSmRenderVisibleObjects a1 = - withHG3DClass a1 $ \a1' -> - cSmRenderVisibleObjects'_ a1' >>= \res -> - return () -{-# LINE 364 "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 370 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmQueueSkiesForRendering :: HG3DClass -> HG3DClass -> IO () -cSmQueueSkiesForRendering a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cSmQueueSkiesForRendering'_ a1' a2' >>= \res -> - return () -{-# LINE 374 "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 378 "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 382 "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 386 "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 395 "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 399 "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 403 "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 407 "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 421 "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 425 "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 429 "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 433 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmSetFog :: HG3DClass -> EnumFogMode -> Colour -> Float -> Float -> Float -> IO () -cSmSetFog a1 a2 a3 a4 a5 a6 = - withHG3DClass a1 $ \a1' -> - let {a2' = cIntFromEnum a2} in - withColour 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 441 "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 445 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmGetFogColour :: HG3DClass -> IO (Colour) -cSmGetFogColour a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cSmGetFogColour'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 449 "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 453 "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 457 "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 461 "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 467 "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 472 "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 477 "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 482 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmDestroyBillboardSet :: HG3DClass -> HG3DClass -> IO () -cSmDestroyBillboardSet a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cSmDestroyBillboardSet'_ a1' a2' >>= \res -> - return () -{-# LINE 486 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmDestroyBillboardSet2 :: HG3DClass -> String -> IO () -cSmDestroyBillboardSet2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cSmDestroyBillboardSet2'_ a1' a2' >>= \res -> - return () -{-# LINE 490 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmDestroyAllBillboardSets :: HG3DClass -> IO () -cSmDestroyAllBillboardSets a1 = - withHG3DClass a1 $ \a1' -> - cSmDestroyAllBillboardSets'_ a1' >>= \res -> - return () -{-# LINE 493 "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 497 "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 501 "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 507 "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 512 "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 517 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmDestroyAnimation :: HG3DClass -> String -> IO () -cSmDestroyAnimation a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cSmDestroyAnimation'_ a1' a2' >>= \res -> - return () -{-# LINE 521 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmDestroyAllAnimations :: HG3DClass -> IO () -cSmDestroyAllAnimations a1 = - withHG3DClass a1 $ \a1' -> - cSmDestroyAllAnimations'_ a1' >>= \res -> - return () -{-# LINE 524 "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 529 "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 534 "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 539 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmDestroyAnimationState :: HG3DClass -> String -> IO () -cSmDestroyAnimationState a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cSmDestroyAnimationState'_ a1' a2' >>= \res -> - return () -{-# LINE 543 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmDestroyAllAnimationStates :: HG3DClass -> IO () -cSmDestroyAllAnimationStates a1 = - withHG3DClass a1 $ \a1' -> - cSmDestroyAllAnimationStates'_ a1' >>= \res -> - return () -{-# LINE 546 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmAddRenderObjectListener :: HG3DClass -> HG3DClass -> IO () -cSmAddRenderObjectListener a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cSmAddRenderObjectListener'_ a1' a2' >>= \res -> - return () -{-# LINE 550 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmRemoveRenderObjectListener :: HG3DClass -> HG3DClass -> IO () -cSmRemoveRenderObjectListener a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cSmRemoveRenderObjectListener'_ a1' a2' >>= \res -> - return () -{-# LINE 554 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmClearSpecialCaseRenderQueues :: HG3DClass -> IO () -cSmClearSpecialCaseRenderQueues a1 = - withHG3DClass a1 $ \a1' -> - cSmClearSpecialCaseRenderQueues'_ a1' >>= \res -> - return () -{-# LINE 557 "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 561 "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 565 "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 569 "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 573 "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 578 "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 582 "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 586 "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 590 "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 594 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmSetShadowColour :: HG3DClass -> Colour -> IO () -cSmSetShadowColour a1 a2 = - withHG3DClass a1 $ \a1' -> - withColour a2 $ \a2' -> - cSmSetShadowColour'_ a1' a2' >>= \res -> - return () -{-# LINE 598 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmGetShadowColour :: HG3DClass -> IO (Colour) -cSmGetShadowColour a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cSmGetShadowColour'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 602 "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 606 "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 610 "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 614 "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 618 "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 622 "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 626 "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 630 "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 637 "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 641 "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 645 "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 649 "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 654 "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 659 "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 665 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmGetShadowTexture :: HG3DClass -> Int -> IO (SharedPtr) -cSmGetShadowTexture a1 a2 = - withHG3DClass a1 $ \a1' -> - let {a2' = fromIntegral a2} in - alloca $ \a3' -> - cSmGetShadowTexture'_ a1' a2' a3' >>= \res -> - peek a3'>>= \a3'' -> - return (a3'') -{-# LINE 670 "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 674 "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 678 "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 682 "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 686 "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 690 "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 694 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmSetShadowTextureCasterMaterial :: HG3DClass -> String -> IO () -cSmSetShadowTextureCasterMaterial a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cSmSetShadowTextureCasterMaterial'_ a1' a2' >>= \res -> - return () -{-# LINE 698 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmSetShadowTextureReceiverMaterial :: HG3DClass -> String -> IO () -cSmSetShadowTextureReceiverMaterial a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cSmSetShadowTextureReceiverMaterial'_ a1' a2' >>= \res -> - return () -{-# LINE 702 "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 706 "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 710 "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 714 "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 718 "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 722 "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 726 "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 730 "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 734 "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 738 "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 742 "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 746 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmSetActiveCompositorChain :: HG3DClass -> HG3DClass -> IO () -cSmSetActiveCompositorChain a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cSmSetActiveCompositorChain'_ a1' a2' >>= \res -> - return () -{-# LINE 750 "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 754 "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 758 "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 762 "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 767 "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 772 "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 777 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmDestroyStaticGeometry :: HG3DClass -> HG3DClass -> IO () -cSmDestroyStaticGeometry a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cSmDestroyStaticGeometry'_ a1' a2' >>= \res -> - return () -{-# LINE 781 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmDestroyStaticGeometry2 :: HG3DClass -> String -> IO () -cSmDestroyStaticGeometry2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cSmDestroyStaticGeometry2'_ a1' a2' >>= \res -> - return () -{-# LINE 785 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmDestroyAllStaticGeometry :: HG3DClass -> IO () -cSmDestroyAllStaticGeometry a1 = - withHG3DClass a1 $ \a1' -> - cSmDestroyAllStaticGeometry'_ a1' >>= \res -> - return () -{-# LINE 788 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmDestroyInstancedGeometry2 :: HG3DClass -> String -> IO () -cSmDestroyInstancedGeometry2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cSmDestroyInstancedGeometry2'_ a1' a2' >>= \res -> - return () -{-# LINE 792 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmDestroyAllInstancedGeometry :: HG3DClass -> IO () -cSmDestroyAllInstancedGeometry a1 = - withHG3DClass a1 $ \a1' -> - cSmDestroyAllInstancedGeometry'_ a1' >>= \res -> - return () -{-# LINE 795 "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 800 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmDestroyMovableObject2 :: HG3DClass -> HG3DClass -> IO () -cSmDestroyMovableObject2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cSmDestroyMovableObject2'_ a1' a2' >>= \res -> - return () -{-# LINE 804 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmDestroyAllMovableObjectsByType :: HG3DClass -> String -> IO () -cSmDestroyAllMovableObjectsByType a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cSmDestroyAllMovableObjectsByType'_ a1' a2' >>= \res -> - return () -{-# LINE 808 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmDestroyAllMovableObjects :: HG3DClass -> IO () -cSmDestroyAllMovableObjects a1 = - withHG3DClass a1 $ \a1' -> - cSmDestroyAllMovableObjects'_ a1' >>= \res -> - return () -{-# LINE 811 "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 817 "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 823 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmInjectMovableObject :: HG3DClass -> HG3DClass -> IO () -cSmInjectMovableObject a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cSmInjectMovableObject'_ a1' a2' >>= \res -> - return () -{-# LINE 827 "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 832 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmExtractMovableObject2 :: HG3DClass -> HG3DClass -> IO () -cSmExtractMovableObject2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cSmExtractMovableObject2'_ a1' a2' >>= \res -> - return () -{-# LINE 836 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmExtractAllMovableObjectsByType :: HG3DClass -> String -> IO () -cSmExtractAllMovableObjectsByType a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cSmExtractAllMovableObjectsByType'_ a1' a2' >>= \res -> - return () -{-# LINE 840 "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 844 "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 848 "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 852 "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 856 "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 860 "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 864 "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 868 "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 872 "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 876 "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 880 "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 884 "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 888 "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 892 "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 896 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmSetQueuedRenderableVisitor :: HG3DClass -> HG3DClass -> IO () -cSmSetQueuedRenderableVisitor a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cSmSetQueuedRenderableVisitor'_ a1' a2' >>= \res -> - return () -{-# LINE 900 "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 904 "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 908 "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 912 "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 916 "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} -; -cSmHandleLodEvents :: HG3DClass -> IO () -cSmHandleLodEvents a1 = - withHG3DClass a1 $ \a1' -> - cSmHandleLodEvents'_ a1' >>= \res -> - return () -{-# LINE 919 "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) -> ((ColourPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getAmbientLight_c" - cSmGetAmbientLight'_ :: ((HG3DClassPtr) -> ((ColourPtr) -> (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_prepareWorldGeometry2_c" - cSmPrepareWorldGeometry2'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> ((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_setWorldGeometry2_c" - cSmSetWorldGeometry2'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> ((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_estimateWorldGeometry2_c" - cSmEstimateWorldGeometry2'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> ((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 -> ((ColourPtr) -> (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) -> ((ColourPtr) -> (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) -> ((ColourPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getShadowColour_c" - cSmGetShadowColour'_ :: ((HG3DClassPtr) -> ((ColourPtr) -> (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) -> (CUShort -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_setShadowTextureConfig_c" - cSmSetShadowTextureConfig'_ :: ((HG3DClassPtr) -> (CInt -> (CUShort -> (CUShort -> (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) -> (CUShort -> (CUShort -> (CInt -> (IO ()))))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h cSm_getShadowTexture_c" - cSmGetShadowTexture'_ :: ((HG3DClassPtr) -> (CInt -> ((SharedPtrPtr) -> (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) -> (CUShort -> (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 ()))
− HGamer3D/Bindings/Ogre/ClassSceneManagerEnumerator.hs
@@ -1,160 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerEnumerator.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerEnumerator.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerEnumerator.chs" #-} - - -cSmeAddFactory :: HG3DClass -> HG3DClass -> IO () -cSmeAddFactory a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cSmeAddFactory'_ a1' a2' >>= \res -> - return () -{-# LINE 60 "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerEnumerator.chs" #-} -; -cSmeRemoveFactory :: HG3DClass -> HG3DClass -> IO () -cSmeRemoveFactory a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cSmeRemoveFactory'_ a1' a2' >>= \res -> - return () -{-# LINE 64 "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 70 "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 76 "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerEnumerator.chs" #-} -; -cSmeDestroySceneManager :: HG3DClass -> HG3DClass -> IO () -cSmeDestroySceneManager a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cSmeDestroySceneManager'_ a1' a2' >>= \res -> - return () -{-# LINE 80 "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 85 "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 90 "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerEnumerator.chs" #-} -; -cSmeShutdownAll :: HG3DClass -> IO () -cSmeShutdownAll a1 = - withHG3DClass a1 $ \a1' -> - cSmeShutdownAll'_ a1' >>= \res -> - return () -{-# LINE 93 "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) -> (CUShort -> ((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 ()))
+ HGamer3D/Bindings/Ogre/ClassSceneManagerFactory.chs view
@@ -0,0 +1,58 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassSceneManagerFactory where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}++#include "ClassSceneManagerFactory.h"+{- function ~SceneManagerFactory -}+{#fun ogre_smf_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function createInstance -}+{#fun ogre_smf_createInstance as createInstance +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function destroyInstance -}+{#fun ogre_smf_destroyInstance as destroyInstance +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassSceneManagerFactory.hs
@@ -1,87 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerFactory.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerFactory.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "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 61 "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerFactory.chs" #-} -; -cSmfDestroyInstance :: HG3DClass -> HG3DClass -> IO () -cSmfDestroyInstance a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cSmfDestroyInstance'_ a1' a2' >>= \res -> - return () -{-# LINE 65 "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 ())))
− HGamer3D/Bindings/Ogre/ClassSceneMgrQueuedRenderableVisitor.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassSceneMgrQueuedRenderableVisitor.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassSceneMgrQueuedRenderableVisitor.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassSceneMgrQueuedRenderableVisitor.chs" #-} - -
+ HGamer3D/Bindings/Ogre/ClassSceneNode.chs view
@@ -0,0 +1,189 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassSceneNode where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}+{# import HGamer3D.Bindings.Ogre.StructVec3 #}+{# import HGamer3D.Bindings.Ogre.StructQuaternion #}++#include "ClassSceneNode.h"+{- function ~SceneNode -}+{#fun ogre_sn_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function attachObject -}+{#fun ogre_sn_attachObject as attachObject +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function numAttachedObjects -}+{#fun ogre_sn_numAttachedObjects as numAttachedObjects +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function getAttachedObject -}+{#fun ogre_sn_getAttachedObject as getAttachedObject +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getAttachedObject2 -}+{#fun ogre_sn_getAttachedObject2 as getAttachedObject2 +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function detachObject -}+{#fun ogre_sn_detachObject as detachObject +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function detachObject2 -}+{#fun ogre_sn_detachObject2 as detachObject2 +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function detachObject3 -}+{#fun ogre_sn_detachObject3 as detachObject3 +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function detachAllObjects -}+{#fun ogre_sn_detachAllObjects as detachAllObjects +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function isInSceneGraph -}+{#fun ogre_sn_isInSceneGraph as isInSceneGraph +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getCreator -}+{#fun ogre_sn_getCreator as getCreator +{ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function removeAndDestroyChild -}+{#fun ogre_sn_removeAndDestroyChild as removeAndDestroyChild +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function removeAndDestroyChild2 -}+{#fun ogre_sn_removeAndDestroyChild2 as removeAndDestroyChild2 +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function removeAndDestroyAllChildren -}+{#fun ogre_sn_removeAndDestroyAllChildren as removeAndDestroyAllChildren +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function showBoundingBox -}+{#fun ogre_sn_showBoundingBox as showBoundingBox +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function hideBoundingBox -}+{#fun ogre_sn_hideBoundingBox as hideBoundingBox +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getShowBoundingBox -}+{#fun ogre_sn_getShowBoundingBox as getShowBoundingBox +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function createChildSceneNode -}+{#fun ogre_sn_createChildSceneNode as createChildSceneNode +{ withHG3DClass* `HG3DClass' ,+ withVec3* `Vec3' ,+ withQuaternion* `Quaternion' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function createChildSceneNode2 -}+{#fun ogre_sn_createChildSceneNode2 as createChildSceneNode2 +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ withVec3* `Vec3' ,+ withQuaternion* `Quaternion' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function setFixedYawAxis -}+{#fun ogre_sn_setFixedYawAxis as setFixedYawAxis +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' ,+ withVec3* `Vec3' } -> `()' #}++{- function getAutoTrackTarget -}+{#fun ogre_sn_getAutoTrackTarget as getAutoTrackTarget +{ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getAutoTrackOffset -}+{#fun ogre_sn_getAutoTrackOffset as getAutoTrackOffset +{ withHG3DClass* `HG3DClass' ,+ alloca- `Vec3' peekVec3*} -> `()' #}++{- function getAutoTrackLocalDirection -}+{#fun ogre_sn_getAutoTrackLocalDirection as getAutoTrackLocalDirection +{ withHG3DClass* `HG3DClass' ,+ alloca- `Vec3' peekVec3*} -> `()' #}++{- function getParentSceneNode -}+{#fun ogre_sn_getParentSceneNode as getParentSceneNode +{ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function setVisible -}+{#fun ogre_sn_setVisible as setVisible +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' ,+ fromBool `Bool' } -> `()' #}++{- function flipVisibility -}+{#fun ogre_sn_flipVisibility as flipVisibility +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function setDebugDisplayEnabled -}+{#fun ogre_sn_setDebugDisplayEnabled as setDebugDisplayEnabled +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' ,+ fromBool `Bool' } -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassSceneNode.hs
@@ -1,490 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} -import HGamer3D.Bindings.Ogre.TypeVector3 -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} -import HGamer3D.Bindings.Ogre.TypeQuaternion -{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} -import HGamer3D.Bindings.Ogre.TypeRadian -{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} -import HGamer3D.Bindings.Ogre.EnumTransformSpace -{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} - - -cSnAttachObject :: HG3DClass -> HG3DClass -> IO () -cSnAttachObject a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cSnAttachObject'_ a1' a2' >>= \res -> - return () -{-# LINE 64 "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 68 "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 73 "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 78 "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 83 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} -; -cSnDetachObject2 :: HG3DClass -> HG3DClass -> IO () -cSnDetachObject2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cSnDetachObject2'_ a1' a2' >>= \res -> - return () -{-# LINE 87 "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 92 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} -; -cSnDetachAllObjects :: HG3DClass -> IO () -cSnDetachAllObjects a1 = - withHG3DClass a1 $ \a1' -> - cSnDetachAllObjects'_ a1' >>= \res -> - return () -{-# LINE 95 "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 99 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} -; -cSnNotifyRootNode :: HG3DClass -> IO () -cSnNotifyRootNode a1 = - withHG3DClass a1 $ \a1' -> - cSnNotifyRootNode'_ a1' >>= \res -> - return () -{-# LINE 102 "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 107 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} -; -cSnUpdateBounds :: HG3DClass -> IO () -cSnUpdateBounds a1 = - withHG3DClass a1 $ \a1' -> - cSnUpdateBounds'_ a1' >>= \res -> - return () -{-# LINE 110 "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 114 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} -; -cSnRemoveAndDestroyChild :: HG3DClass -> String -> IO () -cSnRemoveAndDestroyChild a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cSnRemoveAndDestroyChild'_ a1' a2' >>= \res -> - return () -{-# LINE 118 "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 122 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} -; -cSnRemoveAndDestroyAllChildren :: HG3DClass -> IO () -cSnRemoveAndDestroyAllChildren a1 = - withHG3DClass a1 $ \a1' -> - cSnRemoveAndDestroyAllChildren'_ a1' >>= \res -> - return () -{-# LINE 125 "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 129 "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 133 "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 137 "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 143 "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 150 "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 155 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} -; -cSnYaw :: HG3DClass -> Radians -> EnumTransformSpace -> IO () -cSnYaw a1 a2 a3 = - withHG3DClass a1 $ \a1' -> - withRadians a2 $ \a2' -> - let {a3' = cIntFromEnum a3} in - cSnYaw'_ a1' a2' a3' >>= \res -> - return () -{-# LINE 160 "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 168 "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 174 "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 180 "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 187 "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 191 "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 195 "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 199 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} -; -cSnAutoTrack :: HG3DClass -> IO () -cSnAutoTrack a1 = - withHG3DClass a1 $ \a1' -> - cSnAutoTrack'_ a1' >>= \res -> - return () -{-# LINE 202 "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 206 "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 211 "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 215 "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 220 "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 CUShort) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h cSn_getAttachedObject_c" - cSnGetAttachedObject'_ :: ((HG3DClassPtr) -> (CUShort -> ((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) -> (CUShort -> ((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) -> (CUShort -> (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) -> ((RadiansPtr) -> (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 ()))))
− HGamer3D/Bindings/Ogre/ClassShadowCameraSetup.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassShadowCameraSetup.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassShadowCameraSetup.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassShadowCameraSetup.chs" #-} - -
− HGamer3D/Bindings/Ogre/ClassSimpleRenderable.hs
@@ -1,75 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassSimpleRenderable.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassSimpleRenderable.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "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 60 "HGamer3D\\Bindings\\Ogre\\ClassSimpleRenderable.chs" #-} -; - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSimpleRenderable.chs.h cSr_getMovableType_c" - cSrGetMovableType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ())))
+ HGamer3D/Bindings/Ogre/ClassSkeleton.chs view
@@ -0,0 +1,184 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassSkeleton where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}+{# import HGamer3D.Bindings.Ogre.EnumSkeletonAnimationBlendMode #}++#include "ClassSkeleton.h"+{- function ~Skeleton -}+{#fun ogre_skl_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function createBone -}+{#fun ogre_skl_createBone as createBone +{ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function createBone2 -}+{#fun ogre_skl_createBone2 as createBone2 +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function createBone3 -}+{#fun ogre_skl_createBone3 as createBone3 +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function createBone4 -}+{#fun ogre_skl_createBone4 as createBone4 +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ fromIntegral `Int' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getNumBones -}+{#fun ogre_skl_getNumBones as getNumBones +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function getRootBone -}+{#fun ogre_skl_getRootBone as getRootBone +{ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getBone -}+{#fun ogre_skl_getBone as getBone +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getBone2 -}+{#fun ogre_skl_getBone2 as getBone2 +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function hasBone -}+{#fun ogre_skl_hasBone as hasBone +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setBindingPose -}+{#fun ogre_skl_setBindingPose as setBindingPose +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function reset -}+{#fun ogre_skl_reset as reset +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function createAnimation -}+{#fun ogre_skl_createAnimation as createAnimation +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ realToFrac `Float' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getAnimation2 -}+{#fun ogre_skl_getAnimation2 as getAnimation2 +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function hasAnimation -}+{#fun ogre_skl_hasAnimation as hasAnimation +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function removeAnimation -}+{#fun ogre_skl_removeAnimation as removeAnimation +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function setAnimationState -}+{#fun ogre_skl_setAnimationState as setAnimationState +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getNumAnimations -}+{#fun ogre_skl_getNumAnimations as getNumAnimations +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function getAnimation3 -}+{#fun ogre_skl_getAnimation3 as getAnimation3 +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getBlendMode -}+{#fun ogre_skl_getBlendMode as getBlendMode +{ withHG3DClass* `HG3DClass' ,+ alloca- `EnumSkeletonAnimationBlendMode' peekEnumUtil*} -> `()' #}++{- function setBlendMode -}+{#fun ogre_skl_setBlendMode as setBlendMode +{ withHG3DClass* `HG3DClass' ,+ cIntFromEnum `EnumSkeletonAnimationBlendMode' } -> `()' #}++{- function optimiseAllAnimations -}+{#fun ogre_skl_optimiseAllAnimations as optimiseAllAnimations +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function addLinkedSkeletonAnimationSource -}+{#fun ogre_skl_addLinkedSkeletonAnimationSource as addLinkedSkeletonAnimationSource +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' ,+ realToFrac `Float' } -> `()' #}++{- function removeAllLinkedSkeletonAnimationSources -}+{#fun ogre_skl_removeAllLinkedSkeletonAnimationSources as removeAllLinkedSkeletonAnimationSources +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getManualBonesDirty -}+{#fun ogre_skl_getManualBonesDirty as getManualBonesDirty +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function hasManualBones -}+{#fun ogre_skl_hasManualBones as hasManualBones +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassSkeleton.hs
@@ -1,375 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} -import HGamer3D.Bindings.Ogre.EnumSkeletonAnimationBlendMode -{-# LINE 55 "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 61 "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 66 "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 71 "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 77 "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 81 "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 85 "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 90 "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 95 "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 100 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} -; -cSSetBindingPose :: HG3DClass -> IO () -cSSetBindingPose a1 = - withHG3DClass a1 $ \a1' -> - cSSetBindingPose'_ a1' >>= \res -> - return () -{-# LINE 103 "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 107 "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 113 "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 118 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} -; -cSRemoveAnimation :: HG3DClass -> String -> IO () -cSRemoveAnimation a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cSRemoveAnimation'_ a1' a2' >>= \res -> - return () -{-# LINE 122 "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 126 "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 131 "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 135 "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 139 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} -; -cSUpdateTransforms :: HG3DClass -> IO () -cSUpdateTransforms a1 = - withHG3DClass a1 $ \a1' -> - cSUpdateTransforms'_ a1' >>= \res -> - return () -{-# LINE 142 "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 146 "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 151 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} -; -cSRemoveAllLinkedSkeletonAnimationSources :: HG3DClass -> IO () -cSRemoveAllLinkedSkeletonAnimationSources a1 = - withHG3DClass a1 $ \a1' -> - cSRemoveAllLinkedSkeletonAnimationSources'_ a1' >>= \res -> - return () -{-# LINE 154 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} -; -cSNotifyManualBonesDirty :: HG3DClass -> IO () -cSNotifyManualBonesDirty a1 = - withHG3DClass a1 $ \a1' -> - cSNotifyManualBonesDirty'_ a1' >>= \res -> - return () -{-# LINE 157 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} -; -cSNotifyManualBoneStateChange :: HG3DClass -> HG3DClass -> IO () -cSNotifyManualBoneStateChange a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cSNotifyManualBoneStateChange'_ a1' a2' >>= \res -> - return () -{-# LINE 161 "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 165 "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 169 "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) -> (CUShort -> ((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) -> (CUShort -> ((HG3DClassPtr) -> (IO ()))))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_getNumBones_c" - cSGetNumBones'_ :: ((HG3DClassPtr) -> ((Ptr CUShort) -> (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) -> (CUShort -> ((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 CUShort) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_getAnimation2_c" - cSGetAnimation2'_ :: ((HG3DClassPtr) -> (CUShort -> ((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 ())))
− HGamer3D/Bindings/Ogre/ClassSkeletonInstance.hs
@@ -1,147 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassSkeletonInstance.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassSkeletonInstance.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "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 60 "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 65 "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 71 "HGamer3D\\Bindings\\Ogre\\ClassSkeletonInstance.chs" #-} -; -cSiRemoveAnimation :: HG3DClass -> String -> IO () -cSiRemoveAnimation a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cSiRemoveAnimation'_ a1' a2' >>= \res -> - return () -{-# LINE 75 "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 80 "HGamer3D\\Bindings\\Ogre\\ClassSkeletonInstance.chs" #-} -; -cSiRemoveAllLinkedSkeletonAnimationSources :: HG3DClass -> IO () -cSiRemoveAllLinkedSkeletonAnimationSources a1 = - withHG3DClass a1 $ \a1' -> - cSiRemoveAllLinkedSkeletonAnimationSources'_ a1' >>= \res -> - return () -{-# LINE 83 "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 87 "HGamer3D\\Bindings\\Ogre\\ClassSkeletonInstance.chs" #-} -; - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeletonInstance.chs.h cSi_getNumAnimations_c" - cSiGetNumAnimations'_ :: ((HG3DClassPtr) -> ((Ptr CUShort) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeletonInstance.chs.h cSi_getAnimation_c" - cSiGetAnimation'_ :: ((HG3DClassPtr) -> (CUShort -> ((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 ())))
+ HGamer3D/Bindings/Ogre/ClassSkeletonManager.chs view
@@ -0,0 +1,59 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- ClassSkeletonManager.chs++-- ++module HGamer3D.Bindings.Ogre.ClassSkeletonManager where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}++#include "ClassSkeletonManager.h"+{- function SkeletonManager -}+{#fun ogre_sklmgr_construct as new +{ alloca- `HG3DClass' peek*} -> `()' #}++{- function ~SkeletonManager -}+{#fun ogre_sklmgr_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getSingleton -}+{#fun ogre_sklmgr_getSingleton as getSingleton +{ alloca- `HG3DClass' peek*} -> `()' #}++{- function getSingletonPtr -}+{#fun ogre_sklmgr_getSingletonPtr as getSingletonPtr +{ alloca- `HG3DClass' peek*} -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassSkeletonSerializer.hs
@@ -1,78 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassSkeletonSerializer.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassSkeletonSerializer.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassSkeletonSerializer.chs" #-} -import HGamer3D.Bindings.Ogre.TypeSharedPtr -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassSkeletonSerializer.chs" #-} - - -cSsImportSkeleton :: HG3DClass -> HG3DClass -> IO (SharedPtr) -cSsImportSkeleton a1 a3 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - withHG3DClass a3 $ \a3' -> - cSsImportSkeleton'_ a1' a2' a3' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassSkeletonSerializer.chs" #-} -; - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeletonSerializer.chs.h cSs_importSkeleton_c" - cSsImportSkeleton'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> ((HG3DClassPtr) -> (IO ()))))
− HGamer3D/Bindings/Ogre/ClassStaticGeometry.hs
@@ -1,284 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} -import HGamer3D.Bindings.Ogre.TypeVector3 -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} -import HGamer3D.Bindings.Ogre.TypeQuaternion -{-# LINE 56 "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 62 "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 69 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} -; -cSgBuild :: HG3DClass -> IO () -cSgBuild a1 = - withHG3DClass a1 $ \a1' -> - cSgBuild'_ a1' >>= \res -> - return () -{-# LINE 72 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} -; -cSgDestroy :: HG3DClass -> IO () -cSgDestroy a1 = - withHG3DClass a1 $ \a1' -> - cSgDestroy'_ a1' >>= \res -> - return () -{-# LINE 75 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} -; -cSgReset :: HG3DClass -> IO () -cSgReset a1 = - withHG3DClass a1 $ \a1' -> - cSgReset'_ a1' >>= \res -> - return () -{-# LINE 78 "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 82 "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 86 "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 90 "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 94 "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 98 "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 102 "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 106 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} -; -cSgSetRegionDimensions :: HG3DClass -> Vector3 -> IO () -cSgSetRegionDimensions a1 a2 = - withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> - cSgSetRegionDimensions'_ a1' a2' >>= \res -> - return () -{-# LINE 110 "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 114 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} -; -cSgSetOrigin :: HG3DClass -> Vector3 -> IO () -cSgSetOrigin a1 a2 = - withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> - cSgSetOrigin'_ a1' a2' >>= \res -> - return () -{-# LINE 118 "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 122 "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 126 "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 130 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} -; -cSgDump :: HG3DClass -> String -> IO () -cSgDump a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cSgDump'_ a1' a2' >>= \res -> - return () -{-# LINE 134 "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 ())))
− HGamer3D/Bindings/Ogre/ClassStringConverter.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassStringConverter.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassStringConverter.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassStringConverter.chs" #-} - -
− HGamer3D/Bindings/Ogre/ClassStringUtil.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassStringUtil.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassStringUtil.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassStringUtil.chs" #-} - -
− HGamer3D/Bindings/Ogre/ClassSubEntity.hs
@@ -1,262 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} -import HGamer3D.Bindings.Ogre.TypeSharedPtr -{-# LINE 55 "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 61 "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 66 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} -; -cSeSetMaterial :: HG3DClass -> SharedPtr -> IO () -cSeSetMaterial a1 a2 = - withHG3DClass a1 $ \a1' -> - withSharedPtr a2 $ \a2' -> - cSeSetMaterial'_ a1' a2' >>= \res -> - return () -{-# LINE 70 "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 74 "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 78 "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 82 "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 86 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} -; -cSeGetMaterial :: HG3DClass -> IO (SharedPtr) -cSeGetMaterial a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cSeGetMaterial'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 90 "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 94 "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 98 "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 102 "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 106 "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 110 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} -; -cSeMarkBuffersUnusedForAnimation :: HG3DClass -> IO () -cSeMarkBuffersUnusedForAnimation a1 = - withHG3DClass a1 $ \a1' -> - cSeMarkBuffersUnusedForAnimation'_ a1' >>= \res -> - return () -{-# LINE 113 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} -; -cSeMarkBuffersUsedForAnimation :: HG3DClass -> IO () -cSeMarkBuffersUsedForAnimation a1 = - withHG3DClass a1 $ \a1' -> - cSeMarkBuffersUsedForAnimation'_ a1' >>= \res -> - return () -{-# LINE 116 "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 120 "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 124 "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_setMaterial_c" - cSeSetMaterial'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (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_getMaterial_c" - cSeGetMaterial'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (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 CUShort) -> (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 ())))
− HGamer3D/Bindings/Ogre/ClassSubMesh.hs
@@ -1,201 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassSubMesh.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassSubMesh.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassSubMesh.chs" #-} -import HGamer3D.Bindings.Ogre.EnumVertexAnimationType -{-# LINE 55 "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 62 "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 66 "HGamer3D\\Bindings\\Ogre\\ClassSubMesh.chs" #-} -; -cSumClearBoneAssignments :: HG3DClass -> IO () -cSumClearBoneAssignments a1 = - withHG3DClass a1 $ \a1' -> - cSumClearBoneAssignments'_ a1' >>= \res -> - return () -{-# LINE 69 "HGamer3D\\Bindings\\Ogre\\ClassSubMesh.chs" #-} -; -cSumCompileBoneAssignments :: HG3DClass -> IO () -cSumCompileBoneAssignments a1 = - withHG3DClass a1 $ \a1' -> - cSumCompileBoneAssignments'_ a1' >>= \res -> - return () -{-# LINE 72 "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 77 "HGamer3D\\Bindings\\Ogre\\ClassSubMesh.chs" #-} -; -cSumRemoveTextureAlias :: HG3DClass -> String -> IO () -cSumRemoveTextureAlias a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cSumRemoveTextureAlias'_ a1' a2' >>= \res -> - return () -{-# LINE 81 "HGamer3D\\Bindings\\Ogre\\ClassSubMesh.chs" #-} -; -cSumRemoveAllTextureAliases :: HG3DClass -> IO () -cSumRemoveAllTextureAliases a1 = - withHG3DClass a1 $ \a1' -> - cSumRemoveAllTextureAliases'_ a1' >>= \res -> - return () -{-# LINE 84 "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 88 "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 92 "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 96 "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 100 "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 104 "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 ())))
− HGamer3D/Bindings/Ogre/ClassTechnique.hs
@@ -1,745 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} -import HGamer3D.Bindings.Ogre.TypeColour -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} -import HGamer3D.Bindings.Ogre.EnumCompareFunction -{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} -import HGamer3D.Bindings.Ogre.EnumCullingMode -{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} -import HGamer3D.Bindings.Ogre.EnumManualCullingMode -{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} -import HGamer3D.Bindings.Ogre.EnumShadeOptions -{-# LINE 59 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} -import HGamer3D.Bindings.Ogre.EnumFogMode -{-# LINE 60 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} -import HGamer3D.Bindings.Ogre.EnumTextureFilterOptions -{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} -import HGamer3D.Bindings.Ogre.EnumGPUVendor -{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} -import HGamer3D.Bindings.Ogre.EnumIncludeOrExclude -{-# LINE 63 "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 69 "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 74 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} -; -cTCompileIlluminationPasses :: HG3DClass -> IO () -cTCompileIlluminationPasses a1 = - withHG3DClass a1 $ \a1' -> - cTCompileIlluminationPasses'_ a1' >>= \res -> - return () -{-# LINE 77 "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 81 "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 86 "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 91 "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 95 "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 99 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} -; -cTRemoveAllPasses :: HG3DClass -> IO () -cTRemoveAllPasses a1 = - withHG3DClass a1 $ \a1' -> - cTRemoveAllPasses'_ a1' >>= \res -> - return () -{-# LINE 102 "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 108 "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 112 "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 116 "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 120 "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 124 "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 128 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} -; -cTPrepare :: HG3DClass -> IO () -cTPrepare a1 = - withHG3DClass a1 $ \a1' -> - cTPrepare'_ a1' >>= \res -> - return () -{-# LINE 131 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} -; -cTUnprepare :: HG3DClass -> IO () -cTUnprepare a1 = - withHG3DClass a1 $ \a1' -> - cTUnprepare'_ a1' >>= \res -> - return () -{-# LINE 134 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} -; -cTLoad :: HG3DClass -> IO () -cTLoad a1 = - withHG3DClass a1 $ \a1' -> - cTLoad'_ a1' >>= \res -> - return () -{-# LINE 137 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} -; -cTUnload :: HG3DClass -> IO () -cTUnload a1 = - withHG3DClass a1 $ \a1' -> - cTUnload'_ a1' >>= \res -> - return () -{-# LINE 140 "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 144 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} -; -cTNotifyNeedsRecompile :: HG3DClass -> IO () -cTNotifyNeedsRecompile a1 = - withHG3DClass a1 $ \a1' -> - cTNotifyNeedsRecompile'_ a1' >>= \res -> - return () -{-# LINE 147 "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 151 "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 157 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} -; -cTSetAmbient2 :: HG3DClass -> Colour -> IO () -cTSetAmbient2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withColour a2 $ \a2' -> - cTSetAmbient2'_ a1' a2' >>= \res -> - return () -{-# LINE 161 "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 168 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} -; -cTSetDiffuse2 :: HG3DClass -> Colour -> IO () -cTSetDiffuse2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withColour a2 $ \a2' -> - cTSetDiffuse2'_ a1' a2' >>= \res -> - return () -{-# LINE 172 "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 179 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} -; -cTSetSpecular2 :: HG3DClass -> Colour -> IO () -cTSetSpecular2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withColour a2 $ \a2' -> - cTSetSpecular2'_ a1' a2' >>= \res -> - return () -{-# LINE 183 "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 187 "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 193 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} -; -cTSetSelfIllumination2 :: HG3DClass -> Colour -> IO () -cTSetSelfIllumination2 a1 a2 = - withHG3DClass a1 $ \a1' -> - withColour a2 $ \a2' -> - cTSetSelfIllumination2'_ a1' a2' >>= \res -> - return () -{-# LINE 197 "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 201 "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 205 "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 209 "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 213 "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 217 "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 221 "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 225 "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 229 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} -; -cTSetFog :: HG3DClass -> Bool -> EnumFogMode -> Colour -> 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 - withColour 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 238 "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 243 "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 247 "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 251 "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 255 "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 259 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} -; -cTSetSchemeName :: HG3DClass -> String -> IO () -cTSetSchemeName a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cTSetSchemeName'_ a1' a2' >>= \res -> - return () -{-# LINE 263 "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 267 "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 271 "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 275 "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 279 "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 283 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} -; -cTSetName :: HG3DClass -> String -> IO () -cTSetName a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cTSetName'_ a1' a2' >>= \res -> - return () -{-# LINE 287 "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 291 "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 296 "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 300 "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 306 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} -; -cTRemoveGPUDeviceNameRule :: HG3DClass -> String -> IO () -cTRemoveGPUDeviceNameRule a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cTRemoveGPUDeviceNameRule'_ a1' a2' >>= \res -> - return () -{-# LINE 310 "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) -> (CUShort -> ((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 CUShort) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_removePass_c" - cTRemovePass'_ :: ((HG3DClassPtr) -> (CUShort -> (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) -> (CUShort -> (CUShort -> ((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) -> ((ColourPtr) -> (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) -> ((ColourPtr) -> (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) -> ((ColourPtr) -> (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) -> ((ColourPtr) -> (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 -> ((ColourPtr) -> (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) -> (CUShort -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_getLodIndex_c" - cTGetLodIndex'_ :: ((HG3DClassPtr) -> ((Ptr CUShort) -> (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 CUShort) -> (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 ())))
− HGamer3D/Bindings/Ogre/ClassTempBlendedBufferInfo.hs
@@ -1,89 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassTempBlendedBufferInfo.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassTempBlendedBufferInfo.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "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 61 "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 67 "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 ())))))
+ HGamer3D/Bindings/Ogre/ClassTextureManager.chs view
@@ -0,0 +1,65 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassTextureManager where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}++#include "ClassTextureManager.h"+{- function ~TextureManager -}+{#fun ogre_txmgr_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function setDefaultNumMipmaps -}+{#fun ogre_txmgr_setDefaultNumMipmaps as setDefaultNumMipmaps +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function getDefaultNumMipmaps -}+{#fun ogre_txmgr_getDefaultNumMipmaps as getDefaultNumMipmaps +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function getSingleton -}+{#fun ogre_txmgr_getSingleton as getSingleton +{ alloca- `HG3DClass' peek*} -> `()' #}++{- function getSingletonPtr -}+{#fun ogre_txmgr_getSingletonPtr as getSingletonPtr +{ alloca- `HG3DClass' peek*} -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassTextureManager.hs
@@ -1,205 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-} -import HGamer3D.Bindings.Ogre.TypeSharedPtr -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-} -import HGamer3D.Bindings.Ogre.EnumTextureType -{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-} -import HGamer3D.Bindings.Ogre.EnumPixelFormat -{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-} - - -cTmPrepare :: HG3DClass -> String -> String -> EnumTextureType -> Int -> Float -> Bool -> EnumPixelFormat -> Bool -> IO (SharedPtr) -cTmPrepare a1 a2 a3 a4 a5 a6 a7 a8 a9 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - withCString a3 $ \a3' -> - let {a4' = cIntFromEnum a4} in - let {a5' = fromIntegral a5} in - let {a6' = realToFrac a6} in - let {a7' = fromBool a7} in - let {a8' = cIntFromEnum a8} in - let {a9' = fromBool a9} in - alloca $ \a10' -> - cTmPrepare'_ a1' a2' a3' a4' a5' a6' a7' a8' a9' a10' >>= \res -> - peek a10'>>= \a10'' -> - return (a10'') -{-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-} -; -cTmLoad :: HG3DClass -> String -> String -> EnumTextureType -> Int -> Float -> Bool -> EnumPixelFormat -> Bool -> IO (SharedPtr) -cTmLoad a1 a2 a3 a4 a5 a6 a7 a8 a9 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - withCString a3 $ \a3' -> - let {a4' = cIntFromEnum a4} in - let {a5' = fromIntegral a5} in - let {a6' = realToFrac a6} in - let {a7' = fromBool a7} in - let {a8' = cIntFromEnum a8} in - let {a9' = fromBool a9} in - alloca $ \a10' -> - cTmLoad'_ a1' a2' a3' a4' a5' a6' a7' a8' a9' a10' >>= \res -> - peek a10'>>= \a10'' -> - return (a10'') -{-# LINE 83 "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 90 "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 97 "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 104 "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 112 "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 116 "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 120 "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 124 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-} -; - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs.h cTm_prepare_c" - cTmPrepare'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (CInt -> (CInt -> (CFloat -> (CInt -> (CInt -> (CInt -> ((SharedPtrPtr) -> (IO ()))))))))))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs.h cTm_load_c" - cTmLoad'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (CInt -> (CInt -> (CFloat -> (CInt -> (CInt -> (CInt -> ((SharedPtrPtr) -> (IO ()))))))))))) - -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 ()))
− HGamer3D/Bindings/Ogre/ClassTextureUnitState.hs
@@ -1,1099 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -import HGamer3D.Bindings.Ogre.EnumTextureType -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -import HGamer3D.Bindings.Ogre.EnumBindingType -{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -import HGamer3D.Bindings.Ogre.EnumContentType -{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -import HGamer3D.Bindings.Ogre.EnumPixelFormat -{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -import HGamer3D.Bindings.Ogre.TypeRadian -{-# LINE 59 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -import HGamer3D.Bindings.Ogre.EnumTextureAddressingMode -{-# LINE 60 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -import HGamer3D.Bindings.Ogre.TypeColour -{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -import HGamer3D.Bindings.Ogre.EnumLayerBlendOperationEx -{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -import HGamer3D.Bindings.Ogre.EnumLayerBlendSource -{-# LINE 63 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -import HGamer3D.Bindings.Ogre.EnumSceneBlendFactor -{-# LINE 64 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -import HGamer3D.Bindings.Ogre.EnumEnvMapType -{-# LINE 65 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -import HGamer3D.Bindings.Ogre.EnumTextureFilterOptions -{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -import HGamer3D.Bindings.Ogre.EnumFilterType -{-# LINE 67 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -import HGamer3D.Bindings.Ogre.EnumFilterOptions -{-# LINE 68 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -import HGamer3D.Bindings.Ogre.TypeSharedPtr -{-# LINE 69 "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 75 "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 80 "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 85 "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 91 "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 95 "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 99 "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 104 "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 109 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -; -cTusAddFrameTextureName :: HG3DClass -> String -> IO () -cTusAddFrameTextureName a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cTusAddFrameTextureName'_ a1' a2' >>= \res -> - return () -{-# LINE 113 "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 117 "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 121 "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 125 "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 129 "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 133 "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 137 "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 141 "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 145 "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 149 "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 153 "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 157 "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 161 "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 165 "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 169 "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 173 "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 177 "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 181 "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 185 "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 189 "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 194 "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 198 "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 202 "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 206 "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 210 "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 214 "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 218 "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 222 "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 226 "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 231 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -; -cTusSetTextureRotate :: HG3DClass -> Radians -> IO () -cTusSetTextureRotate a1 a2 = - withHG3DClass a1 $ \a1' -> - withRadians a2 $ \a2' -> - cTusSetTextureRotate'_ a1' a2' >>= \res -> - return () -{-# LINE 235 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -; -cTusGetTextureRotate :: HG3DClass -> IO (Radians) -cTusGetTextureRotate a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cTusGetTextureRotate'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 239 "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 243 "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 249 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -; -cTusSetTextureBorderColour :: HG3DClass -> Colour -> IO () -cTusSetTextureBorderColour a1 a2 = - withHG3DClass a1 $ \a1' -> - withColour a2 $ \a2' -> - cTusSetTextureBorderColour'_ a1' a2' >>= \res -> - return () -{-# LINE 253 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -; -cTusGetTextureBorderColour :: HG3DClass -> IO (Colour) -cTusGetTextureBorderColour a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cTusGetTextureBorderColour'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 257 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -; -cTusSetColourOperationEx :: HG3DClass -> EnumLayerBlendOperationEx -> EnumLayerBlendSource -> EnumLayerBlendSource -> Colour -> Colour -> 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 - withColour a5 $ \a5' -> - withColour a6 $ \a6' -> - let {a7' = realToFrac a7} in - cTusSetColourOperationEx'_ a1' a2' a3' a4' a5' a6' a7' >>= \res -> - return () -{-# LINE 266 "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 270 "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 274 "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 283 "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 288 "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 293 "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 297 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -; -cTusRemoveAllEffects :: HG3DClass -> IO () -cTusRemoveAllEffects a1 = - withHG3DClass a1 $ \a1' -> - cTusRemoveAllEffects'_ a1' >>= \res -> - return () -{-# LINE 300 "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 304 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -; -cTusSetBlank :: HG3DClass -> IO () -cTusSetBlank a1 = - withHG3DClass a1 $ \a1' -> - cTusSetBlank'_ a1' >>= \res -> - return () -{-# LINE 307 "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 311 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -; -cTusRetryTextureLoad :: HG3DClass -> IO () -cTusRetryTextureLoad a1 = - withHG3DClass a1 $ \a1' -> - cTusRetryTextureLoad'_ a1' >>= \res -> - return () -{-# LINE 314 "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 318 "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 322 "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 327 "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 333 "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 338 "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 342 "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 346 "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 350 "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 354 "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 360 "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 364 "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 368 "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 372 "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 376 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -; -cTusPrepare :: HG3DClass -> IO () -cTusPrepare a1 = - withHG3DClass a1 $ \a1' -> - cTusPrepare'_ a1' >>= \res -> - return () -{-# LINE 379 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -; -cTusUnprepare :: HG3DClass -> IO () -cTusUnprepare a1 = - withHG3DClass a1 $ \a1' -> - cTusUnprepare'_ a1' >>= \res -> - return () -{-# LINE 382 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -; -cTusLoad :: HG3DClass -> IO () -cTusLoad a1 = - withHG3DClass a1 $ \a1' -> - cTusLoad'_ a1' >>= \res -> - return () -{-# LINE 385 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -; -cTusUnload :: HG3DClass -> IO () -cTusUnload a1 = - withHG3DClass a1 $ \a1' -> - cTusUnload'_ a1' >>= \res -> - return () -{-# LINE 388 "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 392 "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 396 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -; -cTusNotifyNeedsRecompile :: HG3DClass -> IO () -cTusNotifyNeedsRecompile a1 = - withHG3DClass a1 $ \a1' -> - cTusNotifyNeedsRecompile'_ a1' >>= \res -> - return () -{-# LINE 399 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -; -cTusSetName :: HG3DClass -> String -> IO () -cTusSetName a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cTusSetName'_ a1' a2' >>= \res -> - return () -{-# LINE 403 "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 407 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -; -cTusSetTextureNameAlias :: HG3DClass -> String -> IO () -cTusSetTextureNameAlias a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cTusSetTextureNameAlias'_ a1' a2' >>= \res -> - return () -{-# LINE 411 "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 415 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -; -cTusNotifyParent :: HG3DClass -> HG3DClass -> IO () -cTusNotifyParent a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cTusNotifyParent'_ a1' a2' >>= \res -> - return () -{-# LINE 419 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -; -cTusGetTexturePtr :: HG3DClass -> IO (SharedPtr) -cTusGetTexturePtr a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cTusGetTexturePtr'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 423 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -; -cTusGetTexturePtr2 :: HG3DClass -> Int -> IO (SharedPtr) -cTusGetTexturePtr2 a1 a2 = - withHG3DClass a1 $ \a1' -> - let {a2' = fromIntegral a2} in - alloca $ \a3' -> - cTusGetTexturePtr2'_ a1' a2' a3' >>= \res -> - peek a3'>>= \a3'' -> - return (a3'') -{-# LINE 428 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -; -cTusSetTexturePtr :: HG3DClass -> SharedPtr -> IO () -cTusSetTexturePtr a1 a2 = - withHG3DClass a1 $ \a1' -> - withSharedPtr a2 $ \a2' -> - cTusSetTexturePtr'_ a1' a2' >>= \res -> - return () -{-# LINE 432 "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs" #-} -; -cTusSetTexturePtr2 :: HG3DClass -> SharedPtr -> Int -> IO () -cTusSetTexturePtr2 a1 a2 a3 = - withHG3DClass a1 $ \a1' -> - withSharedPtr a2 $ \a2' -> - let {a3' = fromIntegral a3} in - cTusSetTexturePtr2'_ a1' a2' a3' >>= \res -> - return () -{-# LINE 437 "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) -> ((RadiansPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_getTextureRotate_c" - cTusGetTextureRotate'_ :: ((HG3DClassPtr) -> ((RadiansPtr) -> (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) -> ((ColourPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_getTextureBorderColour_c" - cTusGetTextureBorderColour'_ :: ((HG3DClassPtr) -> ((ColourPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus_setColourOperationEx_c" - cTusSetColourOperationEx'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (CInt -> ((ColourPtr) -> ((ColourPtr) -> (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 ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus__getTexturePtr_c" - cTusGetTexturePtr'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus__getTexturePtr2_c" - cTusGetTexturePtr2'_ :: ((HG3DClassPtr) -> (CInt -> ((SharedPtrPtr) -> (IO ())))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus__setTexturePtr_c" - cTusSetTexturePtr'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureUnitState.chs.h cTus__setTexturePtr2_c" - cTusSetTexturePtr2'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (CInt -> (IO ()))))
+ HGamer3D/Bindings/Ogre/ClassTimeIndex.chs view
@@ -0,0 +1,63 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassTimeIndex where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}++#include "ClassTimeIndex.h"+{- function TimeIndex -}+{#fun ogre_tnx_construct as new +{ realToFrac `Float' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function hasKeyIndex -}+{#fun ogre_tnx_hasKeyIndex as hasKeyIndex +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getTimePos -}+{#fun ogre_tnx_getTimePos as getTimePos +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function getKeyIndex -}+{#fun ogre_tnx_getKeyIndex as getKeyIndex +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassTimeIndex.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassTimeIndex.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassTimeIndex.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassTimeIndex.chs" #-} - -
− HGamer3D/Bindings/Ogre/ClassTransformKeyFrame.hs
@@ -1,136 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassTransformKeyFrame.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassTransformKeyFrame.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassTransformKeyFrame.chs" #-} -import HGamer3D.Bindings.Ogre.TypeVector3 -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassTransformKeyFrame.chs" #-} -import HGamer3D.Bindings.Ogre.TypeQuaternion -{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassTransformKeyFrame.chs" #-} - - -cTkfSetTranslate :: HG3DClass -> Vector3 -> IO () -cTkfSetTranslate a1 a2 = - withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> - cTkfSetTranslate'_ a1' a2' >>= \res -> - return () -{-# LINE 62 "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 66 "HGamer3D\\Bindings\\Ogre\\ClassTransformKeyFrame.chs" #-} -; -cTkfSetScale :: HG3DClass -> Vector3 -> IO () -cTkfSetScale a1 a2 = - withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> - cTkfSetScale'_ a1' a2' >>= \res -> - return () -{-# LINE 70 "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 74 "HGamer3D\\Bindings\\Ogre\\ClassTransformKeyFrame.chs" #-} -; -cTkfSetRotation :: HG3DClass -> Quaternion -> IO () -cTkfSetRotation a1 a2 = - withHG3DClass a1 $ \a1' -> - withQuaternion a2 $ \a2' -> - cTkfSetRotation'_ a1' a2' >>= \res -> - return () -{-# LINE 78 "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 82 "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 ())))
− HGamer3D/Bindings/Ogre/ClassUnimplementedException.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassUnimplementedException.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassUnimplementedException.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassUnimplementedException.chs" #-} - -
+ HGamer3D/Bindings/Ogre/ClassVertexAnimationTrack.chs view
@@ -0,0 +1,88 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassVertexAnimationTrack where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}+{# import HGamer3D.Bindings.Ogre.EnumVertexAnimationType #}+{# import HGamer3D.Bindings.Ogre.EnumVertexAnimationTrackTargetMode #}++#include "ClassVertexAnimationTrack.h"+{- function VertexAnimationTrack -}+{#fun ogre_vat_construct as new +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ cIntFromEnum `EnumVertexAnimationType' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getAnimationType -}+{#fun ogre_vat_getAnimationType as getAnimationType +{ withHG3DClass* `HG3DClass' ,+ alloca- `EnumVertexAnimationType' peekEnumUtil*} -> `()' #}++{- function getVertexAnimationIncludesNormals -}+{#fun ogre_vat_getVertexAnimationIncludesNormals as getVertexAnimationIncludesNormals +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function apply -}+{#fun ogre_vat_apply as apply +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function setTargetMode -}+{#fun ogre_vat_setTargetMode as setTargetMode +{ withHG3DClass* `HG3DClass' ,+ cIntFromEnum `EnumVertexAnimationTrackTargetMode' } -> `()' #}++{- function getTargetMode -}+{#fun ogre_vat_getTargetMode as getTargetMode +{ withHG3DClass* `HG3DClass' ,+ alloca- `EnumVertexAnimationTrackTargetMode' peekEnumUtil*} -> `()' #}++{- function hasNonZeroKeyFrames -}+{#fun ogre_vat_hasNonZeroKeyFrames as hasNonZeroKeyFrames +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function optimise -}+{#fun ogre_vat_optimise as optimise +{ withHG3DClass* `HG3DClass' } -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassVertexAnimationTrack.hs
@@ -1,176 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs" #-} -import HGamer3D.Bindings.Ogre.EnumVertexAnimationType -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs" #-} -import HGamer3D.Bindings.Ogre.EnumTargetMode -{-# LINE 56 "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 62 "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 67 "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 72 "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 77 "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 82 "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 86 "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 90 "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 94 "HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs" #-} -; -cVantOptimise :: HG3DClass -> IO () -cVantOptimise a1 = - withHG3DClass a1 $ \a1' -> - cVantOptimise'_ a1' >>= \res -> - return () -{-# LINE 97 "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) -> (CUShort -> ((HG3DClassPtr) -> (IO ())))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs.h cVant_getVertexPoseKeyFrame_c" - cVantGetVertexPoseKeyFrame'_ :: ((HG3DClassPtr) -> (CUShort -> ((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 ()))
− HGamer3D/Bindings/Ogre/ClassVertexMorphKeyFrame.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassVertexMorphKeyFrame.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassVertexMorphKeyFrame.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassVertexMorphKeyFrame.chs" #-} - -
− HGamer3D/Bindings/Ogre/ClassVertexPoseKeyFrame.hs
@@ -1,73 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassVertexPoseKeyFrame.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassVertexPoseKeyFrame.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassVertexPoseKeyFrame.chs" #-} - - -cVpkfRemoveAllPoseReferences :: HG3DClass -> IO () -cVpkfRemoveAllPoseReferences a1 = - withHG3DClass a1 $ \a1' -> - cVpkfRemoveAllPoseReferences'_ a1' >>= \res -> - return () -{-# LINE 59 "HGamer3D\\Bindings\\Ogre\\ClassVertexPoseKeyFrame.chs" #-} -; - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassVertexPoseKeyFrame.chs.h cVpkf_removeAllPoseReferences_c" - cVpkfRemoveAllPoseReferences'_ :: ((HG3DClassPtr) -> (IO ()))
+ HGamer3D/Bindings/Ogre/ClassViewport.chs view
@@ -0,0 +1,290 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassViewport where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}+{# import HGamer3D.Bindings.Ogre.StructColour #}+{# import HGamer3D.Bindings.Ogre.EnumOrientationMode #}+{# import HGamer3D.Bindings.Ogre.StructVec2 #}++#include "ClassViewport.h"+{- function Viewport -}+{#fun ogre_vprt_construct as new +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ fromIntegral `Int' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function ~Viewport -}+{#fun ogre_vprt_destruct as delete +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function update -}+{#fun ogre_vprt_update as update +{ withHG3DClass* `HG3DClass' } -> `()' #}++{- function clear -}+{#fun ogre_vprt_clear as clear +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' ,+ withColour* `Colour' ,+ realToFrac `Float' ,+ fromIntegral `Int' } -> `()' #}++{- function getTarget -}+{#fun ogre_vprt_getTarget as getTarget +{ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function getCamera -}+{#fun ogre_vprt_getCamera as getCamera +{ withHG3DClass* `HG3DClass' ,+ alloca- `HG3DClass' peek*} -> `()' #}++{- function setCamera -}+{#fun ogre_vprt_setCamera as setCamera +{ withHG3DClass* `HG3DClass' ,+ withHG3DClass* `HG3DClass' } -> `()' #}++{- function getZOrder -}+{#fun ogre_vprt_getZOrder as getZOrder +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function getLeft -}+{#fun ogre_vprt_getLeft as getLeft +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function getTop -}+{#fun ogre_vprt_getTop as getTop +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function getWidth -}+{#fun ogre_vprt_getWidth as getWidth +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function getHeight -}+{#fun ogre_vprt_getHeight as getHeight +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function getActualLeft -}+{#fun ogre_vprt_getActualLeft as getActualLeft +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function getActualTop -}+{#fun ogre_vprt_getActualTop as getActualTop +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function getActualWidth -}+{#fun ogre_vprt_getActualWidth as getActualWidth +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function getActualHeight -}+{#fun ogre_vprt_getActualHeight as getActualHeight +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function setDimensions -}+{#fun ogre_vprt_setDimensions as setDimensions +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ realToFrac `Float' } -> `()' #}++{- function setOrientationMode -}+{#fun ogre_vprt_setOrientationMode as setOrientationMode +{ withHG3DClass* `HG3DClass' ,+ cIntFromEnum `EnumOrientationMode' ,+ fromBool `Bool' } -> `()' #}++{- function getOrientationMode -}+{#fun ogre_vprt_getOrientationMode as getOrientationMode +{ withHG3DClass* `HG3DClass' ,+ alloca- `EnumOrientationMode' peekEnumUtil*} -> `()' #}++{- function setBackgroundColour -}+{#fun ogre_vprt_setBackgroundColour as setBackgroundColour +{ withHG3DClass* `HG3DClass' ,+ withColour* `Colour' } -> `()' #}++{- function getBackgroundColour -}+{#fun ogre_vprt_getBackgroundColour as getBackgroundColour +{ withHG3DClass* `HG3DClass' ,+ alloca- `Colour' peekColour*} -> `()' #}++{- function setDepthClear -}+{#fun ogre_vprt_setDepthClear as setDepthClear +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' } -> `()' #}++{- function getDepthClear -}+{#fun ogre_vprt_getDepthClear as getDepthClear +{ withHG3DClass* `HG3DClass' ,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function setClearEveryFrame -}+{#fun ogre_vprt_setClearEveryFrame as setClearEveryFrame +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' ,+ fromIntegral `Int' } -> `()' #}++{- function getClearEveryFrame -}+{#fun ogre_vprt_getClearEveryFrame as getClearEveryFrame +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function getClearBuffers -}+{#fun ogre_vprt_getClearBuffers as getClearBuffers +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function setAutoUpdated -}+{#fun ogre_vprt_setAutoUpdated as setAutoUpdated +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function isAutoUpdated -}+{#fun ogre_vprt_isAutoUpdated as isAutoUpdated +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setMaterialScheme -}+{#fun ogre_vprt_setMaterialScheme as setMaterialScheme +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function getMaterialScheme -}+{#fun ogre_vprt_getMaterialScheme as getMaterialScheme +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function getActualDimensions -}+{#fun ogre_vprt_getActualDimensions as getActualDimensions +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*,+ alloca- `Int' peekIntConv*,+ alloca- `Int' peekIntConv*,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function setOverlaysEnabled -}+{#fun ogre_vprt_setOverlaysEnabled as setOverlaysEnabled +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getOverlaysEnabled -}+{#fun ogre_vprt_getOverlaysEnabled as getOverlaysEnabled +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setSkiesEnabled -}+{#fun ogre_vprt_setSkiesEnabled as setSkiesEnabled +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getSkiesEnabled -}+{#fun ogre_vprt_getSkiesEnabled as getSkiesEnabled +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setShadowsEnabled -}+{#fun ogre_vprt_setShadowsEnabled as setShadowsEnabled +{ withHG3DClass* `HG3DClass' ,+ fromBool `Bool' } -> `()' #}++{- function getShadowsEnabled -}+{#fun ogre_vprt_getShadowsEnabled as getShadowsEnabled +{ withHG3DClass* `HG3DClass' ,+ alloca- `Bool' peekBoolUtil*} -> `()' #}++{- function setVisibilityMask -}+{#fun ogre_vprt_setVisibilityMask as setVisibilityMask +{ withHG3DClass* `HG3DClass' ,+ fromIntegral `Int' } -> `()' #}++{- function getVisibilityMask -}+{#fun ogre_vprt_getVisibilityMask as getVisibilityMask +{ withHG3DClass* `HG3DClass' ,+ alloca- `Int' peekIntConv*} -> `()' #}++{- function setRenderQueueInvocationSequenceName -}+{#fun ogre_vprt_setRenderQueueInvocationSequenceName as setRenderQueueInvocationSequenceName +{ withHG3DClass* `HG3DClass' ,+ withCString* `String' } -> `()' #}++{- function getRenderQueueInvocationSequenceName -}+{#fun ogre_vprt_getRenderQueueInvocationSequenceName as getRenderQueueInvocationSequenceName +{ withHG3DClass* `HG3DClass' ,+ alloc64k- `String' peekCString*} -> `()' #}++{- function pointOrientedToScreen -}+{#fun ogre_vprt_pointOrientedToScreen as pointOrientedToScreen +{ withHG3DClass* `HG3DClass' ,+ withVec2* `Vec2' ,+ fromIntegral `Int' ,+ alloca- `Vec2' peekVec2*} -> `()' #}++{- function pointOrientedToScreen2 -}+{#fun ogre_vprt_pointOrientedToScreen2 as pointOrientedToScreen2 +{ withHG3DClass* `HG3DClass' ,+ realToFrac `Float' ,+ realToFrac `Float' ,+ fromIntegral `Int' ,+ alloca- `Float' peekFloatConv*,+ alloca- `Float' peekFloatConv*} -> `()' #}++{- function setDefaultOrientationMode -}+{#fun ogre_vprt_setDefaultOrientationMode as setDefaultOrientationMode +{ cIntFromEnum `EnumOrientationMode' } -> `()' #}++{- function getDefaultOrientationMode -}+{#fun ogre_vprt_getDefaultOrientationMode as getDefaultOrientationMode +{ alloca- `EnumOrientationMode' peekEnumUtil*} -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassViewport.hs
@@ -1,538 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -import HGamer3D.Bindings.Ogre.TypeColour -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -import HGamer3D.Bindings.Ogre.EnumOrientationMode -{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} - - -cVpUpdateDimensions :: HG3DClass -> IO () -cVpUpdateDimensions a1 = - withHG3DClass a1 $ \a1' -> - cVpUpdateDimensions'_ a1' >>= \res -> - return () -{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpUpdate :: HG3DClass -> IO () -cVpUpdate a1 = - withHG3DClass a1 $ \a1' -> - cVpUpdate'_ a1' >>= \res -> - return () -{-# LINE 64 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpClear :: HG3DClass -> Int -> Colour -> Float -> Int -> IO () -cVpClear a1 a2 a3 a4 a5 = - withHG3DClass a1 $ \a1' -> - let {a2' = fromIntegral a2} in - withColour a3 $ \a3' -> - let {a4' = realToFrac a4} in - let {a5' = fromIntegral a5} in - cVpClear'_ a1' a2' a3' a4' a5' >>= \res -> - return () -{-# LINE 71 "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 75 "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 79 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpSetCamera :: HG3DClass -> HG3DClass -> IO () -cVpSetCamera a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cVpSetCamera'_ a1' a2' >>= \res -> - return () -{-# LINE 83 "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 87 "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 91 "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 95 "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 99 "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 103 "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 107 "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 111 "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 115 "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 119 "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 126 "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 131 "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 135 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpSetBackgroundColour :: HG3DClass -> Colour -> IO () -cVpSetBackgroundColour a1 a2 = - withHG3DClass a1 $ \a1' -> - withColour a2 $ \a2' -> - cVpSetBackgroundColour'_ a1' a2' >>= \res -> - return () -{-# LINE 139 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpGetBackgroundColour :: HG3DClass -> IO (Colour) -cVpGetBackgroundColour a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cVpGetBackgroundColour'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 143 "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 148 "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 152 "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 156 "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 160 "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 164 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpSetMaterialScheme :: HG3DClass -> String -> IO () -cVpSetMaterialScheme a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cVpSetMaterialScheme'_ a1' a2' >>= \res -> - return () -{-# LINE 168 "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 172 "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 176 "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 180 "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 184 "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 188 "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 192 "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 196 "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 200 "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 204 "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 208 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpGetVisibilityMask :: HG3DClass -> IO (Int) -cVpGetVisibilityMask a1 = - withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cVpGetVisibilityMask'_ a1' a2' >>= \res -> - peekIntConv a2'>>= \a2'' -> - return (a2'') -{-# LINE 212 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpSetRenderQueueInvocationSequenceName :: HG3DClass -> String -> IO () -cVpSetRenderQueueInvocationSequenceName a1 a2 = - withHG3DClass a1 $ \a1' -> - withCString a2 $ \a2' -> - cVpSetRenderQueueInvocationSequenceName'_ a1' a2' >>= \res -> - return () -{-# LINE 216 "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 220 "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 224 "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 -> ((ColourPtr) -> (CFloat -> (CUShort -> (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) -> ((ColourPtr) -> (IO ()))) - -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_getBackgroundColour_c" - cVpGetBackgroundColour'_ :: ((HG3DClassPtr) -> ((ColourPtr) -> (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_getVisibilityMask_c" - cVpGetVisibilityMask'_ :: ((HG3DClassPtr) -> ((Ptr 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 ())))
− HGamer3D/Bindings/Ogre/ClassWindowEventListener.hs
@@ -1,120 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassWindowEventListener.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassWindowEventListener.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassWindowEventListener.chs" #-} - - -cWelWindowMoved :: HG3DClass -> HG3DClass -> IO () -cWelWindowMoved a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cWelWindowMoved'_ a1' a2' >>= \res -> - return () -{-# LINE 60 "HGamer3D\\Bindings\\Ogre\\ClassWindowEventListener.chs" #-} -; -cWelWindowResized :: HG3DClass -> HG3DClass -> IO () -cWelWindowResized a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cWelWindowResized'_ a1' a2' >>= \res -> - return () -{-# LINE 64 "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 69 "HGamer3D\\Bindings\\Ogre\\ClassWindowEventListener.chs" #-} -; -cWelWindowClosed :: HG3DClass -> HG3DClass -> IO () -cWelWindowClosed a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cWelWindowClosed'_ a1' a2' >>= \res -> - return () -{-# LINE 73 "HGamer3D\\Bindings\\Ogre\\ClassWindowEventListener.chs" #-} -; -cWelWindowFocusChange :: HG3DClass -> HG3DClass -> IO () -cWelWindowFocusChange a1 a2 = - withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cWelWindowFocusChange'_ a1' a2' >>= \res -> - return () -{-# LINE 77 "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 ())))
+ HGamer3D/Bindings/Ogre/ClassWindowEventUtilities.chs view
@@ -0,0 +1,47 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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++-- ++module HGamer3D.Bindings.Ogre.ClassWindowEventUtilities where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle++{# import HGamer3D.Bindings.Ogre.Utils #}+{# import HGamer3D.Bindings.Ogre.ClassPtr #}+{# import HGamer3D.Bindings.Ogre.StructHG3DClass #}++#include "ClassWindowEventUtilities.h"+{- function messagePump -}+{#fun ogre_weu_messagePump as messagePump +{ } -> `()' #}+
− HGamer3D/Bindings/Ogre/ClassWindowEventUtilities.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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.Colour -import HGamer3D.Data.Angle -import HGamer3D.Bindings.Ogre.TypeHG3DClass -{-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassWindowEventUtilities.chs" #-} -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassWindowEventUtilities.chs" #-} -import HGamer3D.Bindings.Ogre.Utils -{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassWindowEventUtilities.chs" #-} - -
− HGamer3D/Bindings/Ogre/EnumACDataType.hs
@@ -1,56 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreGpuProgramParams.h line:1037 -} -data EnumACDataType = AcdtNone - | AcdtInt - | AcdtReal - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumAbstractNodeType.hs
@@ -1,60 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreScriptCompiler.h line:75 -} -data EnumAbstractNodeType = AntUnknown - | AntAtom - | AntObject - | AntProperty - | AntImport - | AntVariableSet - | AntVariableAccess - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumAccessMode.hs
@@ -1,62 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumAlignment.hs
@@ -1,56 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreTextAreaOverlayElement.h line:46 -} -data EnumAlignment = Left - | Right - | Center - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumAngleUnit.hs
@@ -1,55 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreMath.h line:198 -} -data EnumAngleUnit = AuDegree - | AuRadian - deriving (Enum,Eq)
+ HGamer3D/Bindings/Ogre/EnumAnimationInterpolationMode.chs view
@@ -0,0 +1,41 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- EnumAnimationInterpolationMode.chs++-- ++module HGamer3D.Bindings.Ogre.EnumAnimationInterpolationMode where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "EnumAnimationInterpolationMode.h"+{#enum EnumAnimationInterpolationMode {} deriving (Eq)#}
+ HGamer3D/Bindings/Ogre/EnumAnimationRotationInterpolationMode.chs view
@@ -0,0 +1,41 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- EnumAnimationRotationInterpolationMode.chs++-- ++module HGamer3D.Bindings.Ogre.EnumAnimationRotationInterpolationMode where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "EnumAnimationRotationInterpolationMode.h"+{#enum EnumAnimationRotationInterpolationMode {} deriving (Eq)#}
− HGamer3D/Bindings/Ogre/EnumAutoConstantType.hs
@@ -1,180 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
+ HGamer3D/Bindings/Ogre/EnumAxisAlignedBoxCorner.chs view
@@ -0,0 +1,41 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- EnumAxisAlignedBoxCorner.chs++-- ++module HGamer3D.Bindings.Ogre.EnumAxisAlignedBoxCorner where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "EnumAxisAlignedBoxCorner.h"+{#enum EnumAxisAlignedBoxCorner {} deriving (Eq)#}
+ HGamer3D/Bindings/Ogre/EnumAxisAlignedBoxExtent.chs view
@@ -0,0 +1,41 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- EnumAxisAlignedBoxExtent.chs++-- ++module HGamer3D.Bindings.Ogre.EnumAxisAlignedBoxExtent where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "EnumAxisAlignedBoxExtent.h"+{#enum EnumAxisAlignedBoxExtent {} deriving (Eq)#}
+ HGamer3D/Bindings/Ogre/EnumBillboardChainTexCoordDirection.chs view
@@ -0,0 +1,41 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- EnumBillboardChainTexCoordDirection.chs++-- ++module HGamer3D.Bindings.Ogre.EnumBillboardChainTexCoordDirection where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "EnumBillboardChainTexCoordDirection.h"+{#enum EnumBillboardChainTexCoordDirection {} deriving (Eq)#}
+ HGamer3D/Bindings/Ogre/EnumBillboardOrigin.chs view
@@ -0,0 +1,41 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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.chs++-- ++module HGamer3D.Bindings.Ogre.EnumBillboardOrigin where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "EnumBillboardOrigin.h"+{#enum EnumBillboardOrigin {} deriving (Eq)#}
− HGamer3D/Bindings/Ogre/EnumBillboardOrigin.hs
@@ -1,62 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreBillboardSet.h line:53 -} -data EnumBillboardOrigin = BboTopLeft - | BboTopCenter - | BboTopRight - | BboCenterLeft - | BboCenter - | BboCenterRight - | BboBottomLeft - | BboBottomCenter - | BboBottomRight - deriving (Enum,Eq)
+ HGamer3D/Bindings/Ogre/EnumBillboardRotationType.chs view
@@ -0,0 +1,41 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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.chs++-- ++module HGamer3D.Bindings.Ogre.EnumBillboardRotationType where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "EnumBillboardRotationType.h"+{#enum EnumBillboardRotationType {} deriving (Eq)#}
− HGamer3D/Bindings/Ogre/EnumBillboardRotationType.hs
@@ -1,55 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreBillboardSet.h line:66 -} -data EnumBillboardRotationType = BbrVertex - | BbrTexcoord - deriving (Enum,Eq)
+ HGamer3D/Bindings/Ogre/EnumBillboardType.chs view
@@ -0,0 +1,41 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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.chs++-- ++module HGamer3D.Bindings.Ogre.EnumBillboardType where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "EnumBillboardType.h"+{#enum EnumBillboardType {} deriving (Eq)#}
− HGamer3D/Bindings/Ogre/EnumBillboardType.hs
@@ -1,58 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreBillboardSet.h line:74 -} -data EnumBillboardType = BbtPoint - | BbtOrientedCommon - | BbtOrientedSelf - | BbtPerpendicularCommon - | BbtPerpendicularSelf - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumBindingType.hs
@@ -1,62 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumBorderCellIndex.hs
@@ -1,80 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumBoxPlane.hs
@@ -1,74 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumBufferLicenseType.hs
@@ -1,55 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreHardwareBufferManager.h line:153 -} -data EnumBufferLicenseType = BltManualRelease - | BltAutomaticRelease - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumBufferType.hs
@@ -1,57 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreUTFString.h line:970 -} -data EnumBufferType = BtNone - | BtString - | BtWstring - | BtUtf32string - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumBuiltinHashFunction.hs
@@ -1,55 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgrePass.h line:1605 -} -data EnumBuiltinHashFunction = MinTextureChange - | MinGpuProgramChange - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumCacheType.hs
@@ -1,55 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreVertexIndexData.h line:285 -} -data EnumCacheType = Fifo - | Lru - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumCapabilitiesCategory.hs
@@ -1,71 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumCapabilityKeywordType.hs
@@ -1,77 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumClipResult.hs
@@ -1,65 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumCompareFunction.hs
@@ -1,61 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreCommon.h line:65 -} -data EnumCompareFunction = CmpfAlwaysFail - | CmpfAlwaysPass - | CmpfLess - | CmpfLessEqual - | CmpfEqual - | CmpfNotEqual - | CmpfGreaterEqual - | CmpfGreater - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumConcreteNodeType.hs
@@ -1,61 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreScriptCompiler.h line:48 -} -data EnumConcreteNodeType = CntVariable - | CntVariableAssign - | CntWord - | CntImport - | CntQuote - | CntLbrace - | CntRbrace - | CntColon - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumContentType.hs
@@ -1,65 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumCpuFeatures.hs
@@ -1,95 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumCullingMode.hs
@@ -1,65 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
+ HGamer3D/Bindings/Ogre/EnumDataStreamAccessMode.chs view
@@ -0,0 +1,41 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- EnumDataStreamAccessMode.chs++-- ++module HGamer3D.Bindings.Ogre.EnumDataStreamAccessMode where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "EnumDataStreamAccessMode.h"+{#enum EnumDataStreamAccessMode {} deriving (Eq)#}
− HGamer3D/Bindings/Ogre/EnumDisplayMode.hs
@@ -1,55 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreProfiler.h line:229 -} -data EnumDisplayMode = DisplayPercentage - | DisplayMilliseconds - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumElementType.hs
@@ -1,55 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreGpuProgramParams.h line:1048 -} -data EnumElementType = EtInt - | EtReal - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumEndian.hs
@@ -1,56 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreStreamSerialiser.h line:70 -} -data EnumEndian = EndianAuto - | EndianBig - | EndianLittle - deriving (Enum,Eq)
+ HGamer3D/Bindings/Ogre/EnumEntityVertexDataBindChoice.chs view
@@ -0,0 +1,41 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- EnumEntityVertexDataBindChoice.chs++-- ++module HGamer3D.Bindings.Ogre.EnumEntityVertexDataBindChoice where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "EnumEntityVertexDataBindChoice.h"+{#enum EnumEntityVertexDataBindChoice {} deriving (Eq)#}
− HGamer3D/Bindings/Ogre/EnumEnvMapType.hs
@@ -1,57 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreTextureUnitState.h line:94 -} -data EnumEnvMapType = EnvPlanar - | EnvCurved - | EnvReflection - | EnvNormal - deriving (Enum,Eq)
+ HGamer3D/Bindings/Ogre/EnumExceptionCode.chs view
@@ -0,0 +1,41 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- EnumExceptionCode.chs++-- ++module HGamer3D.Bindings.Ogre.EnumExceptionCode where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "EnumExceptionCode.h"+{#enum EnumExceptionCode {} deriving (Eq)#}
− HGamer3D/Bindings/Ogre/EnumExceptionCodes.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreException.h line:108 -} -data EnumExceptionCodes = ErrCannotWriteToFile - | ErrInvalidState - | ErrInvalidparams - | ErrRenderingapiError - | ErrDuplicateItem - | ErrItemNotFound - | ErrFileNotFound - | ErrInternalError - | ErrRtAssertionFailed - | ErrNotImplemented - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumExtent.hs
@@ -1,56 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreAxisAlignedBox.h line:57 -} -data EnumExtent = ExtentNull - | ExtentFinite - | ExtentInfinite - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumFaceGroupType.hs
@@ -1,56 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreStaticFaceGroup.h line:45 -} -data EnumFaceGroupType = FgtFaceList - | FgtPatch - | FgtUnknown - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumFilter.hs
@@ -1,59 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreImage.h line:450 -} -data EnumFilter = FilterNearest - | FilterLinear - | FilterBilinear - | FilterBox - | FilterTriangle - | FilterBicubic - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumFilterOptions.hs
@@ -1,57 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreCommon.h line:101 -} -data EnumFilterOptions = FoNone - | FoPoint - | FoLinear - | FoAnisotropic - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumFilterType.hs
@@ -1,56 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreCommon.h line:91 -} -data EnumFilterType = FtMin - | FtMag - | FtMip - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumFogMode.hs
@@ -1,57 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreCommon.h line:122 -} -data EnumFogMode = FogNone - | FogExp - | FogExp2 - | FogLinear - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumFontType.hs
@@ -1,62 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumFrameBuffer.hs
@@ -1,56 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreRenderTarget.h line:90 -} -data EnumFrameBuffer = FbFront - | FbBack - | FbAuto - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumFrameBufferType.hs
@@ -1,65 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumFrameEventTimeType.hs
@@ -1,71 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
+ HGamer3D/Bindings/Ogre/EnumFrustumPlane.chs view
@@ -0,0 +1,41 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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.chs++-- ++module HGamer3D.Bindings.Ogre.EnumFrustumPlane where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "EnumFrustumPlane.h"+{#enum EnumFrustumPlane {} deriving (Eq)#}
− HGamer3D/Bindings/Ogre/EnumFrustumPlane.hs
@@ -1,74 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumGPUVendor.hs
@@ -1,92 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumGpuConstantType.hs
@@ -1,128 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumGpuParamVariability.hs
@@ -1,71 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
+ HGamer3D/Bindings/Ogre/EnumGpuProgramType.chs view
@@ -0,0 +1,41 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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.chs++-- ++module HGamer3D.Bindings.Ogre.EnumGpuProgramType where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "EnumGpuProgramType.h"+{#enum EnumGpuProgramType {} deriving (Eq)#}
− HGamer3D/Bindings/Ogre/EnumGpuProgramType.hs
@@ -1,56 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreGpuProgram.h line:49 -} -data EnumGpuProgramType = GptVertexProgram - | GptFragmentProgram - | GptGeometryProgram - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumGuiHorizontalAlignment.hs
@@ -1,56 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreOverlayElement.h line:72 -} -data EnumGuiHorizontalAlignment = GhaLeft - | GhaCenter - | GhaRight - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumGuiMetricsMode.hs
@@ -1,56 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreOverlayElement.h line:59 -} -data EnumGuiMetricsMode = GmmRelative - | GmmPixels - | GmmRelativeAspectAdjusted - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumGuiVerticalAlignment.hs
@@ -1,56 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreOverlayElement.h line:81 -} -data EnumGuiVerticalAlignment = GvaTop - | GvaCenter - | GvaBottom - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumIlluminationPassesState.hs
@@ -1,65 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumIlluminationRenderStage.hs
@@ -1,56 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreSceneManager.h line:169 -} -data EnumIlluminationRenderStage = IrsNone - | IrsRenderToTexture - | IrsRenderReceiverPass - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumIlluminationStage.hs
@@ -1,57 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgrePass.h line:49 -} -data EnumIlluminationStage = IsAmbient - | IsPerLight - | IsDecal - | IsUnknown - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumImageFlags.hs
@@ -1,65 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumIncludeOrExclude.hs
@@ -1,62 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumIndexType.hs
@@ -1,55 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreHardwareIndexBuffer.h line:49 -} -data EnumIndexType = It16bit - | It32bit - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumInputMode.hs
@@ -1,55 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreCompositionTargetPass.h line:52 -} -data EnumInputMode = ImNone - | ImPrevious - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumInterpolationMode.hs
@@ -1,55 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreAnimation.h line:63 -} -data EnumInterpolationMode = ImLinear - | ImSpline - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumLayerBlendOperation.hs
@@ -1,57 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreBlendMode.h line:57 -} -data EnumLayerBlendOperation = LboReplace - | LboAdd - | LboModulate - | LboAlphaBlend - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumLayerBlendOperationEx.hs
@@ -1,68 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumLayerBlendSource.hs
@@ -1,58 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreBlendMode.h line:112 -} -data EnumLayerBlendSource = LbsCurrent - | LbsTexture - | LbsDiffuse - | LbsSpecular - | LbsManual - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumLayerBlendType.hs
@@ -1,55 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreBlendMode.h line:44 -} -data EnumLayerBlendType = LbtColour - | LbtAlpha - deriving (Enum,Eq)
+ HGamer3D/Bindings/Ogre/EnumLightType.chs view
@@ -0,0 +1,41 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- EnumLightType.chs++-- ++module HGamer3D.Bindings.Ogre.EnumLightType where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "EnumLightType.h"+{#enum EnumLightType {} deriving (Eq)#}
− HGamer3D/Bindings/Ogre/EnumLightTypes.hs
@@ -1,65 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumLoadingState.hs
@@ -1,59 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreResource.h line:125 -} -data EnumLoadingState = LoadstateUnloaded - | LoadstateLoading - | LoadstateLoaded - | LoadstateUnloading - | LoadstatePrepared - | LoadstatePreparing - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumLockOptions.hs
@@ -1,57 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreHardwareBuffer.h line:120 -} -data EnumLockOptions = HblNormal - | HblDiscard - | HblReadOnly - | HblNoOverwrite - deriving (Enum,Eq)
+ HGamer3D/Bindings/Ogre/EnumLogMessageLevel.chs view
@@ -0,0 +1,41 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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.chs++-- ++module HGamer3D.Bindings.Ogre.EnumLogMessageLevel where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "EnumLogMessageLevel.h"+{#enum EnumLogMessageLevel {} deriving (Eq)#}
− HGamer3D/Bindings/Ogre/EnumLogMessageLevel.hs
@@ -1,65 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
+ HGamer3D/Bindings/Ogre/EnumLoggingLevel.chs view
@@ -0,0 +1,41 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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.chs++-- ++module HGamer3D.Bindings.Ogre.EnumLoggingLevel where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "EnumLoggingLevel.h"+{#enum EnumLoggingLevel {} deriving (Eq)#}
− HGamer3D/Bindings/Ogre/EnumLoggingLevel.hs
@@ -1,65 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumManualCullingMode.hs
@@ -1,65 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumMaterialScriptSection.hs
@@ -1,62 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreMaterialSerializer.h line:47 -} -data EnumMaterialScriptSection = MssNone - | MssMaterial - | MssTechnique - | MssPass - | MssTextureunit - | MssProgramRef - | MssProgram - | MssDefaultParameters - | MssTexturesource - deriving (Enum,Eq)
+ HGamer3D/Bindings/Ogre/EnumMathAngleUnit.chs view
@@ -0,0 +1,41 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- EnumMathAngleUnit.chs++-- ++module HGamer3D.Bindings.Ogre.EnumMathAngleUnit where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "EnumMathAngleUnit.h"+{#enum EnumMathAngleUnit {} deriving (Eq)#}
− HGamer3D/Bindings/Ogre/EnumMemoryCategory.hs
@@ -1,83 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumMeshBuildType.hs
@@ -1,56 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreMeshManager.h line:444 -} -data EnumMeshBuildType = MbtPlane - | MbtCurvedIllusionPlane - | MbtCurvedPlane - deriving (Enum,Eq)
+ HGamer3D/Bindings/Ogre/EnumMeshManagerMeshBuildType.chs view
@@ -0,0 +1,41 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- EnumMeshManagerMeshBuildType.chs++-- ++module HGamer3D.Bindings.Ogre.EnumMeshManagerMeshBuildType where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "EnumMeshManagerMeshBuildType.h"+{#enum EnumMeshManagerMeshBuildType {} deriving (Eq)#}
+ HGamer3D/Bindings/Ogre/EnumNodeTransformSpace.chs view
@@ -0,0 +1,41 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- EnumNodeTransformSpace.chs++-- ++module HGamer3D.Bindings.Ogre.EnumNodeTransformSpace where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "EnumNodeTransformSpace.h"+{#enum EnumNodeTransformSpace {} deriving (Eq)#}
− HGamer3D/Bindings/Ogre/EnumOperationType.hs
@@ -1,74 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumOrganisationMode.hs
@@ -1,65 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
+ HGamer3D/Bindings/Ogre/EnumOrientationMode.chs view
@@ -0,0 +1,41 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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.chs++-- ++module HGamer3D.Bindings.Ogre.EnumOrientationMode where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "EnumOrientationMode.h"+{#enum EnumOrientationMode {} deriving (Eq)#}
− HGamer3D/Bindings/Ogre/EnumOrientationMode.hs
@@ -1,77 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumParameterType.hs
@@ -1,67 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumParseAction.hs
@@ -1,56 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreRenderSystemCapabilitiesSerializer.h line:109 -} -data EnumParseAction = ParseHeader - | FindOpenBrace - | CollectLines - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumParticleType.hs
@@ -1,55 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreParticle.h line:69 -} -data EnumParticleType = Visual - | Emitter - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumPassType.hs
@@ -1,58 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreCompositionPass.h line:54 -} -data EnumPassType = PtClear - | PtStencil - | PtRenderscene - | PtRenderquad - | PtRendercustom - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumPatchSurfaceType.hs
@@ -1,54 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgrePatchSurface.h line:58 -} -data EnumPatchSurfaceType = PstBezier - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumPixelComponentType.hs
@@ -1,71 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumPixelFormat.hs
@@ -1,206 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumPixelFormatFlags.hs
@@ -1,74 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumPolygonMode.hs
@@ -1,65 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumPrefabType.hs
@@ -1,56 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreSceneManager.h line:1317 -} -data EnumPrefabType = PtPlane - | PtCube - | PtSphere - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumProfileGroupMask.hs
@@ -1,71 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumPrograms.hs
@@ -1,80 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
+ HGamer3D/Bindings/Ogre/EnumProjectionType.chs view
@@ -0,0 +1,41 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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.chs++-- ++module HGamer3D.Bindings.Ogre.EnumProjectionType where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "EnumProjectionType.h"+{#enum EnumProjectionType {} deriving (Eq)#}
− HGamer3D/Bindings/Ogre/EnumProjectionType.hs
@@ -1,55 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreFrustum.h line:62 -} -data EnumProjectionType = PtOrthographic - | PtPerspective - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumRealStorageFormat.hs
@@ -1,55 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreStreamSerialiser.h line:81 -} -data EnumRealStorageFormat = RealFloat - | RealDouble - deriving (Enum,Eq)
+ HGamer3D/Bindings/Ogre/EnumRenderOperationOperationType.chs view
@@ -0,0 +1,41 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- EnumRenderOperationOperationType.chs++-- ++module HGamer3D.Bindings.Ogre.EnumRenderOperationOperationType where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "EnumRenderOperationOperationType.h"+{#enum EnumRenderOperationOperationType {} deriving (Eq)#}
− HGamer3D/Bindings/Ogre/EnumRenderQueueGroupID.hs
@@ -1,104 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
+ HGamer3D/Bindings/Ogre/EnumRenderTargetFrameBuffer.chs view
@@ -0,0 +1,41 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- EnumRenderTargetFrameBuffer.chs++-- ++module HGamer3D.Bindings.Ogre.EnumRenderTargetFrameBuffer where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "EnumRenderTargetFrameBuffer.h"+{#enum EnumRenderTargetFrameBuffer {} deriving (Eq)#}
+ HGamer3D/Bindings/Ogre/EnumRenderTargetStatFlags.chs view
@@ -0,0 +1,41 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- EnumRenderTargetStatFlags.chs++-- ++module HGamer3D.Bindings.Ogre.EnumRenderTargetStatFlags where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "EnumRenderTargetStatFlags.h"+{#enum EnumRenderTargetStatFlags {} deriving (Eq)#}
− HGamer3D/Bindings/Ogre/EnumRequestType.hs
@@ -1,80 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumResourceType.hs
@@ -1,57 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreScriptCompiler.h line:477 -} -data EnumResourceType = Texture - | Material - | GpuProgram - | Compositor - deriving (Enum,Eq)
+ HGamer3D/Bindings/Ogre/EnumRootFrameEventTimeType.chs view
@@ -0,0 +1,41 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- EnumRootFrameEventTimeType.chs++-- ++module HGamer3D.Bindings.Ogre.EnumRootFrameEventTimeType where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "EnumRootFrameEventTimeType.h"+{#enum EnumRootFrameEventTimeType {} deriving (Eq)#}
− HGamer3D/Bindings/Ogre/EnumRotationInterpolationMode.hs
@@ -1,55 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreAnimation.h line:72 -} -data EnumRotationInterpolationMode = RimLinear - | RimSpherical - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumSceneBlendFactor.hs
@@ -1,63 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreBlendMode.h line:234 -} -data EnumSceneBlendFactor = SbfOne - | SbfZero - | SbfDestColour - | SbfSourceColour - | SbfOneMinusDestColour - | SbfOneMinusSourceColour - | SbfDestAlpha - | SbfSourceAlpha - | SbfOneMinusDestAlpha - | SbfOneMinusSourceAlpha - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumSceneBlendOperation.hs
@@ -1,58 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreBlendMode.h line:253 -} -data EnumSceneBlendOperation = SboAdd - | SboSubtract - | SboReverseSubtract - | SboMin - | SboMax - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumSceneBlendType.hs
@@ -1,58 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreBlendMode.h line:215 -} -data EnumSceneBlendType = SbtTransparentAlpha - | SbtTransparentColour - | SbtAdd - | SbtModulate - | SbtReplace - deriving (Enum,Eq)
+ HGamer3D/Bindings/Ogre/EnumSceneManagerBoxPlane.chs view
@@ -0,0 +1,41 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- EnumSceneManagerBoxPlane.chs++-- ++module HGamer3D.Bindings.Ogre.EnumSceneManagerBoxPlane where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "EnumSceneManagerBoxPlane.h"+{#enum EnumSceneManagerBoxPlane {} deriving (Eq)#}
+ HGamer3D/Bindings/Ogre/EnumSceneManagerIlluminationRenderStage.chs view
@@ -0,0 +1,41 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- EnumSceneManagerIlluminationRenderStage.chs++-- ++module HGamer3D.Bindings.Ogre.EnumSceneManagerIlluminationRenderStage where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "EnumSceneManagerIlluminationRenderStage.h"+{#enum EnumSceneManagerIlluminationRenderStage {} deriving (Eq)#}
+ HGamer3D/Bindings/Ogre/EnumSceneManagerPrefabType.chs view
@@ -0,0 +1,41 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- EnumSceneManagerPrefabType.chs++-- ++module HGamer3D.Bindings.Ogre.EnumSceneManagerPrefabType where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "EnumSceneManagerPrefabType.h"+{#enum EnumSceneManagerPrefabType {} deriving (Eq)#}
+ HGamer3D/Bindings/Ogre/EnumSceneManagerSpecialCaseRenderQueueMode.chs view
@@ -0,0 +1,41 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- EnumSceneManagerSpecialCaseRenderQueueMode.chs++-- ++module HGamer3D.Bindings.Ogre.EnumSceneManagerSpecialCaseRenderQueueMode where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "EnumSceneManagerSpecialCaseRenderQueueMode.h"+{#enum EnumSceneManagerSpecialCaseRenderQueueMode {} deriving (Eq)#}
+ HGamer3D/Bindings/Ogre/EnumSceneType.chs view
@@ -0,0 +1,41 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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.chs++-- ++module HGamer3D.Bindings.Ogre.EnumSceneType where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "EnumSceneType.h"+{#enum EnumSceneType {} deriving (Eq)#}
− HGamer3D/Bindings/Ogre/EnumSceneType.hs
@@ -1,71 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumSerializeEvent.hs
@@ -1,57 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreMaterialSerializer.h line:109 -} -data EnumSerializeEvent = MsePreWrite - | MseWriteBegin - | MseWriteEnd - | MsePostWrite - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumShadeOptions.hs
@@ -1,56 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreCommon.h line:114 -} -data EnumShadeOptions = SoFlat - | SoGouraud - | SoPhong - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumShadowRenderableFlags.hs
@@ -1,65 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumShadowTechnique.hs
@@ -1,92 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
@@ -1,56 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreSharedPtr.h line:42 -} -data EnumSharedPtrFreeMethod = SpfmDelete - | SpfmDeleteT - | SpfmFree - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumSide.hs
@@ -1,57 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgrePlane.h line:80 -} -data EnumSide = NoSide - | PositiveSide - | NegativeSide - | BothSide - deriving (Enum,Eq)
+ HGamer3D/Bindings/Ogre/EnumSkeletonAnimationBlendMode.chs view
@@ -0,0 +1,41 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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.chs++-- ++module HGamer3D.Bindings.Ogre.EnumSkeletonAnimationBlendMode where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "EnumSkeletonAnimationBlendMode.h"+{#enum EnumSkeletonAnimationBlendMode {} deriving (Eq)#}
− HGamer3D/Bindings/Ogre/EnumSkeletonAnimationBlendMode.hs
@@ -1,55 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreSkeleton.h line:48 -} -data EnumSkeletonAnimationBlendMode = AnimblendAverage - | AnimblendCumulative - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumSkeletonChunkID.hs
@@ -1,77 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumSortMode.hs
@@ -1,55 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreCommon.h line:287 -} -data EnumSortMode = SmDirection - | SmDistance - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumSpecialCaseRenderQueueMode.hs
@@ -1,55 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreSceneManager.h line:183 -} -data EnumSpecialCaseRenderQueueMode = ScrqmInclude - | ScrqmExclude - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumStatFlags.hs
@@ -1,77 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumStatus.hs
@@ -1,71 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
+ HGamer3D/Bindings/Ogre/EnumStencilOperation.chs view
@@ -0,0 +1,41 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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.chs++-- ++module HGamer3D.Bindings.Ogre.EnumStencilOperation where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "EnumStencilOperation.h"+{#enum EnumStencilOperation {} deriving (Eq)#}
− HGamer3D/Bindings/Ogre/EnumStencilOperation.hs
@@ -1,61 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreRenderSystem.h line:77 -} -data EnumStencilOperation = SopKeep - | SopZero - | SopReplace - | SopIncrement - | SopDecrement - | SopIncrementWrap - | SopDecrementWrap - | SopInvert - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumTargetMode.hs
@@ -1,55 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreAnimationTrack.h line:478 -} -data EnumTargetMode = TmSoftware - | TmHardware - deriving (Enum,Eq)
+ HGamer3D/Bindings/Ogre/EnumTexCoordCalcMethod.chs view
@@ -0,0 +1,41 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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.chs++-- ++module HGamer3D.Bindings.Ogre.EnumTexCoordCalcMethod where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "EnumTexCoordCalcMethod.h"+{#enum EnumTexCoordCalcMethod {} deriving (Eq)#}
− HGamer3D/Bindings/Ogre/EnumTexCoordCalcMethod.hs
@@ -1,59 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreRenderSystem.h line:63 -} -data EnumTexCoordCalcMethod = TexcalcNone - | TexcalcEnvironmentMap - | TexcalcEnvironmentMapPlanar - | TexcalcEnvironmentMapReflection - | TexcalcEnvironmentMapNormal - | TexcalcProjectiveTexture - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumTexCoordDirection.hs
@@ -1,55 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreBillboardChain.h line:147 -} -data EnumTexCoordDirection = TcdU - | TcdV - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumTextureAddressingMode.hs
@@ -1,57 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreTextureUnitState.h line:125 -} -data EnumTextureAddressingMode = TamWrap - | TamMirror - | TamClamp - | TamBorder - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumTextureCubeFace.hs
@@ -1,74 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumTextureEffectType.hs
@@ -1,60 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreTextureUnitState.h line:70 -} -data EnumTextureEffectType = EtEnvironmentMap - | EtProjectiveTexture - | EtUvscroll - | EtUscroll - | EtVscroll - | EtRotate - | EtTransform - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumTextureFilterOptions.hs
@@ -1,57 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreCommon.h line:79 -} -data EnumTextureFilterOptions = TfoNone - | TfoBilinear - | TfoTrilinear - | TfoAnisotropic - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumTextureMipmap.hs
@@ -1,62 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumTextureScope.hs
@@ -1,56 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreCompositionTechnique.h line:51 -} -data EnumTextureScope = TsLocal - | TsChain - | TsGlobal - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumTextureTransformType.hs
@@ -1,58 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreTextureUnitState.h line:111 -} -data EnumTextureTransformType = TtTranslateU - | TtTranslateV - | TtScaleU - | TtScaleV - | TtRotate - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumTextureType.hs
@@ -1,68 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumTrackVertexColourEnum.hs
@@ -1,71 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumTransformSpace.hs
@@ -1,56 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreNode.h line:67 -} -data EnumTransformSpace = TsLocal - | TsParent - | TsWorld - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumUsage.hs
@@ -1,77 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumValueType.hs
@@ -1,62 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreAnimable.h line:75 -} -data EnumValueType = Int - | Real - | Vector2 - | Vector3 - | Vector4 - | Quaternion - | Colour - | Radian - | Degree - deriving (Enum,Eq)
+ HGamer3D/Bindings/Ogre/EnumVertexAnimationTrackTargetMode.chs view
@@ -0,0 +1,41 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- EnumVertexAnimationTrackTargetMode.chs++-- ++module HGamer3D.Bindings.Ogre.EnumVertexAnimationTrackTargetMode where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "EnumVertexAnimationTrackTargetMode.h"+{#enum EnumVertexAnimationTrackTargetMode {} deriving (Eq)#}
+ HGamer3D/Bindings/Ogre/EnumVertexAnimationType.chs view
@@ -0,0 +1,41 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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.chs++-- ++module HGamer3D.Bindings.Ogre.EnumVertexAnimationType where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "EnumVertexAnimationType.h"+{#enum EnumVertexAnimationType {} deriving (Eq)#}
− HGamer3D/Bindings/Ogre/EnumVertexAnimationType.hs
@@ -1,65 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumVertexDataBindChoice.hs
@@ -1,57 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreEntity.h line:716 -} -data EnumVertexDataBindChoice = BindOriginal - | BindSoftwareSkeletal - | BindSoftwareMorph - | BindHardwareMorph - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumVertexElementSemantic.hs
@@ -1,83 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumVertexElementType.hs
@@ -1,92 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
− HGamer3D/Bindings/Ogre/EnumVertexReductionQuota.hs
@@ -1,55 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreProgressiveMesh.h line:69 -} -data EnumVertexReductionQuota = VrqConstant - | VrqProportional - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumVisibleSide.hs
@@ -1,56 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgrePatchSurface.h line:70 -} -data EnumVisibleSide = VsFront - | VsBack - | VsBoth - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumWaveformType.hs
@@ -1,59 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreCommon.h line:162 -} -data EnumWaveformType = WftSine - | WftTriangle - | WftSquare - | WftSawtooth - | WftInverseSawtooth - | WftPwm - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumWorldFragmentType.hs
@@ -1,58 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/include/OGRE\OgreSceneQuery.h line:82 -} -data EnumWorldFragmentType = WftNone - | WftPlaneBoundedRegion - | WftSingleIntersection - | WftCustomGeometry - | WftRenderOperation - deriving (Enum,Eq)
− HGamer3D/Bindings/Ogre/EnumeTexturePlayMode.hs
@@ -1,65 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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: "Dep-OgreSDK/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 Dep-OgreSDK/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)
+ HGamer3D/Bindings/Ogre/StructColour.chs view
@@ -0,0 +1,67 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- StructColour.chs++-- ++module HGamer3D.Bindings.Ogre.StructColour where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "StructColour.h"++import Data.Bits+import HGamer3D.Data.Colour++instance Storable Colour where+ alignment _ = alignment (undefined :: CDouble)+ sizeOf _ = {#sizeof colourvalue_struct#}+ peek p = do+ r <- {#get colourvalue_struct.r #} p+ g <- {#get colourvalue_struct.g #} p+ b <- {#get colourvalue_struct.b #} p+ a <- {#get colourvalue_struct.a #} p+ let cv = Colour (realToFrac r) (realToFrac g) (realToFrac b) (realToFrac a)+ return cv+ poke p (Colour r g b a) = do+ {#set colourvalue_struct.r #} p (realToFrac r)+ {#set colourvalue_struct.g #} p (realToFrac g)+ {#set colourvalue_struct.b #} p (realToFrac b)+ {#set colourvalue_struct.a #} p (realToFrac a)+ +{#pointer *colourvalue_struct as ColourPtr -> Colour #}++withColour :: Colour -> (ColourPtr -> IO b) -> IO b+withColour = with+peekColour :: ColourPtr -> IO Colour+peekColour = peek+
+ HGamer3D/Bindings/Ogre/StructDegrees.chs view
@@ -0,0 +1,61 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- StructDegrees.chs++-- ++module HGamer3D.Bindings.Ogre.StructDegrees where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "StructDegrees.h"++import Data.Bits+import HGamer3D.Data.Angle++instance Storable Degrees where+ alignment _ = alignment (undefined :: CDouble)+ sizeOf _ = {#sizeof degree_struct#}+ peek p = do+ d <- {#get degree_struct.d #} p+ let de = Degrees (realToFrac d)+ return de+ poke p (Degrees d) = do+ {#set degree_struct.d #} p (realToFrac d)+ +{#pointer *degree_struct as DegreesPtr -> Degrees #}++withDegrees :: Degrees -> (DegreesPtr -> IO b) -> IO b+withDegrees = with+peekDegrees :: DegreesPtr -> IO Degrees+peekDegrees = peek+
+ HGamer3D/Bindings/Ogre/StructHG3DClass.chs view
@@ -0,0 +1,54 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- StructHG3DClass.chs++-- ++module HGamer3D.Bindings.Ogre.StructHG3DClass where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "StructHG3DClass.h"++import Data.Bits+import HGamer3D.Data.HG3DClass++{#pointer *hg3dclass_struct as HG3DClassPtr -> HG3DClass #}++withHG3DClass :: HG3DClass -> (HG3DClassPtr -> IO b) -> IO b+withHG3DClass = with++peekHG3DClass :: HG3DClassPtr -> IO HG3DClass+peekHG3DClass = peek+++
+ HGamer3D/Bindings/Ogre/StructQuaternion.chs view
@@ -0,0 +1,76 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- StructQuaternion.chs++-- ++module HGamer3D.Bindings.Ogre.StructQuaternion where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "StructQuaternion.h"++import Data.Bits+import HGamer3D.Data.Vector++newtype Quat = Quat Quaternion++instance Storable Quat where+ alignment _ = alignment (undefined :: CDouble)+ sizeOf _ = {#sizeof quaternion_struct#}+ peek p = do+ fw <- {#get quaternion_struct.fw #} p+ fx <- {#get quaternion_struct.fx #} p+ fy <- {#get quaternion_struct.fy #} p+ fz <- {#get quaternion_struct.fz #} p+ let q = Quat ( Q (Vec4 (realToFrac fw) (realToFrac fx) (realToFrac fy) (realToFrac fz) ))+ return q+ poke p (Quat (Q ( Vec4 w x y z))) = do+ {#set quaternion_struct.fw #} p (realToFrac w)+ {#set quaternion_struct.fx #} p (realToFrac x)+ {#set quaternion_struct.fy #} p (realToFrac y)+ {#set quaternion_struct.fz #} p (realToFrac z)+ +type QuatPtr = Ptr (Quat)++{#pointer *quaternion_struct as QuaternionPtr -> Quaternion #}++withQuaternion :: Quaternion -> (QuaternionPtr -> IO b) -> IO b+withQuaternion q f = with q' f' where+ q' = Quat q+ f' p = f (castPtr p)+peekQuaternion p = do+ (Quat q) <- peek ((castPtr p)::QuatPtr)+ return q+++
+ HGamer3D/Bindings/Ogre/StructRadians.chs view
@@ -0,0 +1,62 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- StructRadians.chs++-- ++module HGamer3D.Bindings.Ogre.StructRadians where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "StructRadians.h"++import Data.Bits+import HGamer3D.Data.Angle++instance Storable Radians where+ alignment _ = alignment (undefined :: CDouble)+ sizeOf _ = {#sizeof radian_struct#}+ peek p = do+ r <- {#get radian_struct.r #} p+ let ra = Radians (realToFrac r)+ return ra+ poke p (Radians r) = do+ {#set radian_struct.r #} p (realToFrac r)+ +{#pointer *radian_struct as RadiansPtr -> Radians #}++withRadians :: Radians -> (RadiansPtr -> IO b) -> IO b+withRadians = with+peekRadians :: RadiansPtr -> IO Radians+peekRadians = peek++
@@ -0,0 +1,70 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- StructSharedPtr.chs++-- ++module HGamer3D.Bindings.Ogre.StructSharedPtr where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "StructSharedPtr.h"++import Data.Bits++data SharedPtr = SharedPtr {+ spPT :: Ptr (),+ spPCount :: Ptr (),+ spPFreeFunc :: Ptr ()+ } deriving (Eq, Show)++instance Storable SharedPtr where+ alignment _ = alignment (undefined :: CDouble)+ sizeOf _ = {#sizeof sharedptr_struct#}+ peek p = do+ pt <- {#get sharedptr_struct.pT #} p+ pc <- {#get sharedptr_struct.pCount #} p+ pf <- {#get sharedptr_struct.pFreeFunc #} p+ let sp = SharedPtr pt pc pf+ return sp+ poke p (SharedPtr pt pc pf) = do+ {#set sharedptr_struct.pT #} p pt+ {#set sharedptr_struct.pCount #} p pc+ {#set sharedptr_struct.pFreeFunc #} p pf+ +{#pointer *sharedptr_struct as SharedPtrPtr -> SharedPtr #}+ +withSharedPtr :: SharedPtr -> (SharedPtrPtr -> IO b) -> IO b+withSharedPtr = with+peekSharedPtr :: SharedPtrPtr -> IO SharedPtr+peekSharedPtr = peek+
+ HGamer3D/Bindings/Ogre/StructVec2.chs view
@@ -0,0 +1,72 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- StructVec2.chs++-- ++module HGamer3D.Bindings.Ogre.StructVec2 where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "StructVec2.h"++import Data.Bits+import HGamer3D.Data.Vector++newtype Vector2 = Vector2 Vec2++instance Storable Vector2 where+ alignment _ = alignment (undefined :: CDouble)+ sizeOf _ = {#sizeof vector2_struct#}+ peek p = do+ x <- {#get vector2_struct.x #} p+ y <- {#get vector2_struct.y #} p+ let v = Vector2 ( Vec2 (realToFrac x) (realToFrac y))+ return v+ poke p (Vector2 (Vec2 x y)) = do+ {#set vector2_struct.x #} p (realToFrac x)+ {#set vector2_struct.y #} p (realToFrac y)++type Vector2Ptr = Ptr (Vector2)+ +{#pointer *vector2_struct as Vec2Ptr -> Vec2 #}++withVec2 :: Vec2 -> (Vec2Ptr -> IO b) -> IO b+withVec2 v f = with v' f' where+ v' = Vector2 v+ f' p = f (castPtr p)+peekVec2 :: Vec2Ptr -> IO Vec2+peekVec2 p = do+ (Vector2 v2) <- peek ((castPtr p)::Vector2Ptr)+ return v2++
+ HGamer3D/Bindings/Ogre/StructVec3.chs view
@@ -0,0 +1,72 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- StructVec3.chs++-- ++module HGamer3D.Bindings.Ogre.StructVec3 where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "StructVec3.h"++import Data.Bits+import HGamer3D.Data.Vector++newtype Vector3 = Vector3 Vec3++instance Storable Vector3 where+ alignment _ = alignment (undefined :: CDouble)+ sizeOf _ = {#sizeof vector3_struct#}+ peek p = do+ x <- {#get vector3_struct.x #} p+ y <- {#get vector3_struct.y #} p+ z <- {#get vector3_struct.z #} p+ let v = Vector3 (Vec3 (realToFrac x) (realToFrac y) (realToFrac z))+ return v+ poke p (Vector3 (Vec3 x y z)) = do+ {#set vector3_struct.x #} p (realToFrac x)+ {#set vector3_struct.y #} p (realToFrac y)+ {#set vector3_struct.z #} p (realToFrac z)+ +type Vector3Ptr = Ptr (Vector3)++{#pointer *vector3_struct as Vec3Ptr -> Vec3 #}++withVec3 :: Vec3 -> (Vec3Ptr -> IO b) -> IO b+withVec3 v f = with v' f' where+ v' = Vector3 v+ f' p = f (castPtr p)+peekVec3 p = do+ (Vector3 v3) <- peek ((castPtr p)::Vector3Ptr)+ return v3+
− HGamer3D/Bindings/Ogre/TypeColour.hs
@@ -1,75 +0,0 @@--- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) --- Edit the ORIGNAL .chs file instead! - - -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\TypeColour.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} -{-# LANGUAGE TypeSynonymInstances #-} - --- This source file is part of HGamer3D --- (A project to enable 3D game development in Haskell) --- For the latest info, see http://www.althainz.de/HGamer3D.html --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. --- See the License for the specific language governing permissions and --- limitations under the License. --- --- TypeColour.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.TypeColour where - -import C2HS -import Foreign -import Foreign.Ptr -import Foreign.C -import Monad (liftM, liftM2) - - - -import Data.Bits -import HGamer3D.Data.Colour - -instance Storable Colour where - alignment _ = alignment (undefined :: CDouble) - sizeOf _ = 16 -{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\TypeColour.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 = Colour (realToFrac r) (realToFrac g) (realToFrac b) (realToFrac a) - return cv - poke p (Colour 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 ColourPtr = Ptr (Colour) -{-# LINE 67 "HGamer3D\\Bindings\\Ogre\\TypeColour.chs" #-} - -withColour :: Colour -> (ColourPtr -> IO b) -> IO b -withColour = with
− HGamer3D/Bindings/Ogre/TypeDegree.hs
@@ -1,69 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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.Angle - -instance Storable Degrees 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 = Degrees (realToFrac d) - return de - poke p (Degrees d) = do - (\ptr val -> do {pokeByteOff ptr 0 (val::CFloat)}) p (realToFrac d) - -type DegreesPtr = Ptr (Degrees) -{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\TypeDegree.chs" #-} - -withDegrees :: Degrees -> (DegreesPtr -> IO b) -> IO b -withDegrees = with
− HGamer3D/Bindings/Ogre/TypeHG3DClass.hs
@@ -1,59 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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
− HGamer3D/Bindings/Ogre/TypeQuaternion.hs
@@ -1,76 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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 -import HGamer3D.Data.Vector3 - -instance Storable Quaternion where - alignment _ = alignment (undefined :: CDouble) - sizeOf _ = 16 -{-# LINE 54 "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) (vector3 (realToFrac fx) (realToFrac fy) (realToFrac fz)) - return q - poke p (Quaternion w v) = do - (\ptr val -> do {pokeByteOff ptr 0 (val::CFloat)}) p (realToFrac w) - (\ptr val -> do {pokeByteOff ptr 4 (val::CFloat)}) p (realToFrac (v3X v)) - (\ptr val -> do {pokeByteOff ptr 8 (val::CFloat)}) p (realToFrac (v3Y v)) - (\ptr val -> do {pokeByteOff ptr 12 (val::CFloat)}) p (realToFrac (v3Z v)) - -type QuaternionPtr = Ptr (Quaternion) -{-# LINE 68 "HGamer3D\\Bindings\\Ogre\\TypeQuaternion.chs" #-} - -withQuaternion :: Quaternion -> (QuaternionPtr -> IO b) -> IO b -withQuaternion = with
− HGamer3D/Bindings/Ogre/TypeRadian.hs
@@ -1,69 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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.Angle - -instance Storable Radians 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 = Radians (realToFrac r) - return ra - poke p (Radians r) = do - (\ptr val -> do {pokeByteOff ptr 0 (val::CFloat)}) p (realToFrac r) - -type RadiansPtr = Ptr (Radians) -{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\TypeRadian.chs" #-} - -withRadians :: Radians -> (RadiansPtr -> IO b) -> IO b -withRadians = with
@@ -1,78 +0,0 @@--- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) --- Edit the ORIGNAL .chs file instead! - - -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\TypeSharedPtr.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} -{-# LANGUAGE TypeSynonymInstances #-} - --- This source file is part of HGamer3D --- (A project to enable 3D game development in Haskell) --- For the latest info, see http://www.althainz.de/HGamer3D.html --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. --- See the License for the specific language governing permissions and --- limitations under the License. --- --- TypeSharedPtr.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.TypeSharedPtr where - -import C2HS -import Foreign -import Foreign.Ptr -import Foreign.C -import Monad (liftM, liftM2) - - - -import Data.Bits - -data SharedPtr = SharedPtr { - spPT :: Ptr (), - spPCount :: Ptr (), - spPFreeFunc :: Ptr () - } deriving (Eq, Show) - -instance Storable SharedPtr where - alignment _ = alignment (undefined :: CDouble) - sizeOf _ = 12 -{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\TypeSharedPtr.chs" #-} - peek p = do - pt <- (\ptr -> do {peekByteOff ptr 0 ::IO (Ptr ())}) p - pc <- (\ptr -> do {peekByteOff ptr 4 ::IO (Ptr ())}) p - pf <- (\ptr -> do {peekByteOff ptr 8 ::IO (Ptr ())}) p - let sp = SharedPtr pt pc pf - return sp - poke p (SharedPtr pt pc pf) = do - (\ptr val -> do {pokeByteOff ptr 0 (val::(Ptr ()))}) p pt - (\ptr val -> do {pokeByteOff ptr 4 (val::(Ptr ()))}) p pc - (\ptr val -> do {pokeByteOff ptr 8 (val::(Ptr ()))}) p pf - -type SharedPtrPtr = Ptr (SharedPtr) -{-# LINE 70 "HGamer3D\\Bindings\\Ogre\\TypeSharedPtr.chs" #-} - -withSharedPtr :: SharedPtr -> (SharedPtrPtr -> IO b) -> IO b -withSharedPtr = with
− HGamer3D/Bindings/Ogre/TypeVector2.hs
@@ -1,71 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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 v2 = do - (\ptr val -> do {pokeByteOff ptr 0 (val::CFloat)}) p (realToFrac (v2X v2)) - (\ptr val -> do {pokeByteOff ptr 4 (val::CFloat)}) p (realToFrac (v2Y v2)) - -type Vector2Ptr = Ptr (Vector2) -{-# LINE 63 "HGamer3D\\Bindings\\Ogre\\TypeVector2.chs" #-} - -withVector2 :: Vector2 -> (Vector2Ptr -> IO b) -> IO b -withVector2 = with
− HGamer3D/Bindings/Ogre/TypeVector3.hs
@@ -1,74 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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 v3 = do - (\ptr val -> do {pokeByteOff ptr 0 (val::CFloat)}) p (realToFrac (v3X v3)) - (\ptr val -> do {pokeByteOff ptr 4 (val::CFloat)}) p (realToFrac (v3Y v3)) - (\ptr val -> do {pokeByteOff ptr 8 (val::CFloat)}) p (realToFrac (v3Z v3)) - -type Vector3Ptr = Ptr (Vector3) -{-# LINE 65 "HGamer3D\\Bindings\\Ogre\\TypeVector3.chs" #-} - - -withVector3 :: Vector3 -> (Vector3Ptr -> IO b) -> IO b -withVector3 = with
− HGamer3D/Bindings/Ogre/TypeVector4.hs
@@ -1,75 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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 v4 = do - (\ptr val -> do {pokeByteOff ptr 0 (val::CFloat)}) p (realToFrac (v4X v4)) - (\ptr val -> do {pokeByteOff ptr 4 (val::CFloat)}) p (realToFrac (v4Y v4)) - (\ptr val -> do {pokeByteOff ptr 8 (val::CFloat)}) p (realToFrac (v4Z v4)) - (\ptr val -> do {pokeByteOff ptr 12 (val::CFloat)}) p (realToFrac (v4W v4)) - -type Vector4Ptr = Ptr (Vector4) -{-# LINE 67 "HGamer3D\\Bindings\\Ogre\\TypeVector4.chs" #-} - -withVector4 :: Vector4 -> (Vector4Ptr -> IO b) -> IO b -withVector4 = with
+ HGamer3D/Bindings/Ogre/Utils.chs view
@@ -0,0 +1,132 @@+{-# LANGUAGE ForeignFunctionInterface #-}+{-# LANGUAGE TypeSynonymInstances #-}++-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- ++-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+-- See the License for the specific language governing permissions and+-- limitations under the License.+-- +++-- Utils.hs++-- Marshalling Utilities++module HGamer3D.Bindings.Ogre.Utils where++import Foreign+import Foreign.Ptr+import Foreign.C++import HGamer3D.Data.HG3DClass+import HGamer3D.Data.Vector+import HGamer3D.Data.Colour+import HGamer3D.Data.Angle+++#include "StructHG3DClass.h"++import Control.Monad (liftM)++-- 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+++-- 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++-- Conversion routines+-- -------------------++-- |Integral conversion+--+cIntConv :: (Integral a, Integral b) => a -> b+cIntConv = fromIntegral++-- |Floating conversion+--+cFloatConv :: (RealFloat a, RealFloat b) => a -> b+cFloatConv = realToFrac++-- |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+
− HGamer3D/Bindings/Ogre/Utils.hs
@@ -1,108 +0,0 @@--- GENERATED by 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 --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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 82 "HGamer3D\\Bindings\\Ogre\\Utils.chs" #-} -; - --- fU_addResourceLocations_c as fUAddResourceLocations --- -fUMessagePump :: IO () -fUMessagePump = - fUMessagePump'_ >>= \res -> - return () -{-# LINE 88 "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 ())
LICENSE view
@@ -1,13 +1,13 @@-(c) 2011-2012 Peter Althainz - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +(c) 2011-2014 Peter Althainz++Licensed under the Apache License, Version 2.0 (the "License");+you may not use this file except in compliance with the License.+You may obtain a copy of the License at++ http://www.apache.org/licenses/LICENSE-2.0++Unless required by applicable law or agreed to in writing, software+distributed under the License is distributed on an "AS IS" BASIS,+WITHOUT 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 view
@@ -1,22 +1,21 @@--- This source file is part of HGamer3D --- (A project to enable 3D game development in Haskell) --- For the latest info, see http://www.althainz.de/HGamer3D.html --- --- (c) 2011 Peter Althainz --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT 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 +-- This source file is part of HGamer3D, a project to enable 3D game development +-- in Haskell. For the latest info, see http://www.hgamer3d.org .+-- +-- (c) 2011-2014 Peter Althainz+-- +-- Licensed under the Apache License, Version 2.0 (the "License");+-- you may not use this file except in compliance with the License.+-- You may obtain a copy of the License at+-- +-- http://www.apache.org/licenses/LICENSE-2.0+-- +-- Unless required by applicable law or agreed to in writing, software+-- distributed under the License is distributed on an "AS IS" BASIS,+-- WITHOUT 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
include/ClassAnimation.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,94 +15,151 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassAnimation.h + // + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassAnimation +#define _DEFINED_HG3D_ClassAnimation + +#include "ClassPtr.h" +#include "ClassNodeAnimationTrack.h" +#include "ClassNumericAnimationTrack.h" +#include "ClassVertexAnimationTrack.h" +#include "EnumVertexAnimationType.h" +#include "ClassNode.h" +#include "ClassSkeleton.h" +#include "ClassEntity.h" +#include "EnumAnimationInterpolationMode.h" +#include "EnumAnimationRotationInterpolationMode.h" + + // +void ogre_anm_destruct(struct hg3dclass_struct * thisclass_c); + // +void ogre_anm_getName(struct hg3dclass_struct * thisclass_c, char * result_c); + // -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/include/OGRE\OgreAnimation.h" +void ogre_anm_getLength(struct hg3dclass_struct * thisclass_c, float * result_c); + // -// each stub combines the following files: -// a C++ implementation file, transforming cpp calls into C-functions -// a C-header file, making this C-functions available for the C2HS parser -// a chs file, give instructions to the C2HS parser. +void ogre_anm_setLength(struct hg3dclass_struct * thisclass_c, float len_c); + // +void ogre_anm_createNodeTrack(struct hg3dclass_struct * thisclass_c, unsigned short handle_c, struct hg3dclass_struct * result_c); + // +void ogre_anm_createNumericTrack(struct hg3dclass_struct * thisclass_c, unsigned short handle_c, struct hg3dclass_struct * result_c); -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" -#include "EnumVertexAnimationType.h" -#include "EnumInterpolationMode.h" -#include "EnumRotationInterpolationMode.h" +// +void ogre_anm_createVertexTrack(struct hg3dclass_struct * thisclass_c, unsigned short handle_c, enum EnumVertexAnimationType animType_c, struct hg3dclass_struct * result_c); +// +void ogre_anm_createNodeTrack2(struct hg3dclass_struct * thisclass_c, unsigned short handle_c, struct hg3dclass_struct * node_c, struct hg3dclass_struct * result_c); -// 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 short handle_c, struct hg3dclass_struct * result_c); -// original function: NumericAnimationTrack* createNumericTrack(unsigned short handle); -void cAn_createNumericTrack_c(struct hg3dclass_struct *classptr_c, unsigned short 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 short 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 short 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 short * result_c); -// original function: NodeAnimationTrack* getNodeTrack(unsigned short handle); -void cAn_getNodeTrack_c(struct hg3dclass_struct *classptr_c, unsigned short handle_c, struct hg3dclass_struct * result_c); -// original function: bool hasNodeTrack(unsigned short handle); -void cAn_hasNodeTrack_c(struct hg3dclass_struct *classptr_c, unsigned short handle_c, int * result_c); -// original function: unsigned short getNumNumericTracks(); -void cAn_getNumNumericTracks_c(struct hg3dclass_struct *classptr_c, unsigned short * result_c); -// original function: NumericAnimationTrack* getNumericTrack(unsigned short handle); -void cAn_getNumericTrack_c(struct hg3dclass_struct *classptr_c, unsigned short handle_c, struct hg3dclass_struct * result_c); -// original function: bool hasNumericTrack(unsigned short handle); -void cAn_hasNumericTrack_c(struct hg3dclass_struct *classptr_c, unsigned short handle_c, int * result_c); -// original function: unsigned short getNumVertexTracks(); -void cAn_getNumVertexTracks_c(struct hg3dclass_struct *classptr_c, unsigned short * result_c); -// original function: VertexAnimationTrack* getVertexTrack(unsigned short handle); -void cAn_getVertexTrack_c(struct hg3dclass_struct *classptr_c, unsigned short handle_c, struct hg3dclass_struct * result_c); -// original function: bool hasVertexTrack(unsigned short handle); -void cAn_hasVertexTrack_c(struct hg3dclass_struct *classptr_c, unsigned short handle_c, int * result_c); -// original function: void destroyNodeTrack(unsigned short handle); -void cAn_destroyNodeTrack_c(struct hg3dclass_struct *classptr_c, unsigned short handle_c); -// original function: void destroyNumericTrack(unsigned short handle); -void cAn_destroyNumericTrack_c(struct hg3dclass_struct *classptr_c, unsigned short handle_c); -// original function: void destroyVertexTrack(unsigned short handle); -void cAn_destroyVertexTrack_c(struct hg3dclass_struct *classptr_c, unsigned short 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); +// +void ogre_anm_getNumNodeTracks(struct hg3dclass_struct * thisclass_c, unsigned short * result_c); + +// +void ogre_anm_getNodeTrack(struct hg3dclass_struct * thisclass_c, unsigned short handle_c, struct hg3dclass_struct * result_c); + +// +void ogre_anm_hasNodeTrack(struct hg3dclass_struct * thisclass_c, unsigned short handle_c, long * result_c); + +// +void ogre_anm_getNumNumericTracks(struct hg3dclass_struct * thisclass_c, unsigned short * result_c); + +// +void ogre_anm_getNumericTrack(struct hg3dclass_struct * thisclass_c, unsigned short handle_c, struct hg3dclass_struct * result_c); + +// +void ogre_anm_hasNumericTrack(struct hg3dclass_struct * thisclass_c, unsigned short handle_c, long * result_c); + +// +void ogre_anm_getNumVertexTracks(struct hg3dclass_struct * thisclass_c, unsigned short * result_c); + +// +void ogre_anm_getVertexTrack(struct hg3dclass_struct * thisclass_c, unsigned short handle_c, struct hg3dclass_struct * result_c); + +// +void ogre_anm_hasVertexTrack(struct hg3dclass_struct * thisclass_c, unsigned short handle_c, long * result_c); + +// +void ogre_anm_destroyNodeTrack(struct hg3dclass_struct * thisclass_c, unsigned short handle_c); + +// +void ogre_anm_destroyNumericTrack(struct hg3dclass_struct * thisclass_c, unsigned short handle_c); + +// +void ogre_anm_destroyVertexTrack(struct hg3dclass_struct * thisclass_c, unsigned short handle_c); + +// +void ogre_anm_destroyAllTracks(struct hg3dclass_struct * thisclass_c); + +// +void ogre_anm_destroyAllNodeTracks(struct hg3dclass_struct * thisclass_c); + +// +void ogre_anm_destroyAllNumericTracks(struct hg3dclass_struct * thisclass_c); + +// +void ogre_anm_destroyAllVertexTracks(struct hg3dclass_struct * thisclass_c); + +// +void ogre_anm_apply(struct hg3dclass_struct * thisclass_c, float timePos_c, float weight_c, float scale_c); + +// +void ogre_anm_applyToNode(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * node_c, float timePos_c, float weight_c, float scale_c); + +// +void ogre_anm_apply2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * skeleton_c, float timePos_c, float weight_c, float scale_c); + +// +void ogre_anm_apply4(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * entity_c, float timePos_c, float weight_c, long software_c, long hardware_c); + +// +void ogre_anm_setInterpolationMode(struct hg3dclass_struct * thisclass_c, enum EnumAnimationInterpolationMode im_c); + +// +void ogre_anm_getInterpolationMode(struct hg3dclass_struct * thisclass_c, enum EnumAnimationInterpolationMode * result_c); + +// +void ogre_anm_setRotationInterpolationMode(struct hg3dclass_struct * thisclass_c, enum EnumAnimationRotationInterpolationMode im_c); + +// +void ogre_anm_getRotationInterpolationMode(struct hg3dclass_struct * thisclass_c, enum EnumAnimationRotationInterpolationMode * result_c); + +// +void ogre_anm_optimise(struct hg3dclass_struct * thisclass_c, long discardIdentityNodeTracks_c); + +// +void ogre_anm_clone(struct hg3dclass_struct * thisclass_c, char * newName_c, struct hg3dclass_struct * result_c); + +// +void ogre_anm_setUseBaseKeyFrame(struct hg3dclass_struct * thisclass_c, long useBaseKeyFrame_c, float keyframeTime_c, char * baseAnimName_c); + +// +void ogre_anm_getUseBaseKeyFrame(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_anm_getBaseKeyFrameTime(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_anm_getBaseKeyFrameAnimationName(struct hg3dclass_struct * thisclass_c, char * result_c); + +// +void ogre_anm_setDefaultInterpolationMode(enum EnumAnimationInterpolationMode im_c); + +// +void ogre_anm_getDefaultInterpolationMode(enum EnumAnimationInterpolationMode * result_c); + +// +void ogre_anm_setDefaultRotationInterpolationMode(enum EnumAnimationRotationInterpolationMode im_c); + +// +void ogre_anm_getDefaultRotationInterpolationMode(enum EnumAnimationRotationInterpolationMode * result_c); + +#endif
include/ClassAnimationState.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,57 +15,83 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassAnimationState.h -// + // + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassAnimationState +#define _DEFINED_HG3D_ClassAnimationState + +#include "ClassPtr.h" +#include "ClassAnimationStateSet.h" + + // +void ogre_anms_construct(char * animName_c, struct hg3dclass_struct * parent_c, float timePos_c, float length_c, float weight_c, long enabled_c, struct hg3dclass_struct * result_c); + // -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/include/OGRE\OgreAnimationState.h" +void ogre_anms_destruct(struct hg3dclass_struct * thisclass_c); + +// Gets the name of the animation to which this state applies. +void ogre_anms_getAnimationName(struct hg3dclass_struct * thisclass_c, char * result_c); + +// Gets the time position for this animation. +void ogre_anms_getTimePosition(struct hg3dclass_struct * thisclass_c, float * result_c); + +// Sets the time position for this animation. +void ogre_anms_setTimePosition(struct hg3dclass_struct * thisclass_c, float timePos_c); + +// Gets the total length of this animation (may be shorter than whole animation) +void ogre_anms_getLength(struct hg3dclass_struct * thisclass_c, float * result_c); + +// Sets the total length of this animation (may be shorter than whole animation) +void ogre_anms_setLength(struct hg3dclass_struct * thisclass_c, float len_c); + +// Gets the weight (influence) of this animation. +void ogre_anms_getWeight(struct hg3dclass_struct * thisclass_c, float * result_c); + +// Sets the weight (influence) of this animation. +void ogre_anms_setWeight(struct hg3dclass_struct * thisclass_c, float weight_c); + // -// each stub combines the following files: -// a C++ implementation file, transforming cpp calls into C-functions -// a C-header file, making this C-functions available for the C2HS parser -// a chs file, give instructions to the C2HS parser. +void ogre_anms_addTime(struct hg3dclass_struct * thisclass_c, float offset_c); + +// Returns true if the animation has reached the end and is not looping. +void ogre_anms_hasEnded(struct hg3dclass_struct * thisclass_c, long * result_c); + +// Returns true if this animation is currently enabled. +void ogre_anms_getEnabled(struct hg3dclass_struct * thisclass_c, long * result_c); + +// Sets whether this animation is enabled. +void ogre_anms_setEnabled(struct hg3dclass_struct * thisclass_c, long enabled_c); + // +void ogre_anms_setLoop(struct hg3dclass_struct * thisclass_c, long loop_c); + +// Gets whether or not this animation loops. +void ogre_anms_getLoop(struct hg3dclass_struct * thisclass_c, long * result_c); + // +void ogre_anms_copyStateFrom(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * animState_c); -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" +// Get the parent animation state set. +void ogre_anms_getParent(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); +// Create a new blend mask with the given number of entries. +void ogre_anms_createBlendMask(struct hg3dclass_struct * thisclass_c, long blendMaskSizeHint_c, float initialWeight_c); -// 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); +// Destroy the currently set blend mask. +void ogre_anms_destroyBlendMask(struct hg3dclass_struct * thisclass_c); + +// Return whether there is currently a valid blend mask set. +void ogre_anms_hasBlendMask(struct hg3dclass_struct * thisclass_c, long * result_c); + +// Set the weight for the bone identified by the given handle. +void ogre_anms_setBlendMaskEntry(struct hg3dclass_struct * thisclass_c, long boneHandle_c, float weight_c); + +// Get the weight for the bone identified by the given handle. +void ogre_anms_getBlendMaskEntry(struct hg3dclass_struct * thisclass_c, long boneHandle_c, float * result_c); + +#endif
+ include/ClassAnimationStateSet.h view
@@ -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.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// ClassAnimationStateSet.h + +// + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassAnimationStateSet +#define _DEFINED_HG3D_ClassAnimationStateSet + +#include "ClassPtr.h" +#include "ClassAnimationState.h" + + +// +void ogre_ass_destruct(struct hg3dclass_struct * thisclass_c); + +// +void ogre_ass_createAnimationState(struct hg3dclass_struct * thisclass_c, char * animName_c, float timePos_c, float length_c, float weight_c, long enabled_c, struct hg3dclass_struct * result_c); + +// Get an animation state by the name of the animation. +void ogre_ass_getAnimationState(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * result_c); + +// Tests if state for the named animation is present. +void ogre_ass_hasAnimationState(struct hg3dclass_struct * thisclass_c, char * name_c, long * result_c); + +// Remove animation state with the given name. +void ogre_ass_removeAnimationState(struct hg3dclass_struct * thisclass_c, char * name_c); + +// Remove all animation states. +void ogre_ass_removeAllAnimationStates(struct hg3dclass_struct * thisclass_c); + +// Copy the state of any matching animation states from this to another. +void ogre_ass_copyMatchingState(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * target_c); + +// Get the latest animation state been altered frame number. +void ogre_ass_getDirtyFrameNumber(struct hg3dclass_struct * thisclass_c, unsigned long * result_c); + +// Tests if exists enabled animation state in this set. +void ogre_ass_hasEnabledAnimationState(struct hg3dclass_struct * thisclass_c, long * result_c); + +#endif
include/ClassAnimationTrack.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,41 +15,45 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassAnimationTrack.h + // + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassAnimationTrack +#define _DEFINED_HG3D_ClassAnimationTrack + +#include "ClassPtr.h" +#include "ClassTimeIndex.h" +#include "ClassAnimation.h" + + // +void ogre_at_destruct(struct hg3dclass_struct * thisclass_c); + // +void ogre_at_getHandle(struct hg3dclass_struct * thisclass_c, unsigned short * result_c); + // -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/include/OGRE\OgreAnimationTrack.h" +void ogre_at_getNumKeyFrames(struct hg3dclass_struct * thisclass_c, unsigned short * result_c); + // -// each stub combines the following files: -// a C++ implementation file, transforming cpp calls into C-functions -// a C-header file, making this C-functions available for the C2HS parser -// a chs file, give instructions to the C2HS parser. +void ogre_at_removeKeyFrame(struct hg3dclass_struct * thisclass_c, unsigned short index_c); + // +void ogre_at_removeAllKeyFrames(struct hg3dclass_struct * thisclass_c); + // +void ogre_at_apply(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * timeIndex_c, float weight_c, float scale_c); -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" +// +void ogre_at_hasNonZeroKeyFrames(struct hg3dclass_struct * thisclass_c, long * result_c); +// +void ogre_at_optimise(struct hg3dclass_struct * thisclass_c); -// original function: unsigned short getHandle(); -void cAnt_getHandle_c(struct hg3dclass_struct *classptr_c, unsigned short * result_c); -// original function: unsigned short getNumKeyFrames(); -void cAnt_getNumKeyFrames_c(struct hg3dclass_struct *classptr_c, unsigned short * result_c); -// original function: KeyFrame* getKeyFrame(unsigned short index); -void cAnt_getKeyFrame_c(struct hg3dclass_struct *classptr_c, unsigned short 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 short 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); +// +void ogre_at_getParent(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); + +#endif
include/ClassArchive.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,52 +15,43 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassArchive.h -// + // + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassArchive +#define _DEFINED_HG3D_ClassArchive + +#include "ClassPtr.h" + + // +void ogre_arch_destruct(struct hg3dclass_struct * thisclass_c); + +// Get the name of this archive. +void ogre_arch_getName(struct hg3dclass_struct * thisclass_c, char * result_c); + +// Returns whether this archive is case sensitive in the way it matches files. +void ogre_arch_isCaseSensitive(struct hg3dclass_struct * thisclass_c, long * result_c); + // -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/include/OGRE\OgreArchive.h" +void ogre_arch_load(struct hg3dclass_struct * thisclass_c); + // -// each stub combines the following files: -// a C++ implementation file, transforming cpp calls into C-functions -// a C-header file, making this C-functions available for the C2HS parser -// a chs file, give instructions to the C2HS parser. +void ogre_arch_unload(struct hg3dclass_struct * thisclass_c); + // +void ogre_arch_isReadOnly(struct hg3dclass_struct * thisclass_c, long * result_c); + // +void ogre_arch_remove(struct hg3dclass_struct * thisclass_c, char * filename_c); -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" -#include "TypeSharedPtr.h" +// +void ogre_arch_exists(struct hg3dclass_struct * thisclass_c, char * filename_c, long * result_c); +// Return the type code of this Archive +void ogre_arch_getType(struct hg3dclass_struct * thisclass_c, char * result_c); -// 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: DataStreamPtr open(const String& filename, bool readOnly); -void cAr_open_c(struct hg3dclass_struct *classptr_c, char * filename_c, int readOnly_c, struct sharedptr_struct * result_c); -// original function: DataStreamPtr create(const String& filename); -void cAr_create_c(struct hg3dclass_struct *classptr_c, char * filename_c, struct sharedptr_struct * result_c); -// original function: void remove(const String& filename); -void cAr_remove_c(struct hg3dclass_struct *classptr_c, char * filename_c); -// original function: StringVectorPtr list(bool recursive, bool dirs); -void cAr_list_c(struct hg3dclass_struct *classptr_c, int recursive_c, int dirs_c, struct sharedptr_struct * result_c); -// original function: FileInfoListPtr listFileInfo(bool recursive, bool dirs); -void cAr_listFileInfo_c(struct hg3dclass_struct *classptr_c, int recursive_c, int dirs_c, struct sharedptr_struct * result_c); -// original function: StringVectorPtr find(const String& pattern, bool recursive, bool dirs); -void cAr_find_c(struct hg3dclass_struct *classptr_c, char * pattern_c, int recursive_c, int dirs_c, struct sharedptr_struct * result_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: FileInfoListPtr findFileInfo(const String& pattern, bool recursive, bool dirs); -void cAr_findFileInfo_c(struct hg3dclass_struct *classptr_c, char * pattern_c, int recursive_c, int dirs_c, struct sharedptr_struct * result_c); -// original function: const String& getType(); -void cAr_getType_c(struct hg3dclass_struct *classptr_c, char * result_c); +#endif
include/ClassArchiveManager.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,29 +15,35 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassArchiveManager.h -// -// + // + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassArchiveManager +#define _DEFINED_HG3D_ClassArchiveManager + +#include "ClassPtr.h" +#include "ClassArchive.h" + + // -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/include/OGRE\OgreArchiveManager.h" +void ogre_archm_destruct(struct hg3dclass_struct * thisclass_c); + // -// each stub combines the following files: -// a C++ implementation file, transforming cpp calls into C-functions -// a C-header file, making this C-functions available for the C2HS parser -// a chs file, give instructions to the C2HS parser. +void ogre_archm_load(struct hg3dclass_struct * thisclass_c, char * filename_c, char * archiveType_c, struct hg3dclass_struct * result_c); + // +void ogre_archm_unload(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * arch_c); + // +void ogre_archm_unload2(struct hg3dclass_struct * thisclass_c, char * filename_c); -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" +// +void ogre_archm_getSingleton(struct hg3dclass_struct * result_c); +// +void ogre_archm_getSingletonPtr(struct hg3dclass_struct * result_c); -// 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); +#endif
include/ClassBillboard.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,60 +15,73 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassBillboard.h + // + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassBillboard +#define _DEFINED_HG3D_ClassBillboard + +#include "ClassPtr.h" +#include "StructRadians.h" +#include "StructVec3.h" +#include "StructColour.h" + + // +void ogre_bbd_construct(struct hg3dclass_struct * result_c); + // +void ogre_bbd_destruct(struct hg3dclass_struct * thisclass_c); + // -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/include/OGRE\OgreBillboard.h" +void ogre_bbd_getRotation(struct hg3dclass_struct * thisclass_c, struct radian_struct * result_c); + // -// each stub combines the following files: -// a C++ implementation file, transforming cpp calls into C-functions -// a C-header file, making this C-functions available for the C2HS parser -// a chs file, give instructions to the C2HS parser. +void ogre_bbd_setRotation(struct hg3dclass_struct * thisclass_c, struct radian_struct * rotation_c); + // +void ogre_bbd_setPosition(struct hg3dclass_struct * thisclass_c, struct vector3_struct * position_c); + // +void ogre_bbd_setPosition2(struct hg3dclass_struct * thisclass_c, float x_c, float y_c, float z_c); -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" -#include "TypeRadian.h" -#include "TypeVector3.h" -#include "TypeColour.h" +// +void ogre_bbd_getPosition(struct hg3dclass_struct * thisclass_c, struct vector3_struct * result_c); +// +void ogre_bbd_setDimensions(struct hg3dclass_struct * thisclass_c, float width_c, float height_c); -// 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 short texcoordIndex_c); -// original function: uint16 getTexcoordIndex(); -void cBb_getTexcoordIndex_c(struct hg3dclass_struct *classptr_c, unsigned short * 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); +// +void ogre_bbd_resetDimensions(struct hg3dclass_struct * thisclass_c); + +// +void ogre_bbd_setColour(struct hg3dclass_struct * thisclass_c, struct colourvalue_struct * colour_c); + +// +void ogre_bbd_getColour(struct hg3dclass_struct * thisclass_c, struct colourvalue_struct * result_c); + +// +void ogre_bbd_hasOwnDimensions(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_bbd_getOwnWidth(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_bbd_getOwnHeight(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_bbd_isUseTexcoordRect(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_bbd_setTexcoordIndex(struct hg3dclass_struct * thisclass_c, unsigned short texcoordIndex_c); + +// +void ogre_bbd_getTexcoordIndex(struct hg3dclass_struct * thisclass_c, unsigned short * result_c); + +// +void ogre_bbd_setTexcoordRect2(struct hg3dclass_struct * thisclass_c, float u0_c, float v0_c, float u1_c, float v1_c); + +#endif
include/ClassBillboardChain.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,64 +15,100 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassBillboardChain.h + // + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassBillboardChain +#define _DEFINED_HG3D_ClassBillboardChain + +#include "ClassPtr.h" +#include "EnumBillboardChainTexCoordDirection.h" +#include "StructVec3.h" +#include "ClassCamera.h" +#include "StructSharedPtr.h" +#include "ClassSceneManager.h" +#include "ClassRenderSystem.h" + + +// destructor +void ogre_bbdc_destruct(struct hg3dclass_struct * thisclass_c); + // +void ogre_bbdc_setMaxChainElements(struct hg3dclass_struct * thisclass_c, long maxElements_c); + // +void ogre_bbdc_getMaxChainElements(struct hg3dclass_struct * thisclass_c, long * result_c); + // -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/include/OGRE\OgreBillboardChain.h" +void ogre_bbdc_setNumberOfChains(struct hg3dclass_struct * thisclass_c, long numChains_c); + // -// each stub combines the following files: -// a C++ implementation file, transforming cpp calls into C-functions -// a C-header file, making this C-functions available for the C2HS parser -// a chs file, give instructions to the C2HS parser. +void ogre_bbdc_getNumberOfChains(struct hg3dclass_struct * thisclass_c, long * result_c); + // +void ogre_bbdc_setUseTextureCoords(struct hg3dclass_struct * thisclass_c, long use_c); + // +void ogre_bbdc_getUseTextureCoords(struct hg3dclass_struct * thisclass_c, long * result_c); -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" -#include "EnumTexCoordDirection.h" +// +void ogre_bbdc_setTextureCoordDirection(struct hg3dclass_struct * thisclass_c, enum EnumBillboardChainTexCoordDirection dir_c); +// +void ogre_bbdc_getTextureCoordDirection(struct hg3dclass_struct * thisclass_c, enum EnumBillboardChainTexCoordDirection * result_c); -// 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); +// +void ogre_bbdc_setOtherTextureCoordRange(struct hg3dclass_struct * thisclass_c, float start_c, float end_c); + +// +void ogre_bbdc_setUseVertexColours(struct hg3dclass_struct * thisclass_c, long use_c); + +// +void ogre_bbdc_getUseVertexColours(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_bbdc_setDynamic(struct hg3dclass_struct * thisclass_c, long dyn_c); + +// +void ogre_bbdc_getDynamic(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_bbdc_removeChainElement(struct hg3dclass_struct * thisclass_c, long chainIndex_c); + +// +void ogre_bbdc_getNumChainElements(struct hg3dclass_struct * thisclass_c, long chainIndex_c, long * result_c); + +// +void ogre_bbdc_clearChain(struct hg3dclass_struct * thisclass_c, long chainIndex_c); + +// +void ogre_bbdc_clearAllChains(struct hg3dclass_struct * thisclass_c); + +// +void ogre_bbdc_setFaceCamera(struct hg3dclass_struct * thisclass_c, long faceCamera_c, struct vector3_struct * normalVector_c); + +// Get the material name in use. +void ogre_bbdc_getMaterialName(struct hg3dclass_struct * thisclass_c, char * result_c); + +// Set the material name to use for rendering. +void ogre_bbdc_setMaterialName(struct hg3dclass_struct * thisclass_c, char * name_c, char * groupName_c); + +// +void ogre_bbdc_getSquaredViewDepth(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * cam_c, float * result_c); + +// +void ogre_bbdc_getBoundingRadius(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_bbdc_getMaterial(struct hg3dclass_struct * thisclass_c, struct sharedptr_struct * result_c); + +// +void ogre_bbdc_getMovableType(struct hg3dclass_struct * thisclass_c, char * result_c); + +// +void ogre_bbdc_preRender(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * sm_c, struct hg3dclass_struct * rsys_c, long * result_c); + +#endif
include/ClassBillboardChainFactory.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,23 +15,29 @@ // 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: "Dep-OgreSDK/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" +#ifndef _DEFINED_HG3D_ClassBillboardChainFactory +#define _DEFINED_HG3D_ClassBillboardChainFactory + #include "ClassPtr.h" -#include "Utils.h" +#include "ClassMovableObject.h" +// +void ogre_bbdcf_construct(struct hg3dclass_struct * result_c); + +// +void ogre_bbdcf_destruct(struct hg3dclass_struct * thisclass_c); + +// Get the type of the object to be created. +void ogre_bbdcf_getType(struct hg3dclass_struct * thisclass_c, char * result_c); + +// +void ogre_bbdcf_destroyInstance(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * obj_c); + +#endif
include/ClassBillboardSet.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,136 +15,177 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassBillboardSet.h + // + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassBillboardSet +#define _DEFINED_HG3D_ClassBillboardSet + +#include "ClassPtr.h" +#include "ClassBillboard.h" +#include "StructVec3.h" +#include "StructColour.h" +#include "EnumBillboardOrigin.h" +#include "EnumBillboardRotationType.h" +#include "StructSharedPtr.h" +#include "EnumBillboardType.h" +#include "ClassCamera.h" + + // +void ogre_bbs_construct(char * name_c, unsigned long poolSize_c, long externalDataSource_c, struct hg3dclass_struct * result_c); + // +void ogre_bbs_destruct(struct hg3dclass_struct * thisclass_c); + // -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/include/OGRE\OgreBillboardSet.h" +void ogre_bbs_createBillboard(struct hg3dclass_struct * thisclass_c, struct vector3_struct * position_c, struct colourvalue_struct * colour_c, struct hg3dclass_struct * result_c); + // -// each stub combines the following files: -// a C++ implementation file, transforming cpp calls into C-functions -// a C-header file, making this C-functions available for the C2HS parser -// a chs file, give instructions to the C2HS parser. +void ogre_bbs_createBillboard2(struct hg3dclass_struct * thisclass_c, float x_c, float y_c, float z_c, struct colourvalue_struct * colour_c, struct hg3dclass_struct * result_c); + // +void ogre_bbs_getNumBillboards(struct hg3dclass_struct * thisclass_c, long * result_c); + // +void ogre_bbs_setAutoextend(struct hg3dclass_struct * thisclass_c, long autoextend_c); -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" -#include "TypeVector3.h" -#include "TypeColour.h" -#include "EnumBillboardOrigin.h" -#include "EnumBillboardRotationType.h" -#include "TypeSharedPtr.h" -#include "EnumBillboardType.h" -#include "EnumSortMode.h" +// +void ogre_bbs_getAutoextend(struct hg3dclass_struct * thisclass_c, long * result_c); +// +void ogre_bbs_setSortingEnabled(struct hg3dclass_struct * thisclass_c, long sortenable_c); -// 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: const MaterialPtr& getMaterial(); -void cBs_getMaterial_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * result_c); -// original function: void setMaterial(const MaterialPtr& material); -void cBs_setMaterial_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * material_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); +// +void ogre_bbs_getSortingEnabled(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_bbs_setPoolSize(struct hg3dclass_struct * thisclass_c, long size_c); + +// +void ogre_bbs_getPoolSize(struct hg3dclass_struct * thisclass_c, unsigned long * result_c); + +// +void ogre_bbs_clear(struct hg3dclass_struct * thisclass_c); + +// +void ogre_bbs_getBillboard(struct hg3dclass_struct * thisclass_c, unsigned long index_c, struct hg3dclass_struct * result_c); + +// +void ogre_bbs_removeBillboard(struct hg3dclass_struct * thisclass_c, unsigned long index_c); + +// +void ogre_bbs_removeBillboard2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * pBill_c); + +// +void ogre_bbs_setBillboardOrigin(struct hg3dclass_struct * thisclass_c, enum EnumBillboardOrigin origin_c); + +// +void ogre_bbs_getBillboardOrigin(struct hg3dclass_struct * thisclass_c, enum EnumBillboardOrigin * result_c); + +// +void ogre_bbs_setBillboardRotationType(struct hg3dclass_struct * thisclass_c, enum EnumBillboardRotationType rotationType_c); + +// +void ogre_bbs_getBillboardRotationType(struct hg3dclass_struct * thisclass_c, enum EnumBillboardRotationType * result_c); + +// +void ogre_bbs_setDefaultDimensions(struct hg3dclass_struct * thisclass_c, float width_c, float height_c); + +// +void ogre_bbs_setDefaultWidth(struct hg3dclass_struct * thisclass_c, float width_c); + +// +void ogre_bbs_getDefaultWidth(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_bbs_setDefaultHeight(struct hg3dclass_struct * thisclass_c, float height_c); + +// +void ogre_bbs_getDefaultHeight(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_bbs_setMaterialName(struct hg3dclass_struct * thisclass_c, char * name_c, char * groupName_c); + +// +void ogre_bbs_getMaterialName(struct hg3dclass_struct * thisclass_c, char * result_c); + +// +void ogre_bbs_beginBillboards(struct hg3dclass_struct * thisclass_c, long numBillboards_c); + +// +void ogre_bbs_injectBillboard(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * bb_c); + +// +void ogre_bbs_endBillboards(struct hg3dclass_struct * thisclass_c); + +// +void ogre_bbs_getBoundingRadius(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_bbs_getMaterial(struct hg3dclass_struct * thisclass_c, struct sharedptr_struct * result_c); + +// +void ogre_bbs_setMaterial(struct hg3dclass_struct * thisclass_c, struct sharedptr_struct * material_c); + +// +void ogre_bbs_getCullIndividually(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_bbs_setCullIndividually(struct hg3dclass_struct * thisclass_c, long cullIndividual_c); + +// +void ogre_bbs_setBillboardType(struct hg3dclass_struct * thisclass_c, enum EnumBillboardType bbt_c); + +// +void ogre_bbs_getBillboardType(struct hg3dclass_struct * thisclass_c, enum EnumBillboardType * result_c); + +// +void ogre_bbs_setCommonDirection(struct hg3dclass_struct * thisclass_c, struct vector3_struct * vec_c); + +// +void ogre_bbs_getCommonDirection(struct hg3dclass_struct * thisclass_c, struct vector3_struct * result_c); + +// +void ogre_bbs_setCommonUpVector(struct hg3dclass_struct * thisclass_c, struct vector3_struct * vec_c); + +// +void ogre_bbs_getCommonUpVector(struct hg3dclass_struct * thisclass_c, struct vector3_struct * result_c); + +// +void ogre_bbs_setUseAccurateFacing(struct hg3dclass_struct * thisclass_c, long acc_c); + +// +void ogre_bbs_getUseAccurateFacing(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_bbs_getMovableType(struct hg3dclass_struct * thisclass_c, char * result_c); + +// +void ogre_bbs_getSquaredViewDepth(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * cam_c, float * result_c); + +// +void ogre_bbs_setBillboardsInWorldSpace(struct hg3dclass_struct * thisclass_c, long ws_c); + +// +void ogre_bbs_setPointRenderingEnabled(struct hg3dclass_struct * thisclass_c, long enabled_c); + +// +void ogre_bbs_isPointRenderingEnabled(struct hg3dclass_struct * thisclass_c, long * result_c); + +// Override to return specific type flag. +void ogre_bbs_getTypeFlags(struct hg3dclass_struct * thisclass_c, unsigned long * result_c); + +// +void ogre_bbs_setAutoUpdate(struct hg3dclass_struct * thisclass_c, long autoUpdate_c); + +// +void ogre_bbs_getAutoUpdate(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_bbs_notifyBillboardDataChanged(struct hg3dclass_struct * thisclass_c); + +#endif
include/ClassBillboardSetFactory.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,23 +15,29 @@ // 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: "Dep-OgreSDK/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" +#ifndef _DEFINED_HG3D_ClassBillboardSetFactory +#define _DEFINED_HG3D_ClassBillboardSetFactory + #include "ClassPtr.h" -#include "Utils.h" +#include "ClassMovableObject.h" +// +void ogre_bbsf_construct(struct hg3dclass_struct * result_c); + +// +void ogre_bbsf_destruct(struct hg3dclass_struct * thisclass_c); + +// Get the type of the object to be created. +void ogre_bbsf_getType(struct hg3dclass_struct * thisclass_c, char * result_c); + +// +void ogre_bbsf_destroyInstance(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * obj_c); + +#endif
include/ClassBone.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,43 +15,42 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassBone.h + // + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassBone +#define _DEFINED_HG3D_ClassBone + +#include "ClassPtr.h" +#include "StructVec3.h" +#include "StructQuaternion.h" + + // +void ogre_bn_destruct(struct hg3dclass_struct * thisclass_c); + // +void ogre_bn_createChild(struct hg3dclass_struct * thisclass_c, unsigned short handle_c, struct vector3_struct * translate_c, struct quaternion_struct * rotate_c, struct hg3dclass_struct * result_c); + // -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/include/OGRE\OgreBone.h" +void ogre_bn_getHandle(struct hg3dclass_struct * thisclass_c, unsigned short * result_c); + // -// each stub combines the following files: -// a C++ implementation file, transforming cpp calls into C-functions -// a C-header file, making this C-functions available for the C2HS parser -// a chs file, give instructions to the C2HS parser. +void ogre_bn_setBindingPose(struct hg3dclass_struct * thisclass_c); + // +void ogre_bn_reset(struct hg3dclass_struct * thisclass_c); + // +void ogre_bn_setManuallyControlled(struct hg3dclass_struct * thisclass_c, long manuallyControlled_c); -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" -#include "TypeVector3.h" -#include "TypeQuaternion.h" +// +void ogre_bn_isManuallyControlled(struct hg3dclass_struct * thisclass_c, long * result_c); +// +void ogre_bn_needUpdate(struct hg3dclass_struct * thisclass_c, long forceParentUpdate_c); -// original function: Bone* createChild(unsigned short handle, const Vector3& translate, const Quaternion& rotate); -void cB_createChild_c(struct hg3dclass_struct *classptr_c, unsigned short 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 short * 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); +#endif
include/ClassCamera.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,148 +15,208 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassCamera.h + // + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassCamera +#define _DEFINED_HG3D_ClassCamera + +#include "ClassPtr.h" +#include "ClassSceneManager.h" +#include "StructVec3.h" +#include "StructRadians.h" +#include "StructQuaternion.h" +#include "ClassSceneNode.h" +#include "ClassViewport.h" +#include "ClassFrustum.h" +#include "EnumFrustumPlane.h" + + // +void ogre_cam_construct(char * name_c, struct hg3dclass_struct * sm_c, struct hg3dclass_struct * result_c); + // +void ogre_cam_destruct(struct hg3dclass_struct * thisclass_c); + // -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/include/OGRE\OgreCamera.h" +void ogre_cam_getSceneManager(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); + // -// each stub combines the following files: -// a C++ implementation file, transforming cpp calls into C-functions -// a C-header file, making this C-functions available for the C2HS parser -// a chs file, give instructions to the C2HS parser. +void ogre_cam_setPosition(struct hg3dclass_struct * thisclass_c, float x_c, float y_c, float z_c); + // +void ogre_cam_setPosition2(struct hg3dclass_struct * thisclass_c, struct vector3_struct * vec_c); + // +void ogre_cam_getPosition(struct hg3dclass_struct * thisclass_c, struct vector3_struct * result_c); -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" -#include "EnumPolygonMode.h" -#include "TypeVector3.h" -#include "TypeRadian.h" -#include "TypeQuaternion.h" -#include "EnumFrustumPlane.h" +// +void ogre_cam_move(struct hg3dclass_struct * thisclass_c, struct vector3_struct * vec_c); +// +void ogre_cam_moveRelative(struct hg3dclass_struct * thisclass_c, struct vector3_struct * vec_c); -// 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); +// +void ogre_cam_setDirection(struct hg3dclass_struct * thisclass_c, float x_c, float y_c, float z_c); + +// +void ogre_cam_setDirection2(struct hg3dclass_struct * thisclass_c, struct vector3_struct * vec_c); + +// +void ogre_cam_getDirection(struct hg3dclass_struct * thisclass_c, struct vector3_struct * result_c); + +// +void ogre_cam_getUp(struct hg3dclass_struct * thisclass_c, struct vector3_struct * result_c); + +// +void ogre_cam_getRight(struct hg3dclass_struct * thisclass_c, struct vector3_struct * result_c); + +// +void ogre_cam_lookAt(struct hg3dclass_struct * thisclass_c, struct vector3_struct * targetPoint_c); + +// +void ogre_cam_lookAt2(struct hg3dclass_struct * thisclass_c, float x_c, float y_c, float z_c); + +// +void ogre_cam_roll(struct hg3dclass_struct * thisclass_c, struct radian_struct * angle_c); + +// +void ogre_cam_yaw(struct hg3dclass_struct * thisclass_c, struct radian_struct * angle_c); + +// +void ogre_cam_pitch(struct hg3dclass_struct * thisclass_c, struct radian_struct * angle_c); + +// +void ogre_cam_rotate(struct hg3dclass_struct * thisclass_c, struct vector3_struct * axis_c, struct radian_struct * angle_c); + +// +void ogre_cam_rotate2(struct hg3dclass_struct * thisclass_c, struct quaternion_struct * q_c); + +// +void ogre_cam_setFixedYawAxis(struct hg3dclass_struct * thisclass_c, long useFixed_c, struct vector3_struct * fixedAxis_c); + +// +void ogre_cam_getOrientation(struct hg3dclass_struct * thisclass_c, struct quaternion_struct * result_c); + +// +void ogre_cam_setOrientation(struct hg3dclass_struct * thisclass_c, struct quaternion_struct * q_c); + +// +void ogre_cam_getDerivedOrientation(struct hg3dclass_struct * thisclass_c, struct quaternion_struct * result_c); + +// +void ogre_cam_getDerivedPosition(struct hg3dclass_struct * thisclass_c, struct vector3_struct * result_c); + +// +void ogre_cam_getDerivedDirection(struct hg3dclass_struct * thisclass_c, struct vector3_struct * result_c); + +// +void ogre_cam_getDerivedUp(struct hg3dclass_struct * thisclass_c, struct vector3_struct * result_c); + +// +void ogre_cam_getDerivedRight(struct hg3dclass_struct * thisclass_c, struct vector3_struct * result_c); + +// +void ogre_cam_getRealOrientation(struct hg3dclass_struct * thisclass_c, struct quaternion_struct * result_c); + +// +void ogre_cam_getRealPosition(struct hg3dclass_struct * thisclass_c, struct vector3_struct * result_c); + +// +void ogre_cam_getRealDirection(struct hg3dclass_struct * thisclass_c, struct vector3_struct * result_c); + +// +void ogre_cam_getRealUp(struct hg3dclass_struct * thisclass_c, struct vector3_struct * result_c); + +// +void ogre_cam_getRealRight(struct hg3dclass_struct * thisclass_c, struct vector3_struct * result_c); + +// +void ogre_cam_getMovableType(struct hg3dclass_struct * thisclass_c, char * result_c); + +// +void ogre_cam_setLodBias(struct hg3dclass_struct * thisclass_c, float factor_c); + +// +void ogre_cam_getLodBias(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_cam_setLodCamera(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * lodCam_c); + +// +void ogre_cam_getLodCamera(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); + +// +void ogre_cam_setWindow(struct hg3dclass_struct * thisclass_c, float Left_c, float Top_c, float Right_c, float Bottom_c); + +// Cancel view window. +void ogre_cam_resetWindow(struct hg3dclass_struct * thisclass_c); + +// Returns if a viewport window is being used. +void ogre_cam_isWindowSet(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_cam_getBoundingRadius(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_cam_getAutoTrackTarget(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); + +// +void ogre_cam_getAutoTrackOffset(struct hg3dclass_struct * thisclass_c, struct vector3_struct * result_c); + +// +void ogre_cam_getViewport(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); + +// +void ogre_cam_setAutoAspectRatio(struct hg3dclass_struct * thisclass_c, long autoratio_c); + +// +void ogre_cam_getAutoAspectRatio(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_cam_setCullingFrustum(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * frustum_c); + +// +void ogre_cam_getCullingFrustum(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); + +// +void ogre_cam_isVisible3(struct hg3dclass_struct * thisclass_c, struct vector3_struct * vert_c, enum EnumFrustumPlane * culledBy_c, long * result_c); + +// +void ogre_cam_getWorldSpaceCorners(struct hg3dclass_struct * thisclass_c, struct vector3_struct * result_c); + +// +void ogre_cam_getNearClipDistance(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_cam_getFarClipDistance(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_cam_setUseRenderingDistance(struct hg3dclass_struct * thisclass_c, long use_c); + +// +void ogre_cam_getUseRenderingDistance(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_cam_synchroniseBaseSettingsWith(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * cam_c); + +// +void ogre_cam_getPositionForViewUpdate(struct hg3dclass_struct * thisclass_c, struct vector3_struct * result_c); + +// +void ogre_cam_getOrientationForViewUpdate(struct hg3dclass_struct * thisclass_c, struct quaternion_struct * result_c); + +// Sets whether to use min display size calculations + +void ogre_cam_setUseMinPixelSize(struct hg3dclass_struct * thisclass_c, long enable_c); + +// +void ogre_cam_getUseMinPixelSize(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_cam_getPixelDisplayRatio(struct hg3dclass_struct * thisclass_c, float * result_c); + +#endif
− include/ClassCmdManualNamedConstsFile.h
@@ -1,38 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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/ClassCmdPose.h
@@ -1,38 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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/ClassCompositionPass.h
@@ -1,131 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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 "TypeSharedPtr.h" -#include "TypeColour.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 setMaterial(const MaterialPtr& mat); -void cCop_setMaterial_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * mat_c); -// original function: void setMaterialName(const String & name); -void cCop_setMaterialName_c(struct hg3dclass_struct *classptr_c, char * name_c); -// original function: const MaterialPtr& getMaterial(); -void cCop_getMaterial_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * result_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);
− include/ClassCompositionTargetPass.h
@@ -1,81 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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);
− include/ClassCompositionTechnique.h
@@ -1,68 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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);
− include/ClassCompositor.h
@@ -1,59 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" -#include "TypeSharedPtr.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); -// original function: TexturePtr getTextureInstance(const String& name, size_t mrtIndex); -void cCo_getTextureInstance_c(struct hg3dclass_struct *classptr_c, char * name_c, int mrtIndex_c, struct sharedptr_struct * result_c);
− include/ClassCompositorChain.h
@@ -1,67 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" -#include "TypeSharedPtr.h" - - -// original function: CompositorInstance* addCompositor(CompositorPtr filter, size_t addPosition, const String& scheme); -void cCoc_addCompositor_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * filter_c, int addPosition_c, char * scheme_c, struct hg3dclass_struct * result_c); -// 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);
− include/ClassCompositorInstance.h
@@ -1,69 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" -#include "TypeSharedPtr.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: TexturePtr getTextureInstance(const String& name, size_t mrtIndex); -void cCoi_getTextureInstance_c(struct hg3dclass_struct *classptr_c, char * name_c, int mrtIndex_c, struct sharedptr_struct * 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 _fireNotifyMaterialSetup(uint32 pass_id, MaterialPtr & mat); -void cCoi__fireNotifyMaterialSetup_c(struct hg3dclass_struct *classptr_c, unsigned int pass_id_c, struct sharedptr_struct * mat_c); -// original function: void _fireNotifyMaterialRender(uint32 pass_id, MaterialPtr & mat); -void cCoi__fireNotifyMaterialRender_c(struct hg3dclass_struct *classptr_c, unsigned int pass_id_c, struct sharedptr_struct * mat_c); -// original function: void _fireNotifyResourcesCreated(bool forResizeOnly); -void cCoi__fireNotifyResourcesCreated_c(struct hg3dclass_struct *classptr_c, int forResizeOnly_c);
− include/ClassCompositorManager.h
@@ -1,63 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" -#include "TypeSharedPtr.h" - - -// original function: void initialise(); -void cCom_initialise_c(struct hg3dclass_struct *classptr_c); -// original function: void parseScript(DataStreamPtr& stream, const String& groupName); -void cCom_parseScript_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * stream_c, char * groupName_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);
include/ClassConfigFile.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,36 +15,40 @@ // 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: "Dep-OgreSDK/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" +#ifndef _DEFINED_HG3D_ClassConfigFile +#define _DEFINED_HG3D_ClassConfigFile + #include "ClassPtr.h" -#include "Utils.h" -#include "TypeSharedPtr.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 load(const DataStreamPtr& stream, const String& separators, bool trimWhitespace); -void cCf_load3_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * stream_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); +// +void ogre_cf_construct(struct hg3dclass_struct * result_c); + +// +void ogre_cf_destruct(struct hg3dclass_struct * thisclass_c); + +// load from a filename (not using resource group locations) +void ogre_cf_load(struct hg3dclass_struct * thisclass_c, char * filename_c, char * separators_c, long trimWhitespace_c); + +// load from a filename (using resource group locations) +void ogre_cf_load2(struct hg3dclass_struct * thisclass_c, char * filename_c, char * resourceGroup_c, char * separators_c, long trimWhitespace_c); + +// load from a filename (not using resource group locations) +void ogre_cf_loadDirect(struct hg3dclass_struct * thisclass_c, char * filename_c, char * separators_c, long trimWhitespace_c); + +// load from a filename (using resource group locations) +void ogre_cf_loadFromResourceSystem(struct hg3dclass_struct * thisclass_c, char * filename_c, char * resourceGroup_c, char * separators_c, long trimWhitespace_c); + +// +void ogre_cf_getSetting(struct hg3dclass_struct * thisclass_c, char * key_c, char * section_c, char * defaultValue_c, char * result_c); + +// +void ogre_cf_clear(struct hg3dclass_struct * thisclass_c); + +#endif
include/ClassControllerManager.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,43 +15,52 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassControllerManager.h + // + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassControllerManager +#define _DEFINED_HG3D_ClassControllerManager + +#include "ClassPtr.h" + + // +void ogre_cmgr_construct(struct hg3dclass_struct * result_c); + // +void ogre_cmgr_destruct(struct hg3dclass_struct * thisclass_c); + // -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/include/OGRE\OgreControllerManager.h" +void ogre_cmgr_clearControllers(struct hg3dclass_struct * thisclass_c); + // -// each stub combines the following files: -// a C++ implementation file, transforming cpp calls into C-functions -// a C-header file, making this C-functions available for the C2HS parser -// a chs file, give instructions to the C2HS parser. +void ogre_cmgr_updateAllControllers(struct hg3dclass_struct * thisclass_c); + // +void ogre_cmgr_getTimeFactor(struct hg3dclass_struct * thisclass_c, float * result_c); + // +void ogre_cmgr_setTimeFactor(struct hg3dclass_struct * thisclass_c, float tf_c); -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" +// +void ogre_cmgr_getFrameDelay(struct hg3dclass_struct * thisclass_c, float * result_c); +// +void ogre_cmgr_setFrameDelay(struct hg3dclass_struct * thisclass_c, float fd_c); -// 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); +// +void ogre_cmgr_getElapsedTime(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_cmgr_setElapsedTime(struct hg3dclass_struct * thisclass_c, float elapsedTime_c); + +// +void ogre_cmgr_getSingleton(struct hg3dclass_struct * result_c); + +// +void ogre_cmgr_getSingletonPtr(struct hg3dclass_struct * result_c); + +#endif
− include/ClassDataStream.h
@@ -1,66 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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 short * 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 skip(long count); -void cDs_skip_c(struct hg3dclass_struct *classptr_c, int count_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);
− include/ClassDefaultAxisAlignedBoxSceneQuery.h
@@ -1,38 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - -
− include/ClassDefaultPlaneBoundedVolumeListSceneQuery.h
@@ -1,38 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - -
− include/ClassDefaultRaySceneQuery.h
@@ -1,38 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - -
− include/ClassDefaultSceneManager.h
@@ -1,38 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - -
− include/ClassDefaultSceneManagerFactory.h
@@ -1,38 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - -
− include/ClassDefaultShadowCameraSetup.h
@@ -1,38 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - -
− include/ClassDefaultSphereSceneQuery.h
@@ -1,38 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - -
− include/ClassElement.h
@@ -1,38 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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/ClassEntity.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,121 +15,136 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassEntity.h + // + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassEntity +#define _DEFINED_HG3D_ClassEntity + +#include "ClassPtr.h" +#include "StructSharedPtr.h" +#include "ClassAnimationState.h" +#include "ClassAnimationStateSet.h" +#include "ClassMovableObject.h" +#include "EnumEntityVertexDataBindChoice.h" +#include "ClassResource.h" + + // +void ogre_ent_destruct(struct hg3dclass_struct * thisclass_c); + // +void ogre_ent_getMesh(struct hg3dclass_struct * thisclass_c, struct sharedptr_struct * result_c); + // -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/include/OGRE\OgreEntity.h" +void ogre_ent_getNumSubEntities(struct hg3dclass_struct * thisclass_c, unsigned long * result_c); + // -// each stub combines the following files: -// a C++ implementation file, transforming cpp calls into C-functions -// a C-header file, making this C-functions available for the C2HS parser -// a chs file, give instructions to the C2HS parser. +void ogre_ent_clone(struct hg3dclass_struct * thisclass_c, char * newName_c, struct hg3dclass_struct * result_c); + // +void ogre_ent_setMaterialName(struct hg3dclass_struct * thisclass_c, char * name_c, char * groupName_c); + // +void ogre_ent_setMaterial(struct hg3dclass_struct * thisclass_c, struct sharedptr_struct * material_c); -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" -#include "TypeSharedPtr.h" -#include "EnumVertexDataBindChoice.h" +// +void ogre_ent_getMovableType(struct hg3dclass_struct * thisclass_c, char * result_c); +// +void ogre_ent_getAnimationState(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * result_c); -// original function: const MeshPtr& getMesh(); -void cE_getMesh_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * result_c); -// 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 setMaterial(const MaterialPtr& material); -void cE_setMaterial_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * material_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 short * 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); +// +void ogre_ent_hasAnimationState(struct hg3dclass_struct * thisclass_c, char * name_c, long * result_c); + +// +void ogre_ent_getAllAnimationStates(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); + +// +void ogre_ent_setDisplaySkeleton(struct hg3dclass_struct * thisclass_c, long display_c); + +// +void ogre_ent_getDisplaySkeleton(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_ent_getManualLodLevel(struct hg3dclass_struct * thisclass_c, long index_c, struct hg3dclass_struct * result_c); + +// +void ogre_ent_getNumManualLodLevels(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_ent_setPolygonModeOverrideable(struct hg3dclass_struct * thisclass_c, long PolygonModeOverrideable_c); + +// +void ogre_ent_detachObjectFromBone(struct hg3dclass_struct * thisclass_c, char * movableName_c, struct hg3dclass_struct * result_c); + +// +void ogre_ent_detachObjectFromBone2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * obj_c); + +// Detach all MovableObjects previously attached using attachObjectToBone. +void ogre_ent_detachAllObjectsFromBone(struct hg3dclass_struct * thisclass_c); + +// +void ogre_ent_getBoundingRadius(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_ent_hasEdgeList(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_ent_hasSkeleton(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_ent_isHardwareAnimationEnabled(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_ent_getSoftwareAnimationRequests(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_ent_getSoftwareAnimationNormalsRequests(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_ent_addSoftwareAnimationRequest(struct hg3dclass_struct * thisclass_c, long normalsAlso_c); + +// +void ogre_ent_removeSoftwareAnimationRequest(struct hg3dclass_struct * thisclass_c, long normalsAlso_c); + +// +void ogre_ent_shareSkeletonInstanceWith(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * entity_c); + +// +void ogre_ent_hasVertexAnimation(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_ent_stopSharingSkeletonInstance(struct hg3dclass_struct * thisclass_c); + +// +void ogre_ent_sharesSkeletonInstance(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_ent_refreshAvailableAnimationState(struct hg3dclass_struct * thisclass_c); + +// Choose which vertex data to bind to the renderer. +void ogre_ent_chooseVertexDataForBinding(struct hg3dclass_struct * thisclass_c, long hasVertexAnim_c, enum EnumEntityVertexDataBindChoice * result_c); + +// +void ogre_ent_isInitialised(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_ent_backgroundLoadingComplete(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * res_c); + +// +void ogre_ent_setSkipAnimationStateUpdate(struct hg3dclass_struct * thisclass_c, long skip_c); + +// +void ogre_ent_getSkipAnimationStateUpdate(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_ent_setAlwaysUpdateMainSkeleton(struct hg3dclass_struct * thisclass_c, long update_c); + +// +void ogre_ent_getAlwaysUpdateMainSkeleton(struct hg3dclass_struct * thisclass_c, long * result_c); + +#endif
include/ClassEntityFactory.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,23 +15,29 @@ // 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: "Dep-OgreSDK/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" +#ifndef _DEFINED_HG3D_ClassEntityFactory +#define _DEFINED_HG3D_ClassEntityFactory + #include "ClassPtr.h" -#include "Utils.h" +#include "ClassMovableObject.h" +// +void ogre_entf_construct(struct hg3dclass_struct * result_c); + +// +void ogre_entf_destruct(struct hg3dclass_struct * thisclass_c); + +// Get the type of the object to be created. +void ogre_entf_getType(struct hg3dclass_struct * thisclass_c, char * result_c); + +// +void ogre_entf_destroyInstance(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * obj_c); + +#endif
include/ClassException.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,37 +15,43 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassException.h + // + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassException +#define _DEFINED_HG3D_ClassException + +#include "ClassPtr.h" + + // +void ogre_exc_construct(long number_c, char * description_c, char * source_c, struct hg3dclass_struct * result_c); + +// Needed for compatibility with std::exception. +void ogre_exc_destruct(struct hg3dclass_struct * thisclass_c); + // +void ogre_exc_getFullDescription(struct hg3dclass_struct * thisclass_c, char * result_c); + // -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/include/OGRE\OgreException.h" +void ogre_exc_getNumber(struct hg3dclass_struct * thisclass_c, long * result_c); + // -// each stub combines the following files: -// a C++ implementation file, transforming cpp calls into C-functions -// a C-header file, making this C-functions available for the C2HS parser -// a chs file, give instructions to the C2HS parser. +void ogre_exc_getSource(struct hg3dclass_struct * thisclass_c, char * result_c); + // +void ogre_exc_getFile(struct hg3dclass_struct * thisclass_c, char * result_c); + // +void ogre_exc_getLine(struct hg3dclass_struct * thisclass_c, long * result_c); -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" +// +void ogre_exc_getDescription(struct hg3dclass_struct * thisclass_c, char * result_c); +// Override std::exception::what. +void ogre_exc_what(struct hg3dclass_struct * thisclass_c, char * result_c); -// 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: long getLine(); -void cEx_getLine_c(struct hg3dclass_struct *classptr_c, int * 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); +#endif
− include/ClassFileHandleDataStream.h
@@ -1,48 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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 skip(long count); -void cFhds_skip_c(struct hg3dclass_struct *classptr_c, int count_c); -// 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);
− include/ClassFileNotFoundException.h
@@ -1,38 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - -
− include/ClassFileStreamDataStream.h
@@ -1,50 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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 skip(long count); -void cFsds_skip_c(struct hg3dclass_struct *classptr_c, int count_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);
include/ClassFrustum.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,107 +15,151 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassFrustum.h + // + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassFrustum +#define _DEFINED_HG3D_ClassFrustum + +#include "ClassPtr.h" +#include "StructRadians.h" +#include "StructVec2.h" +#include "StructVec3.h" +#include "EnumFrustumPlane.h" +#include "StructSharedPtr.h" +#include "ClassCamera.h" +#include "EnumProjectionType.h" +#include "StructQuaternion.h" +#include "EnumOrientationMode.h" + + +// Named constructor. +void ogre_frst_construct(char * name_c, struct hg3dclass_struct * result_c); + // +void ogre_frst_destruct(struct hg3dclass_struct * thisclass_c); + // +void ogre_frst_setFOVy(struct hg3dclass_struct * thisclass_c, struct radian_struct * fovy_c); + // -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/include/OGRE\OgreFrustum.h" +void ogre_frst_getFOVy(struct hg3dclass_struct * thisclass_c, struct radian_struct * result_c); + // -// each stub combines the following files: -// a C++ implementation file, transforming cpp calls into C-functions -// a C-header file, making this C-functions available for the C2HS parser -// a chs file, give instructions to the C2HS parser. +void ogre_frst_setNearClipDistance(struct hg3dclass_struct * thisclass_c, float nearDist_c); + // +void ogre_frst_getNearClipDistance(struct hg3dclass_struct * thisclass_c, float * result_c); + // +void ogre_frst_setFarClipDistance(struct hg3dclass_struct * thisclass_c, float farDist_c); -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" -#include "TypeRadian.h" -#include "TypeVector2.h" -#include "TypeVector3.h" -#include "EnumFrustumPlane.h" -#include "TypeSharedPtr.h" -#include "EnumProjectionType.h" -#include "TypeQuaternion.h" -#include "EnumOrientationMode.h" +// +void ogre_frst_getFarClipDistance(struct hg3dclass_struct * thisclass_c, float * result_c); +// +void ogre_frst_setAspectRatio(struct hg3dclass_struct * thisclass_c, float ratio_c); -// 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: const MaterialPtr& getMaterial(); -void cF_getMaterial_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * result_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); +// +void ogre_frst_getAspectRatio(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_frst_setFrustumOffset(struct hg3dclass_struct * thisclass_c, struct vector2_struct * offset_c); + +// +void ogre_frst_setFrustumOffset2(struct hg3dclass_struct * thisclass_c, float horizontal_c, float vertical_c); + +// +void ogre_frst_getFrustumOffset(struct hg3dclass_struct * thisclass_c, struct vector2_struct * result_c); + +// +void ogre_frst_setFocalLength(struct hg3dclass_struct * thisclass_c, float focalLength_c); + +// +void ogre_frst_getFocalLength(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_frst_setFrustumExtents(struct hg3dclass_struct * thisclass_c, float left_c, float right_c, float top_c, float bottom_c); + +// +void ogre_frst_resetFrustumExtents(struct hg3dclass_struct * thisclass_c); + +// +void ogre_frst_getFrustumExtents(struct hg3dclass_struct * thisclass_c, float * outleft_c, float * outright_c, float * outtop_c, float * outbottom_c); + +// Returns whether a custom view matrix is in use. +void ogre_frst_isCustomViewMatrixEnabled(struct hg3dclass_struct * thisclass_c, long * result_c); + +// Returns whether a custom projection matrix is in use. +void ogre_frst_isCustomProjectionMatrixEnabled(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_frst_isVisible3(struct hg3dclass_struct * thisclass_c, struct vector3_struct * vert_c, enum EnumFrustumPlane * culledBy_c, long * result_c); + +// Overridden from MovableObject::getTypeFlags +void ogre_frst_getTypeFlags(struct hg3dclass_struct * thisclass_c, unsigned long * result_c); + +// +void ogre_frst_getBoundingRadius(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_frst_getMovableType(struct hg3dclass_struct * thisclass_c, char * result_c); + +// +void ogre_frst_getMaterial(struct hg3dclass_struct * thisclass_c, struct sharedptr_struct * result_c); + +// +void ogre_frst_getSquaredViewDepth(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * cam_c, float * result_c); + +// +void ogre_frst_getWorldSpaceCorners(struct hg3dclass_struct * thisclass_c, struct vector3_struct * result_c); + +// +void ogre_frst_setProjectionType(struct hg3dclass_struct * thisclass_c, enum EnumProjectionType pt_c); + +// +void ogre_frst_getProjectionType(struct hg3dclass_struct * thisclass_c, enum EnumProjectionType * result_c); + +// +void ogre_frst_setOrthoWindow(struct hg3dclass_struct * thisclass_c, float w_c, float h_c); + +// +void ogre_frst_setOrthoWindowHeight(struct hg3dclass_struct * thisclass_c, float h_c); + +// +void ogre_frst_setOrthoWindowWidth(struct hg3dclass_struct * thisclass_c, float w_c); + +// +void ogre_frst_getOrthoWindowHeight(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_frst_getOrthoWindowWidth(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_frst_disableReflection(struct hg3dclass_struct * thisclass_c); + +// Returns whether this frustum is being reflected. +void ogre_frst_isReflected(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_frst_disableCustomNearClipPlane(struct hg3dclass_struct * thisclass_c); + +// +void ogre_frst_isCustomNearClipPlaneEnabled(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_frst_getPositionForViewUpdate(struct hg3dclass_struct * thisclass_c, struct vector3_struct * result_c); + +// +void ogre_frst_getOrientationForViewUpdate(struct hg3dclass_struct * thisclass_c, struct quaternion_struct * result_c); + +// +void ogre_frst_setOrientationMode(struct hg3dclass_struct * thisclass_c, enum EnumOrientationMode orientationMode_c); + +// +void ogre_frst_getOrientationMode(struct hg3dclass_struct * thisclass_c, enum EnumOrientationMode * result_c); + +#endif
− include/ClassGeometryBucket.h
@@ -1,43 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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 "TypeSharedPtr.h" - - -// original function: const MaterialPtr& getMaterial(); -void cGb_getMaterial_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * result_c); -// original function: void build(bool stencilShadows); -void cGb_build_c(struct hg3dclass_struct *classptr_c, int stencilShadows_c);
− include/ClassGpuProgram.h
@@ -1,95 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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);
− include/ClassGpuProgramManager.h
@@ -1,52 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" -#include "TypeSharedPtr.h" -#include "EnumGpuProgramType.h" - - -// original function: GpuProgramPtr load(const String& name, const String& groupName, const String& filename, GpuProgramType gptype, const String& syntaxCode); -void cGpm_load_c(struct hg3dclass_struct *classptr_c, char * name_c, char * groupName_c, char * filename_c, enum EnumGpuProgramType gptype_c, char * syntaxCode_c, struct sharedptr_struct * result_c); -// original function: GpuProgramPtr loadFromString(const String& name, const String& groupName, const String& code, GpuProgramType gptype, const String& syntaxCode); -void cGpm_loadFromString_c(struct hg3dclass_struct *classptr_c, char * name_c, char * groupName_c, char * code_c, enum EnumGpuProgramType gptype_c, char * syntaxCode_c, struct sharedptr_struct * result_c); -// original function: bool isSyntaxSupported(const String& syntaxCode); -void cGpm_isSyntaxSupported_c(struct hg3dclass_struct *classptr_c, char * syntaxCode_c, int * result_c); -// original function: GpuProgramPtr createProgram(const String& name, const String& groupName, const String& filename, GpuProgramType gptype, const String& syntaxCode); -void cGpm_createProgram_c(struct hg3dclass_struct *classptr_c, char * name_c, char * groupName_c, char * filename_c, enum EnumGpuProgramType gptype_c, char * syntaxCode_c, struct sharedptr_struct * result_c); -// original function: GpuProgramPtr createProgramFromString(const String& name, const String& groupName, const String& code, GpuProgramType gptype, const String& syntaxCode); -void cGpm_createProgramFromString_c(struct hg3dclass_struct *classptr_c, char * name_c, char * groupName_c, char * code_c, enum EnumGpuProgramType gptype_c, char * syntaxCode_c, struct sharedptr_struct * result_c); -// original function: ResourcePtr getByName(const String& name, bool preferHighLevelPrograms); -void cGpm_getByName_c(struct hg3dclass_struct *classptr_c, char * name_c, int preferHighLevelPrograms_c, struct sharedptr_struct * result_c);
+ include/ClassHG3DUtilities.h view
@@ -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.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// ClassHG3DUtilities.h + +// + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassHG3DUtilities +#define _DEFINED_HG3D_ClassHG3DUtilities + +#include "ClassPtr.h" +#include "ClassRenderWindow.h" +#include "ClassEntity.h" + + +// +void ogre_hg3dutl_getWindowHandle(struct hg3dclass_struct * window_c, unsigned long * result_c); + +// +void ogre_hg3dutl_setupCloseEventHandler(struct hg3dclass_struct * window_c); + +// +void ogre_hg3dutl_checkQuitReceived(long * result_c); + +// +void ogre_hg3dutl_buildTangentVectors(struct hg3dclass_struct * entity_c); + +#endif
− include/ClassHardwareBufferLicensee.h
@@ -1,38 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - -
− include/ClassHardwareBufferManager.h
@@ -1,44 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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);
− include/ClassHardwareBufferManagerBase.h
@@ -1,44 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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);
− include/ClassHardwareIndexBuffer.h
@@ -1,47 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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);
− include/ClassHardwareOcclusionQuery.h
@@ -1,48 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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);
− include/ClassHardwarePixelBuffer.h
@@ -1,52 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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 "TypeSharedPtr.h" -#include "EnumPixelFormat.h" - - -// original function: void blit(const HardwarePixelBufferSharedPtr & src); -void cHpb_blit2_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * src_c); -// 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);
− include/ClassHighLevelGpuProgram.h
@@ -1,40 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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);
− include/ClassHighLevelGpuProgramFactory.h
@@ -1,40 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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);
− include/ClassIOException.h
@@ -1,38 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - -
− include/ClassInternalErrorException.h
@@ -1,38 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - -
− include/ClassInvalidParametersException.h
@@ -1,38 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - -
− include/ClassInvalidStateException.h
@@ -1,38 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - -
− include/ClassItemIdentityException.h
@@ -1,38 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - -
− include/ClassKeyFrame.h
@@ -1,40 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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);
− include/ClassLODBucket.h
@@ -1,42 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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);
− include/ClassLiSPSMShadowCameraSetup.h
@@ -1,51 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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);
include/ClassLight.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,128 +15,161 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassLight.h + // + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassLight +#define _DEFINED_HG3D_ClassLight + +#include "ClassPtr.h" +#include "EnumLightType.h" +#include "StructColour.h" +#include "StructVec3.h" +#include "StructRadians.h" + + // +void ogre_lgt_construct(char * name_c, struct hg3dclass_struct * result_c); + // +void ogre_lgt_destruct(struct hg3dclass_struct * thisclass_c); + // -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/include/OGRE\OgreLight.h" +void ogre_lgt_setType(struct hg3dclass_struct * thisclass_c, enum EnumLightType type_c); + // -// each stub combines the following files: -// a C++ implementation file, transforming cpp calls into C-functions -// a C-header file, making this C-functions available for the C2HS parser -// a chs file, give instructions to the C2HS parser. +void ogre_lgt_getType(struct hg3dclass_struct * thisclass_c, enum EnumLightType * result_c); + // +void ogre_lgt_setDiffuseColour(struct hg3dclass_struct * thisclass_c, float red_c, float green_c, float blue_c); + // +void ogre_lgt_setDiffuseColour2(struct hg3dclass_struct * thisclass_c, struct colourvalue_struct * colour_c); -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" -#include "TypeVector3.h" -#include "EnumLightTypes.h" -#include "TypeColour.h" -#include "TypeRadian.h" -#include "TypeVector4.h" +// +void ogre_lgt_getDiffuseColour(struct hg3dclass_struct * thisclass_c, struct colourvalue_struct * result_c); +// +void ogre_lgt_setSpecularColour(struct hg3dclass_struct * thisclass_c, float red_c, float green_c, float blue_c); -// 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 short index_c, struct vector4_struct * value_c); -// original function: const Vector4& getCustomParameter(uint16 index); -void cL_getCustomParameter_c(struct hg3dclass_struct *classptr_c, unsigned short index_c, struct vector4_struct * result_c); +// +void ogre_lgt_setSpecularColour2(struct hg3dclass_struct * thisclass_c, struct colourvalue_struct * colour_c); + +// +void ogre_lgt_getSpecularColour(struct hg3dclass_struct * thisclass_c, struct colourvalue_struct * result_c); + +// +void ogre_lgt_setAttenuation(struct hg3dclass_struct * thisclass_c, float range_c, float constant_c, float linear_c, float quadratic_c); + +// +void ogre_lgt_getAttenuationRange(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_lgt_getAttenuationConstant(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_lgt_getAttenuationLinear(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_lgt_getAttenuationQuadric(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_lgt_setPosition(struct hg3dclass_struct * thisclass_c, float x_c, float y_c, float z_c); + +// +void ogre_lgt_setPosition2(struct hg3dclass_struct * thisclass_c, struct vector3_struct * vec_c); + +// +void ogre_lgt_getPosition(struct hg3dclass_struct * thisclass_c, struct vector3_struct * result_c); + +// +void ogre_lgt_setDirection(struct hg3dclass_struct * thisclass_c, float x_c, float y_c, float z_c); + +// +void ogre_lgt_setDirection2(struct hg3dclass_struct * thisclass_c, struct vector3_struct * vec_c); + +// +void ogre_lgt_getDirection(struct hg3dclass_struct * thisclass_c, struct vector3_struct * result_c); + +// +void ogre_lgt_setSpotlightRange(struct hg3dclass_struct * thisclass_c, struct radian_struct * innerAngle_c, struct radian_struct * outerAngle_c, float falloff_c); + +// +void ogre_lgt_getSpotlightInnerAngle(struct hg3dclass_struct * thisclass_c, struct radian_struct * result_c); + +// +void ogre_lgt_getSpotlightOuterAngle(struct hg3dclass_struct * thisclass_c, struct radian_struct * result_c); + +// +void ogre_lgt_getSpotlightFalloff(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_lgt_setSpotlightInnerAngle(struct hg3dclass_struct * thisclass_c, struct radian_struct * val_c); + +// +void ogre_lgt_setSpotlightOuterAngle(struct hg3dclass_struct * thisclass_c, struct radian_struct * val_c); + +// +void ogre_lgt_setSpotlightFalloff(struct hg3dclass_struct * thisclass_c, float val_c); + +// +void ogre_lgt_setSpotlightNearClipDistance(struct hg3dclass_struct * thisclass_c, float nearClip_c); + +// +void ogre_lgt_getSpotlightNearClipDistance(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_lgt_setPowerScale(struct hg3dclass_struct * thisclass_c, float power_c); + +// +void ogre_lgt_getPowerScale(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_lgt_getMovableType(struct hg3dclass_struct * thisclass_c, char * result_c); + +// +void ogre_lgt_getDerivedPosition(struct hg3dclass_struct * thisclass_c, long cameraRelativeIfSet_c, struct vector3_struct * result_c); + +// +void ogre_lgt_getDerivedDirection(struct hg3dclass_struct * thisclass_c, struct vector3_struct * result_c); + +// +void ogre_lgt_setVisible(struct hg3dclass_struct * thisclass_c, long visible_c); + +// +void ogre_lgt_getBoundingRadius(struct hg3dclass_struct * thisclass_c, float * result_c); + +// Override to return specific type flag. +void ogre_lgt_getTypeFlags(struct hg3dclass_struct * thisclass_c, unsigned long * result_c); + +// +void ogre_lgt_resetCustomShadowCameraSetup(struct hg3dclass_struct * thisclass_c); + +// +void ogre_lgt_setShadowFarDistance(struct hg3dclass_struct * thisclass_c, float distance_c); + +// +void ogre_lgt_resetShadowFarDistance(struct hg3dclass_struct * thisclass_c); + +// +void ogre_lgt_getShadowFarDistance(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_lgt_getShadowFarDistanceSquared(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_lgt_setShadowNearClipDistance(struct hg3dclass_struct * thisclass_c, float nearClip_c); + +// +void ogre_lgt_getShadowNearClipDistance(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_lgt_setShadowFarClipDistance(struct hg3dclass_struct * thisclass_c, float farClip_c); + +// +void ogre_lgt_getShadowFarClipDistance(struct hg3dclass_struct * thisclass_c, float * result_c); + +#endif
include/ClassLightFactory.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,23 +15,29 @@ // 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: "Dep-OgreSDK/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" +#ifndef _DEFINED_HG3D_ClassLightFactory +#define _DEFINED_HG3D_ClassLightFactory + #include "ClassPtr.h" -#include "Utils.h" +#include "ClassMovableObject.h" +// +void ogre_lgtf_construct(struct hg3dclass_struct * result_c); + +// +void ogre_lgtf_destruct(struct hg3dclass_struct * thisclass_c); + +// Get the type of the object to be created. +void ogre_lgtf_getType(struct hg3dclass_struct * thisclass_c, char * result_c); + +// +void ogre_lgtf_destroyInstance(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * obj_c); + +#endif
+ include/ClassLog.h view
@@ -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.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// ClassLog.h + +// + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassLog +#define _DEFINED_HG3D_ClassLog + +#include "ClassPtr.h" +#include "EnumLogMessageLevel.h" +#include "EnumLoggingLevel.h" + + +// +void ogre_lg_destruct(struct hg3dclass_struct * thisclass_c); + +// Return the name of the log. +void ogre_lg_getName(struct hg3dclass_struct * thisclass_c, char * result_c); + +// Get whether debug output is enabled for this log. +void ogre_lg_isDebugOutputEnabled(struct hg3dclass_struct * thisclass_c, long * result_c); + +// Get whether file output is suppressed for this log. +void ogre_lg_isFileOutputSuppressed(struct hg3dclass_struct * thisclass_c, long * result_c); + +// Get whether time stamps are printed for this log. +void ogre_lg_isTimeStampEnabled(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_lg_logMessage(struct hg3dclass_struct * thisclass_c, char * message_c, enum EnumLogMessageLevel lml_c, long maskDebug_c); + +// +void ogre_lg_setDebugOutputEnabled(struct hg3dclass_struct * thisclass_c, long debugOutput_c); + +// +void ogre_lg_setLogDetail(struct hg3dclass_struct * thisclass_c, enum EnumLoggingLevel ll_c); + +// +void ogre_lg_setTimeStampEnabled(struct hg3dclass_struct * thisclass_c, long timeStamp_c); + +// +void ogre_lg_getLogDetail(struct hg3dclass_struct * thisclass_c, enum EnumLoggingLevel * result_c); + +#endif
include/ClassLogManager.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,33 +15,55 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassLogManager.h + // + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassLogManager +#define _DEFINED_HG3D_ClassLogManager + +#include "ClassPtr.h" +#include "ClassLog.h" +#include "EnumLogMessageLevel.h" +#include "EnumLoggingLevel.h" + + // +void ogre_lmgr_destruct(struct hg3dclass_struct * thisclass_c); + // +void ogre_lmgr_createLog(struct hg3dclass_struct * thisclass_c, char * name_c, long defaultLog_c, long debuggerOutput_c, long suppressFileOutput_c, struct hg3dclass_struct * result_c); + // -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/include/OGRE\OgreLogManager.h" +void ogre_lmgr_getLog(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * result_c); + // -// each stub combines the following files: -// a C++ implementation file, transforming cpp calls into C-functions -// a C-header file, making this C-functions available for the C2HS parser -// a chs file, give instructions to the C2HS parser. +void ogre_lmgr_getDefaultLog(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); + // +void ogre_lmgr_destroyLog(struct hg3dclass_struct * thisclass_c, char * name_c); + // +void ogre_lmgr_destroyLog2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * log_c); -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" -#include "EnumLogMessageLevel.h" -#include "EnumLoggingLevel.h" +// +void ogre_lmgr_setDefaultLog(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * newLog_c, struct hg3dclass_struct * result_c); +// +void ogre_lmgr_logMessage(struct hg3dclass_struct * thisclass_c, char * message_c, enum EnumLogMessageLevel lml_c, long maskDebug_c); -// 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); +// +void ogre_lmgr_logMessage2(struct hg3dclass_struct * thisclass_c, enum EnumLogMessageLevel lml_c, char * message_c, long maskDebug_c); + +// +void ogre_lmgr_setLogDetail(struct hg3dclass_struct * thisclass_c, enum EnumLoggingLevel ll_c); + +// +void ogre_lmgr_getSingleton(struct hg3dclass_struct * result_c); + +// +void ogre_lmgr_getSingletonPtr(struct hg3dclass_struct * result_c); + +#endif
include/ClassManualObject.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,107 +15,148 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassManualObject.h + // + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassManualObject +#define _DEFINED_HG3D_ClassManualObject + +#include "ClassPtr.h" +#include "EnumRenderOperationOperationType.h" +#include "StructVec3.h" +#include "StructVec2.h" +#include "StructColour.h" +#include "ClassManualObjectSection.h" +#include "StructSharedPtr.h" + + // +void ogre_mno_construct(char * name_c, struct hg3dclass_struct * result_c); + // +void ogre_mno_destruct(struct hg3dclass_struct * thisclass_c); + // -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/include/OGRE\OgreManualObject.h" +void ogre_mno_clear(struct hg3dclass_struct * thisclass_c); + // -// each stub combines the following files: -// a C++ implementation file, transforming cpp calls into C-functions -// a C-header file, making this C-functions available for the C2HS parser -// a chs file, give instructions to the C2HS parser. +void ogre_mno_estimateVertexCount(struct hg3dclass_struct * thisclass_c, long vcount_c); + // +void ogre_mno_estimateIndexCount(struct hg3dclass_struct * thisclass_c, long icount_c); + // +void ogre_mno_begin(struct hg3dclass_struct * thisclass_c, char * materialName_c, enum EnumRenderOperationOperationType opType_c, char * groupName_c); -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" -#include "EnumOperationType.h" -#include "TypeVector3.h" -#include "TypeVector2.h" -#include "TypeVector4.h" -#include "TypeColour.h" -#include "TypeSharedPtr.h" +// +void ogre_mno_setDynamic(struct hg3dclass_struct * thisclass_c, long dyn_c); +// +void ogre_mno_getDynamic(struct hg3dclass_struct * thisclass_c, long * result_c); -// 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: MeshPtr convertToMesh(const String& meshName, const String& groupName); -void cMno_convertToMesh_c(struct hg3dclass_struct *classptr_c, char * meshName_c, char * groupName_c, struct sharedptr_struct * result_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); +// +void ogre_mno_beginUpdate(struct hg3dclass_struct * thisclass_c, long sectionIndex_c); + +// +void ogre_mno_position(struct hg3dclass_struct * thisclass_c, struct vector3_struct * pos_c); + +// +void ogre_mno_position2(struct hg3dclass_struct * thisclass_c, float x_c, float y_c, float z_c); + +// +void ogre_mno_normal(struct hg3dclass_struct * thisclass_c, struct vector3_struct * norm_c); + +// +void ogre_mno_normal2(struct hg3dclass_struct * thisclass_c, float x_c, float y_c, float z_c); + +// +void ogre_mno_tangent(struct hg3dclass_struct * thisclass_c, struct vector3_struct * tan_c); + +// +void ogre_mno_tangent2(struct hg3dclass_struct * thisclass_c, float x_c, float y_c, float z_c); + +// +void ogre_mno_textureCoord(struct hg3dclass_struct * thisclass_c, float u_c); + +// +void ogre_mno_textureCoord2(struct hg3dclass_struct * thisclass_c, float u_c, float v_c); + +// +void ogre_mno_textureCoord3(struct hg3dclass_struct * thisclass_c, float u_c, float v_c, float w_c); + +// +void ogre_mno_textureCoord4(struct hg3dclass_struct * thisclass_c, float x_c, float y_c, float z_c, float w_c); + +// +void ogre_mno_textureCoord5(struct hg3dclass_struct * thisclass_c, struct vector2_struct * uv_c); + +// +void ogre_mno_textureCoord6(struct hg3dclass_struct * thisclass_c, struct vector3_struct * uvw_c); + +// +void ogre_mno_colour(struct hg3dclass_struct * thisclass_c, struct colourvalue_struct * col_c); + +// +void ogre_mno_colour2(struct hg3dclass_struct * thisclass_c, float r_c, float g_c, float b_c, float a_c); + +// +void ogre_mno_index(struct hg3dclass_struct * thisclass_c, unsigned long idx_c); + +// +void ogre_mno_triangle(struct hg3dclass_struct * thisclass_c, unsigned long i1_c, unsigned long i2_c, unsigned long i3_c); + +// +void ogre_mno_quad(struct hg3dclass_struct * thisclass_c, unsigned long i1_c, unsigned long i2_c, unsigned long i3_c, unsigned long i4_c); + +// Get the number of vertices in the section currently being defined (returns 0 if no section is in progress). +void ogre_mno_getCurrentVertexCount(struct hg3dclass_struct * thisclass_c, long * result_c); + +// Get the number of indices in the section currently being defined (returns 0 if no section is in progress). +void ogre_mno_getCurrentIndexCount(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_mno_end(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); + +// +void ogre_mno_setMaterialName(struct hg3dclass_struct * thisclass_c, long subindex_c, char * name_c, char * group_c); + +// +void ogre_mno_convertToMesh(struct hg3dclass_struct * thisclass_c, char * meshName_c, char * groupName_c, struct sharedptr_struct * result_c); + +// +void ogre_mno_setUseIdentityProjection(struct hg3dclass_struct * thisclass_c, long useIdentityProjection_c); + +// +void ogre_mno_getUseIdentityProjection(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_mno_setUseIdentityView(struct hg3dclass_struct * thisclass_c, long useIdentityView_c); + +// +void ogre_mno_getUseIdentityView(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_mno_getSection(struct hg3dclass_struct * thisclass_c, unsigned long index_c, struct hg3dclass_struct * result_c); + +// +void ogre_mno_getNumSections(struct hg3dclass_struct * thisclass_c, unsigned long * result_c); + +// +void ogre_mno_setKeepDeclarationOrder(struct hg3dclass_struct * thisclass_c, long keepOrder_c); + +// +void ogre_mno_getKeepDeclarationOrder(struct hg3dclass_struct * thisclass_c, long * result_c); + +// . +void ogre_mno_getMovableType(struct hg3dclass_struct * thisclass_c, char * result_c); + +// . +void ogre_mno_getBoundingRadius(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_mno_hasEdgeList(struct hg3dclass_struct * thisclass_c, long * result_c); + +#endif
include/ClassManualObjectFactory.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,23 +15,29 @@ // 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: "Dep-OgreSDK/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" +#ifndef _DEFINED_HG3D_ClassManualObjectFactory +#define _DEFINED_HG3D_ClassManualObjectFactory + #include "ClassPtr.h" -#include "Utils.h" +#include "ClassMovableObject.h" +// +void ogre_mnof_construct(struct hg3dclass_struct * result_c); + +// +void ogre_mnof_destruct(struct hg3dclass_struct * thisclass_c); + +// Get the type of the object to be created. +void ogre_mnof_getType(struct hg3dclass_struct * thisclass_c, char * result_c); + +// +void ogre_mnof_destroyInstance(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * obj_c); + +#endif
include/ClassManualObjectSection.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,36 +15,47 @@ // 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: "Dep-OgreSDK/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" +#ifndef _DEFINED_HG3D_ClassManualObjectSection +#define _DEFINED_HG3D_ClassManualObjectSection + #include "ClassPtr.h" -#include "Utils.h" -#include "TypeSharedPtr.h" +#include "ClassManualObject.h" +#include "EnumRenderOperationOperationType.h" +#include "StructSharedPtr.h" +#include "ClassCamera.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); -// original function: const MaterialPtr& getMaterial(); -void cMos_getMaterial_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * result_c); +// +void ogre_mnos_construct(struct hg3dclass_struct * parent_c, char * materialName_c, enum EnumRenderOperationOperationType opType_c, char * groupName_c, struct hg3dclass_struct * result_c); + +// +void ogre_mnos_destruct(struct hg3dclass_struct * thisclass_c); + +// Retrieve the material name in use. +void ogre_mnos_getMaterialName(struct hg3dclass_struct * thisclass_c, char * result_c); + +// Retrieve the material group in use. +void ogre_mnos_getMaterialGroup(struct hg3dclass_struct * thisclass_c, char * result_c); + +// update the material name in use +void ogre_mnos_setMaterialName(struct hg3dclass_struct * thisclass_c, char * name_c, char * groupName_c); + +// Set whether we need 32-bit indices. +void ogre_mnos_set32BitIndices(struct hg3dclass_struct * thisclass_c, long n32_c); + +// Get whether we need 32-bit indices. +void ogre_mnos_get32BitIndices(struct hg3dclass_struct * thisclass_c, long * result_c); + +// . +void ogre_mnos_getMaterial(struct hg3dclass_struct * thisclass_c, struct sharedptr_struct * result_c); + +// . +void ogre_mnos_getSquaredViewDepth(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * _c, float * result_c); + +#endif
− include/ClassManualObjectSectionShadowRenderable.h
@@ -1,38 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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/ClassMaterial.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,119 +15,120 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassMaterial.h + // + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassMaterial +#define _DEFINED_HG3D_ClassMaterial + +#include "ClassPtr.h" +#include "StructSharedPtr.h" +#include "StructColour.h" + + // +void ogre_mtrl_destruct(struct hg3dclass_struct * thisclass_c); + // +void ogre_mtrl_isTransparent(struct hg3dclass_struct * thisclass_c, long * result_c); + // -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/include/OGRE\OgreMaterial.h" +void ogre_mtrl_setReceiveShadows(struct hg3dclass_struct * thisclass_c, long enabled_c); + // -// each stub combines the following files: -// a C++ implementation file, transforming cpp calls into C-functions -// a C-header file, making this C-functions available for the C2HS parser -// a chs file, give instructions to the C2HS parser. +void ogre_mtrl_getReceiveShadows(struct hg3dclass_struct * thisclass_c, long * result_c); + // +void ogre_mtrl_setTransparencyCastsShadows(struct hg3dclass_struct * thisclass_c, long enabled_c); + // +void ogre_mtrl_getTransparencyCastsShadows(struct hg3dclass_struct * thisclass_c, long * result_c); -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" -#include "TypeSharedPtr.h" -#include "TypeColour.h" -#include "EnumCompareFunction.h" -#include "EnumCullingMode.h" -#include "EnumManualCullingMode.h" -#include "EnumShadeOptions.h" -#include "EnumFogMode.h" -#include "EnumTextureFilterOptions.h" +// +void ogre_mtrl_getNumTechniques(struct hg3dclass_struct * thisclass_c, unsigned short * result_c); +// +void ogre_mtrl_removeTechnique(struct hg3dclass_struct * thisclass_c, unsigned short index_c); -// 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 short 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 short * result_c); -// original function: void removeTechnique(unsigned short index); -void cMt_removeTechnique_c(struct hg3dclass_struct *classptr_c, unsigned short 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 short index_c, struct hg3dclass_struct * result_c); -// original function: unsigned short getNumSupportedTechniques(); -void cMt_getNumSupportedTechniques_c(struct hg3dclass_struct *classptr_c, unsigned short * 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 short schemeIndex_c, unsigned short * result_c); -// original function: unsigned short getNumLodLevels(const String& schemeName); -void cMt_getNumLodLevels2_c(struct hg3dclass_struct *classptr_c, char * schemeName_c, unsigned short * result_c); -// original function: MaterialPtr clone(const String& newName, bool changeGroup, const String& newGroup); -void cMt_clone_c(struct hg3dclass_struct *classptr_c, char * newName_c, int changeGroup_c, char * newGroup_c, struct sharedptr_struct * result_c); -// original function: void copyDetailsTo(MaterialPtr& mat); -void cMt_copyDetailsTo_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * mat_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); +// +void ogre_mtrl_removeAllTechniques(struct hg3dclass_struct * thisclass_c); + +// +void ogre_mtrl_getNumSupportedTechniques(struct hg3dclass_struct * thisclass_c, unsigned short * result_c); + +// +void ogre_mtrl_getUnsupportedTechniquesExplanation(struct hg3dclass_struct * thisclass_c, char * result_c); + +// +void ogre_mtrl_getNumLodLevels(struct hg3dclass_struct * thisclass_c, unsigned short schemeIndex_c, unsigned short * result_c); + +// +void ogre_mtrl_getNumLodLevels2(struct hg3dclass_struct * thisclass_c, char * schemeName_c, unsigned short * result_c); + +// +void ogre_mtrl_clone(struct hg3dclass_struct * thisclass_c, char * newName_c, long changeGroup_c, char * newGroup_c, struct sharedptr_struct * result_c); + +// +void ogre_mtrl_copyDetailsTo(struct hg3dclass_struct * thisclass_c, struct sharedptr_struct * mat_c); + +// +void ogre_mtrl_compile(struct hg3dclass_struct * thisclass_c, long autoManageTextureUnits_c); + +// +void ogre_mtrl_setPointSize(struct hg3dclass_struct * thisclass_c, float ps_c); + +// +void ogre_mtrl_setAmbient(struct hg3dclass_struct * thisclass_c, float red_c, float green_c, float blue_c); + +// +void ogre_mtrl_setAmbient2(struct hg3dclass_struct * thisclass_c, struct colourvalue_struct * ambient_c); + +// +void ogre_mtrl_setDiffuse(struct hg3dclass_struct * thisclass_c, float red_c, float green_c, float blue_c, float alpha_c); + +// +void ogre_mtrl_setDiffuse2(struct hg3dclass_struct * thisclass_c, struct colourvalue_struct * diffuse_c); + +// +void ogre_mtrl_setSpecular(struct hg3dclass_struct * thisclass_c, float red_c, float green_c, float blue_c, float alpha_c); + +// +void ogre_mtrl_setSpecular2(struct hg3dclass_struct * thisclass_c, struct colourvalue_struct * specular_c); + +// +void ogre_mtrl_setShininess(struct hg3dclass_struct * thisclass_c, float val_c); + +// +void ogre_mtrl_setSelfIllumination(struct hg3dclass_struct * thisclass_c, float red_c, float green_c, float blue_c); + +// +void ogre_mtrl_setSelfIllumination2(struct hg3dclass_struct * thisclass_c, struct colourvalue_struct * selfIllum_c); + +// +void ogre_mtrl_setDepthCheckEnabled(struct hg3dclass_struct * thisclass_c, long enabled_c); + +// +void ogre_mtrl_setDepthWriteEnabled(struct hg3dclass_struct * thisclass_c, long enabled_c); + +// +void ogre_mtrl_setColourWriteEnabled(struct hg3dclass_struct * thisclass_c, long enabled_c); + +// +void ogre_mtrl_setLightingEnabled(struct hg3dclass_struct * thisclass_c, long enabled_c); + +// +void ogre_mtrl_setDepthBias(struct hg3dclass_struct * thisclass_c, float constantBias_c, float slopeScaleBias_c); + +// +void ogre_mtrl_setTextureAnisotropy(struct hg3dclass_struct * thisclass_c, long maxAniso_c); + +// +void ogre_mtrl_touch(struct hg3dclass_struct * thisclass_c); + +// +void ogre_mtrl_getCompilationRequired(struct hg3dclass_struct * thisclass_c, long * result_c); + +#endif
− include/ClassMaterialBucket.h
@@ -1,47 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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 "TypeSharedPtr.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: const MaterialPtr& getMaterial(); -void cMb_getMaterial_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * result_c); -// original function: Technique* getCurrentTechnique(); -void cMb_getCurrentTechnique_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c);
include/ClassMaterialManager.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,55 +15,47 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassMaterialManager.h + // + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassMaterialManager +#define _DEFINED_HG3D_ClassMaterialManager + +#include "ClassPtr.h" +#include "StructSharedPtr.h" + + // +void ogre_mtrlmgr_construct(struct hg3dclass_struct * result_c); + // +void ogre_mtrlmgr_destruct(struct hg3dclass_struct * thisclass_c); + // -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/include/OGRE\OgreMaterialManager.h" +void ogre_mtrlmgr_initialise(struct hg3dclass_struct * thisclass_c); + // -// each stub combines the following files: -// a C++ implementation file, transforming cpp calls into C-functions -// a C-header file, making this C-functions available for the C2HS parser -// a chs file, give instructions to the C2HS parser. +void ogre_mtrlmgr_setDefaultAnisotropy(struct hg3dclass_struct * thisclass_c, unsigned long maxAniso_c); + +// Get the default maxAnisotropy. +void ogre_mtrlmgr_getDefaultAnisotropy(struct hg3dclass_struct * thisclass_c, unsigned long * result_c); + // +void ogre_mtrlmgr_getDefaultSettings(struct hg3dclass_struct * thisclass_c, struct sharedptr_struct * result_c); + // +void ogre_mtrlmgr_getActiveScheme(struct hg3dclass_struct * thisclass_c, char * result_c); -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" -#include "TypeSharedPtr.h" -#include "EnumTextureFilterOptions.h" -#include "EnumFilterType.h" -#include "EnumFilterOptions.h" +// +void ogre_mtrlmgr_setActiveScheme(struct hg3dclass_struct * thisclass_c, char * schemeName_c); +// +void ogre_mtrlmgr_getSingleton(struct hg3dclass_struct * result_c); -// original function: void initialise(); -void cMtm_initialise_c(struct hg3dclass_struct *classptr_c); -// original function: void parseScript(DataStreamPtr& stream, const String& groupName); -void cMtm_parseScript_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * stream_c, char * groupName_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: MaterialPtr getDefaultSettings(); -void cMtm_getDefaultSettings_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * result_c); -// original function: unsigned short _getSchemeIndex(const String& name); -void cMtm__getSchemeIndex_c(struct hg3dclass_struct *classptr_c, char * name_c, unsigned short * result_c); -// original function: const String& _getSchemeName(unsigned short index); -void cMtm__getSchemeName_c(struct hg3dclass_struct *classptr_c, unsigned short index_c, char * result_c); -// original function: unsigned short _getActiveSchemeIndex(); -void cMtm__getActiveSchemeIndex_c(struct hg3dclass_struct *classptr_c, unsigned short * 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); +// +void ogre_mtrlmgr_getSingletonPtr(struct hg3dclass_struct * result_c); + +#endif
− include/ClassMaterialSerializer.h
@@ -1,51 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" -#include "TypeSharedPtr.h" - - -// original function: void queueForExport(const MaterialPtr& pMat, bool clearQueued, bool exportDefaults, const String& materialName); -void cMts_queueForExport_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * pMat_c, int clearQueued_c, int exportDefaults_c, char * materialName_c); -// 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: void exportMaterial(const MaterialPtr& pMat, const String& filename, bool exportDefaults, const bool includeProgDef, const String& programFilename, const String& materialName); -void cMts_exportMaterial_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * pMat_c, char * filename_c, int exportDefaults_c, int includeProgDef_c, char * programFilename_c, char * materialName_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); -// original function: void parseScript(DataStreamPtr& stream, const String& groupName); -void cMts_parseScript_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * stream_c, char * groupName_c);
− include/ClassMemoryDataStream.h
@@ -1,54 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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 skip(long count); -void cMds_skip_c(struct hg3dclass_struct *classptr_c, int count_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);
include/ClassMesh.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,124 +15,133 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassMesh.h + // + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassMesh +#define _DEFINED_HG3D_ClassMesh + +#include "ClassPtr.h" +#include "StructSharedPtr.h" +#include "EnumVertexAnimationType.h" +#include "ClassAnimation.h" + + // +void ogre_msh_destruct(struct hg3dclass_struct * thisclass_c); + // +void ogre_msh_unnameSubMesh(struct hg3dclass_struct * thisclass_c, char * name_c); + // -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/include/OGRE\OgreMesh.h" +void ogre_msh_getNumSubMeshes(struct hg3dclass_struct * thisclass_c, unsigned short * result_c); + // -// each stub combines the following files: -// a C++ implementation file, transforming cpp calls into C-functions -// a C-header file, making this C-functions available for the C2HS parser -// a chs file, give instructions to the C2HS parser. +void ogre_msh_destroySubMesh(struct hg3dclass_struct * thisclass_c, unsigned short index_c); + // +void ogre_msh_destroySubMesh2(struct hg3dclass_struct * thisclass_c, char * name_c); + // +void ogre_msh_clone(struct hg3dclass_struct * thisclass_c, char * newName_c, char * newGroup_c, struct sharedptr_struct * result_c); -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" -#include "TypeSharedPtr.h" -#include "EnumVertexElementSemantic.h" -#include "EnumVertexAnimationType.h" +// +void ogre_msh_getBoundingSphereRadius(struct hg3dclass_struct * thisclass_c, float * result_c); +// +void ogre_msh_setSkeletonName(struct hg3dclass_struct * thisclass_c, char * skelName_c); -// 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 short * result_c); -// original function: SubMesh* getSubMesh(unsigned short index); -void cM_getSubMesh_c(struct hg3dclass_struct *classptr_c, unsigned short 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 short index_c); -// original function: void destroySubMesh(const String& name); -void cM_destroySubMesh2_c(struct hg3dclass_struct *classptr_c, char * name_c); -// original function: MeshPtr clone(const String& newName, const String& newGroup); -void cM_clone_c(struct hg3dclass_struct *classptr_c, char * newName_c, char * newGroup_c, struct sharedptr_struct * result_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 SkeletonPtr& getSkeleton(); -void cM_getSkeleton_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * 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 _notifySkeleton(SkeletonPtr& pSkel); -void cM__notifySkeleton_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * pSkel_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 short 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 short sourceTexCoordSet_c, unsigned short 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 short * result_c); -// original function: Animation* getAnimation(unsigned short index); -void cM_getAnimation2_c(struct hg3dclass_struct *classptr_c, unsigned short 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); +// +void ogre_msh_hasSkeleton(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_msh_hasVertexAnimation(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_msh_getSkeleton(struct hg3dclass_struct * thisclass_c, struct sharedptr_struct * result_c); + +// +void ogre_msh_getSkeletonName(struct hg3dclass_struct * thisclass_c, char * result_c); + +// +void ogre_msh_clearBoneAssignments(struct hg3dclass_struct * thisclass_c); + +// +void ogre_msh_createManualLodLevel(struct hg3dclass_struct * thisclass_c, float value_c, char * meshName_c, char * groupName_c); + +// +void ogre_msh_isLodManual(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_msh_removeLodLevels(struct hg3dclass_struct * thisclass_c); + +// +void ogre_msh_isVertexBufferShadowed(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_msh_isIndexBufferShadowed(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_msh_buildEdgeList(struct hg3dclass_struct * thisclass_c); + +// +void ogre_msh_freeEdgeList(struct hg3dclass_struct * thisclass_c); + +// +void ogre_msh_prepareForShadowVolume(struct hg3dclass_struct * thisclass_c); + +// +void ogre_msh_isPreparedForShadowVolumes(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_msh_isEdgeListBuilt(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_msh_setAutoBuildEdgeLists(struct hg3dclass_struct * thisclass_c, long autobuild_c); + +// +void ogre_msh_getAutoBuildEdgeLists(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_msh_getSharedVertexDataAnimationType(struct hg3dclass_struct * thisclass_c, enum EnumVertexAnimationType * result_c); + +// Returns whether animation on shared vertex data includes normals. +void ogre_msh_getSharedVertexDataAnimationIncludesNormals(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_msh_createAnimation(struct hg3dclass_struct * thisclass_c, char * name_c, float length_c, struct hg3dclass_struct * result_c); + +// +void ogre_msh_getAnimation(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * result_c); + +// +void ogre_msh_hasAnimation(struct hg3dclass_struct * thisclass_c, char * name_c, long * result_c); + +// +void ogre_msh_removeAnimation(struct hg3dclass_struct * thisclass_c, char * name_c); + +// +void ogre_msh_getNumAnimations(struct hg3dclass_struct * thisclass_c, unsigned short * result_c); + +// +void ogre_msh_getAnimation2(struct hg3dclass_struct * thisclass_c, unsigned short index_c, struct hg3dclass_struct * result_c); + +// +void ogre_msh_removeAllAnimations(struct hg3dclass_struct * thisclass_c); + +// +void ogre_msh_updateMaterialForAllSubMeshes(struct hg3dclass_struct * thisclass_c); + +// +void ogre_msh_getPoseCount(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_msh_removePose2(struct hg3dclass_struct * thisclass_c, char * name_c); + +// +void ogre_msh_removeAllPoses(struct hg3dclass_struct * thisclass_c); + +#endif
+ include/ClassMeshManager.h view
@@ -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.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// ClassMeshManager.h + +// + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassMeshManager +#define _DEFINED_HG3D_ClassMeshManager + +#include "ClassPtr.h" +#include "ClassResource.h" + + +// +void ogre_mshmgr_construct(struct hg3dclass_struct * result_c); + +// +void ogre_mshmgr_destruct(struct hg3dclass_struct * thisclass_c); + +// +void ogre_mshmgr_setPrepareAllMeshesForShadowVolumes(struct hg3dclass_struct * thisclass_c, long enable_c); + +// +void ogre_mshmgr_getPrepareAllMeshesForShadowVolumes(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_mshmgr_getBoundsPaddingFactor(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_mshmgr_setBoundsPaddingFactor(struct hg3dclass_struct * thisclass_c, float paddingFactor_c); + +// +void ogre_mshmgr_loadResource(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * res_c); + +// +void ogre_mshmgr_getSingleton(struct hg3dclass_struct * result_c); + +// +void ogre_mshmgr_getSingletonPtr(struct hg3dclass_struct * result_c); + +#endif
− include/ClassMeshSerializer.h
@@ -1,41 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" -#include "TypeSharedPtr.h" - - -// original function: void importMesh(DataStreamPtr& stream, Mesh* pDest); -void cMs_importMesh_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * stream_c, struct hg3dclass_struct * pDest_c);
include/ClassMovableObject.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,99 +15,136 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassMovableObject.h + // + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassMovableObject +#define _DEFINED_HG3D_ClassMovableObject + +#include "ClassPtr.h" +#include "ClassNode.h" +#include "ClassSceneNode.h" +#include "ClassLight.h" + + // +void ogre_mvo_destruct(struct hg3dclass_struct * thisclass_c); + // +void ogre_mvo_getName(struct hg3dclass_struct * thisclass_c, char * result_c); + // -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/include/OGRE\OgreMovableObject.h" +void ogre_mvo_getMovableType(struct hg3dclass_struct * thisclass_c, char * result_c); + // -// each stub combines the following files: -// a C++ implementation file, transforming cpp calls into C-functions -// a C-header file, making this C-functions available for the C2HS parser -// a chs file, give instructions to the C2HS parser. +void ogre_mvo_getParentNode(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); + // +void ogre_mvo_getParentSceneNode(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); + +// Gets whether the parent node is a TagPoint (or a SceneNode +void ogre_mvo_isParentTagPoint(struct hg3dclass_struct * thisclass_c, long * result_c); + // +void ogre_mvo_isAttached(struct hg3dclass_struct * thisclass_c, long * result_c); -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" +// +void ogre_mvo_detachFromParent(struct hg3dclass_struct * thisclass_c); +// +void ogre_mvo_isInScene(struct hg3dclass_struct * thisclass_c, long * result_c); -// 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); +// +void ogre_mvo_getBoundingRadius(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_mvo_setVisible(struct hg3dclass_struct * thisclass_c, long visible_c); + +// +void ogre_mvo_getVisible(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_mvo_isVisible(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_mvo_setRenderingDistance(struct hg3dclass_struct * thisclass_c, float dist_c); + +// +void ogre_mvo_getRenderingDistance(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_mvo_setRenderingMinPixelSize(struct hg3dclass_struct * thisclass_c, float pixelSize_c); + +// +void ogre_mvo_getRenderingMinPixelSize(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_mvo_setQueryFlags(struct hg3dclass_struct * thisclass_c, unsigned long flags_c); + +// +void ogre_mvo_addQueryFlags(struct hg3dclass_struct * thisclass_c, unsigned long flags_c); + +// +void ogre_mvo_removeQueryFlags(struct hg3dclass_struct * thisclass_c, unsigned long flags_c); + +// Returns the query flags relevant for this object. +void ogre_mvo_getQueryFlags(struct hg3dclass_struct * thisclass_c, unsigned long * result_c); + +// +void ogre_mvo_setVisibilityFlags(struct hg3dclass_struct * thisclass_c, unsigned long flags_c); + +// +void ogre_mvo_addVisibilityFlags(struct hg3dclass_struct * thisclass_c, unsigned long flags_c); + +// +void ogre_mvo_removeVisibilityFlags(struct hg3dclass_struct * thisclass_c, unsigned long flags_c); + +// Returns the visibility flags relevant for this object. +void ogre_mvo_getVisibilityFlags(struct hg3dclass_struct * thisclass_c, unsigned long * result_c); + +// +void ogre_mvo_getLightMask(struct hg3dclass_struct * thisclass_c, unsigned long * result_c); + +// +void ogre_mvo_setLightMask(struct hg3dclass_struct * thisclass_c, unsigned long lightMask_c); + +// Define a default implementation of method from ShadowCaster which implements no shadows. +void ogre_mvo_hasEdgeList(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_mvo_setCastShadows(struct hg3dclass_struct * thisclass_c, long enabled_c); + +// +void ogre_mvo_getCastShadows(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_mvo_getReceivesShadows(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_mvo_getPointExtrusionDistance(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * l_c, float * result_c); + +// +void ogre_mvo_getTypeFlags(struct hg3dclass_struct * thisclass_c, unsigned long * result_c); + +// +void ogre_mvo_setDebugDisplayEnabled(struct hg3dclass_struct * thisclass_c, long enabled_c); + +// Gets whether debug display of this object is enabled. +void ogre_mvo_isDebugDisplayEnabled(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_mvo_setDefaultQueryFlags(unsigned long flags_c); + +// +void ogre_mvo_getDefaultQueryFlags(unsigned long * result_c); + +// +void ogre_mvo_setDefaultVisibilityFlags(unsigned long flags_c); + +// +void ogre_mvo_getDefaultVisibilityFlags(unsigned long * result_c); + +#endif
include/ClassMovableObjectFactory.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,31 +15,32 @@ // 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: "Dep-OgreSDK/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" +#ifndef _DEFINED_HG3D_ClassMovableObjectFactory +#define _DEFINED_HG3D_ClassMovableObjectFactory + #include "ClassPtr.h" -#include "Utils.h" +#include "ClassMovableObject.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); +// +void ogre_mvof_destruct(struct hg3dclass_struct * thisclass_c); + +// Get the type of the object to be created. +void ogre_mvof_getType(struct hg3dclass_struct * thisclass_c, char * result_c); + +// +void ogre_mvof_destroyInstance(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * obj_c); + +// +void ogre_mvof_requestTypeFlags(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_mvof_getTypeFlags(struct hg3dclass_struct * thisclass_c, unsigned long * result_c); + +#endif
include/ClassMultiRenderTarget.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,30 +15,26 @@ // 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: "Dep-OgreSDK/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" +#ifndef _DEFINED_HG3D_ClassMultiRenderTarget +#define _DEFINED_HG3D_ClassMultiRenderTarget + #include "ClassPtr.h" -#include "Utils.h" -#include "EnumPixelFormat.h" +#include "ClassRenderTexture.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); +// +void ogre_mrt_bindSurface(struct hg3dclass_struct * thisclass_c, long attachment_c, struct hg3dclass_struct * target_c); + +// +void ogre_mrt_unbindSurface(struct hg3dclass_struct * thisclass_c, long attachment_c); + +// +void ogre_mrt_getBoundSurface(struct hg3dclass_struct * thisclass_c, long index_c, struct hg3dclass_struct * result_c); + +#endif
include/ClassNode.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,133 +15,174 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassNode.h + // + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassNode +#define _DEFINED_HG3D_ClassNode + +#include "ClassPtr.h" +#include "StructQuaternion.h" +#include "StructVec3.h" +#include "EnumNodeTransformSpace.h" +#include "StructRadians.h" +#include "ClassCamera.h" + + // +void ogre_nd_destruct(struct hg3dclass_struct * thisclass_c); + // +void ogre_nd_getName(struct hg3dclass_struct * thisclass_c, char * result_c); + // -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/include/OGRE\OgreNode.h" +void ogre_nd_getParent(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); + // -// each stub combines the following files: -// a C++ implementation file, transforming cpp calls into C-functions -// a C-header file, making this C-functions available for the C2HS parser -// a chs file, give instructions to the C2HS parser. +void ogre_nd_getOrientation(struct hg3dclass_struct * thisclass_c, struct quaternion_struct * result_c); + // +void ogre_nd_setOrientation(struct hg3dclass_struct * thisclass_c, struct quaternion_struct * q_c); + // +void ogre_nd_setOrientation2(struct hg3dclass_struct * thisclass_c, float w_c, float x_c, float y_c, float z_c); -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" -#include "TypeQuaternion.h" -#include "TypeVector3.h" -#include "EnumTransformSpace.h" -#include "TypeRadian.h" +// +void ogre_nd_resetOrientation(struct hg3dclass_struct * thisclass_c); +// +void ogre_nd_setPosition(struct hg3dclass_struct * thisclass_c, struct vector3_struct * pos_c); -// 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 short * result_c); -// original function: Node* getChild(unsigned short index); -void cN_getChild_c(struct hg3dclass_struct *classptr_c, unsigned short 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 short 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); +// +void ogre_nd_setPosition2(struct hg3dclass_struct * thisclass_c, float x_c, float y_c, float z_c); + +// +void ogre_nd_getPosition(struct hg3dclass_struct * thisclass_c, struct vector3_struct * result_c); + +// +void ogre_nd_setScale(struct hg3dclass_struct * thisclass_c, struct vector3_struct * scale_c); + +// +void ogre_nd_setScale2(struct hg3dclass_struct * thisclass_c, float x_c, float y_c, float z_c); + +// +void ogre_nd_getScale(struct hg3dclass_struct * thisclass_c, struct vector3_struct * result_c); + +// +void ogre_nd_setInheritOrientation(struct hg3dclass_struct * thisclass_c, long inherit_c); + +// +void ogre_nd_getInheritOrientation(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_nd_setInheritScale(struct hg3dclass_struct * thisclass_c, long inherit_c); + +// +void ogre_nd_getInheritScale(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_nd_scale(struct hg3dclass_struct * thisclass_c, struct vector3_struct * scale_c); + +// +void ogre_nd_scale2(struct hg3dclass_struct * thisclass_c, float x_c, float y_c, float z_c); + +// +void ogre_nd_translate(struct hg3dclass_struct * thisclass_c, struct vector3_struct * d_c, enum EnumNodeTransformSpace relativeTo_c); + +// +void ogre_nd_translate2(struct hg3dclass_struct * thisclass_c, float x_c, float y_c, float z_c, enum EnumNodeTransformSpace relativeTo_c); + +// +void ogre_nd_roll(struct hg3dclass_struct * thisclass_c, struct radian_struct * angle_c, enum EnumNodeTransformSpace relativeTo_c); + +// +void ogre_nd_pitch(struct hg3dclass_struct * thisclass_c, struct radian_struct * angle_c, enum EnumNodeTransformSpace relativeTo_c); + +// +void ogre_nd_yaw(struct hg3dclass_struct * thisclass_c, struct radian_struct * angle_c, enum EnumNodeTransformSpace relativeTo_c); + +// +void ogre_nd_rotate(struct hg3dclass_struct * thisclass_c, struct vector3_struct * axis_c, struct radian_struct * angle_c, enum EnumNodeTransformSpace relativeTo_c); + +// +void ogre_nd_rotate2(struct hg3dclass_struct * thisclass_c, struct quaternion_struct * q_c, enum EnumNodeTransformSpace relativeTo_c); + +// +void ogre_nd_createChild(struct hg3dclass_struct * thisclass_c, struct vector3_struct * translate_c, struct quaternion_struct * rotate_c, struct hg3dclass_struct * result_c); + +// +void ogre_nd_createChild2(struct hg3dclass_struct * thisclass_c, char * name_c, struct vector3_struct * translate_c, struct quaternion_struct * rotate_c, struct hg3dclass_struct * result_c); + +// +void ogre_nd_addChild(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * child_c); + +// +void ogre_nd_numChildren(struct hg3dclass_struct * thisclass_c, unsigned short * result_c); + +// +void ogre_nd_getChild(struct hg3dclass_struct * thisclass_c, unsigned short index_c, struct hg3dclass_struct * result_c); + +// +void ogre_nd_getChild2(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * result_c); + +// +void ogre_nd_removeChild(struct hg3dclass_struct * thisclass_c, unsigned short index_c, struct hg3dclass_struct * result_c); + +// +void ogre_nd_removeChild2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * child_c, struct hg3dclass_struct * result_c); + +// +void ogre_nd_removeChild3(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * result_c); + +// +void ogre_nd_removeAllChildren(struct hg3dclass_struct * thisclass_c); + +// +void ogre_nd_setInitialState(struct hg3dclass_struct * thisclass_c); + +// +void ogre_nd_resetToInitialState(struct hg3dclass_struct * thisclass_c); + +// +void ogre_nd_getInitialPosition(struct hg3dclass_struct * thisclass_c, struct vector3_struct * result_c); + +// +void ogre_nd_convertWorldToLocalPosition(struct hg3dclass_struct * thisclass_c, struct vector3_struct * worldPos_c, struct vector3_struct * result_c); + +// +void ogre_nd_convertLocalToWorldPosition(struct hg3dclass_struct * thisclass_c, struct vector3_struct * localPos_c, struct vector3_struct * result_c); + +// +void ogre_nd_convertWorldToLocalOrientation(struct hg3dclass_struct * thisclass_c, struct quaternion_struct * worldOrientation_c, struct quaternion_struct * result_c); + +// +void ogre_nd_convertLocalToWorldOrientation(struct hg3dclass_struct * thisclass_c, struct quaternion_struct * localOrientation_c, struct quaternion_struct * result_c); + +// +void ogre_nd_getInitialOrientation(struct hg3dclass_struct * thisclass_c, struct quaternion_struct * result_c); + +// +void ogre_nd_getInitialScale(struct hg3dclass_struct * thisclass_c, struct vector3_struct * result_c); + +// +void ogre_nd_getSquaredViewDepth(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * cam_c, float * result_c); + +// +void ogre_nd_needUpdate(struct hg3dclass_struct * thisclass_c, long forceParentUpdate_c); + +// +void ogre_nd_requestUpdate(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * child_c, long forceParentUpdate_c); + +// +void ogre_nd_cancelUpdate(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * child_c); + +// +void ogre_nd_queueNeedUpdate(struct hg3dclass_struct * n_c); + +// +void ogre_nd_processQueuedUpdates(); + +#endif
include/ClassNodeAnimationTrack.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,41 +15,49 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassNodeAnimationTrack.h + // + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassNodeAnimationTrack +#define _DEFINED_HG3D_ClassNodeAnimationTrack + +#include "ClassPtr.h" +#include "ClassAnimation.h" +#include "ClassNode.h" +#include "ClassTimeIndex.h" + + +// Constructor. +void ogre_noat_construct(struct hg3dclass_struct * parent_c, unsigned short handle_c, struct hg3dclass_struct * result_c); + +// Destructor. +void ogre_noat_destruct(struct hg3dclass_struct * thisclass_c); + // +void ogre_noat_getAssociatedNode(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); + // +void ogre_noat_setAssociatedNode(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * node_c); + // -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/include/OGRE\OgreAnimationTrack.h" +void ogre_noat_applyToNode(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * node_c, struct hg3dclass_struct * timeIndex_c, float weight_c, float scale_c); + // -// each stub combines the following files: -// a C++ implementation file, transforming cpp calls into C-functions -// a C-header file, making this C-functions available for the C2HS parser -// a chs file, give instructions to the C2HS parser. +void ogre_noat_setUseShortestRotationPath(struct hg3dclass_struct * thisclass_c, long useShortestPath_c); + // +void ogre_noat_getUseShortestRotationPath(struct hg3dclass_struct * thisclass_c, long * result_c); + // +void ogre_noat_apply(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * timeIndex_c, float weight_c, float scale_c); -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" +// +void ogre_noat_hasNonZeroKeyFrames(struct hg3dclass_struct * thisclass_c, long * result_c); +// +void ogre_noat_optimise(struct hg3dclass_struct * thisclass_c); -// 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 short 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); +#endif
include/ClassNumericAnimationTrack.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,27 +15,24 @@ // 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: "Dep-OgreSDK/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" +#ifndef _DEFINED_HG3D_ClassNumericAnimationTrack +#define _DEFINED_HG3D_ClassNumericAnimationTrack + #include "ClassPtr.h" -#include "Utils.h" +#include "ClassAnimation.h" +#include "ClassTimeIndex.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 short index_c, struct hg3dclass_struct * result_c); +// Constructor. +void ogre_nuat_construct(struct hg3dclass_struct * parent_c, unsigned short handle_c, struct hg3dclass_struct * result_c); + +// +void ogre_nuat_apply(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * timeIndex_c, float weight_c, float scale_c); + +#endif
− include/ClassNumericKeyFrame.h
@@ -1,38 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - -
− include/ClassOverlay.h
@@ -1,83 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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);
− include/ClassOverlayContainer.h
@@ -1,52 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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);
− include/ClassOverlayManager.h
@@ -1,68 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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 "TypeSharedPtr.h" -#include "EnumOrientationMode.h" - - -// original function: void parseScript(DataStreamPtr& stream, const String& groupName); -void cOm_parseScript_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * stream_c, char * groupName_c); -// 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);
− include/ClassPSSMShadowCameraSetup.h
@@ -1,50 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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);
− include/ClassParticleAffector.h
@@ -1,40 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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);
− include/ClassParticleEmitter.h
@@ -1,151 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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 "TypeColour.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 short * 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);
− include/ClassParticleSystemFactory.h
@@ -1,38 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - -
− include/ClassPass.h
@@ -1,354 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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 "TypeColour.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 "TypeSharedPtr.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 short * 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 short 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 short 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 short 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 short * 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 short maxLights_c); -// original function: unsigned short getMaxSimultaneousLights(); -void cP_getMaxSimultaneousLights_c(struct hg3dclass_struct *classptr_c, unsigned short * result_c); -// original function: void setStartLight(unsigned short startLight); -void cP_setStartLight_c(struct hg3dclass_struct *classptr_c, unsigned short startLight_c); -// original function: unsigned short getStartLight(); -void cP_getStartLight_c(struct hg3dclass_struct *classptr_c, unsigned short * 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 short c_c); -// original function: unsigned short getLightCountPerIteration(); -void cP_getLightCountPerIteration_c(struct hg3dclass_struct *classptr_c, unsigned short * 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: const GpuProgramPtr& getVertexProgram(); -void cP_getVertexProgram_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * 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: const GpuProgramPtr& getShadowCasterVertexProgram(); -void cP_getShadowCasterVertexProgram_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * 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 GpuProgramPtr& getShadowReceiverVertexProgram(); -void cP_getShadowReceiverVertexProgram_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * result_c); -// original function: const String& getShadowReceiverFragmentProgramName(); -void cP_getShadowReceiverFragmentProgramName_c(struct hg3dclass_struct *classptr_c, char * result_c); -// original function: const GpuProgramPtr& getShadowReceiverFragmentProgram(); -void cP_getShadowReceiverFragmentProgram_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * 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: const GpuProgramPtr& getFragmentProgram(); -void cP_getFragmentProgram_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * 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: const GpuProgramPtr& getGeometryProgram(); -void cP_getGeometryProgram_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * result_c); -// original function: Pass* _split(unsigned short numUnits); -void cP__split_c(struct hg3dclass_struct *classptr_c, unsigned short numUnits_c, struct hg3dclass_struct * result_c); -// original function: void _notifyIndex(unsigned short index); -void cP__notifyIndex_c(struct hg3dclass_struct *classptr_c, unsigned short 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 short index_c, unsigned short * 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);
− include/ClassPatchMesh.h
@@ -1,38 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - -
− include/ClassPatchSurface.h
@@ -1,54 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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);
− include/ClassPlaneOptimalShadowCameraSetup.h
@@ -1,38 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - -
include/ClassPtr.h view
@@ -1,429 +1,206 @@-/* -This source file is part of HGamer3D -(A project to enable 3D game development in Haskell) -For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// -(c) 2011 Peter Althainz +// ClassPtr.h -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at +// Here are the methods defined, which do the class pointer +// marshalling and the casting of subclasses to higher classes - http://www.apache.org/licenses/LICENSE-2.0 +#include "wchar.h" -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ +#ifndef CLASSPTR_INCLUDE_H +#define CLASSPTR_INCLUDE_H + typedef struct hg3dclass_struct { void *ptr; void *fptr; } hg3dclass_struct; -void *getOgreClassPtr(hg3dclass_struct inSt, const char* className); +void *getHG3DClassPtr(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 ClassHardwareBufferLicensee; -hg3dclass_struct getOgreClass_HardwareBufferLicensee(void *ptrIn); - -typedef void ClassPlaneOptimalShadowCameraSetup; -hg3dclass_struct getOgreClass_PlaneOptimalShadowCameraSetup(void *ptrIn); - -typedef void ClassFileStreamDataStream; -hg3dclass_struct getOgreClass_FileStreamDataStream(void *ptrIn); +typedef void ClassAnimation; +hg3dclass_struct getHG3DClass_Animation(void *ptrIn); -typedef void ClassPatchMesh; -hg3dclass_struct getOgreClass_PatchMesh(void *ptrIn); +typedef void ClassAnimationState; +hg3dclass_struct getHG3DClass_AnimationState(void *ptrIn); -typedef void ClassRenderQueueInvocation; -hg3dclass_struct getOgreClass_RenderQueueInvocation(void *ptrIn); +typedef void ClassAnimationStateSet; +hg3dclass_struct getHG3DClass_AnimationStateSet(void *ptrIn); -typedef void ClassDefaultRaySceneQuery; -hg3dclass_struct getOgreClass_DefaultRaySceneQuery(void *ptrIn); +typedef void ClassAnimationTrack; +hg3dclass_struct getHG3DClass_AnimationTrack(void *ptrIn); -typedef void ClassTextureManager; -hg3dclass_struct getOgreClass_TextureManager(void *ptrIn); +typedef void ClassArchive; +hg3dclass_struct getHG3DClass_Archive(void *ptrIn); -typedef void ClassHardwareBufferManagerBase; -hg3dclass_struct getOgreClass_HardwareBufferManagerBase(void *ptrIn); +typedef void ClassArchiveManager; +hg3dclass_struct getHG3DClass_ArchiveManager(void *ptrIn); -typedef void ClassSubMesh; -hg3dclass_struct getOgreClass_SubMesh(void *ptrIn); +typedef void ClassBillboard; +hg3dclass_struct getHG3DClass_Billboard(void *ptrIn); typedef void ClassBillboardChain; -hg3dclass_struct getOgreClass_BillboardChain(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); +hg3dclass_struct getHG3DClass_BillboardChain(void *ptrIn); -typedef void ClassGpuProgram; -hg3dclass_struct getOgreClass_GpuProgram(void *ptrIn); +typedef void ClassBillboardChainFactory; +hg3dclass_struct getHG3DClass_BillboardChainFactory(void *ptrIn); -typedef void ClassCompositorChain; -hg3dclass_struct getOgreClass_CompositorChain(void *ptrIn); +typedef void ClassBillboardSet; +hg3dclass_struct getHG3DClass_BillboardSet(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); +hg3dclass_struct getHG3DClass_BillboardSetFactory(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); +hg3dclass_struct getHG3DClass_Bone(void *ptrIn); -typedef void ClassStringUtil; -hg3dclass_struct getOgreClass_StringUtil(void *ptrIn); +typedef void ClassCamera; +hg3dclass_struct getHG3DClass_Camera(void *ptrIn); -typedef void ClassResourceGroupListener; -hg3dclass_struct getOgreClass_ResourceGroupListener(void *ptrIn); +typedef void ClassConfigFile; +hg3dclass_struct getHG3DClass_ConfigFile(void *ptrIn); -typedef void ClassAnimation; -hg3dclass_struct getOgreClass_Animation(void *ptrIn); +typedef void ClassControllerManager; +hg3dclass_struct getHG3DClass_ControllerManager(void *ptrIn); -typedef void ClassSceneNode; -hg3dclass_struct getOgreClass_SceneNode(void *ptrIn); +typedef void ClassEntity; +hg3dclass_struct getHG3DClass_Entity(void *ptrIn); -typedef void ClassTimeIndex; -hg3dclass_struct getOgreClass_TimeIndex(void *ptrIn); +typedef void ClassEntityFactory; +hg3dclass_struct getHG3DClass_EntityFactory(void *ptrIn); -typedef void ClassAnimationTrack; -hg3dclass_struct getOgreClass_AnimationTrack(void *ptrIn); +typedef void ClassException; +hg3dclass_struct getHG3DClass_Exception(void *ptrIn); -typedef void ClassRegion; -hg3dclass_struct getOgreClass_Region(void *ptrIn); +typedef void ClassFrustum; +hg3dclass_struct getHG3DClass_Frustum(void *ptrIn); -typedef void ClassHighLevelGpuProgram; -hg3dclass_struct getOgreClass_HighLevelGpuProgram(void *ptrIn); +typedef void ClassLight; +hg3dclass_struct getHG3DClass_Light(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 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); +hg3dclass_struct getHG3DClass_LightFactory(void *ptrIn); -typedef void ClassRibbonTrailFactory; -hg3dclass_struct getOgreClass_RibbonTrailFactory(void *ptrIn); +typedef void ClassLog; +hg3dclass_struct getHG3DClass_Log(void *ptrIn); -typedef void ClassSubEntity; -hg3dclass_struct getOgreClass_SubEntity(void *ptrIn); +typedef void ClassLogManager; +hg3dclass_struct getHG3DClass_LogManager(void *ptrIn); typedef void ClassManualObject; -hg3dclass_struct getOgreClass_ManualObject(void *ptrIn); - -typedef void ClassWindowEventListener; -hg3dclass_struct getOgreClass_WindowEventListener(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); +hg3dclass_struct getHG3DClass_ManualObject(void *ptrIn); -typedef void ClassRibbonTrail; -hg3dclass_struct getOgreClass_RibbonTrail(void *ptrIn); +typedef void ClassManualObjectFactory; +hg3dclass_struct getHG3DClass_ManualObjectFactory(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); +hg3dclass_struct getHG3DClass_ManualObjectSection(void *ptrIn); -typedef void ClassConfigFile; -hg3dclass_struct getOgreClass_ConfigFile(void *ptrIn); +typedef void ClassMaterial; +hg3dclass_struct getHG3DClass_Material(void *ptrIn); -typedef void ClassRoot; -hg3dclass_struct getOgreClass_Root(void *ptrIn); +typedef void ClassMaterialManager; +hg3dclass_struct getHG3DClass_MaterialManager(void *ptrIn); -typedef void ClassHardwarePixelBuffer; -hg3dclass_struct getOgreClass_HardwarePixelBuffer(void *ptrIn); +typedef void ClassMesh; +hg3dclass_struct getHG3DClass_Mesh(void *ptrIn); -typedef void ClassResourceManager; -hg3dclass_struct getOgreClass_ResourceManager(void *ptrIn); +typedef void ClassMeshManager; +hg3dclass_struct getHG3DClass_MeshManager(void *ptrIn); -typedef void ClassOverlayContainer; -hg3dclass_struct getOgreClass_OverlayContainer(void *ptrIn); +typedef void ClassMovableObject; +hg3dclass_struct getHG3DClass_MovableObject(void *ptrIn); -typedef void ClassWindowEventUtilities; -hg3dclass_struct getOgreClass_WindowEventUtilities(void *ptrIn); +typedef void ClassMovableObjectFactory; +hg3dclass_struct getHG3DClass_MovableObjectFactory(void *ptrIn); -typedef void ClassControllerManager; -hg3dclass_struct getOgreClass_ControllerManager(void *ptrIn); +typedef void ClassMultiRenderTarget; +hg3dclass_struct getHG3DClass_MultiRenderTarget(void *ptrIn); -typedef void ClassMaterialSerializer; -hg3dclass_struct getOgreClass_MaterialSerializer(void *ptrIn); +typedef void ClassNode; +hg3dclass_struct getHG3DClass_Node(void *ptrIn); typedef void ClassNodeAnimationTrack; -hg3dclass_struct getOgreClass_NodeAnimationTrack(void *ptrIn); +hg3dclass_struct getHG3DClass_NodeAnimationTrack(void *ptrIn); -typedef void ClassLight; -hg3dclass_struct getOgreClass_Light(void *ptrIn); +typedef void ClassNumericAnimationTrack; +hg3dclass_struct getHG3DClass_NumericAnimationTrack(void *ptrIn); -typedef void ClassDefaultShadowCameraSetup; -hg3dclass_struct getOgreClass_DefaultShadowCameraSetup(void *ptrIn); +typedef void ClassRenderable; +hg3dclass_struct getHG3DClass_Renderable(void *ptrIn); -typedef void ClassCompositionTargetPass; -hg3dclass_struct getOgreClass_CompositionTargetPass(void *ptrIn); +typedef void ClassRenderSystem; +hg3dclass_struct getHG3DClass_RenderSystem(void *ptrIn); +typedef void ClassRenderTarget; +hg3dclass_struct getHG3DClass_RenderTarget(void *ptrIn); + typedef void ClassRenderTexture; -hg3dclass_struct getOgreClass_RenderTexture(void *ptrIn); +hg3dclass_struct getHG3DClass_RenderTexture(void *ptrIn); -typedef void ClassCompositorManager; -hg3dclass_struct getOgreClass_CompositorManager(void *ptrIn); +typedef void ClassRenderWindow; +hg3dclass_struct getHG3DClass_RenderWindow(void *ptrIn); -typedef void ClassEntityFactory; -hg3dclass_struct getOgreClass_EntityFactory(void *ptrIn); +typedef void ClassResource; +hg3dclass_struct getHG3DClass_Resource(void *ptrIn); -typedef void ClassMemoryDataStream; -hg3dclass_struct getOgreClass_MemoryDataStream(void *ptrIn); +typedef void ClassResourceGroupManager; +hg3dclass_struct getHG3DClass_ResourceGroupManager(void *ptrIn); -typedef void ClassHardwareOcclusionQuery; -hg3dclass_struct getOgreClass_HardwareOcclusionQuery(void *ptrIn); +typedef void ClassResourceManager; +hg3dclass_struct getHG3DClass_ResourceManager(void *ptrIn); -typedef void ClassPSSMShadowCameraSetup; -hg3dclass_struct getOgreClass_PSSMShadowCameraSetup(void *ptrIn); +typedef void ClassRoot; +hg3dclass_struct getHG3DClass_Root(void *ptrIn); -typedef void ClassVertexMorphKeyFrame; -hg3dclass_struct getOgreClass_VertexMorphKeyFrame(void *ptrIn); +typedef void ClassSceneManager; +hg3dclass_struct getHG3DClass_SceneManager(void *ptrIn); -typedef void ClassNode; -hg3dclass_struct getOgreClass_Node(void *ptrIn); +typedef void ClassSceneManagerFactory; +hg3dclass_struct getHG3DClass_SceneManagerFactory(void *ptrIn); -typedef void ClassPatchSurface; -hg3dclass_struct getOgreClass_PatchSurface(void *ptrIn); +typedef void ClassSceneNode; +hg3dclass_struct getHG3DClass_SceneNode(void *ptrIn); -typedef void ClassManualObjectFactory; -hg3dclass_struct getOgreClass_ManualObjectFactory(void *ptrIn); +typedef void ClassSkeleton; +hg3dclass_struct getHG3DClass_Skeleton(void *ptrIn); -typedef void ClassNumericKeyFrame; -hg3dclass_struct getOgreClass_NumericKeyFrame(void *ptrIn); +typedef void ClassSkeletonManager; +hg3dclass_struct getHG3DClass_SkeletonManager(void *ptrIn); -typedef void ClassDataStream; -hg3dclass_struct getOgreClass_DataStream(void *ptrIn); +typedef void ClassTextureManager; +hg3dclass_struct getHG3DClass_TextureManager(void *ptrIn); -typedef void ClassRenderObjectListener; -hg3dclass_struct getOgreClass_RenderObjectListener(void *ptrIn); +typedef void ClassTimeIndex; +hg3dclass_struct getHG3DClass_TimeIndex(void *ptrIn); -typedef void ClassGeometryBucket; -hg3dclass_struct getOgreClass_GeometryBucket(void *ptrIn); +typedef void ClassVertexAnimationTrack; +hg3dclass_struct getHG3DClass_VertexAnimationTrack(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 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); +hg3dclass_struct getHG3DClass_Viewport(void *ptrIn); -typedef void ClassMaterialManager; -hg3dclass_struct getOgreClass_MaterialManager(void *ptrIn); +typedef void ClassWindowEventUtilities; +hg3dclass_struct getHG3DClass_WindowEventUtilities(void *ptrIn); -typedef void ClassCamera; -hg3dclass_struct getOgreClass_Camera(void *ptrIn); +typedef void ClassHG3DUtilities; +hg3dclass_struct getHG3DClass_HG3DUtilities(void *ptrIn); +#endif
− include/ClassRegion.h
@@ -1,49 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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);
− include/ClassRenderObjectListener.h
@@ -1,38 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - -
− include/ClassRenderQueueInvocation.h
@@ -1,48 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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);
− include/ClassRenderQueueInvocationSequence.h
@@ -1,50 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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);
+ include/ClassRenderSystem.h view
@@ -0,0 +1,190 @@+// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// ClassRenderSystem.h + +// + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassRenderSystem +#define _DEFINED_HG3D_ClassRenderSystem + +#include "ClassPtr.h" +#include "ClassMultiRenderTarget.h" +#include "ClassRenderTarget.h" +#include "StructColour.h" +#include "EnumGpuProgramType.h" + + +// +void ogre_rds_destruct(struct hg3dclass_struct * thisclass_c); + +// +void ogre_rds_getName(struct hg3dclass_struct * thisclass_c, char * result_c); + +// +void ogre_rds_setConfigOption(struct hg3dclass_struct * thisclass_c, char * name_c, char * value_c); + +// +void ogre_rds_validateConfigOptions(struct hg3dclass_struct * thisclass_c, char * result_c); + +// +void ogre_rds_reinitialise(struct hg3dclass_struct * thisclass_c); + +// +void ogre_rds_shutdown(struct hg3dclass_struct * thisclass_c); + +// +void ogre_rds_setAmbientLight(struct hg3dclass_struct * thisclass_c, float r_c, float g_c, float b_c); + +// +void ogre_rds_setLightingEnabled(struct hg3dclass_struct * thisclass_c, long enabled_c); + +// +void ogre_rds_setWBufferEnabled(struct hg3dclass_struct * thisclass_c, long enabled_c); + +// +void ogre_rds_getWBufferEnabled(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_rds_createMultiRenderTarget(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * result_c); + +// +void ogre_rds_destroyRenderWindow(struct hg3dclass_struct * thisclass_c, char * name_c); + +// +void ogre_rds_destroyRenderTexture(struct hg3dclass_struct * thisclass_c, char * name_c); + +// +void ogre_rds_destroyRenderTarget(struct hg3dclass_struct * thisclass_c, char * name_c); + +// +void ogre_rds_attachRenderTarget(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * target_c); + +// +void ogre_rds_getRenderTarget(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * result_c); + +// +void ogre_rds_detachRenderTarget(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * result_c); + +// +void ogre_rds_getErrorDescription(struct hg3dclass_struct * thisclass_c, long errorNumber_c, char * result_c); + +// +void ogre_rds_setWaitForVerticalBlank(struct hg3dclass_struct * thisclass_c, long enabled_c); + +// +void ogre_rds_getWaitForVerticalBlank(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_rds_getGlobalNumberOfInstances(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_rds_setGlobalNumberOfInstances(struct hg3dclass_struct * thisclass_c, const long val_c); + +// +void ogre_rds_setFixedPipelineEnabled(struct hg3dclass_struct * thisclass_c, long enabled_c); + +// +void ogre_rds_getFixedPipelineEnabled(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_rds_setDepthBufferFor(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * renderTarget_c); + +// +void ogre_rds_areFixedFunctionLightsInViewSpace(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_rds_convertColourValue(struct hg3dclass_struct * thisclass_c, struct colourvalue_struct * colour_c, unsigned long * pDest_c); + +// +void ogre_rds_setStencilCheckEnabled(struct hg3dclass_struct * thisclass_c, long enabled_c); + +// +void ogre_rds_setNormaliseNormals(struct hg3dclass_struct * thisclass_c, long normalise_c); + +// +void ogre_rds_bindGpuProgramPassIterationParameters(struct hg3dclass_struct * thisclass_c, enum EnumGpuProgramType gptype_c); + +// +void ogre_rds_unbindGpuProgram(struct hg3dclass_struct * thisclass_c, enum EnumGpuProgramType gptype_c); + +// +void ogre_rds_isGpuProgramBound(struct hg3dclass_struct * thisclass_c, enum EnumGpuProgramType gptype_c, long * result_c); + +// +void ogre_rds_addClipPlane2(struct hg3dclass_struct * thisclass_c, float A_c, float B_c, float C_c, float D_c); + +// +void ogre_rds_resetClipPlanes(struct hg3dclass_struct * thisclass_c); + +// +void ogre_rds_setInvertVertexWinding(struct hg3dclass_struct * thisclass_c, long invert_c); + +// +void ogre_rds_getInvertVertexWinding(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_rds_setScissorTest(struct hg3dclass_struct * thisclass_c, long enabled_c, long left_c, long top_c, long right_c, long bottom_c); + +// +void ogre_rds_clearFrameBuffer(struct hg3dclass_struct * thisclass_c, unsigned long buffers_c, struct colourvalue_struct * colour_c, float depth_c, unsigned short stencil_c); + +// +void ogre_rds_getHorizontalTexelOffset(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_rds_getVerticalTexelOffset(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_rds_getMinimumDepthInputValue(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_rds_getMaximumDepthInputValue(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_rds_setCurrentPassIterationCount(struct hg3dclass_struct * thisclass_c, const long count_c); + +// +void ogre_rds_setDeriveDepthBias(struct hg3dclass_struct * thisclass_c, long derive_c, float baseValue_c, float multiplier_c, float slopeScale_c); + +// +void ogre_rds_preExtraThreadsStarted(struct hg3dclass_struct * thisclass_c); + +// +void ogre_rds_postExtraThreadsStarted(struct hg3dclass_struct * thisclass_c); + +// +void ogre_rds_registerThread(struct hg3dclass_struct * thisclass_c); + +// +void ogre_rds_unregisterThread(struct hg3dclass_struct * thisclass_c); + +// +void ogre_rds_getDisplayMonitorCount(struct hg3dclass_struct * thisclass_c, unsigned long * result_c); + +// +void ogre_rds_beginProfileEvent(struct hg3dclass_struct * thisclass_c, char * eventName_c); + +// +void ogre_rds_endProfileEvent(struct hg3dclass_struct * thisclass_c); + +// +void ogre_rds_markProfileEvent(struct hg3dclass_struct * thisclass_c, char * event_c); + +#endif
− include/ClassRenderSystemOperation.h
@@ -1,38 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - -
include/ClassRenderTarget.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,90 +15,138 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassRenderTarget.h + // + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassRenderTarget +#define _DEFINED_HG3D_ClassRenderTarget + +#include "ClassPtr.h" +#include "ClassViewport.h" +#include "ClassCamera.h" + + // +void ogre_rtgt_destruct(struct hg3dclass_struct * thisclass_c); + +// Retrieve target's name. +void ogre_rtgt_getName(struct hg3dclass_struct * thisclass_c, char * result_c); + +// Retrieve information about the render target. +void ogre_rtgt_getMetrics(struct hg3dclass_struct * thisclass_c, unsigned long * width_c, unsigned long * height_c, unsigned long * colourDepth_c); + // +void ogre_rtgt_getWidth(struct hg3dclass_struct * thisclass_c, unsigned long * result_c); + // -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/include/OGRE\OgreRenderTarget.h" +void ogre_rtgt_getHeight(struct hg3dclass_struct * thisclass_c, unsigned long * result_c); + // -// each stub combines the following files: -// a C++ implementation file, transforming cpp calls into C-functions -// a C-header file, making this C-functions available for the C2HS parser -// a chs file, give instructions to the C2HS parser. +void ogre_rtgt_getColourDepth(struct hg3dclass_struct * thisclass_c, unsigned long * result_c); + // +void ogre_rtgt_setDepthBufferPool(struct hg3dclass_struct * thisclass_c, unsigned short poolId_c); + // +void ogre_rtgt_getDepthBufferPool(struct hg3dclass_struct * thisclass_c, unsigned short * result_c); -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" -#include "EnumPixelFormat.h" +// +void ogre_rtgt_detachDepthBuffer(struct hg3dclass_struct * thisclass_c); +// +void ogre_rtgt_update(struct hg3dclass_struct * thisclass_c, long swapBuffers_c); -// 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 short * result_c); -// original function: Viewport* getViewport(unsigned short index); -void cRt_getViewport_c(struct hg3dclass_struct *classptr_c, unsigned short 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: uint getFSAA(); -void cRt_getFSAA_c(struct hg3dclass_struct *classptr_c, unsigned 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); +// +void ogre_rtgt_swapBuffers(struct hg3dclass_struct * thisclass_c, long waitForVSync_c); + +// +void ogre_rtgt_addViewport(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * cam_c, long ZOrder_c, float left_c, float top_c, float width_c, float height_c, struct hg3dclass_struct * result_c); + +// +void ogre_rtgt_getNumViewports(struct hg3dclass_struct * thisclass_c, unsigned short * result_c); + +// +void ogre_rtgt_getViewport(struct hg3dclass_struct * thisclass_c, unsigned short index_c, struct hg3dclass_struct * result_c); + +// +void ogre_rtgt_getViewportByZOrder(struct hg3dclass_struct * thisclass_c, long ZOrder_c, struct hg3dclass_struct * result_c); + +// +void ogre_rtgt_hasViewportWithZOrder(struct hg3dclass_struct * thisclass_c, long ZOrder_c, long * result_c); + +// +void ogre_rtgt_removeViewport(struct hg3dclass_struct * thisclass_c, long ZOrder_c); + +// +void ogre_rtgt_removeAllViewports(struct hg3dclass_struct * thisclass_c); + +// +void ogre_rtgt_getStatistics(struct hg3dclass_struct * thisclass_c, float * lastFPS_c, float * avgFPS_c, float * bestFPS_c, float * worstFPS_c); + +// +void ogre_rtgt_getLastFPS(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_rtgt_getAverageFPS(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_rtgt_getBestFPS(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_rtgt_getWorstFPS(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_rtgt_getBestFrameTime(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_rtgt_getWorstFrameTime(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_rtgt_resetStatistics(struct hg3dclass_struct * thisclass_c); + +// +void ogre_rtgt_removeAllListeners(struct hg3dclass_struct * thisclass_c); + +// +void ogre_rtgt_isActive(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_rtgt_setActive(struct hg3dclass_struct * thisclass_c, long state_c); + +// +void ogre_rtgt_setAutoUpdated(struct hg3dclass_struct * thisclass_c, long autoupdate_c); + +// +void ogre_rtgt_isAutoUpdated(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_rtgt_writeContentsToFile(struct hg3dclass_struct * thisclass_c, char * filename_c); + +// +void ogre_rtgt_writeContentsToTimestampedFile(struct hg3dclass_struct * thisclass_c, char * filenamePrefix_c, char * filenameSuffix_c, char * result_c); + +// +void ogre_rtgt_requiresTextureFlipping(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_rtgt_getTriangleCount(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_rtgt_getBatchCount(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_rtgt_isPrimary(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_rtgt_isHardwareGammaEnabled(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_rtgt_getFSAA(struct hg3dclass_struct * thisclass_c, unsigned long * result_c); + +// +void ogre_rtgt_getFSAAHint(struct hg3dclass_struct * thisclass_c, char * result_c); + +#endif
include/ClassRenderTexture.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,23 +15,19 @@ // 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: "Dep-OgreSDK/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" +#ifndef _DEFINED_HG3D_ClassRenderTexture +#define _DEFINED_HG3D_ClassRenderTexture + #include "ClassPtr.h" -#include "Utils.h" +// +void ogre_rtx_destruct(struct hg3dclass_struct * thisclass_c); + +#endif
include/ClassRenderWindow.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,50 +15,76 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassRenderWindow.h + // + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassRenderWindow +#define _DEFINED_HG3D_ClassRenderWindow + +#include "ClassPtr.h" + + // +void ogre_rw_setFullscreen(struct hg3dclass_struct * thisclass_c, long fullScreen_c, unsigned long width_c, unsigned long height_c); + // +void ogre_rw_destroy(struct hg3dclass_struct * thisclass_c); + // -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/include/OGRE\OgreRenderWindow.h" +void ogre_rw_resize(struct hg3dclass_struct * thisclass_c, unsigned long width_c, unsigned long height_c); + // -// each stub combines the following files: -// a C++ implementation file, transforming cpp calls into C-functions -// a C-header file, making this C-functions available for the C2HS parser -// a chs file, give instructions to the C2HS parser. +void ogre_rw_windowMovedOrResized(struct hg3dclass_struct * thisclass_c); + // +void ogre_rw_reposition(struct hg3dclass_struct * thisclass_c, long left_c, long top_c); + // +void ogre_rw_isVisible(struct hg3dclass_struct * thisclass_c, long * result_c); -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" -#include "EnumPixelFormat.h" +// +void ogre_rw_setVisible(struct hg3dclass_struct * thisclass_c, long visible_c); +// +void ogre_rw_isHidden(struct hg3dclass_struct * thisclass_c, long * result_c); -// 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); +// +void ogre_rw_setHidden(struct hg3dclass_struct * thisclass_c, long hidden_c); + +// +void ogre_rw_setVSyncEnabled(struct hg3dclass_struct * thisclass_c, long vsync_c); + +// +void ogre_rw_isVSyncEnabled(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_rw_setVSyncInterval(struct hg3dclass_struct * thisclass_c, unsigned long interval_c); + +// +void ogre_rw_getVSyncInterval(struct hg3dclass_struct * thisclass_c, unsigned long * result_c); + +// +void ogre_rw_isActive(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_rw_isClosed(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_rw_isPrimary(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_rw_isFullScreen(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_rw_getMetrics(struct hg3dclass_struct * thisclass_c, unsigned long * width_c, unsigned long * height_c, unsigned long * colourDepth_c, long * left_c, long * top_c); + +// +void ogre_rw_isDeactivatedOnFocusChange(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_rw_setDeactivateOnFocusChange(struct hg3dclass_struct * thisclass_c, long deactivate_c); + +#endif
+ include/ClassRenderable.h view
@@ -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.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// ClassRenderable.h + +// + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassRenderable +#define _DEFINED_HG3D_ClassRenderable + +#include "ClassPtr.h" +#include "StructSharedPtr.h" +#include "ClassSceneManager.h" +#include "ClassRenderSystem.h" +#include "ClassCamera.h" + + +// +void ogre_rndl_destruct(struct hg3dclass_struct * thisclass_c); + +// +void ogre_rndl_getMaterial(struct hg3dclass_struct * thisclass_c, struct sharedptr_struct * result_c); + +// +void ogre_rndl_preRender(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * sm_c, struct hg3dclass_struct * rsys_c, long * result_c); + +// +void ogre_rndl_postRender(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * sm_c, struct hg3dclass_struct * rsys_c); + +// +void ogre_rndl_getNumWorldTransforms(struct hg3dclass_struct * thisclass_c, unsigned short * result_c); + +// +void ogre_rndl_setUseIdentityProjection(struct hg3dclass_struct * thisclass_c, long useIdentityProjection_c); + +// +void ogre_rndl_getUseIdentityProjection(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_rndl_setUseIdentityView(struct hg3dclass_struct * thisclass_c, long useIdentityView_c); + +// +void ogre_rndl_getUseIdentityView(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_rndl_getSquaredViewDepth(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * cam_c, float * result_c); + +// +void ogre_rndl_getCastsShadows(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_rndl_removeCustomParameter(struct hg3dclass_struct * thisclass_c, long index_c); + +// +void ogre_rndl_hasCustomParameter(struct hg3dclass_struct * thisclass_c, long index_c, long * result_c); + +// +void ogre_rndl_setPolygonModeOverrideable(struct hg3dclass_struct * thisclass_c, long override_c); + +// +void ogre_rndl_getPolygonModeOverrideable(struct hg3dclass_struct * thisclass_c, long * result_c); + +#endif
− include/ClassRenderingAPIException.h
@@ -1,38 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - -
+ include/ClassResource.h view
@@ -0,0 +1,94 @@+// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// ClassResource.h + +// + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassResource +#define _DEFINED_HG3D_ClassResource + +#include "ClassPtr.h" +#include "ClassResourceManager.h" + + +// +void ogre_rsrc_destruct(struct hg3dclass_struct * thisclass_c); + +// +void ogre_rsrc_prepare(struct hg3dclass_struct * thisclass_c, long backgroundThread_c); + +// +void ogre_rsrc_load(struct hg3dclass_struct * thisclass_c, long backgroundThread_c); + +// +void ogre_rsrc_reload(struct hg3dclass_struct * thisclass_c); + +// +void ogre_rsrc_isReloadable(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_rsrc_isManuallyLoaded(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_rsrc_unload(struct hg3dclass_struct * thisclass_c); + +// +void ogre_rsrc_getSize(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_rsrc_touch(struct hg3dclass_struct * thisclass_c); + +// +void ogre_rsrc_getName(struct hg3dclass_struct * thisclass_c, char * result_c); + +// +void ogre_rsrc_isPrepared(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_rsrc_isLoaded(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_rsrc_isLoading(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_rsrc_isBackgroundLoaded(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_rsrc_setBackgroundLoaded(struct hg3dclass_struct * thisclass_c, long bl_c); + +// +void ogre_rsrc_escalateLoading(struct hg3dclass_struct * thisclass_c); + +// Gets the group which this resource is a member of. +void ogre_rsrc_getGroup(struct hg3dclass_struct * thisclass_c, char * result_c); + +// +void ogre_rsrc_changeGroupOwnership(struct hg3dclass_struct * thisclass_c, char * newGroup_c); + +// Gets the manager which created this resource. +void ogre_rsrc_getCreator(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); + +// +void ogre_rsrc_getOrigin(struct hg3dclass_struct * thisclass_c, char * result_c); + +// +void ogre_rsrc_getStateCount(struct hg3dclass_struct * thisclass_c, long * result_c); + +#endif
− include/ClassResourceGroupListener.h
@@ -1,69 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" -#include "TypeSharedPtr.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 resourcePrepareStarted(const ResourcePtr& resource); -void cRgl_resourcePrepareStarted_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * resource_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 resourceLoadStarted(const ResourcePtr& resource); -void cRgl_resourceLoadStarted_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * resource_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);
include/ClassResourceGroupManager.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,116 +15,110 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassResourceGroupManager.h + // + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassResourceGroupManager +#define _DEFINED_HG3D_ClassResourceGroupManager + +#include "ClassPtr.h" +#include "ClassSceneManager.h" + + // +void ogre_rgmgr_construct(struct hg3dclass_struct * result_c); + // +void ogre_rgmgr_destruct(struct hg3dclass_struct * thisclass_c); + // -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/include/OGRE\OgreResourceGroupManager.h" +void ogre_rgmgr_createResourceGroup(struct hg3dclass_struct * thisclass_c, char * name_c, const long inGlobalPool_c); + // -// each stub combines the following files: -// a C++ implementation file, transforming cpp calls into C-functions -// a C-header file, making this C-functions available for the C2HS parser -// a chs file, give instructions to the C2HS parser. +void ogre_rgmgr_initialiseResourceGroup(struct hg3dclass_struct * thisclass_c, char * name_c); + // +void ogre_rgmgr_initialiseAllResourceGroups(struct hg3dclass_struct * thisclass_c); + // +void ogre_rgmgr_prepareResourceGroup(struct hg3dclass_struct * thisclass_c, char * name_c, long prepareMainResources_c, long prepareWorldGeom_c); -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" -#include "TypeSharedPtr.h" +// +void ogre_rgmgr_loadResourceGroup(struct hg3dclass_struct * thisclass_c, char * name_c, long loadMainResources_c, long loadWorldGeom_c); +// +void ogre_rgmgr_unloadResourceGroup(struct hg3dclass_struct * thisclass_c, char * name_c, long reloadableOnly_c); -// 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: DataStreamListPtr openResources(const String& pattern, const String& groupName); -void cRgm_openResources_c(struct hg3dclass_struct *classptr_c, char * pattern_c, char * groupName_c, struct sharedptr_struct * result_c); -// original function: StringVectorPtr listResourceNames(const String& groupName, bool dirs); -void cRgm_listResourceNames_c(struct hg3dclass_struct *classptr_c, char * groupName_c, int dirs_c, struct sharedptr_struct * result_c); -// original function: FileInfoListPtr listResourceFileInfo(const String& groupName, bool dirs); -void cRgm_listResourceFileInfo_c(struct hg3dclass_struct *classptr_c, char * groupName_c, int dirs_c, struct sharedptr_struct * result_c); -// original function: StringVectorPtr findResourceNames(const String& groupName, const String& pattern, bool dirs); -void cRgm_findResourceNames_c(struct hg3dclass_struct *classptr_c, char * groupName_c, char * pattern_c, int dirs_c, struct sharedptr_struct * result_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: FileInfoListPtr findResourceFileInfo(const String& group, const String& pattern, bool dirs); -void cRgm_findResourceFileInfo_c(struct hg3dclass_struct *classptr_c, char * group_c, char * pattern_c, int dirs_c, struct sharedptr_struct * result_c); -// original function: StringVectorPtr listResourceLocations(const String& groupName); -void cRgm_listResourceLocations_c(struct hg3dclass_struct *classptr_c, char * groupName_c, struct sharedptr_struct * result_c); -// original function: StringVectorPtr findResourceLocation(const String& groupName, const String& pattern); -void cRgm_findResourceLocation_c(struct hg3dclass_struct *classptr_c, char * groupName_c, char * pattern_c, struct sharedptr_struct * result_c); -// original function: DataStreamPtr createResource(const String& filename, const String& groupName, bool overwrite, const String& locationPattern); -void cRgm_createResource_c(struct hg3dclass_struct *classptr_c, char * filename_c, char * groupName_c, int overwrite_c, char * locationPattern_c, struct sharedptr_struct * 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 _registerResourceManager(const String& resourceType, ResourceManager* rm); -void cRgm__registerResourceManager_c(struct hg3dclass_struct *classptr_c, char * resourceType_c, struct hg3dclass_struct * rm_c); -// original function: void _unregisterResourceManager(const String& resourceType); -void cRgm__unregisterResourceManager_c(struct hg3dclass_struct *classptr_c, char * resourceType_c); -// original function: ResourceManager* _getResourceManager(const String& resourceType); -void cRgm__getResourceManager_c(struct hg3dclass_struct *classptr_c, char * resourceType_c, struct hg3dclass_struct * result_c); -// original function: void _notifyResourceCreated(ResourcePtr& res); -void cRgm__notifyResourceCreated_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * res_c); -// original function: void _notifyResourceRemoved(ResourcePtr& res); -void cRgm__notifyResourceRemoved_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * res_c); -// original function: void _notifyAllResourcesRemoved(ResourceManager* manager); -void cRgm__notifyAllResourcesRemoved_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * manager_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); +// +void ogre_rgmgr_unloadUnreferencedResourcesInGroup(struct hg3dclass_struct * thisclass_c, char * name_c, long reloadableOnly_c); + +// +void ogre_rgmgr_clearResourceGroup(struct hg3dclass_struct * thisclass_c, char * name_c); + +// +void ogre_rgmgr_destroyResourceGroup(struct hg3dclass_struct * thisclass_c, char * name_c); + +// +void ogre_rgmgr_isResourceGroupInitialised(struct hg3dclass_struct * thisclass_c, char * name_c, long * result_c); + +// +void ogre_rgmgr_isResourceGroupLoaded(struct hg3dclass_struct * thisclass_c, char * name_c, long * result_c); + +// +void ogre_rgmgr_resourceGroupExists(struct hg3dclass_struct * thisclass_c, char * name_c, long * result_c); + +// +void ogre_rgmgr_addResourceLocation(struct hg3dclass_struct * thisclass_c, char * name_c, char * locType_c, char * resGroup_c, long recursive_c); + +// +void ogre_rgmgr_removeResourceLocation(struct hg3dclass_struct * thisclass_c, char * name_c, char * resGroup_c); + +// +void ogre_rgmgr_resourceLocationExists(struct hg3dclass_struct * thisclass_c, char * name_c, char * resGroup_c, long * result_c); + +// +void ogre_rgmgr_undeclareResource(struct hg3dclass_struct * thisclass_c, char * name_c, char * groupName_c); + +// +void ogre_rgmgr_resourceExists(struct hg3dclass_struct * thisclass_c, char * group_c, char * filename_c, long * result_c); + +// +void ogre_rgmgr_resourceExistsInAnyGroup(struct hg3dclass_struct * thisclass_c, char * filename_c, long * result_c); + +// +void ogre_rgmgr_findGroupContainingResource(struct hg3dclass_struct * thisclass_c, char * filename_c, char * result_c); + +// +void ogre_rgmgr_deleteResource(struct hg3dclass_struct * thisclass_c, char * filename_c, char * groupName_c, char * locationPattern_c); + +// +void ogre_rgmgr_deleteMatchingResources(struct hg3dclass_struct * thisclass_c, char * filePattern_c, char * groupName_c, char * locationPattern_c); + +// +void ogre_rgmgr_setWorldResourceGroupName(struct hg3dclass_struct * thisclass_c, char * groupName_c); + +// Gets the resource group that 'world' resources will use. +void ogre_rgmgr_getWorldResourceGroupName(struct hg3dclass_struct * thisclass_c, char * result_c); + +// +void ogre_rgmgr_linkWorldGeometryToResourceGroup(struct hg3dclass_struct * thisclass_c, char * group_c, char * worldGeometry_c, struct hg3dclass_struct * sceneManager_c); + +// +void ogre_rgmgr_unlinkWorldGeometryFromResourceGroup(struct hg3dclass_struct * thisclass_c, char * group_c); + +// +void ogre_rgmgr_isResourceGroupInGlobalPool(struct hg3dclass_struct * thisclass_c, char * name_c, long * result_c); + +// +void ogre_rgmgr_shutdownAll(struct hg3dclass_struct * thisclass_c); + +// +void ogre_rgmgr_getSingleton(struct hg3dclass_struct * result_c); + +// +void ogre_rgmgr_getSingletonPtr(struct hg3dclass_struct * result_c); + +#endif
include/ClassResourceManager.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,64 +15,73 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassResourceManager.h + // + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassResourceManager +#define _DEFINED_HG3D_ClassResourceManager + +#include "ClassPtr.h" + + // +void ogre_rsrcmgr_destruct(struct hg3dclass_struct * thisclass_c); + // +void ogre_rsrcmgr_setMemoryBudget(struct hg3dclass_struct * thisclass_c, long bytes_c); + // -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/include/OGRE\OgreResourceManager.h" +void ogre_rsrcmgr_getMemoryBudget(struct hg3dclass_struct * thisclass_c, long * result_c); + // -// each stub combines the following files: -// a C++ implementation file, transforming cpp calls into C-functions -// a C-header file, making this C-functions available for the C2HS parser -// a chs file, give instructions to the C2HS parser. +void ogre_rsrcmgr_getMemoryUsage(struct hg3dclass_struct * thisclass_c, long * result_c); + // +void ogre_rsrcmgr_unload(struct hg3dclass_struct * thisclass_c, char * name_c); + // +void ogre_rsrcmgr_unloadAll(struct hg3dclass_struct * thisclass_c, long reloadableOnly_c); -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" -#include "TypeSharedPtr.h" +// +void ogre_rsrcmgr_reloadAll(struct hg3dclass_struct * thisclass_c, long reloadableOnly_c); +// +void ogre_rsrcmgr_unloadUnreferencedResources(struct hg3dclass_struct * thisclass_c, long reloadableOnly_c); -// original function: void setMemoryBudget(size_t bytes); -void cRm_setMemoryBudget_c(struct hg3dclass_struct *classptr_c, int bytes_c); -// original function: size_t getMemoryBudget(); -void cRm_getMemoryBudget_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: size_t getMemoryUsage(); -void cRm_getMemoryUsage_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: void unload(const String& name); -void cRm_unload_c(struct hg3dclass_struct *classptr_c, char * name_c); -// original function: void unloadAll(bool reloadableOnly); -void cRm_unloadAll_c(struct hg3dclass_struct *classptr_c, int reloadableOnly_c); -// original function: void reloadAll(bool reloadableOnly); -void cRm_reloadAll_c(struct hg3dclass_struct *classptr_c, int reloadableOnly_c); -// original function: void unloadUnreferencedResources(bool reloadableOnly); -void cRm_unloadUnreferencedResources_c(struct hg3dclass_struct *classptr_c, int reloadableOnly_c); -// original function: void reloadUnreferencedResources(bool reloadableOnly); -void cRm_reloadUnreferencedResources_c(struct hg3dclass_struct *classptr_c, int reloadableOnly_c); -// original function: void remove(ResourcePtr& r); -void cRm_remove_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * r_c); -// original function: void remove(const String& name); -void cRm_remove2_c(struct hg3dclass_struct *classptr_c, char * name_c); -// original function: void removeAll(); -void cRm_removeAll_c(struct hg3dclass_struct *classptr_c); -// original function: void removeUnreferencedResources(bool reloadableOnly); -void cRm_removeUnreferencedResources_c(struct hg3dclass_struct *classptr_c, int reloadableOnly_c); -// original function: ResourcePtr getByName(const String& name, const String& groupName); -void cRm_getByName_c(struct hg3dclass_struct *classptr_c, char * name_c, char * groupName_c, struct sharedptr_struct * result_c); -// original function: bool resourceExists(const String& name); -void cRm_resourceExists_c(struct hg3dclass_struct *classptr_c, char * name_c, int * result_c); -// original function: void parseScript(DataStreamPtr& stream, const String& groupName); -void cRm_parseScript_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * stream_c, char * groupName_c); -// original function: Real getLoadingOrder(); -void cRm_getLoadingOrder_c(struct hg3dclass_struct *classptr_c, float * result_c); -// original function: const String& getResourceType(); -void cRm_getResourceType_c(struct hg3dclass_struct *classptr_c, char * result_c); -// original function: void setVerbose(bool v); -void cRm_setVerbose_c(struct hg3dclass_struct *classptr_c, int v_c); -// original function: bool getVerbose(); -void cRm_getVerbose_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: void destroyResourcePool(const String& name); -void cRm_destroyResourcePool2_c(struct hg3dclass_struct *classptr_c, char * name_c); +// +void ogre_rsrcmgr_reloadUnreferencedResources(struct hg3dclass_struct * thisclass_c, long reloadableOnly_c); + +// +void ogre_rsrcmgr_remove2(struct hg3dclass_struct * thisclass_c, char * name_c); + +// +void ogre_rsrcmgr_removeAll(struct hg3dclass_struct * thisclass_c); + +// +void ogre_rsrcmgr_removeUnreferencedResources(struct hg3dclass_struct * thisclass_c, long reloadableOnly_c); + +// Returns whether the named resource exists in this manager. +void ogre_rsrcmgr_resourceExists(struct hg3dclass_struct * thisclass_c, char * name_c, long * result_c); + +// +void ogre_rsrcmgr_getLoadingOrder(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_rsrcmgr_getResourceType(struct hg3dclass_struct * thisclass_c, char * result_c); + +// +void ogre_rsrcmgr_setVerbose(struct hg3dclass_struct * thisclass_c, long v_c); + +// +void ogre_rsrcmgr_getVerbose(struct hg3dclass_struct * thisclass_c, long * result_c); + +// Destroy a resource pool. +void ogre_rsrcmgr_destroyResourcePool2(struct hg3dclass_struct * thisclass_c, char * name_c); + +// destroy all pools +void ogre_rsrcmgr_destroyAllResourcePools(struct hg3dclass_struct * thisclass_c); + +#endif
− include/ClassRibbonTrail.h
@@ -1,75 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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 "TypeColour.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);
− include/ClassRibbonTrailFactory.h
@@ -1,38 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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/ClassRoot.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,135 +15,196 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassRoot.h + // + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassRoot +#define _DEFINED_HG3D_ClassRoot + +#include "ClassPtr.h" +#include "ClassRenderSystem.h" +#include "ClassRenderWindow.h" +#include "ClassSceneManagerFactory.h" +#include "ClassSceneManager.h" +#include "ClassTextureManager.h" +#include "ClassMeshManager.h" +#include "StructColour.h" +#include "ClassRenderTarget.h" +#include "ClassMovableObjectFactory.h" + + // +void ogre_rt_construct(char * pluginFileName_c, char * configFileName_c, char * logFileName_c, struct hg3dclass_struct * result_c); + // +void ogre_rt_destruct(struct hg3dclass_struct * thisclass_c); + // -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/include/OGRE\OgreRoot.h" +void ogre_rt_saveConfig(struct hg3dclass_struct * thisclass_c); + // -// each stub combines the following files: -// a C++ implementation file, transforming cpp calls into C-functions -// a C-header file, making this C-functions available for the C2HS parser -// a chs file, give instructions to the C2HS parser. +void ogre_rt_restoreConfig(struct hg3dclass_struct * thisclass_c, long * result_c); + // +void ogre_rt_showConfigDialog(struct hg3dclass_struct * thisclass_c, long * result_c); + // +void ogre_rt_addRenderSystem(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * newRend_c); -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" -#include "TypeSharedPtr.h" -#include "TypeColour.h" +// +void ogre_rt_getRenderSystemByName(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * result_c); +// +void ogre_rt_setRenderSystem(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * system_c); -// 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 short 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: String getErrorDescription(long errorNumber); -void cR_getErrorDescription_c(struct hg3dclass_struct *classptr_c, int errorNumber_c, char * 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: DataStreamPtr createFileStream(const String& filename, const String& groupName, bool overwrite, const String& locationPattern); -void cR_createFileStream_c(struct hg3dclass_struct *classptr_c, char * filename_c, char * groupName_c, int overwrite_c, char * locationPattern_c, struct sharedptr_struct * result_c); -// original function: DataStreamPtr openFileStream(const String& filename, const String& groupName, const String& locationPattern); -void cR_openFileStream_c(struct hg3dclass_struct *classptr_c, char * filename_c, char * groupName_c, char * locationPattern_c, struct sharedptr_struct * result_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); +// +void ogre_rt_getRenderSystem(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); + +// +void ogre_rt_initialise(struct hg3dclass_struct * thisclass_c, long autoCreateWindow_c, char * windowTitle_c, char * customCapabilitiesConfig_c, struct hg3dclass_struct * result_c); + +// +void ogre_rt_isInitialised(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_rt_getRemoveRenderQueueStructuresOnClear(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_rt_setRemoveRenderQueueStructuresOnClear(struct hg3dclass_struct * thisclass_c, long r_c); + +// +void ogre_rt_addSceneManagerFactory(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * fact_c); + +// +void ogre_rt_removeSceneManagerFactory(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * fact_c); + +// +void ogre_rt_createSceneManager(struct hg3dclass_struct * thisclass_c, char * typeName_c, char * instanceName_c, struct hg3dclass_struct * result_c); + +// +void ogre_rt_destroySceneManager(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * sm_c); + +// +void ogre_rt_getSceneManager(struct hg3dclass_struct * thisclass_c, char * instanceName_c, struct hg3dclass_struct * result_c); + +// +void ogre_rt_hasSceneManager(struct hg3dclass_struct * thisclass_c, char * instanceName_c, long * result_c); + +// +void ogre_rt_getTextureManager(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); + +// +void ogre_rt_getMeshManager(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); + +// +void ogre_rt_getErrorDescription(struct hg3dclass_struct * thisclass_c, long errorNumber_c, char * result_c); + +// +void ogre_rt_queueEndRendering(struct hg3dclass_struct * thisclass_c); + +// +void ogre_rt_startRendering(struct hg3dclass_struct * thisclass_c); + +// +void ogre_rt_renderOneFrame(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_rt_renderOneFrame2(struct hg3dclass_struct * thisclass_c, float timeSinceLastFrame_c, long * result_c); + +// +void ogre_rt_shutdown(struct hg3dclass_struct * thisclass_c); + +// +void ogre_rt_addResourceLocation(struct hg3dclass_struct * thisclass_c, char * name_c, char * locType_c, char * groupName_c, long recursive_c); + +// +void ogre_rt_removeResourceLocation(struct hg3dclass_struct * thisclass_c, char * name_c, char * groupName_c); + +// +void ogre_rt_convertColourValue(struct hg3dclass_struct * thisclass_c, struct colourvalue_struct * colour_c, unsigned long * pDest_c); + +// +void ogre_rt_getAutoCreatedWindow(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); + +// +void ogre_rt_detachRenderTarget(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * pWin_c, struct hg3dclass_struct * result_c); + +// +void ogre_rt_detachRenderTarget2(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * result_c); + +// +void ogre_rt_destroyRenderTarget(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * target_c); + +// +void ogre_rt_destroyRenderTarget2(struct hg3dclass_struct * thisclass_c, char * name_c); + +// +void ogre_rt_getRenderTarget(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * result_c); + +// +void ogre_rt_loadPlugin(struct hg3dclass_struct * thisclass_c, char * pluginName_c); + +// +void ogre_rt_unloadPlugin(struct hg3dclass_struct * thisclass_c, char * pluginName_c); + +// +void ogre_rt_getNextFrameNumber(struct hg3dclass_struct * thisclass_c, unsigned long * result_c); + +// +void ogre_rt_destroyRenderQueueInvocationSequence(struct hg3dclass_struct * thisclass_c, char * name_c); + +// +void ogre_rt_destroyAllRenderQueueInvocationSequences(struct hg3dclass_struct * thisclass_c); + +// +void ogre_rt_clearEventTimes(struct hg3dclass_struct * thisclass_c); + +// +void ogre_rt_setFrameSmoothingPeriod(struct hg3dclass_struct * thisclass_c, float period_c); + +// +void ogre_rt_getFrameSmoothingPeriod(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_rt_addMovableObjectFactory(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * fact_c, long overrideExisting_c); + +// +void ogre_rt_removeMovableObjectFactory(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * fact_c); + +// Checks whether a factory is registered for a given MovableObject +void ogre_rt_hasMovableObjectFactory(struct hg3dclass_struct * thisclass_c, char * typeName_c, long * result_c); + +// Get a MovableObjectFactory +void ogre_rt_getMovableObjectFactory(struct hg3dclass_struct * thisclass_c, char * typeName_c, struct hg3dclass_struct * result_c); + +// +void ogre_rt_getDisplayMonitorCount(struct hg3dclass_struct * thisclass_c, unsigned long * result_c); + +// +void ogre_rt_setBlendIndicesGpuRedundant(struct hg3dclass_struct * thisclass_c, long redundant_c); + +// +void ogre_rt_isBlendIndicesGpuRedundant(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_rt_setBlendWeightsGpuRedundant(struct hg3dclass_struct * thisclass_c, long redundant_c); + +// +void ogre_rt_isBlendWeightsGpuRedundant(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_rt_setDefaultMinPixelSize(struct hg3dclass_struct * thisclass_c, float pixelSize_c); + +// +void ogre_rt_getDefaultMinPixelSize(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_rt_getSingleton(struct hg3dclass_struct * result_c); + +// +void ogre_rt_getSingletonPtr(struct hg3dclass_struct * result_c); + +#endif
− include/ClassRuntimeAssertionException.h
@@ -1,38 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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.h -// -// -// -// -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/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" - -
include/ClassSceneManager.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,426 +15,541 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassSceneManager.h + // + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassSceneManager +#define _DEFINED_HG3D_ClassSceneManager + +#include "ClassPtr.h" +#include "ClassCamera.h" +#include "ClassLight.h" +#include "ClassSceneNode.h" +#include "ClassEntity.h" +#include "StructSharedPtr.h" +#include "EnumSceneManagerPrefabType.h" +#include "ClassManualObject.h" +#include "ClassBillboardChain.h" +#include "StructColour.h" +#include "StructQuaternion.h" +#include "ClassBillboardSet.h" +#include "ClassAnimation.h" +#include "ClassAnimationState.h" +#include "EnumSceneManagerSpecialCaseRenderQueueMode.h" +#include "EnumLightType.h" +#include "ClassMovableObject.h" +#include "ClassRenderSystem.h" +#include "ClassViewport.h" + + // +void ogre_scmgr_destruct(struct hg3dclass_struct * thisclass_c); + // +void ogre_scmgr_getName(struct hg3dclass_struct * thisclass_c, char * result_c); + // -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/include/OGRE\OgreSceneManager.h" +void ogre_scmgr_getTypeName(struct hg3dclass_struct * thisclass_c, char * result_c); + // -// each stub combines the following files: -// a C++ implementation file, transforming cpp calls into C-functions -// a C-header file, making this C-functions available for the C2HS parser -// a chs file, give instructions to the C2HS parser. +void ogre_scmgr_createCamera(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * result_c); + // +void ogre_scmgr_getCamera(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * result_c); + // +void ogre_scmgr_hasCamera(struct hg3dclass_struct * thisclass_c, char * name_c, long * result_c); -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" -#include "EnumPrefabType.h" -#include "TypeColour.h" -#include "TypeSharedPtr.h" -#include "TypeQuaternion.h" -#include "EnumFogMode.h" -#include "EnumSpecialCaseRenderQueueMode.h" -#include "EnumShadowTechnique.h" -#include "EnumPixelFormat.h" -#include "EnumLightTypes.h" +// +void ogre_scmgr_destroyCamera(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * cam_c); +// +void ogre_scmgr_destroyCamera2(struct hg3dclass_struct * thisclass_c, char * name_c); -// original function: const String& getName(); -void cSm_getName_c(struct hg3dclass_struct *classptr_c, char * result_c); -// original function: const String& getTypeName(); -void cSm_getTypeName_c(struct hg3dclass_struct *classptr_c, char * result_c); -// original function: Camera* createCamera(const String& name); -void cSm_createCamera_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); -// original function: Camera* getCamera(const String& name); -void cSm_getCamera_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); -// original function: bool hasCamera(const String& name); -void cSm_hasCamera_c(struct hg3dclass_struct *classptr_c, char * name_c, int * result_c); -// original function: void destroyCamera(Camera * cam); -void cSm_destroyCamera_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * cam_c); -// original function: void destroyCamera(const String& name); -void cSm_destroyCamera2_c(struct hg3dclass_struct *classptr_c, char * name_c); -// original function: void destroyAllCameras(); -void cSm_destroyAllCameras_c(struct hg3dclass_struct *classptr_c); -// original function: Light* createLight(const String& name); -void cSm_createLight_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); -// original function: Light* createLight(); -void cSm_createLight2_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); -// original function: Light* getLight(const String& name); -void cSm_getLight_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); -// original function: bool hasLight(const String& name); -void cSm_hasLight_c(struct hg3dclass_struct *classptr_c, char * name_c, int * result_c); -// original function: void destroyLight(const String& name); -void cSm_destroyLight_c(struct hg3dclass_struct *classptr_c, char * name_c); -// original function: void destroyLight(Light* light); -void cSm_destroyLight2_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * light_c); -// original function: void destroyAllLights(); -void cSm_destroyAllLights_c(struct hg3dclass_struct *classptr_c); -// original function: void _notifyLightsDirty(); -void cSm__notifyLightsDirty_c(struct hg3dclass_struct *classptr_c); -// original function: SceneNode* createSceneNode(); -void cSm_createSceneNode_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); -// original function: SceneNode* createSceneNode(const String& name); -void cSm_createSceneNode2_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); -// original function: void destroySceneNode(const String& name); -void cSm_destroySceneNode_c(struct hg3dclass_struct *classptr_c, char * name_c); -// original function: void destroySceneNode(SceneNode* sn); -void cSm_destroySceneNode2_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * sn_c); -// original function: SceneNode* getRootSceneNode(); -void cSm_getRootSceneNode_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); -// original function: SceneNode* getSceneNode(const String& name); -void cSm_getSceneNode_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); -// original function: bool hasSceneNode(const String& name); -void cSm_hasSceneNode_c(struct hg3dclass_struct *classptr_c, char * name_c, int * result_c); -// original function: Entity* createEntity(const String& entityName, const String& meshName, const String& groupName); -void cSm_createEntity_c(struct hg3dclass_struct *classptr_c, char * entityName_c, char * meshName_c, char * groupName_c, struct hg3dclass_struct * result_c); -// original function: Entity* createEntity(const String& meshName); -void cSm_createEntity2_c(struct hg3dclass_struct *classptr_c, char * meshName_c, struct hg3dclass_struct * result_c); -// original function: Entity* createEntity(const String& entityName, PrefabType ptype); -void cSm_createEntity3_c(struct hg3dclass_struct *classptr_c, char * entityName_c, enum EnumPrefabType ptype_c, struct hg3dclass_struct * result_c); -// original function: Entity* createEntity(PrefabType ptype); -void cSm_createEntity4_c(struct hg3dclass_struct *classptr_c, enum EnumPrefabType ptype_c, struct hg3dclass_struct * result_c); -// original function: Entity* getEntity(const String& name); -void cSm_getEntity_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); -// original function: bool hasEntity(const String& name); -void cSm_hasEntity_c(struct hg3dclass_struct *classptr_c, char * name_c, int * result_c); -// original function: void destroyEntity(Entity* ent); -void cSm_destroyEntity_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * ent_c); -// original function: void destroyEntity(const String& name); -void cSm_destroyEntity2_c(struct hg3dclass_struct *classptr_c, char * name_c); -// original function: void destroyAllEntities(); -void cSm_destroyAllEntities_c(struct hg3dclass_struct *classptr_c); -// original function: ManualObject* createManualObject(const String& name); -void cSm_createManualObject_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); -// original function: ManualObject* createManualObject(); -void cSm_createManualObject2_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); -// original function: ManualObject* getManualObject(const String& name); -void cSm_getManualObject_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); -// original function: bool hasManualObject(const String& name); -void cSm_hasManualObject_c(struct hg3dclass_struct *classptr_c, char * name_c, int * result_c); -// original function: void destroyManualObject(ManualObject* obj); -void cSm_destroyManualObject_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * obj_c); -// original function: void destroyManualObject(const String& name); -void cSm_destroyManualObject2_c(struct hg3dclass_struct *classptr_c, char * name_c); -// original function: void destroyAllManualObjects(); -void cSm_destroyAllManualObjects_c(struct hg3dclass_struct *classptr_c); -// original function: BillboardChain* createBillboardChain(const String& name); -void cSm_createBillboardChain_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); -// original function: BillboardChain* createBillboardChain(); -void cSm_createBillboardChain2_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); -// original function: BillboardChain* getBillboardChain(const String& name); -void cSm_getBillboardChain_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); -// original function: bool hasBillboardChain(const String& name); -void cSm_hasBillboardChain_c(struct hg3dclass_struct *classptr_c, char * name_c, int * result_c); -// original function: void destroyBillboardChain(BillboardChain* obj); -void cSm_destroyBillboardChain_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * obj_c); -// original function: void destroyBillboardChain(const String& name); -void cSm_destroyBillboardChain2_c(struct hg3dclass_struct *classptr_c, char * name_c); -// original function: void destroyAllBillboardChains(); -void cSm_destroyAllBillboardChains_c(struct hg3dclass_struct *classptr_c); -// original function: RibbonTrail* createRibbonTrail(const String& name); -void cSm_createRibbonTrail_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); -// original function: RibbonTrail* createRibbonTrail(); -void cSm_createRibbonTrail2_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); -// original function: RibbonTrail* getRibbonTrail(const String& name); -void cSm_getRibbonTrail_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); -// original function: bool hasRibbonTrail(const String& name); -void cSm_hasRibbonTrail_c(struct hg3dclass_struct *classptr_c, char * name_c, int * result_c); -// original function: void destroyRibbonTrail(RibbonTrail* obj); -void cSm_destroyRibbonTrail_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * obj_c); -// original function: void destroyRibbonTrail(const String& name); -void cSm_destroyRibbonTrail2_c(struct hg3dclass_struct *classptr_c, char * name_c); -// original function: void destroyAllRibbonTrails(); -void cSm_destroyAllRibbonTrails_c(struct hg3dclass_struct *classptr_c); -// original function: bool hasParticleSystem(const String& name); -void cSm_hasParticleSystem_c(struct hg3dclass_struct *classptr_c, char * name_c, int * result_c); -// original function: void destroyParticleSystem(const String& name); -void cSm_destroyParticleSystem2_c(struct hg3dclass_struct *classptr_c, char * name_c); -// original function: void destroyAllParticleSystems(); -void cSm_destroyAllParticleSystems_c(struct hg3dclass_struct *classptr_c); -// original function: void clearScene(); -void cSm_clearScene_c(struct hg3dclass_struct *classptr_c); -// original function: void setAmbientLight(const ColourValue& colour); -void cSm_setAmbientLight_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * colour_c); -// original function: const ColourValue& getAmbientLight(); -void cSm_getAmbientLight_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * result_c); -// original function: void prepareWorldGeometry(const String& filename); -void cSm_prepareWorldGeometry_c(struct hg3dclass_struct *classptr_c, char * filename_c); -// original function: void prepareWorldGeometry(DataStreamPtr& stream, const String& typeName); -void cSm_prepareWorldGeometry2_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * stream_c, char * typeName_c); -// original function: void setWorldGeometry(const String& filename); -void cSm_setWorldGeometry_c(struct hg3dclass_struct *classptr_c, char * filename_c); -// original function: void setWorldGeometry(DataStreamPtr& stream, const String& typeName); -void cSm_setWorldGeometry2_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * stream_c, char * typeName_c); -// original function: size_t estimateWorldGeometry(const String& filename); -void cSm_estimateWorldGeometry_c(struct hg3dclass_struct *classptr_c, char * filename_c, int * result_c); -// original function: size_t estimateWorldGeometry(DataStreamPtr& stream, const String& typeName); -void cSm_estimateWorldGeometry2_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * stream_c, char * typeName_c, int * result_c); -// original function: bool hasOption(const String& strKey); -void cSm_hasOption_c(struct hg3dclass_struct *classptr_c, char * strKey_c, int * result_c); -// original function: void _updateSceneGraph(Camera* cam); -void cSm__updateSceneGraph_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * cam_c); -// original function: void _applySceneAnimations(); -void cSm__applySceneAnimations_c(struct hg3dclass_struct *classptr_c); -// original function: void _renderVisibleObjects(); -void cSm__renderVisibleObjects_c(struct hg3dclass_struct *classptr_c); -// original function: void _renderScene(Camera* camera, Viewport* vp, bool includeOverlays); -void cSm__renderScene_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * camera_c, struct hg3dclass_struct * vp_c, int includeOverlays_c); -// original function: void _queueSkiesForRendering(Camera* cam); -void cSm__queueSkiesForRendering_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * cam_c); -// original function: void setSkyPlaneEnabled(bool enable); -void cSm_setSkyPlaneEnabled_c(struct hg3dclass_struct *classptr_c, int enable_c); -// original function: bool isSkyPlaneEnabled(); -void cSm_isSkyPlaneEnabled_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: SceneNode* getSkyPlaneNode(); -void cSm_getSkyPlaneNode_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); -// original function: void setSkyBox(bool enable, const String& materialName, Real distance, bool drawFirst, const Quaternion& orientation, const String& groupName); -void cSm_setSkyBox_c(struct hg3dclass_struct *classptr_c, int enable_c, char * materialName_c, float distance_c, int drawFirst_c, struct quaternion_struct * orientation_c, char * groupName_c); -// original function: void setSkyBoxEnabled(bool enable); -void cSm_setSkyBoxEnabled_c(struct hg3dclass_struct *classptr_c, int enable_c); -// original function: bool isSkyBoxEnabled(); -void cSm_isSkyBoxEnabled_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: SceneNode* getSkyBoxNode(); -void cSm_getSkyBoxNode_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); -// original function: void setSkyDome(bool enable, const String& materialName, Real curvature, Real tiling, Real distance, bool drawFirst, const Quaternion& orientation, int xsegments, int ysegments, int ysegments_keep, const String& groupName); -void cSm_setSkyDome_c(struct hg3dclass_struct *classptr_c, int enable_c, char * materialName_c, float curvature_c, float tiling_c, float distance_c, int drawFirst_c, struct quaternion_struct * orientation_c, int xsegments_c, int ysegments_c, int ysegments_keep_c, char * groupName_c); -// original function: void setSkyDomeEnabled(bool enable); -void cSm_setSkyDomeEnabled_c(struct hg3dclass_struct *classptr_c, int enable_c); -// original function: bool isSkyDomeEnabled(); -void cSm_isSkyDomeEnabled_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: SceneNode* getSkyDomeNode(); -void cSm_getSkyDomeNode_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); -// original function: void setFog(FogMode mode, const ColourValue& colour, Real expDensity, Real linearStart, Real linearEnd); -void cSm_setFog_c(struct hg3dclass_struct *classptr_c, enum EnumFogMode mode_c, struct colourvalue_struct * colour_c, float expDensity_c, float linearStart_c, float linearEnd_c); -// original function: FogMode getFogMode(); -void cSm_getFogMode_c(struct hg3dclass_struct *classptr_c, enum EnumFogMode * result_c); -// original function: const ColourValue& getFogColour(); -void cSm_getFogColour_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * result_c); -// original function: Real getFogStart(); -void cSm_getFogStart_c(struct hg3dclass_struct *classptr_c, float * result_c); -// original function: Real getFogEnd(); -void cSm_getFogEnd_c(struct hg3dclass_struct *classptr_c, float * result_c); -// original function: Real getFogDensity(); -void cSm_getFogDensity_c(struct hg3dclass_struct *classptr_c, float * result_c); -// original function: BillboardSet* createBillboardSet(const String& name, unsigned int poolSize); -void cSm_createBillboardSet_c(struct hg3dclass_struct *classptr_c, char * name_c, unsigned int poolSize_c, struct hg3dclass_struct * result_c); -// original function: BillboardSet* createBillboardSet(unsigned int poolSize); -void cSm_createBillboardSet2_c(struct hg3dclass_struct *classptr_c, unsigned int poolSize_c, struct hg3dclass_struct * result_c); -// original function: BillboardSet* getBillboardSet(const String& name); -void cSm_getBillboardSet_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); -// original function: bool hasBillboardSet(const String& name); -void cSm_hasBillboardSet_c(struct hg3dclass_struct *classptr_c, char * name_c, int * result_c); -// original function: void destroyBillboardSet(BillboardSet* set); -void cSm_destroyBillboardSet_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * set_c); -// original function: void destroyBillboardSet(const String& name); -void cSm_destroyBillboardSet2_c(struct hg3dclass_struct *classptr_c, char * name_c); -// original function: void destroyAllBillboardSets(); -void cSm_destroyAllBillboardSets_c(struct hg3dclass_struct *classptr_c); -// original function: void setDisplaySceneNodes(bool display); -void cSm_setDisplaySceneNodes_c(struct hg3dclass_struct *classptr_c, int display_c); -// original function: bool getDisplaySceneNodes(); -void cSm_getDisplaySceneNodes_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: Animation* createAnimation(const String& name, Real length); -void cSm_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 cSm_getAnimation_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); -// original function: bool hasAnimation(const String& name); -void cSm_hasAnimation_c(struct hg3dclass_struct *classptr_c, char * name_c, int * result_c); -// original function: void destroyAnimation(const String& name); -void cSm_destroyAnimation_c(struct hg3dclass_struct *classptr_c, char * name_c); -// original function: void destroyAllAnimations(); -void cSm_destroyAllAnimations_c(struct hg3dclass_struct *classptr_c); -// original function: AnimationState* createAnimationState(const String& animName); -void cSm_createAnimationState_c(struct hg3dclass_struct *classptr_c, char * animName_c, struct hg3dclass_struct * result_c); -// original function: AnimationState* getAnimationState(const String& animName); -void cSm_getAnimationState_c(struct hg3dclass_struct *classptr_c, char * animName_c, struct hg3dclass_struct * result_c); -// original function: bool hasAnimationState(const String& name); -void cSm_hasAnimationState_c(struct hg3dclass_struct *classptr_c, char * name_c, int * result_c); -// original function: void destroyAnimationState(const String& name); -void cSm_destroyAnimationState_c(struct hg3dclass_struct *classptr_c, char * name_c); -// original function: void destroyAllAnimationStates(); -void cSm_destroyAllAnimationStates_c(struct hg3dclass_struct *classptr_c); -// original function: void addRenderObjectListener(RenderObjectListener* newListener); -void cSm_addRenderObjectListener_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * newListener_c); -// original function: void removeRenderObjectListener(RenderObjectListener* delListener); -void cSm_removeRenderObjectListener_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * delListener_c); -// original function: void clearSpecialCaseRenderQueues(); -void cSm_clearSpecialCaseRenderQueues_c(struct hg3dclass_struct *classptr_c); -// original function: void setSpecialCaseRenderQueueMode(SpecialCaseRenderQueueMode mode); -void cSm_setSpecialCaseRenderQueueMode_c(struct hg3dclass_struct *classptr_c, enum EnumSpecialCaseRenderQueueMode mode_c); -// original function: SpecialCaseRenderQueueMode getSpecialCaseRenderQueueMode(); -void cSm_getSpecialCaseRenderQueueMode_c(struct hg3dclass_struct *classptr_c, enum EnumSpecialCaseRenderQueueMode * result_c); -// original function: void showBoundingBoxes(bool bShow); -void cSm_showBoundingBoxes_c(struct hg3dclass_struct *classptr_c, int bShow_c); -// original function: bool getShowBoundingBoxes(); -void cSm_getShowBoundingBoxes_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: void _notifyAutotrackingSceneNode(SceneNode* node, bool autoTrack); -void cSm__notifyAutotrackingSceneNode_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * node_c, int autoTrack_c); -// original function: void setShadowTechnique(ShadowTechnique technique); -void cSm_setShadowTechnique_c(struct hg3dclass_struct *classptr_c, enum EnumShadowTechnique technique_c); -// original function: ShadowTechnique getShadowTechnique(); -void cSm_getShadowTechnique_c(struct hg3dclass_struct *classptr_c, enum EnumShadowTechnique * result_c); -// original function: void setShowDebugShadows(bool debug); -void cSm_setShowDebugShadows_c(struct hg3dclass_struct *classptr_c, int debug_c); -// original function: bool getShowDebugShadows(); -void cSm_getShowDebugShadows_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: void setShadowColour(const ColourValue& colour); -void cSm_setShadowColour_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * colour_c); -// original function: const ColourValue& getShadowColour(); -void cSm_getShadowColour_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * result_c); -// original function: void setShadowDirectionalLightExtrusionDistance(Real dist); -void cSm_setShadowDirectionalLightExtrusionDistance_c(struct hg3dclass_struct *classptr_c, float dist_c); -// original function: Real getShadowDirectionalLightExtrusionDistance(); -void cSm_getShadowDirectionalLightExtrusionDistance_c(struct hg3dclass_struct *classptr_c, float * result_c); -// original function: void setShadowFarDistance(Real distance); -void cSm_setShadowFarDistance_c(struct hg3dclass_struct *classptr_c, float distance_c); -// original function: Real getShadowFarDistance(); -void cSm_getShadowFarDistance_c(struct hg3dclass_struct *classptr_c, float * result_c); -// original function: void setShadowIndexBufferSize(size_t size); -void cSm_setShadowIndexBufferSize_c(struct hg3dclass_struct *classptr_c, int size_c); -// original function: size_t getShadowIndexBufferSize(); -void cSm_getShadowIndexBufferSize_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: void setShadowTextureSize(unsigned short size); -void cSm_setShadowTextureSize_c(struct hg3dclass_struct *classptr_c, unsigned short size_c); -// original function: void setShadowTextureConfig(size_t shadowIndex, unsigned short width, unsigned short height, PixelFormat format); -void cSm_setShadowTextureConfig_c(struct hg3dclass_struct *classptr_c, int shadowIndex_c, unsigned short width_c, unsigned short height_c, enum EnumPixelFormat format_c); -// original function: void setShadowTexturePixelFormat(PixelFormat fmt); -void cSm_setShadowTexturePixelFormat_c(struct hg3dclass_struct *classptr_c, enum EnumPixelFormat fmt_c); -// original function: void setShadowTextureCount(size_t count); -void cSm_setShadowTextureCount_c(struct hg3dclass_struct *classptr_c, int count_c); -// original function: size_t getShadowTextureCount(); -void cSm_getShadowTextureCount_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: void setShadowTextureCountPerLightType(Light::LightTypes type, size_t count); -void cSm_setShadowTextureCountPerLightType_c(struct hg3dclass_struct *classptr_c, enum EnumLightTypes type_c, int count_c); -// original function: size_t getShadowTextureCountPerLightType(Light::LightTypes type); -void cSm_getShadowTextureCountPerLightType_c(struct hg3dclass_struct *classptr_c, enum EnumLightTypes type_c, int * result_c); -// original function: void setShadowTextureSettings(unsigned short size, unsigned short count, PixelFormat fmt); -void cSm_setShadowTextureSettings_c(struct hg3dclass_struct *classptr_c, unsigned short size_c, unsigned short count_c, enum EnumPixelFormat fmt_c); -// original function: const TexturePtr& getShadowTexture(size_t shadowIndex); -void cSm_getShadowTexture_c(struct hg3dclass_struct *classptr_c, int shadowIndex_c, struct sharedptr_struct * result_c); -// original function: void setShadowDirLightTextureOffset(Real offset); -void cSm_setShadowDirLightTextureOffset_c(struct hg3dclass_struct *classptr_c, float offset_c); -// original function: Real getShadowDirLightTextureOffset(); -void cSm_getShadowDirLightTextureOffset_c(struct hg3dclass_struct *classptr_c, float * result_c); -// original function: void setShadowTextureFadeStart(Real fadeStart); -void cSm_setShadowTextureFadeStart_c(struct hg3dclass_struct *classptr_c, float fadeStart_c); -// original function: void setShadowTextureFadeEnd(Real fadeEnd); -void cSm_setShadowTextureFadeEnd_c(struct hg3dclass_struct *classptr_c, float fadeEnd_c); -// original function: void setShadowTextureSelfShadow(bool selfShadow); -void cSm_setShadowTextureSelfShadow_c(struct hg3dclass_struct *classptr_c, int selfShadow_c); -// original function: bool getShadowTextureSelfShadow(); -void cSm_getShadowTextureSelfShadow_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: void setShadowTextureCasterMaterial(const String& name); -void cSm_setShadowTextureCasterMaterial_c(struct hg3dclass_struct *classptr_c, char * name_c); -// original function: void setShadowTextureReceiverMaterial(const String& name); -void cSm_setShadowTextureReceiverMaterial_c(struct hg3dclass_struct *classptr_c, char * name_c); -// original function: void setShadowCasterRenderBackFaces(bool bf); -void cSm_setShadowCasterRenderBackFaces_c(struct hg3dclass_struct *classptr_c, int bf_c); -// original function: bool getShadowCasterRenderBackFaces(); -void cSm_getShadowCasterRenderBackFaces_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: void setShadowUseInfiniteFarPlane(bool enable); -void cSm_setShadowUseInfiniteFarPlane_c(struct hg3dclass_struct *classptr_c, int enable_c); -// original function: bool isShadowTechniqueStencilBased(); -void cSm_isShadowTechniqueStencilBased_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: bool isShadowTechniqueTextureBased(); -void cSm_isShadowTechniqueTextureBased_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: bool isShadowTechniqueModulative(); -void cSm_isShadowTechniqueModulative_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: bool isShadowTechniqueAdditive(); -void cSm_isShadowTechniqueAdditive_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: bool isShadowTechniqueIntegrated(); -void cSm_isShadowTechniqueIntegrated_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: bool isShadowTechniqueInUse(); -void cSm_isShadowTechniqueInUse_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: void setShadowUseLightClipPlanes(bool enabled); -void cSm_setShadowUseLightClipPlanes_c(struct hg3dclass_struct *classptr_c, int enabled_c); -// original function: bool getShadowUseLightClipPlanes(); -void cSm_getShadowUseLightClipPlanes_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: void _setActiveCompositorChain(CompositorChain* chain); -void cSm__setActiveCompositorChain_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * chain_c); -// original function: void setLateMaterialResolving(bool isLate); -void cSm_setLateMaterialResolving_c(struct hg3dclass_struct *classptr_c, int isLate_c); -// original function: bool isLateMaterialResolving(); -void cSm_isLateMaterialResolving_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: CompositorChain* _getActiveCompositorChain(); -void cSm__getActiveCompositorChain_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); -// original function: StaticGeometry* createStaticGeometry(const String& name); -void cSm_createStaticGeometry_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); -// original function: StaticGeometry* getStaticGeometry(const String& name); -void cSm_getStaticGeometry_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); -// original function: bool hasStaticGeometry(const String& name); -void cSm_hasStaticGeometry_c(struct hg3dclass_struct *classptr_c, char * name_c, int * result_c); -// original function: void destroyStaticGeometry(StaticGeometry* geom); -void cSm_destroyStaticGeometry_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * geom_c); -// original function: void destroyStaticGeometry(const String& name); -void cSm_destroyStaticGeometry2_c(struct hg3dclass_struct *classptr_c, char * name_c); -// original function: void destroyAllStaticGeometry(); -void cSm_destroyAllStaticGeometry_c(struct hg3dclass_struct *classptr_c); -// original function: void destroyInstancedGeometry(const String& name); -void cSm_destroyInstancedGeometry2_c(struct hg3dclass_struct *classptr_c, char * name_c); -// original function: void destroyAllInstancedGeometry(); -void cSm_destroyAllInstancedGeometry_c(struct hg3dclass_struct *classptr_c); -// original function: void destroyMovableObject(const String& name, const String& typeName); -void cSm_destroyMovableObject_c(struct hg3dclass_struct *classptr_c, char * name_c, char * typeName_c); -// original function: void destroyMovableObject(MovableObject* m); -void cSm_destroyMovableObject2_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * m_c); -// original function: void destroyAllMovableObjectsByType(const String& typeName); -void cSm_destroyAllMovableObjectsByType_c(struct hg3dclass_struct *classptr_c, char * typeName_c); -// original function: void destroyAllMovableObjects(); -void cSm_destroyAllMovableObjects_c(struct hg3dclass_struct *classptr_c); -// original function: MovableObject* getMovableObject(const String& name, const String& typeName); -void cSm_getMovableObject_c(struct hg3dclass_struct *classptr_c, char * name_c, char * typeName_c, struct hg3dclass_struct * result_c); -// original function: bool hasMovableObject(const String& name, const String& typeName); -void cSm_hasMovableObject_c(struct hg3dclass_struct *classptr_c, char * name_c, char * typeName_c, int * result_c); -// original function: void injectMovableObject(MovableObject* m); -void cSm_injectMovableObject_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * m_c); -// original function: void extractMovableObject(const String& name, const String& typeName); -void cSm_extractMovableObject_c(struct hg3dclass_struct *classptr_c, char * name_c, char * typeName_c); -// original function: void extractMovableObject(MovableObject* m); -void cSm_extractMovableObject2_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * m_c); -// original function: void extractAllMovableObjectsByType(const String& typeName); -void cSm_extractAllMovableObjectsByType_c(struct hg3dclass_struct *classptr_c, char * typeName_c); -// original function: void setVisibilityMask(uint32 vmask); -void cSm_setVisibilityMask_c(struct hg3dclass_struct *classptr_c, unsigned int vmask_c); -// original function: uint32 getVisibilityMask(); -void cSm_getVisibilityMask_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); -// original function: uint32 _getCombinedVisibilityMask(); -void cSm__getCombinedVisibilityMask_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); -// original function: void setFindVisibleObjects(bool find); -void cSm_setFindVisibleObjects_c(struct hg3dclass_struct *classptr_c, int find_c); -// original function: bool getFindVisibleObjects(); -void cSm_getFindVisibleObjects_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: void setNormaliseNormalsOnScale(bool n); -void cSm_setNormaliseNormalsOnScale_c(struct hg3dclass_struct *classptr_c, int n_c); -// original function: bool getNormaliseNormalsOnScale(); -void cSm_getNormaliseNormalsOnScale_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: void setFlipCullingOnNegativeScale(bool n); -void cSm_setFlipCullingOnNegativeScale_c(struct hg3dclass_struct *classptr_c, int n_c); -// original function: bool getFlipCullingOnNegativeScale(); -void cSm_getFlipCullingOnNegativeScale_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: void _suppressRenderStateChanges(bool suppress); -void cSm__suppressRenderStateChanges_c(struct hg3dclass_struct *classptr_c, int suppress_c); -// original function: bool _areRenderStateChangesSuppressed(); -void cSm__areRenderStateChangesSuppressed_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: void _markGpuParamsDirty(uint16 mask); -void cSm__markGpuParamsDirty_c(struct hg3dclass_struct *classptr_c, unsigned short mask_c); -// original function: void _suppressShadows(bool suppress); -void cSm__suppressShadows_c(struct hg3dclass_struct *classptr_c, int suppress_c); -// original function: bool _areShadowsSuppressed(); -void cSm__areShadowsSuppressed_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: void setQueuedRenderableVisitor(SceneMgrQueuedRenderableVisitor* visitor); -void cSm_setQueuedRenderableVisitor_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * visitor_c); -// original function: SceneMgrQueuedRenderableVisitor* getQueuedRenderableVisitor(); -void cSm_getQueuedRenderableVisitor_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); -// original function: Viewport* getCurrentViewport(); -void cSm_getCurrentViewport_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); -// original function: void setCameraRelativeRendering(bool rel); -void cSm_setCameraRelativeRendering_c(struct hg3dclass_struct *classptr_c, int rel_c); -// original function: bool getCameraRelativeRendering(); -void cSm_getCameraRelativeRendering_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: void _handleLodEvents(); -void cSm__handleLodEvents_c(struct hg3dclass_struct *classptr_c); +// +void ogre_scmgr_destroyAllCameras(struct hg3dclass_struct * thisclass_c); + +// +void ogre_scmgr_createLight(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * result_c); + +// +void ogre_scmgr_createLight2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); + +// +void ogre_scmgr_getLight(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * result_c); + +// +void ogre_scmgr_hasLight(struct hg3dclass_struct * thisclass_c, char * name_c, long * result_c); + +// +void ogre_scmgr_destroyLight(struct hg3dclass_struct * thisclass_c, char * name_c); + +// +void ogre_scmgr_destroyLight2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * light_c); + +// +void ogre_scmgr_destroyAllLights(struct hg3dclass_struct * thisclass_c); + +// +void ogre_scmgr_createSceneNode(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); + +// +void ogre_scmgr_createSceneNode2(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * result_c); + +// +void ogre_scmgr_destroySceneNode(struct hg3dclass_struct * thisclass_c, char * name_c); + +// +void ogre_scmgr_destroySceneNode2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * sn_c); + +// +void ogre_scmgr_getRootSceneNode(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); + +// +void ogre_scmgr_getSceneNode(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * result_c); + +// +void ogre_scmgr_hasSceneNode(struct hg3dclass_struct * thisclass_c, char * name_c, long * result_c); + +// +void ogre_scmgr_createEntity(struct hg3dclass_struct * thisclass_c, char * entityName_c, char * meshName_c, char * groupName_c, struct hg3dclass_struct * result_c); + +// +void ogre_scmgr_createEntity2(struct hg3dclass_struct * thisclass_c, char * entityName_c, struct sharedptr_struct * pMesh_c, struct hg3dclass_struct * result_c); + +// +void ogre_scmgr_createEntity3(struct hg3dclass_struct * thisclass_c, char * meshName_c, struct hg3dclass_struct * result_c); + +// +void ogre_scmgr_createEntity4(struct hg3dclass_struct * thisclass_c, struct sharedptr_struct * pMesh_c, struct hg3dclass_struct * result_c); + +// +void ogre_scmgr_createEntity5(struct hg3dclass_struct * thisclass_c, char * entityName_c, enum EnumSceneManagerPrefabType ptype_c, struct hg3dclass_struct * result_c); + +// +void ogre_scmgr_createEntity6(struct hg3dclass_struct * thisclass_c, enum EnumSceneManagerPrefabType ptype_c, struct hg3dclass_struct * result_c); + +// +void ogre_scmgr_getEntity(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * result_c); + +// +void ogre_scmgr_hasEntity(struct hg3dclass_struct * thisclass_c, char * name_c, long * result_c); + +// +void ogre_scmgr_destroyEntity(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * ent_c); + +// +void ogre_scmgr_destroyEntity2(struct hg3dclass_struct * thisclass_c, char * name_c); + +// +void ogre_scmgr_destroyAllEntities(struct hg3dclass_struct * thisclass_c); + +// +void ogre_scmgr_createManualObject(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * result_c); + +// +void ogre_scmgr_createManualObject2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); + +// +void ogre_scmgr_getManualObject(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * result_c); + +// +void ogre_scmgr_hasManualObject(struct hg3dclass_struct * thisclass_c, char * name_c, long * result_c); + +// +void ogre_scmgr_destroyManualObject(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * obj_c); + +// +void ogre_scmgr_destroyManualObject2(struct hg3dclass_struct * thisclass_c, char * name_c); + +// +void ogre_scmgr_destroyAllManualObjects(struct hg3dclass_struct * thisclass_c); + +// +void ogre_scmgr_createBillboardChain(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * result_c); + +// +void ogre_scmgr_createBillboardChain2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); + +// +void ogre_scmgr_getBillboardChain(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * result_c); + +// +void ogre_scmgr_hasBillboardChain(struct hg3dclass_struct * thisclass_c, char * name_c, long * result_c); + +// +void ogre_scmgr_destroyBillboardChain(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * obj_c); + +// +void ogre_scmgr_destroyBillboardChain2(struct hg3dclass_struct * thisclass_c, char * name_c); + +// +void ogre_scmgr_destroyAllBillboardChains(struct hg3dclass_struct * thisclass_c); + +// +void ogre_scmgr_hasRibbonTrail(struct hg3dclass_struct * thisclass_c, char * name_c, long * result_c); + +// +void ogre_scmgr_destroyRibbonTrail2(struct hg3dclass_struct * thisclass_c, char * name_c); + +// +void ogre_scmgr_destroyAllRibbonTrails(struct hg3dclass_struct * thisclass_c); + +// +void ogre_scmgr_hasParticleSystem(struct hg3dclass_struct * thisclass_c, char * name_c, long * result_c); + +// +void ogre_scmgr_destroyParticleSystem2(struct hg3dclass_struct * thisclass_c, char * name_c); + +// +void ogre_scmgr_destroyAllParticleSystems(struct hg3dclass_struct * thisclass_c); + +// +void ogre_scmgr_clearScene(struct hg3dclass_struct * thisclass_c); + +// +void ogre_scmgr_setAmbientLight(struct hg3dclass_struct * thisclass_c, struct colourvalue_struct * colour_c); + +// +void ogre_scmgr_getAmbientLight(struct hg3dclass_struct * thisclass_c, struct colourvalue_struct * result_c); + +// +void ogre_scmgr_prepareWorldGeometry(struct hg3dclass_struct * thisclass_c, char * filename_c); + +// +void ogre_scmgr_setWorldGeometry(struct hg3dclass_struct * thisclass_c, char * filename_c); + +// +void ogre_scmgr_estimateWorldGeometry(struct hg3dclass_struct * thisclass_c, char * filename_c, long * result_c); + +// +void ogre_scmgr_hasOption(struct hg3dclass_struct * thisclass_c, char * strKey_c, long * result_c); + +// +void ogre_scmgr_setSkyPlaneEnabled(struct hg3dclass_struct * thisclass_c, long enable_c); + +// +void ogre_scmgr_isSkyPlaneEnabled(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_scmgr_getSkyPlaneNode(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); + +// +void ogre_scmgr_setSkyBox(struct hg3dclass_struct * thisclass_c, long enable_c, char * materialName_c, float distance_c, long drawFirst_c, struct quaternion_struct * orientation_c, char * groupName_c); + +// +void ogre_scmgr_setSkyBoxEnabled(struct hg3dclass_struct * thisclass_c, long enable_c); + +// +void ogre_scmgr_isSkyBoxEnabled(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_scmgr_getSkyBoxNode(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); + +// +void ogre_scmgr_setSkyDome(struct hg3dclass_struct * thisclass_c, long enable_c, char * materialName_c, float curvature_c, float tiling_c, float distance_c, long drawFirst_c, struct quaternion_struct * orientation_c, long xsegments_c, long ysegments_c, long ysegments_keep_c, char * groupName_c); + +// +void ogre_scmgr_setSkyDomeEnabled(struct hg3dclass_struct * thisclass_c, long enable_c); + +// +void ogre_scmgr_isSkyDomeEnabled(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_scmgr_getSkyDomeNode(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); + +// +void ogre_scmgr_getFogColour(struct hg3dclass_struct * thisclass_c, struct colourvalue_struct * result_c); + +// +void ogre_scmgr_getFogStart(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_scmgr_getFogEnd(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_scmgr_getFogDensity(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_scmgr_createBillboardSet(struct hg3dclass_struct * thisclass_c, char * name_c, unsigned long poolSize_c, struct hg3dclass_struct * result_c); + +// +void ogre_scmgr_createBillboardSet2(struct hg3dclass_struct * thisclass_c, unsigned long poolSize_c, struct hg3dclass_struct * result_c); + +// +void ogre_scmgr_getBillboardSet(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * result_c); + +// +void ogre_scmgr_hasBillboardSet(struct hg3dclass_struct * thisclass_c, char * name_c, long * result_c); + +// +void ogre_scmgr_destroyBillboardSet(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * set_c); + +// +void ogre_scmgr_destroyBillboardSet2(struct hg3dclass_struct * thisclass_c, char * name_c); + +// +void ogre_scmgr_destroyAllBillboardSets(struct hg3dclass_struct * thisclass_c); + +// +void ogre_scmgr_setDisplaySceneNodes(struct hg3dclass_struct * thisclass_c, long display_c); + +// +void ogre_scmgr_getDisplaySceneNodes(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_scmgr_createAnimation(struct hg3dclass_struct * thisclass_c, char * name_c, float length_c, struct hg3dclass_struct * result_c); + +// +void ogre_scmgr_getAnimation(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * result_c); + +// +void ogre_scmgr_hasAnimation(struct hg3dclass_struct * thisclass_c, char * name_c, long * result_c); + +// +void ogre_scmgr_destroyAnimation(struct hg3dclass_struct * thisclass_c, char * name_c); + +// +void ogre_scmgr_destroyAllAnimations(struct hg3dclass_struct * thisclass_c); + +// +void ogre_scmgr_createAnimationState(struct hg3dclass_struct * thisclass_c, char * animName_c, struct hg3dclass_struct * result_c); + +// +void ogre_scmgr_getAnimationState(struct hg3dclass_struct * thisclass_c, char * animName_c, struct hg3dclass_struct * result_c); + +// +void ogre_scmgr_hasAnimationState(struct hg3dclass_struct * thisclass_c, char * name_c, long * result_c); + +// +void ogre_scmgr_destroyAnimationState(struct hg3dclass_struct * thisclass_c, char * name_c); + +// +void ogre_scmgr_destroyAllAnimationStates(struct hg3dclass_struct * thisclass_c); + +// +void ogre_scmgr_clearSpecialCaseRenderQueues(struct hg3dclass_struct * thisclass_c); + +// +void ogre_scmgr_setSpecialCaseRenderQueueMode(struct hg3dclass_struct * thisclass_c, enum EnumSceneManagerSpecialCaseRenderQueueMode mode_c); + +// +void ogre_scmgr_getSpecialCaseRenderQueueMode(struct hg3dclass_struct * thisclass_c, enum EnumSceneManagerSpecialCaseRenderQueueMode * result_c); + +// +void ogre_scmgr_showBoundingBoxes(struct hg3dclass_struct * thisclass_c, long bShow_c); + +// +void ogre_scmgr_getShowBoundingBoxes(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_scmgr_setShowDebugShadows(struct hg3dclass_struct * thisclass_c, long debug_c); + +// +void ogre_scmgr_getShowDebugShadows(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_scmgr_setShadowColour(struct hg3dclass_struct * thisclass_c, struct colourvalue_struct * colour_c); + +// +void ogre_scmgr_getShadowColour(struct hg3dclass_struct * thisclass_c, struct colourvalue_struct * result_c); + +// +void ogre_scmgr_setShadowDirectionalLightExtrusionDistance(struct hg3dclass_struct * thisclass_c, float dist_c); + +// +void ogre_scmgr_getShadowDirectionalLightExtrusionDistance(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_scmgr_setShadowFarDistance(struct hg3dclass_struct * thisclass_c, float distance_c); + +// +void ogre_scmgr_getShadowFarDistance(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_scmgr_getShadowFarDistanceSquared(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_scmgr_setShadowIndexBufferSize(struct hg3dclass_struct * thisclass_c, long size_c); + +// Get the size of the shadow index buffer. +void ogre_scmgr_getShadowIndexBufferSize(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_scmgr_setShadowTextureSize(struct hg3dclass_struct * thisclass_c, unsigned short size_c); + +// +void ogre_scmgr_setShadowTextureFSAA(struct hg3dclass_struct * thisclass_c, unsigned short fsaa_c); + +// +void ogre_scmgr_setShadowTextureCount(struct hg3dclass_struct * thisclass_c, long count_c); + +// Get the number of the textures allocated for texture based shadows. +void ogre_scmgr_getShadowTextureCount(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_scmgr_setShadowTextureCountPerLightType(struct hg3dclass_struct * thisclass_c, enum EnumLightType type_c, long count_c); + +// Get the number of shadow textures is assigned for the given light type. +void ogre_scmgr_getShadowTextureCountPerLightType(struct hg3dclass_struct * thisclass_c, enum EnumLightType type_c, long * result_c); + +// +void ogre_scmgr_getShadowTexture(struct hg3dclass_struct * thisclass_c, long shadowIndex_c, struct sharedptr_struct * result_c); + +// +void ogre_scmgr_setShadowDirLightTextureOffset(struct hg3dclass_struct * thisclass_c, float offset_c); + +// +void ogre_scmgr_getShadowDirLightTextureOffset(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_scmgr_setShadowTextureFadeStart(struct hg3dclass_struct * thisclass_c, float fadeStart_c); + +// +void ogre_scmgr_setShadowTextureFadeEnd(struct hg3dclass_struct * thisclass_c, float fadeEnd_c); + +// +void ogre_scmgr_setShadowTextureSelfShadow(struct hg3dclass_struct * thisclass_c, long selfShadow_c); + +// Gets whether or not texture shadows attempt to self-shadow. +void ogre_scmgr_getShadowTextureSelfShadow(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_scmgr_setShadowTextureCasterMaterial(struct hg3dclass_struct * thisclass_c, char * name_c); + +// +void ogre_scmgr_setShadowTextureReceiverMaterial(struct hg3dclass_struct * thisclass_c, char * name_c); + +// +void ogre_scmgr_setShadowCasterRenderBackFaces(struct hg3dclass_struct * thisclass_c, long bf_c); + +// +void ogre_scmgr_getShadowCasterRenderBackFaces(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_scmgr_setShadowUseInfiniteFarPlane(struct hg3dclass_struct * thisclass_c, long enable_c); + +// +void ogre_scmgr_isShadowTechniqueStencilBased(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_scmgr_isShadowTechniqueTextureBased(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_scmgr_isShadowTechniqueModulative(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_scmgr_isShadowTechniqueAdditive(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_scmgr_isShadowTechniqueIntegrated(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_scmgr_isShadowTechniqueInUse(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_scmgr_setShadowUseLightClipPlanes(struct hg3dclass_struct * thisclass_c, long enabled_c); + +// +void ogre_scmgr_getShadowUseLightClipPlanes(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_scmgr_setLateMaterialResolving(struct hg3dclass_struct * thisclass_c, long isLate_c); + +// +void ogre_scmgr_isLateMaterialResolving(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_scmgr_hasStaticGeometry(struct hg3dclass_struct * thisclass_c, char * name_c, long * result_c); + +// +void ogre_scmgr_destroyStaticGeometry2(struct hg3dclass_struct * thisclass_c, char * name_c); + +// +void ogre_scmgr_destroyAllStaticGeometry(struct hg3dclass_struct * thisclass_c); + +// +void ogre_scmgr_destroyInstancedGeometry2(struct hg3dclass_struct * thisclass_c, char * name_c); + +// +void ogre_scmgr_destroyAllInstancedGeometry(struct hg3dclass_struct * thisclass_c); + +// +void ogre_scmgr_hasInstanceManager(struct hg3dclass_struct * thisclass_c, char * managerName_c, long * result_c); + +// +void ogre_scmgr_destroyInstanceManager(struct hg3dclass_struct * thisclass_c, char * name_c); + +// +void ogre_scmgr_destroyAllInstanceManagers(struct hg3dclass_struct * thisclass_c); + +// +void ogre_scmgr_destroyMovableObject(struct hg3dclass_struct * thisclass_c, char * name_c, char * typeName_c); + +// +void ogre_scmgr_destroyMovableObject2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * m_c); + +// +void ogre_scmgr_destroyAllMovableObjectsByType(struct hg3dclass_struct * thisclass_c, char * typeName_c); + +// +void ogre_scmgr_destroyAllMovableObjects(struct hg3dclass_struct * thisclass_c); + +// +void ogre_scmgr_getMovableObject(struct hg3dclass_struct * thisclass_c, char * name_c, char * typeName_c, struct hg3dclass_struct * result_c); + +// +void ogre_scmgr_hasMovableObject(struct hg3dclass_struct * thisclass_c, char * name_c, char * typeName_c, long * result_c); + +// +void ogre_scmgr_injectMovableObject(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * m_c); + +// +void ogre_scmgr_extractMovableObject(struct hg3dclass_struct * thisclass_c, char * name_c, char * typeName_c); + +// +void ogre_scmgr_extractMovableObject2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * m_c); + +// +void ogre_scmgr_extractAllMovableObjectsByType(struct hg3dclass_struct * thisclass_c, char * typeName_c); + +// +void ogre_scmgr_setVisibilityMask(struct hg3dclass_struct * thisclass_c, unsigned long vmask_c); + +// +void ogre_scmgr_getVisibilityMask(struct hg3dclass_struct * thisclass_c, unsigned long * result_c); + +// +void ogre_scmgr_setFindVisibleObjects(struct hg3dclass_struct * thisclass_c, long find_c); + +// +void ogre_scmgr_getFindVisibleObjects(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_scmgr_setNormaliseNormalsOnScale(struct hg3dclass_struct * thisclass_c, long n_c); + +// +void ogre_scmgr_getNormaliseNormalsOnScale(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_scmgr_setFlipCullingOnNegativeScale(struct hg3dclass_struct * thisclass_c, long n_c); + +// +void ogre_scmgr_getFlipCullingOnNegativeScale(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_scmgr_getDestinationRenderSystem(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); + +// +void ogre_scmgr_getCurrentViewport(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); + +// +void ogre_scmgr_setCameraRelativeRendering(struct hg3dclass_struct * thisclass_c, long rel_c); + +// +void ogre_scmgr_getCameraRelativeRendering(struct hg3dclass_struct * thisclass_c, long * result_c); + +#endif
− include/ClassSceneManagerEnumerator.h
@@ -1,54 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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.h -// -// -// -// -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/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" - - -// original function: void addFactory(SceneManagerFactory* fact); -void cSme_addFactory_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * fact_c); -// original function: void removeFactory(SceneManagerFactory* fact); -void cSme_removeFactory_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * fact_c); -// original function: SceneManager* createSceneManager(const String& typeName, const String& instanceName); -void cSme_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 cSme_createSceneManager2_c(struct hg3dclass_struct *classptr_c, unsigned short typeMask_c, char * instanceName_c, struct hg3dclass_struct * result_c); -// original function: void destroySceneManager(SceneManager* sm); -void cSme_destroySceneManager_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * sm_c); -// original function: SceneManager* getSceneManager(const String& instanceName); -void cSme_getSceneManager_c(struct hg3dclass_struct *classptr_c, char * instanceName_c, struct hg3dclass_struct * result_c); -// original function: bool hasSceneManager(const String& instanceName); -void cSme_hasSceneManager_c(struct hg3dclass_struct *classptr_c, char * instanceName_c, int * result_c); -// original function: void shutdownAll(); -void cSme_shutdownAll_c(struct hg3dclass_struct *classptr_c);
include/ClassSceneManagerFactory.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,27 +15,26 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassSceneManagerFactory.h -// -// -// -// -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/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" +#ifndef _DEFINED_HG3D_ClassSceneManagerFactory +#define _DEFINED_HG3D_ClassSceneManagerFactory + #include "ClassPtr.h" -#include "Utils.h" +#include "ClassSceneManager.h" -// original function: SceneManager* createInstance(const String& instanceName); -void cSmf_createInstance_c(struct hg3dclass_struct *classptr_c, char * instanceName_c, struct hg3dclass_struct * result_c); -// original function: void destroyInstance(SceneManager* instance); -void cSmf_destroyInstance_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * instance_c); +// +void ogre_smf_destruct(struct hg3dclass_struct * thisclass_c); + +// +void ogre_smf_createInstance(struct hg3dclass_struct * thisclass_c, char * instanceName_c, struct hg3dclass_struct * result_c); + +// +void ogre_smf_destroyInstance(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * instance_c); + +#endif
− include/ClassSceneMgrQueuedRenderableVisitor.h
@@ -1,38 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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.h -// -// -// -// -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/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" - -
include/ClassSceneNode.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,97 +15,101 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassSceneNode.h + // + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassSceneNode +#define _DEFINED_HG3D_ClassSceneNode + +#include "ClassPtr.h" +#include "ClassMovableObject.h" +#include "ClassSceneManager.h" +#include "StructVec3.h" +#include "StructQuaternion.h" + + // +void ogre_sn_destruct(struct hg3dclass_struct * thisclass_c); + // +void ogre_sn_attachObject(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * obj_c); + // -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/include/OGRE\OgreSceneNode.h" +void ogre_sn_numAttachedObjects(struct hg3dclass_struct * thisclass_c, unsigned short * result_c); + // -// each stub combines the following files: -// a C++ implementation file, transforming cpp calls into C-functions -// a C-header file, making this C-functions available for the C2HS parser -// a chs file, give instructions to the C2HS parser. +void ogre_sn_getAttachedObject(struct hg3dclass_struct * thisclass_c, unsigned short index_c, struct hg3dclass_struct * result_c); + // +void ogre_sn_getAttachedObject2(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * result_c); + // +void ogre_sn_detachObject(struct hg3dclass_struct * thisclass_c, unsigned short index_c, struct hg3dclass_struct * result_c); -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" -#include "TypeVector3.h" -#include "TypeQuaternion.h" -#include "TypeRadian.h" -#include "EnumTransformSpace.h" +// +void ogre_sn_detachObject2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * obj_c); +// +void ogre_sn_detachObject3(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * result_c); -// original function: void attachObject(MovableObject* obj); -void cSn_attachObject_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * obj_c); -// original function: unsigned short numAttachedObjects(); -void cSn_numAttachedObjects_c(struct hg3dclass_struct *classptr_c, unsigned short * result_c); -// original function: MovableObject* getAttachedObject(unsigned short index); -void cSn_getAttachedObject_c(struct hg3dclass_struct *classptr_c, unsigned short index_c, struct hg3dclass_struct * result_c); -// original function: MovableObject* getAttachedObject(const String& name); -void cSn_getAttachedObject2_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); -// original function: MovableObject* detachObject(unsigned short index); -void cSn_detachObject_c(struct hg3dclass_struct *classptr_c, unsigned short index_c, struct hg3dclass_struct * result_c); -// original function: void detachObject(MovableObject* obj); -void cSn_detachObject2_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * obj_c); -// original function: MovableObject* detachObject(const String& name); -void cSn_detachObject3_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); -// original function: void detachAllObjects(); -void cSn_detachAllObjects_c(struct hg3dclass_struct *classptr_c); -// original function: bool isInSceneGraph(); -void cSn_isInSceneGraph_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: void _notifyRootNode(); -void cSn__notifyRootNode_c(struct hg3dclass_struct *classptr_c); -// original function: void _update(bool updateChildren, bool parentHasChanged); -void cSn__update_c(struct hg3dclass_struct *classptr_c, int updateChildren_c, int parentHasChanged_c); -// original function: void _updateBounds(); -void cSn__updateBounds_c(struct hg3dclass_struct *classptr_c); -// original function: SceneManager* getCreator(); -void cSn_getCreator_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); -// original function: void removeAndDestroyChild(const String& name); -void cSn_removeAndDestroyChild_c(struct hg3dclass_struct *classptr_c, char * name_c); -// original function: void removeAndDestroyChild(unsigned short index); -void cSn_removeAndDestroyChild2_c(struct hg3dclass_struct *classptr_c, unsigned short index_c); -// original function: void removeAndDestroyAllChildren(); -void cSn_removeAndDestroyAllChildren_c(struct hg3dclass_struct *classptr_c); -// original function: void showBoundingBox(bool bShow); -void cSn_showBoundingBox_c(struct hg3dclass_struct *classptr_c, int bShow_c); -// original function: void hideBoundingBox(bool bHide); -void cSn_hideBoundingBox_c(struct hg3dclass_struct *classptr_c, int bHide_c); -// original function: bool getShowBoundingBox(); -void cSn_getShowBoundingBox_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: SceneNode* createChildSceneNode(const Vector3& translate, const Quaternion& rotate); -void cSn_createChildSceneNode_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * translate_c, struct quaternion_struct * rotate_c, struct hg3dclass_struct * result_c); -// original function: SceneNode* createChildSceneNode(const String& name, const Vector3& translate, const Quaternion& rotate); -void cSn_createChildSceneNode2_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 setFixedYawAxis(bool useFixed, const Vector3& fixedAxis); -void cSn_setFixedYawAxis_c(struct hg3dclass_struct *classptr_c, int useFixed_c, struct vector3_struct * fixedAxis_c); -// original function: void yaw(const Radian& angle, TransformSpace relativeTo); -void cSn_yaw_c(struct hg3dclass_struct *classptr_c, struct radian_struct * angle_c, enum EnumTransformSpace relativeTo_c); -// original function: void setDirection(Real x, Real y, Real z, TransformSpace relativeTo, const Vector3& localDirectionVector); -void cSn_setDirection_c(struct hg3dclass_struct *classptr_c, float x_c, float y_c, float z_c, enum EnumTransformSpace relativeTo_c, struct vector3_struct * localDirectionVector_c); -// original function: void setDirection(const Vector3& vec, TransformSpace relativeTo, const Vector3& localDirectionVector); -void cSn_setDirection2_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * vec_c, enum EnumTransformSpace relativeTo_c, struct vector3_struct * localDirectionVector_c); -// original function: void lookAt(const Vector3& targetPoint, TransformSpace relativeTo, const Vector3& localDirectionVector); -void cSn_lookAt_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * targetPoint_c, enum EnumTransformSpace relativeTo_c, struct vector3_struct * localDirectionVector_c); -// original function: void setAutoTracking(bool enabled, SceneNode* target, const Vector3& localDirectionVector, const Vector3& offset); -void cSn_setAutoTracking_c(struct hg3dclass_struct *classptr_c, int enabled_c, struct hg3dclass_struct * target_c, struct vector3_struct * localDirectionVector_c, struct vector3_struct * offset_c); -// original function: SceneNode* getAutoTrackTarget(); -void cSn_getAutoTrackTarget_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); -// original function: const Vector3& getAutoTrackOffset(); -void cSn_getAutoTrackOffset_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * result_c); -// original function: const Vector3& getAutoTrackLocalDirection(); -void cSn_getAutoTrackLocalDirection_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * result_c); -// original function: void _autoTrack(); -void cSn__autoTrack_c(struct hg3dclass_struct *classptr_c); -// original function: SceneNode* getParentSceneNode(); -void cSn_getParentSceneNode_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); -// original function: void setVisible(bool visible, bool cascade); -void cSn_setVisible_c(struct hg3dclass_struct *classptr_c, int visible_c, int cascade_c); -// original function: void flipVisibility(bool cascade); -void cSn_flipVisibility_c(struct hg3dclass_struct *classptr_c, int cascade_c); -// original function: void setDebugDisplayEnabled(bool enabled, bool cascade); -void cSn_setDebugDisplayEnabled_c(struct hg3dclass_struct *classptr_c, int enabled_c, int cascade_c); +// +void ogre_sn_detachAllObjects(struct hg3dclass_struct * thisclass_c); + +// +void ogre_sn_isInSceneGraph(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_sn_getCreator(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); + +// +void ogre_sn_removeAndDestroyChild(struct hg3dclass_struct * thisclass_c, char * name_c); + +// +void ogre_sn_removeAndDestroyChild2(struct hg3dclass_struct * thisclass_c, unsigned short index_c); + +// +void ogre_sn_removeAndDestroyAllChildren(struct hg3dclass_struct * thisclass_c); + +// +void ogre_sn_showBoundingBox(struct hg3dclass_struct * thisclass_c, long bShow_c); + +// +void ogre_sn_hideBoundingBox(struct hg3dclass_struct * thisclass_c, long bHide_c); + +// +void ogre_sn_getShowBoundingBox(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_sn_createChildSceneNode(struct hg3dclass_struct * thisclass_c, struct vector3_struct * translate_c, struct quaternion_struct * rotate_c, struct hg3dclass_struct * result_c); + +// +void ogre_sn_createChildSceneNode2(struct hg3dclass_struct * thisclass_c, char * name_c, struct vector3_struct * translate_c, struct quaternion_struct * rotate_c, struct hg3dclass_struct * result_c); + +// +void ogre_sn_setFixedYawAxis(struct hg3dclass_struct * thisclass_c, long useFixed_c, struct vector3_struct * fixedAxis_c); + +// +void ogre_sn_getAutoTrackTarget(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); + +// +void ogre_sn_getAutoTrackOffset(struct hg3dclass_struct * thisclass_c, struct vector3_struct * result_c); + +// +void ogre_sn_getAutoTrackLocalDirection(struct hg3dclass_struct * thisclass_c, struct vector3_struct * result_c); + +// +void ogre_sn_getParentSceneNode(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); + +// +void ogre_sn_setVisible(struct hg3dclass_struct * thisclass_c, long visible_c, long cascade_c); + +// +void ogre_sn_flipVisibility(struct hg3dclass_struct * thisclass_c, long cascade_c); + +// +void ogre_sn_setDebugDisplayEnabled(struct hg3dclass_struct * thisclass_c, long enabled_c, long cascade_c); + +#endif
− include/ClassShadowCameraSetup.h
@@ -1,38 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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.h -// -// -// -// -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/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" - -
− include/ClassSimpleRenderable.h
@@ -1,40 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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.h -// -// -// -// -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" - - -// original function: const String& getMovableType(); -void cSr_getMovableType_c(struct hg3dclass_struct *classptr_c, char * result_c);
include/ClassSkeleton.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,76 +15,98 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassSkeleton.h + // + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassSkeleton +#define _DEFINED_HG3D_ClassSkeleton + +#include "ClassPtr.h" +#include "ClassBone.h" +#include "ClassAnimation.h" +#include "ClassAnimationStateSet.h" +#include "EnumSkeletonAnimationBlendMode.h" + + // +void ogre_skl_destruct(struct hg3dclass_struct * thisclass_c); + // +void ogre_skl_createBone(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); + // -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/include/OGRE\OgreSkeleton.h" +void ogre_skl_createBone2(struct hg3dclass_struct * thisclass_c, unsigned short handle_c, struct hg3dclass_struct * result_c); + // -// each stub combines the following files: -// a C++ implementation file, transforming cpp calls into C-functions -// a C-header file, making this C-functions available for the C2HS parser -// a chs file, give instructions to the C2HS parser. +void ogre_skl_createBone3(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * result_c); + // +void ogre_skl_createBone4(struct hg3dclass_struct * thisclass_c, char * name_c, unsigned short handle_c, struct hg3dclass_struct * result_c); + // +void ogre_skl_getNumBones(struct hg3dclass_struct * thisclass_c, unsigned short * result_c); -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" -#include "EnumSkeletonAnimationBlendMode.h" +// +void ogre_skl_getRootBone(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); +// +void ogre_skl_getBone(struct hg3dclass_struct * thisclass_c, unsigned short handle_c, struct hg3dclass_struct * result_c); -// original function: Bone* createBone(); -void cS_createBone_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); -// original function: Bone* createBone(unsigned short handle); -void cS_createBone2_c(struct hg3dclass_struct *classptr_c, unsigned short handle_c, struct hg3dclass_struct * result_c); -// original function: Bone* createBone(const String& name); -void cS_createBone3_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); -// original function: Bone* createBone(const String& name, unsigned short handle); -void cS_createBone4_c(struct hg3dclass_struct *classptr_c, char * name_c, unsigned short handle_c, struct hg3dclass_struct * result_c); -// original function: unsigned short getNumBones(); -void cS_getNumBones_c(struct hg3dclass_struct *classptr_c, unsigned short * result_c); -// original function: Bone* getRootBone(); -void cS_getRootBone_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); -// original function: Bone* getBone(unsigned short handle); -void cS_getBone_c(struct hg3dclass_struct *classptr_c, unsigned short handle_c, struct hg3dclass_struct * result_c); -// original function: Bone* getBone(const String& name); -void cS_getBone2_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); -// original function: bool hasBone(const String& name); -void cS_hasBone_c(struct hg3dclass_struct *classptr_c, char * name_c, int * result_c); -// original function: void setBindingPose(); -void cS_setBindingPose_c(struct hg3dclass_struct *classptr_c); -// original function: void reset(bool resetManualBones); -void cS_reset_c(struct hg3dclass_struct *classptr_c, int resetManualBones_c); -// original function: Animation* createAnimation(const String& name, Real length); -void cS_createAnimation_c(struct hg3dclass_struct *classptr_c, char * name_c, float length_c, struct hg3dclass_struct * result_c); -// original function: bool hasAnimation(const String& name); -void cS_hasAnimation_c(struct hg3dclass_struct *classptr_c, char * name_c, int * result_c); -// original function: void removeAnimation(const String& name); -void cS_removeAnimation_c(struct hg3dclass_struct *classptr_c, char * name_c); -// original function: unsigned short getNumAnimations(); -void cS_getNumAnimations_c(struct hg3dclass_struct *classptr_c, unsigned short * result_c); -// original function: Animation* getAnimation(unsigned short index); -void cS_getAnimation2_c(struct hg3dclass_struct *classptr_c, unsigned short index_c, struct hg3dclass_struct * result_c); -// original function: SkeletonAnimationBlendMode getBlendMode(); -void cS_getBlendMode_c(struct hg3dclass_struct *classptr_c, enum EnumSkeletonAnimationBlendMode * result_c); -// original function: void setBlendMode(SkeletonAnimationBlendMode state); -void cS_setBlendMode_c(struct hg3dclass_struct *classptr_c, enum EnumSkeletonAnimationBlendMode state_c); -// original function: void _updateTransforms(); -void cS__updateTransforms_c(struct hg3dclass_struct *classptr_c); -// original function: void optimiseAllAnimations(bool preservingIdentityNodeTracks); -void cS_optimiseAllAnimations_c(struct hg3dclass_struct *classptr_c, int preservingIdentityNodeTracks_c); -// original function: void addLinkedSkeletonAnimationSource(const String& skelName, Real scale); -void cS_addLinkedSkeletonAnimationSource_c(struct hg3dclass_struct *classptr_c, char * skelName_c, float scale_c); -// original function: void removeAllLinkedSkeletonAnimationSources(); -void cS_removeAllLinkedSkeletonAnimationSources_c(struct hg3dclass_struct *classptr_c); -// original function: void _notifyManualBonesDirty(); -void cS__notifyManualBonesDirty_c(struct hg3dclass_struct *classptr_c); -// original function: void _notifyManualBoneStateChange(Bone* bone); -void cS__notifyManualBoneStateChange_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * bone_c); -// original function: bool getManualBonesDirty(); -void cS_getManualBonesDirty_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: bool hasManualBones(); -void cS_hasManualBones_c(struct hg3dclass_struct *classptr_c, int * result_c); +// +void ogre_skl_getBone2(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * result_c); + +// +void ogre_skl_hasBone(struct hg3dclass_struct * thisclass_c, char * name_c, long * result_c); + +// +void ogre_skl_setBindingPose(struct hg3dclass_struct * thisclass_c); + +// +void ogre_skl_reset(struct hg3dclass_struct * thisclass_c, long resetManualBones_c); + +// +void ogre_skl_createAnimation(struct hg3dclass_struct * thisclass_c, char * name_c, float length_c, struct hg3dclass_struct * result_c); + +// +void ogre_skl_getAnimation2(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * result_c); + +// +void ogre_skl_hasAnimation(struct hg3dclass_struct * thisclass_c, char * name_c, long * result_c); + +// +void ogre_skl_removeAnimation(struct hg3dclass_struct * thisclass_c, char * name_c); + +// +void ogre_skl_setAnimationState(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * animSet_c); + +// +void ogre_skl_getNumAnimations(struct hg3dclass_struct * thisclass_c, unsigned short * result_c); + +// +void ogre_skl_getAnimation3(struct hg3dclass_struct * thisclass_c, unsigned short index_c, struct hg3dclass_struct * result_c); + +// +void ogre_skl_getBlendMode(struct hg3dclass_struct * thisclass_c, enum EnumSkeletonAnimationBlendMode * result_c); + +// +void ogre_skl_setBlendMode(struct hg3dclass_struct * thisclass_c, enum EnumSkeletonAnimationBlendMode state_c); + +// +void ogre_skl_optimiseAllAnimations(struct hg3dclass_struct * thisclass_c, long preservingIdentityNodeTracks_c); + +// +void ogre_skl_addLinkedSkeletonAnimationSource(struct hg3dclass_struct * thisclass_c, char * skelName_c, float scale_c); + +// Remove all links to other skeletons for the purposes of sharing animation. +void ogre_skl_removeAllLinkedSkeletonAnimationSources(struct hg3dclass_struct * thisclass_c); + +// Have manual bones been modified since the skeleton was last updated? +void ogre_skl_getManualBonesDirty(struct hg3dclass_struct * thisclass_c, long * result_c); + +// Are there any manually controlled bones? +void ogre_skl_hasManualBones(struct hg3dclass_struct * thisclass_c, long * result_c); + +#endif
− include/ClassSkeletonInstance.h
@@ -1,52 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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.h -// -// -// -// -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" - - -// original function: unsigned short getNumAnimations(); -void cSi_getNumAnimations_c(struct hg3dclass_struct *classptr_c, unsigned short * result_c); -// original function: Animation* getAnimation(unsigned short index); -void cSi_getAnimation_c(struct hg3dclass_struct *classptr_c, unsigned short index_c, struct hg3dclass_struct * result_c); -// original function: Animation* createAnimation(const String& name, Real length); -void cSi_createAnimation_c(struct hg3dclass_struct *classptr_c, char * name_c, float length_c, struct hg3dclass_struct * result_c); -// original function: void removeAnimation(const String& name); -void cSi_removeAnimation_c(struct hg3dclass_struct *classptr_c, char * name_c); -// original function: void addLinkedSkeletonAnimationSource(const String& skelName, Real scale); -void cSi_addLinkedSkeletonAnimationSource_c(struct hg3dclass_struct *classptr_c, char * skelName_c, float scale_c); -// original function: void removeAllLinkedSkeletonAnimationSources(); -void cSi_removeAllLinkedSkeletonAnimationSources_c(struct hg3dclass_struct *classptr_c); -// original function: const String& getName(); -void cSi_getName_c(struct hg3dclass_struct *classptr_c, char * result_c);
+ include/ClassSkeletonManager.h view
@@ -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.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// ClassSkeletonManager.h + +// + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassSkeletonManager +#define _DEFINED_HG3D_ClassSkeletonManager + +#include "ClassPtr.h" + + +// Constructor. +void ogre_sklmgr_construct(struct hg3dclass_struct * result_c); + +// +void ogre_sklmgr_destruct(struct hg3dclass_struct * thisclass_c); + +// +void ogre_sklmgr_getSingleton(struct hg3dclass_struct * result_c); + +// +void ogre_sklmgr_getSingletonPtr(struct hg3dclass_struct * result_c); + +#endif
− include/ClassSkeletonSerializer.h
@@ -1,41 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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.h -// -// -// -// -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" -#include "TypeSharedPtr.h" - - -// original function: void importSkeleton(DataStreamPtr& stream, Skeleton* pDest); -void cSs_importSkeleton_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * stream_c, struct hg3dclass_struct * pDest_c);
− include/ClassStaticGeometry.h
@@ -1,78 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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.h -// -// -// -// -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/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" -#include "TypeQuaternion.h" - - -// original function: const String& getName(); -void cSg_getName_c(struct hg3dclass_struct *classptr_c, char * result_c); -// original function: void addEntity(Entity* ent, const Vector3& position, const Quaternion& orientation, const Vector3& scale); -void cSg_addEntity_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * ent_c, struct vector3_struct * position_c, struct quaternion_struct * orientation_c, struct vector3_struct * scale_c); -// original function: void build(); -void cSg_build_c(struct hg3dclass_struct *classptr_c); -// original function: void destroy(); -void cSg_destroy_c(struct hg3dclass_struct *classptr_c); -// original function: void reset(); -void cSg_reset_c(struct hg3dclass_struct *classptr_c); -// original function: void setRenderingDistance(Real dist); -void cSg_setRenderingDistance_c(struct hg3dclass_struct *classptr_c, float dist_c); -// original function: Real getRenderingDistance(); -void cSg_getRenderingDistance_c(struct hg3dclass_struct *classptr_c, float * result_c); -// original function: Real getSquaredRenderingDistance(); -void cSg_getSquaredRenderingDistance_c(struct hg3dclass_struct *classptr_c, float * result_c); -// original function: void setVisible(bool visible); -void cSg_setVisible_c(struct hg3dclass_struct *classptr_c, int visible_c); -// original function: bool isVisible(); -void cSg_isVisible_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: void setCastShadows(bool castShadows); -void cSg_setCastShadows_c(struct hg3dclass_struct *classptr_c, int castShadows_c); -// original function: bool getCastShadows(); -void cSg_getCastShadows_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: void setRegionDimensions(const Vector3& size); -void cSg_setRegionDimensions_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * size_c); -// original function: const Vector3& getRegionDimensions(); -void cSg_getRegionDimensions_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * result_c); -// original function: void setOrigin(const Vector3& origin); -void cSg_setOrigin_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * origin_c); -// original function: const Vector3& getOrigin(); -void cSg_getOrigin_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * result_c); -// original function: void setVisibilityFlags(uint32 flags); -void cSg_setVisibilityFlags_c(struct hg3dclass_struct *classptr_c, unsigned int flags_c); -// original function: uint32 getVisibilityFlags(); -void cSg_getVisibilityFlags_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); -// original function: void dump(const String& filename); -void cSg_dump_c(struct hg3dclass_struct *classptr_c, char * filename_c);
− include/ClassStringConverter.h
@@ -1,38 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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.h -// -// -// -// -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" - -
− include/ClassStringUtil.h
@@ -1,38 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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.h -// -// -// -// -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" - -
− include/ClassSubEntity.h
@@ -1,73 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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.h -// -// -// -// -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" -#include "TypeSharedPtr.h" - - -// original function: const String& getMaterialName(); -void cSe_getMaterialName_c(struct hg3dclass_struct *classptr_c, char * result_c); -// original function: void setMaterialName(const String& name, const String& groupName); -void cSe_setMaterialName_c(struct hg3dclass_struct *classptr_c, char * name_c, char * groupName_c); -// original function: void setMaterial(const MaterialPtr& material); -void cSe_setMaterial_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * material_c); -// original function: void setVisible(bool visible); -void cSe_setVisible_c(struct hg3dclass_struct *classptr_c, int visible_c); -// original function: bool isVisible(); -void cSe_isVisible_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: SubMesh* getSubMesh(); -void cSe_getSubMesh_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); -// original function: Entity* getParent(); -void cSe_getParent_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); -// original function: const MaterialPtr& getMaterial(); -void cSe_getMaterial_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * result_c); -// original function: Technique* getTechnique(); -void cSe_getTechnique_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); -// original function: unsigned short getNumWorldTransforms(); -void cSe_getNumWorldTransforms_c(struct hg3dclass_struct *classptr_c, unsigned short * result_c); -// original function: bool getCastsShadows(); -void cSe_getCastsShadows_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: TempBlendedBufferInfo* _getSkelAnimTempBufferInfo(); -void cSe__getSkelAnimTempBufferInfo_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); -// original function: TempBlendedBufferInfo* _getVertexAnimTempBufferInfo(); -void cSe__getVertexAnimTempBufferInfo_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); -// original function: void _markBuffersUnusedForAnimation(); -void cSe__markBuffersUnusedForAnimation_c(struct hg3dclass_struct *classptr_c); -// original function: void _markBuffersUsedForAnimation(); -void cSe__markBuffersUsedForAnimation_c(struct hg3dclass_struct *classptr_c); -// original function: bool _getBuffersMarkedForAnimation(); -void cSe__getBuffersMarkedForAnimation_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: void _restoreBuffersForUnusedAnimation(bool hardwareAnimation); -void cSe__restoreBuffersForUnusedAnimation_c(struct hg3dclass_struct *classptr_c, int hardwareAnimation_c);
− include/ClassSubMesh.h
@@ -1,63 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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.h -// -// -// -// -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" -#include "EnumVertexAnimationType.h" - - -// original function: void setMaterialName(const String& matName, const String& groupName); -void cSum_setMaterialName_c(struct hg3dclass_struct *classptr_c, char * matName_c, char * groupName_c); -// original function: bool isMatInitialised(); -void cSum_isMatInitialised_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: void clearBoneAssignments(); -void cSum_clearBoneAssignments_c(struct hg3dclass_struct *classptr_c); -// original function: void _compileBoneAssignments(); -void cSum__compileBoneAssignments_c(struct hg3dclass_struct *classptr_c); -// original function: void addTextureAlias(const String& aliasName, const String& textureName); -void cSum_addTextureAlias_c(struct hg3dclass_struct *classptr_c, char * aliasName_c, char * textureName_c); -// original function: void removeTextureAlias(const String& aliasName); -void cSum_removeTextureAlias_c(struct hg3dclass_struct *classptr_c, char * aliasName_c); -// original function: void removeAllTextureAliases(); -void cSum_removeAllTextureAliases_c(struct hg3dclass_struct *classptr_c); -// original function: bool hasTextureAliases(); -void cSum_hasTextureAliases_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: size_t getTextureAliasCount(); -void cSum_getTextureAliasCount_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: bool updateMaterialUsingTextureAliases(); -void cSum_updateMaterialUsingTextureAliases_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: VertexAnimationType getVertexAnimationType(); -void cSum_getVertexAnimationType_c(struct hg3dclass_struct *classptr_c, enum EnumVertexAnimationType * result_c); -// original function: void generateExtremes(size_t count); -void cSum_generateExtremes_c(struct hg3dclass_struct *classptr_c, int count_c);
− include/ClassTechnique.h
@@ -1,161 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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.h -// -// -// -// -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" -#include "TypeColour.h" -#include "EnumCompareFunction.h" -#include "EnumCullingMode.h" -#include "EnumManualCullingMode.h" -#include "EnumShadeOptions.h" -#include "EnumFogMode.h" -#include "EnumTextureFilterOptions.h" -#include "EnumGPUVendor.h" -#include "EnumIncludeOrExclude.h" - - -// original function: bool isSupported(); -void cT_isSupported_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: String _compile(bool autoManageTextureUnits); -void cT__compile_c(struct hg3dclass_struct *classptr_c, int autoManageTextureUnits_c, char * result_c); -// original function: void _compileIlluminationPasses(); -void cT__compileIlluminationPasses_c(struct hg3dclass_struct *classptr_c); -// original function: Pass* createPass(); -void cT_createPass_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); -// original function: Pass* getPass(unsigned short index); -void cT_getPass_c(struct hg3dclass_struct *classptr_c, unsigned short index_c, struct hg3dclass_struct * result_c); -// original function: Pass* getPass(const String& name); -void cT_getPass2_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); -// original function: unsigned short getNumPasses(); -void cT_getNumPasses_c(struct hg3dclass_struct *classptr_c, unsigned short * result_c); -// original function: void removePass(unsigned short index); -void cT_removePass_c(struct hg3dclass_struct *classptr_c, unsigned short index_c); -// original function: void removeAllPasses(); -void cT_removeAllPasses_c(struct hg3dclass_struct *classptr_c); -// original function: bool movePass(const unsigned short sourceIndex, const unsigned short destinationIndex); -void cT_movePass_c(struct hg3dclass_struct *classptr_c, unsigned short sourceIndex_c, unsigned short destinationIndex_c, int * result_c); -// original function: Material* getParent(); -void cT_getParent_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); -// original function: const String& getResourceGroup(); -void cT_getResourceGroup_c(struct hg3dclass_struct *classptr_c, char * result_c); -// original function: bool isTransparent(); -void cT_isTransparent_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: bool isTransparentSortingEnabled(); -void cT_isTransparentSortingEnabled_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: bool isTransparentSortingForced(); -void cT_isTransparentSortingForced_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: void _prepare(); -void cT__prepare_c(struct hg3dclass_struct *classptr_c); -// original function: void _unprepare(); -void cT__unprepare_c(struct hg3dclass_struct *classptr_c); -// original function: void _load(); -void cT__load_c(struct hg3dclass_struct *classptr_c); -// original function: void _unload(); -void cT__unload_c(struct hg3dclass_struct *classptr_c); -// original function: bool isLoaded(); -void cT_isLoaded_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: void _notifyNeedsRecompile(); -void cT__notifyNeedsRecompile_c(struct hg3dclass_struct *classptr_c); -// original function: void setPointSize(Real ps); -void cT_setPointSize_c(struct hg3dclass_struct *classptr_c, float ps_c); -// original function: void setAmbient(Real red, Real green, Real blue); -void cT_setAmbient_c(struct hg3dclass_struct *classptr_c, float red_c, float green_c, float blue_c); -// original function: void setAmbient(const ColourValue& ambient); -void cT_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 cT_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 cT_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 cT_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 cT_setSpecular2_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * specular_c); -// original function: void setShininess(Real val); -void cT_setShininess_c(struct hg3dclass_struct *classptr_c, float val_c); -// original function: void setSelfIllumination(Real red, Real green, Real blue); -void cT_setSelfIllumination_c(struct hg3dclass_struct *classptr_c, float red_c, float green_c, float blue_c); -// original function: void setSelfIllumination(const ColourValue& selfIllum); -void cT_setSelfIllumination2_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * selfIllum_c); -// original function: void setDepthCheckEnabled(bool enabled); -void cT_setDepthCheckEnabled_c(struct hg3dclass_struct *classptr_c, int enabled_c); -// original function: void setDepthWriteEnabled(bool enabled); -void cT_setDepthWriteEnabled_c(struct hg3dclass_struct *classptr_c, int enabled_c); -// original function: void setDepthFunction(CompareFunction func); -void cT_setDepthFunction_c(struct hg3dclass_struct *classptr_c, enum EnumCompareFunction func_c); -// original function: void setColourWriteEnabled(bool enabled); -void cT_setColourWriteEnabled_c(struct hg3dclass_struct *classptr_c, int enabled_c); -// original function: void setCullingMode(CullingMode mode); -void cT_setCullingMode_c(struct hg3dclass_struct *classptr_c, enum EnumCullingMode mode_c); -// original function: void setManualCullingMode(ManualCullingMode mode); -void cT_setManualCullingMode_c(struct hg3dclass_struct *classptr_c, enum EnumManualCullingMode mode_c); -// original function: void setLightingEnabled(bool enabled); -void cT_setLightingEnabled_c(struct hg3dclass_struct *classptr_c, int enabled_c); -// original function: void setShadingMode(ShadeOptions mode); -void cT_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 cT_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 cT_setDepthBias_c(struct hg3dclass_struct *classptr_c, float constantBias_c, float slopeScaleBias_c); -// original function: void setTextureFiltering(TextureFilterOptions filterType); -void cT_setTextureFiltering_c(struct hg3dclass_struct *classptr_c, enum EnumTextureFilterOptions filterType_c); -// original function: void setTextureAnisotropy(unsigned int maxAniso); -void cT_setTextureAnisotropy_c(struct hg3dclass_struct *classptr_c, unsigned int maxAniso_c); -// original function: void setLodIndex(unsigned short index); -void cT_setLodIndex_c(struct hg3dclass_struct *classptr_c, unsigned short index_c); -// original function: unsigned short getLodIndex(); -void cT_getLodIndex_c(struct hg3dclass_struct *classptr_c, unsigned short * result_c); -// original function: void setSchemeName(const String& schemeName); -void cT_setSchemeName_c(struct hg3dclass_struct *classptr_c, char * schemeName_c); -// original function: const String& getSchemeName(); -void cT_getSchemeName_c(struct hg3dclass_struct *classptr_c, char * result_c); -// original function: unsigned short _getSchemeIndex(); -void cT__getSchemeIndex_c(struct hg3dclass_struct *classptr_c, unsigned short * result_c); -// original function: bool isDepthWriteEnabled(); -void cT_isDepthWriteEnabled_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: bool isDepthCheckEnabled(); -void cT_isDepthCheckEnabled_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: bool hasColourWriteDisabled(); -void cT_hasColourWriteDisabled_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: void setName(const String& name); -void cT_setName_c(struct hg3dclass_struct *classptr_c, char * name_c); -// original function: const String& getName(); -void cT_getName_c(struct hg3dclass_struct *classptr_c, char * result_c); -// original function: void addGPUVendorRule(GPUVendor vendor, IncludeOrExclude includeOrExclude); -void cT_addGPUVendorRule_c(struct hg3dclass_struct *classptr_c, enum EnumGPUVendor vendor_c, enum EnumIncludeOrExclude includeOrExclude_c); -// original function: void removeGPUVendorRule(GPUVendor vendor); -void cT_removeGPUVendorRule_c(struct hg3dclass_struct *classptr_c, enum EnumGPUVendor vendor_c); -// original function: void addGPUDeviceNameRule(const String& devicePattern, IncludeOrExclude includeOrExclude, bool caseSensitive); -void cT_addGPUDeviceNameRule_c(struct hg3dclass_struct *classptr_c, char * devicePattern_c, enum EnumIncludeOrExclude includeOrExclude_c, int caseSensitive_c); -// original function: void removeGPUDeviceNameRule(const String& devicePattern); -void cT_removeGPUDeviceNameRule_c(struct hg3dclass_struct *classptr_c, char * devicePattern_c);
− include/ClassTempBlendedBufferInfo.h
@@ -1,42 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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.h -// -// -// -// -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/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 checkoutTempCopies(bool positions, bool normals); -void cTbbi_checkoutTempCopies_c(struct hg3dclass_struct *classptr_c, int positions_c, int normals_c); -// original function: bool buffersCheckedOut(bool positions, bool normals); -void cTbbi_buffersCheckedOut_c(struct hg3dclass_struct *classptr_c, int positions_c, int normals_c, int * result_c);
include/ClassTextureManager.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,44 +15,31 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassTextureManager.h -// -// -// + // -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/include/OGRE\OgreTextureManager.h" + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassTextureManager +#define _DEFINED_HG3D_ClassTextureManager + +#include "ClassPtr.h" + + // -// each stub combines the following files: -// a C++ implementation file, transforming cpp calls into C-functions -// a C-header file, making this C-functions available for the C2HS parser -// a chs file, give instructions to the C2HS parser. +void ogre_txmgr_destruct(struct hg3dclass_struct * thisclass_c); + // +void ogre_txmgr_setDefaultNumMipmaps(struct hg3dclass_struct * thisclass_c, long num_c); + // +void ogre_txmgr_getDefaultNumMipmaps(struct hg3dclass_struct * thisclass_c, long * result_c); -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" -#include "TypeSharedPtr.h" -#include "EnumTextureType.h" -#include "EnumPixelFormat.h" +// +void ogre_txmgr_getSingleton(struct hg3dclass_struct * result_c); +// +void ogre_txmgr_getSingletonPtr(struct hg3dclass_struct * result_c); -// original function: TexturePtr prepare(const String& name, const String& group, TextureType texType, int numMipmaps, Real gamma, bool isAlpha, PixelFormat desiredFormat, bool hwGammaCorrection); -void cTm_prepare_c(struct hg3dclass_struct *classptr_c, char * name_c, char * group_c, enum EnumTextureType texType_c, int numMipmaps_c, float gamma_c, int isAlpha_c, enum EnumPixelFormat desiredFormat_c, int hwGammaCorrection_c, struct sharedptr_struct * result_c); -// original function: TexturePtr load(const String& name, const String& group, TextureType texType, int numMipmaps, Real gamma, bool isAlpha, PixelFormat desiredFormat, bool hwGammaCorrection); -void cTm_load_c(struct hg3dclass_struct *classptr_c, char * name_c, char * group_c, enum EnumTextureType texType_c, int numMipmaps_c, float gamma_c, int isAlpha_c, enum EnumPixelFormat desiredFormat_c, int hwGammaCorrection_c, struct sharedptr_struct * result_c); -// original function: bool isFormatSupported(TextureType ttype, PixelFormat format, int usage); -void cTm_isFormatSupported_c(struct hg3dclass_struct *classptr_c, enum EnumTextureType ttype_c, enum EnumPixelFormat format_c, int usage_c, int * result_c); -// original function: bool isEquivalentFormatSupported(TextureType ttype, PixelFormat format, int usage); -void cTm_isEquivalentFormatSupported_c(struct hg3dclass_struct *classptr_c, enum EnumTextureType ttype_c, enum EnumPixelFormat format_c, int usage_c, int * result_c); -// original function: PixelFormat getNativeFormat(TextureType ttype, PixelFormat format, int usage); -void cTm_getNativeFormat_c(struct hg3dclass_struct *classptr_c, enum EnumTextureType ttype_c, enum EnumPixelFormat format_c, int usage_c, enum EnumPixelFormat * result_c); -// original function: bool isHardwareFilteringSupported(TextureType ttype, PixelFormat format, int usage, bool preciseFormatOnly); -void cTm_isHardwareFilteringSupported_c(struct hg3dclass_struct *classptr_c, enum EnumTextureType ttype_c, enum EnumPixelFormat format_c, int usage_c, int preciseFormatOnly_c, int * result_c); -// original function: void setDefaultNumMipmaps(size_t num); -void cTm_setDefaultNumMipmaps_c(struct hg3dclass_struct *classptr_c, int num_c); -// original function: size_t getDefaultNumMipmaps(); -void cTm_getDefaultNumMipmaps_c(struct hg3dclass_struct *classptr_c, int * result_c); -// created singleton getSingletonPtr function -void cTm_getSingletonPtr_c(struct hg3dclass_struct *result_c); +#endif
− include/ClassTextureUnitState.h
@@ -1,225 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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.h -// -// -// -// -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" -#include "EnumTextureType.h" -#include "EnumBindingType.h" -#include "EnumContentType.h" -#include "EnumPixelFormat.h" -#include "TypeRadian.h" -#include "EnumTextureAddressingMode.h" -#include "TypeColour.h" -#include "EnumLayerBlendOperationEx.h" -#include "EnumLayerBlendSource.h" -#include "EnumSceneBlendFactor.h" -#include "EnumEnvMapType.h" -#include "EnumTextureFilterOptions.h" -#include "EnumFilterType.h" -#include "EnumFilterOptions.h" -#include "TypeSharedPtr.h" - - -// original function: const String& getTextureName(); -void cTus_getTextureName_c(struct hg3dclass_struct *classptr_c, char * result_c); -// original function: void setTextureName(const String& name, TextureType ttype); -void cTus_setTextureName_c(struct hg3dclass_struct *classptr_c, char * name_c, enum EnumTextureType ttype_c); -// original function: void setCubicTextureName(const String& name, bool forUVW); -void cTus_setCubicTextureName_c(struct hg3dclass_struct *classptr_c, char * name_c, int forUVW_c); -// original function: void setAnimatedTextureName(const String& name, unsigned int numFrames, Real duration); -void cTus_setAnimatedTextureName_c(struct hg3dclass_struct *classptr_c, char * name_c, unsigned int numFrames_c, float duration_c); -// original function: void setCurrentFrame(unsigned int frameNumber); -void cTus_setCurrentFrame_c(struct hg3dclass_struct *classptr_c, unsigned int frameNumber_c); -// original function: unsigned int getCurrentFrame(); -void cTus_getCurrentFrame_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); -// original function: const String& getFrameTextureName(unsigned int frameNumber); -void cTus_getFrameTextureName_c(struct hg3dclass_struct *classptr_c, unsigned int frameNumber_c, char * result_c); -// original function: void setFrameTextureName(const String& name, unsigned int frameNumber); -void cTus_setFrameTextureName_c(struct hg3dclass_struct *classptr_c, char * name_c, unsigned int frameNumber_c); -// original function: void addFrameTextureName(const String& name); -void cTus_addFrameTextureName_c(struct hg3dclass_struct *classptr_c, char * name_c); -// original function: void deleteFrameTextureName(const size_t frameNumber); -void cTus_deleteFrameTextureName_c(struct hg3dclass_struct *classptr_c, int frameNumber_c); -// original function: unsigned int getNumFrames(); -void cTus_getNumFrames_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); -// original function: void setBindingType(BindingType bt); -void cTus_setBindingType_c(struct hg3dclass_struct *classptr_c, enum EnumBindingType bt_c); -// original function: BindingType getBindingType(); -void cTus_getBindingType_c(struct hg3dclass_struct *classptr_c, enum EnumBindingType * result_c); -// original function: void setContentType(ContentType ct); -void cTus_setContentType_c(struct hg3dclass_struct *classptr_c, enum EnumContentType ct_c); -// original function: ContentType getContentType(); -void cTus_getContentType_c(struct hg3dclass_struct *classptr_c, enum EnumContentType * result_c); -// original function: bool isCubic(); -void cTus_isCubic_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: bool is3D(); -void cTus_is3D_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: TextureType getTextureType(); -void cTus_getTextureType_c(struct hg3dclass_struct *classptr_c, enum EnumTextureType * result_c); -// original function: void setDesiredFormat(PixelFormat desiredFormat); -void cTus_setDesiredFormat_c(struct hg3dclass_struct *classptr_c, enum EnumPixelFormat desiredFormat_c); -// original function: PixelFormat getDesiredFormat(); -void cTus_getDesiredFormat_c(struct hg3dclass_struct *classptr_c, enum EnumPixelFormat * result_c); -// original function: void setNumMipmaps(int numMipmaps); -void cTus_setNumMipmaps_c(struct hg3dclass_struct *classptr_c, int numMipmaps_c); -// original function: int getNumMipmaps(); -void cTus_getNumMipmaps_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: void setIsAlpha(bool isAlpha); -void cTus_setIsAlpha_c(struct hg3dclass_struct *classptr_c, int isAlpha_c); -// original function: bool getIsAlpha(); -void cTus_getIsAlpha_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: void setHardwareGammaEnabled(bool enabled); -void cTus_setHardwareGammaEnabled_c(struct hg3dclass_struct *classptr_c, int enabled_c); -// original function: bool isHardwareGammaEnabled(); -void cTus_isHardwareGammaEnabled_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: unsigned int getTextureCoordSet(); -void cTus_getTextureCoordSet_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); -// original function: void setTextureCoordSet(unsigned int set); -void cTus_setTextureCoordSet_c(struct hg3dclass_struct *classptr_c, unsigned int set_c); -// original function: void setTextureScroll(Real u, Real v); -void cTus_setTextureScroll_c(struct hg3dclass_struct *classptr_c, float u_c, float v_c); -// original function: void setTextureUScroll(Real value); -void cTus_setTextureUScroll_c(struct hg3dclass_struct *classptr_c, float value_c); -// original function: Real getTextureUScroll(); -void cTus_getTextureUScroll_c(struct hg3dclass_struct *classptr_c, float * result_c); -// original function: void setTextureVScroll(Real value); -void cTus_setTextureVScroll_c(struct hg3dclass_struct *classptr_c, float value_c); -// original function: Real getTextureVScroll(); -void cTus_getTextureVScroll_c(struct hg3dclass_struct *classptr_c, float * result_c); -// original function: void setTextureUScale(Real value); -void cTus_setTextureUScale_c(struct hg3dclass_struct *classptr_c, float value_c); -// original function: Real getTextureUScale(); -void cTus_getTextureUScale_c(struct hg3dclass_struct *classptr_c, float * result_c); -// original function: void setTextureVScale(Real value); -void cTus_setTextureVScale_c(struct hg3dclass_struct *classptr_c, float value_c); -// original function: Real getTextureVScale(); -void cTus_getTextureVScale_c(struct hg3dclass_struct *classptr_c, float * result_c); -// original function: void setTextureScale(Real uScale, Real vScale); -void cTus_setTextureScale_c(struct hg3dclass_struct *classptr_c, float uScale_c, float vScale_c); -// original function: void setTextureRotate(const Radian& angle); -void cTus_setTextureRotate_c(struct hg3dclass_struct *classptr_c, struct radian_struct * angle_c); -// original function: const Radian& getTextureRotate(); -void cTus_getTextureRotate_c(struct hg3dclass_struct *classptr_c, struct radian_struct * result_c); -// original function: void setTextureAddressingMode(TextureAddressingMode tam); -void cTus_setTextureAddressingMode_c(struct hg3dclass_struct *classptr_c, enum EnumTextureAddressingMode tam_c); -// original function: void setTextureAddressingMode(TextureAddressingMode u, TextureAddressingMode v, TextureAddressingMode w); -void cTus_setTextureAddressingMode2_c(struct hg3dclass_struct *classptr_c, enum EnumTextureAddressingMode u_c, enum EnumTextureAddressingMode v_c, enum EnumTextureAddressingMode w_c); -// original function: void setTextureBorderColour(const ColourValue& colour); -void cTus_setTextureBorderColour_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * colour_c); -// original function: const ColourValue& getTextureBorderColour(); -void cTus_getTextureBorderColour_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * result_c); -// original function: void setColourOperationEx(LayerBlendOperationEx op, LayerBlendSource source1, LayerBlendSource source2, const ColourValue& arg1, const ColourValue& arg2, Real manualBlend); -void cTus_setColourOperationEx_c(struct hg3dclass_struct *classptr_c, enum EnumLayerBlendOperationEx op_c, enum EnumLayerBlendSource source1_c, enum EnumLayerBlendSource source2_c, struct colourvalue_struct * arg1_c, struct colourvalue_struct * arg2_c, float manualBlend_c); -// original function: SceneBlendFactor getColourBlendFallbackSrc(); -void cTus_getColourBlendFallbackSrc_c(struct hg3dclass_struct *classptr_c, enum EnumSceneBlendFactor * result_c); -// original function: SceneBlendFactor getColourBlendFallbackDest(); -void cTus_getColourBlendFallbackDest_c(struct hg3dclass_struct *classptr_c, enum EnumSceneBlendFactor * result_c); -// original function: void setAlphaOperation(LayerBlendOperationEx op, LayerBlendSource source1, LayerBlendSource source2, Real arg1, Real arg2, Real manualBlend); -void cTus_setAlphaOperation_c(struct hg3dclass_struct *classptr_c, enum EnumLayerBlendOperationEx op_c, enum EnumLayerBlendSource source1_c, enum EnumLayerBlendSource source2_c, float arg1_c, float arg2_c, float manualBlend_c); -// original function: void setEnvironmentMap(bool enable, EnvMapType envMapType); -void cTus_setEnvironmentMap_c(struct hg3dclass_struct *classptr_c, int enable_c, enum EnumEnvMapType envMapType_c); -// original function: void setScrollAnimation(Real uSpeed, Real vSpeed); -void cTus_setScrollAnimation_c(struct hg3dclass_struct *classptr_c, float uSpeed_c, float vSpeed_c); -// original function: void setRotateAnimation(Real speed); -void cTus_setRotateAnimation_c(struct hg3dclass_struct *classptr_c, float speed_c); -// original function: void removeAllEffects(); -void cTus_removeAllEffects_c(struct hg3dclass_struct *classptr_c); -// original function: bool isBlank(); -void cTus_isBlank_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: void setBlank(); -void cTus_setBlank_c(struct hg3dclass_struct *classptr_c); -// original function: bool isTextureLoadFailing(); -void cTus_isTextureLoadFailing_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: void retryTextureLoad(); -void cTus_retryTextureLoad_c(struct hg3dclass_struct *classptr_c); -// original function: Real getAnimationDuration(); -void cTus_getAnimationDuration_c(struct hg3dclass_struct *classptr_c, float * result_c); -// original function: void setTextureFiltering(TextureFilterOptions filterType); -void cTus_setTextureFiltering_c(struct hg3dclass_struct *classptr_c, enum EnumTextureFilterOptions filterType_c); -// original function: void setTextureFiltering(FilterType ftype, FilterOptions opts); -void cTus_setTextureFiltering2_c(struct hg3dclass_struct *classptr_c, enum EnumFilterType ftype_c, enum EnumFilterOptions opts_c); -// original function: void setTextureFiltering(FilterOptions minFilter, FilterOptions magFilter, FilterOptions mipFilter); -void cTus_setTextureFiltering3_c(struct hg3dclass_struct *classptr_c, enum EnumFilterOptions minFilter_c, enum EnumFilterOptions magFilter_c, enum EnumFilterOptions mipFilter_c); -// original function: FilterOptions getTextureFiltering(FilterType ftpye); -void cTus_getTextureFiltering_c(struct hg3dclass_struct *classptr_c, enum EnumFilterType ftpye_c, enum EnumFilterOptions * result_c); -// original function: void setTextureAnisotropy(unsigned int maxAniso); -void cTus_setTextureAnisotropy_c(struct hg3dclass_struct *classptr_c, unsigned int maxAniso_c); -// original function: unsigned int getTextureAnisotropy(); -void cTus_getTextureAnisotropy_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); -// original function: void setTextureMipmapBias(float bias); -void cTus_setTextureMipmapBias_c(struct hg3dclass_struct *classptr_c, float bias_c); -// original function: float getTextureMipmapBias(); -void cTus_getTextureMipmapBias_c(struct hg3dclass_struct *classptr_c, float * result_c); -// original function: void setCompositorReference(const String& compositorName, const String& textureName, size_t mrtIndex); -void cTus_setCompositorReference_c(struct hg3dclass_struct *classptr_c, char * compositorName_c, char * textureName_c, int mrtIndex_c); -// original function: const String& getReferencedCompositorName(); -void cTus_getReferencedCompositorName_c(struct hg3dclass_struct *classptr_c, char * result_c); -// original function: const String& getReferencedTextureName(); -void cTus_getReferencedTextureName_c(struct hg3dclass_struct *classptr_c, char * result_c); -// original function: size_t getReferencedMRTIndex(); -void cTus_getReferencedMRTIndex_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: Pass* getParent(); -void cTus_getParent_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); -// original function: void _prepare(); -void cTus__prepare_c(struct hg3dclass_struct *classptr_c); -// original function: void _unprepare(); -void cTus__unprepare_c(struct hg3dclass_struct *classptr_c); -// original function: void _load(); -void cTus__load_c(struct hg3dclass_struct *classptr_c); -// original function: void _unload(); -void cTus__unload_c(struct hg3dclass_struct *classptr_c); -// original function: bool hasViewRelativeTextureCoordinateGeneration(); -void cTus_hasViewRelativeTextureCoordinateGeneration_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: bool isLoaded(); -void cTus_isLoaded_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: void _notifyNeedsRecompile(); -void cTus__notifyNeedsRecompile_c(struct hg3dclass_struct *classptr_c); -// original function: void setName(const String& name); -void cTus_setName_c(struct hg3dclass_struct *classptr_c, char * name_c); -// original function: const String& getName(); -void cTus_getName_c(struct hg3dclass_struct *classptr_c, char * result_c); -// original function: void setTextureNameAlias(const String& name); -void cTus_setTextureNameAlias_c(struct hg3dclass_struct *classptr_c, char * name_c); -// original function: const String& getTextureNameAlias(); -void cTus_getTextureNameAlias_c(struct hg3dclass_struct *classptr_c, char * result_c); -// original function: void _notifyParent(Pass* parent); -void cTus__notifyParent_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * parent_c); -// original function: const TexturePtr& _getTexturePtr(); -void cTus__getTexturePtr_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * result_c); -// original function: const TexturePtr& _getTexturePtr(size_t frame); -void cTus__getTexturePtr2_c(struct hg3dclass_struct *classptr_c, int frame_c, struct sharedptr_struct * result_c); -// original function: void _setTexturePtr(const TexturePtr& texptr); -void cTus__setTexturePtr_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * texptr_c); -// original function: void _setTexturePtr(const TexturePtr& texptr, size_t frame); -void cTus__setTexturePtr2_c(struct hg3dclass_struct *classptr_c, struct sharedptr_struct * texptr_c, int frame_c);
include/ClassTimeIndex.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,23 +15,28 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassTimeIndex.h -// -// -// -// -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/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" +#ifndef _DEFINED_HG3D_ClassTimeIndex +#define _DEFINED_HG3D_ClassTimeIndex + #include "ClassPtr.h" -#include "Utils.h" +// +void ogre_tnx_construct(float timePos_c, struct hg3dclass_struct * result_c); + +// +void ogre_tnx_hasKeyIndex(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_tnx_getTimePos(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_tnx_getKeyIndex(struct hg3dclass_struct * thisclass_c, unsigned long * result_c); + +#endif
− include/ClassTransformKeyFrame.h
@@ -1,52 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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.h -// -// -// -// -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/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" -#include "TypeVector3.h" -#include "TypeQuaternion.h" - - -// original function: void setTranslate(const Vector3& trans); -void cTkf_setTranslate_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * trans_c); -// original function: const Vector3& getTranslate(); -void cTkf_getTranslate_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * result_c); -// original function: void setScale(const Vector3& scale); -void cTkf_setScale_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * scale_c); -// original function: const Vector3& getScale(); -void cTkf_getScale_c(struct hg3dclass_struct *classptr_c, struct vector3_struct * result_c); -// original function: void setRotation(const Quaternion& rot); -void cTkf_setRotation_c(struct hg3dclass_struct *classptr_c, struct quaternion_struct * rot_c); -// original function: const Quaternion& getRotation(); -void cTkf_getRotation_c(struct hg3dclass_struct *classptr_c, struct quaternion_struct * result_c);
− include/ClassUnimplementedException.h
@@ -1,38 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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.h -// -// -// -// -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/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" - -
include/ClassVertexAnimationTrack.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,43 +15,44 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassVertexAnimationTrack.h -// -// -// -// -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/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" +#ifndef _DEFINED_HG3D_ClassVertexAnimationTrack +#define _DEFINED_HG3D_ClassVertexAnimationTrack + #include "ClassPtr.h" -#include "Utils.h" +#include "ClassAnimation.h" #include "EnumVertexAnimationType.h" -#include "EnumTargetMode.h" +#include "ClassTimeIndex.h" +#include "EnumVertexAnimationTrackTargetMode.h" -// original function: VertexAnimationType getAnimationType(); -void cVant_getAnimationType_c(struct hg3dclass_struct *classptr_c, enum EnumVertexAnimationType * result_c); -// original function: VertexMorphKeyFrame* createVertexMorphKeyFrame(Real timePos); -void cVant_createVertexMorphKeyFrame_c(struct hg3dclass_struct *classptr_c, float timePos_c, struct hg3dclass_struct * result_c); -// original function: VertexPoseKeyFrame* createVertexPoseKeyFrame(Real timePos); -void cVant_createVertexPoseKeyFrame_c(struct hg3dclass_struct *classptr_c, float timePos_c, struct hg3dclass_struct * result_c); -// original function: VertexMorphKeyFrame* getVertexMorphKeyFrame(unsigned short index); -void cVant_getVertexMorphKeyFrame_c(struct hg3dclass_struct *classptr_c, unsigned short index_c, struct hg3dclass_struct * result_c); -// original function: VertexPoseKeyFrame* getVertexPoseKeyFrame(unsigned short index); -void cVant_getVertexPoseKeyFrame_c(struct hg3dclass_struct *classptr_c, unsigned short index_c, struct hg3dclass_struct * result_c); -// original function: void setTargetMode(TargetMode m); -void cVant_setTargetMode_c(struct hg3dclass_struct *classptr_c, enum EnumTargetMode m_c); -// original function: TargetMode getTargetMode(); -void cVant_getTargetMode_c(struct hg3dclass_struct *classptr_c, enum EnumTargetMode * result_c); -// original function: bool hasNonZeroKeyFrames(); -void cVant_hasNonZeroKeyFrames_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: void optimise(); -void cVant_optimise_c(struct hg3dclass_struct *classptr_c); +// Constructor. +void ogre_vat_construct(struct hg3dclass_struct * parent_c, unsigned short handle_c, enum EnumVertexAnimationType animType_c, struct hg3dclass_struct * result_c); + +// +void ogre_vat_getAnimationType(struct hg3dclass_struct * thisclass_c, enum EnumVertexAnimationType * result_c); + +// +void ogre_vat_getVertexAnimationIncludesNormals(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_vat_apply(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * timeIndex_c, float weight_c, float scale_c); + +// Set the target mode. +void ogre_vat_setTargetMode(struct hg3dclass_struct * thisclass_c, enum EnumVertexAnimationTrackTargetMode m_c); + +// Get the target mode. +void ogre_vat_getTargetMode(struct hg3dclass_struct * thisclass_c, enum EnumVertexAnimationTrackTargetMode * result_c); + +// +void ogre_vat_hasNonZeroKeyFrames(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_vat_optimise(struct hg3dclass_struct * thisclass_c); + +#endif
− include/ClassVertexMorphKeyFrame.h
@@ -1,38 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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.h -// -// -// -// -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/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" - -
− include/ClassVertexPoseKeyFrame.h
@@ -1,40 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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.h -// -// -// -// -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/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: void removeAllPoseReferences(); -void cVpkf_removeAllPoseReferences_c(struct hg3dclass_struct *classptr_c);
include/ClassViewport.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,105 +15,156 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassViewport.h + // + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassViewport +#define _DEFINED_HG3D_ClassViewport + +#include "ClassPtr.h" +#include "ClassCamera.h" +#include "ClassRenderTarget.h" +#include "StructColour.h" +#include "EnumOrientationMode.h" +#include "StructVec2.h" + + // +void ogre_vprt_construct(struct hg3dclass_struct * camera_c, struct hg3dclass_struct * target_c, float left_c, float top_c, float width_c, float height_c, long ZOrder_c, struct hg3dclass_struct * result_c); + // +void ogre_vprt_destruct(struct hg3dclass_struct * thisclass_c); + // -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/include/OGRE\OgreViewport.h" +void ogre_vprt_update(struct hg3dclass_struct * thisclass_c); + // -// each stub combines the following files: -// a C++ implementation file, transforming cpp calls into C-functions -// a C-header file, making this C-functions available for the C2HS parser -// a chs file, give instructions to the C2HS parser. +void ogre_vprt_clear(struct hg3dclass_struct * thisclass_c, unsigned long buffers_c, struct colourvalue_struct * colour_c, float depth_c, unsigned short stencil_c); + // +void ogre_vprt_getTarget(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); + // +void ogre_vprt_getCamera(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" -#include "TypeColour.h" -#include "EnumOrientationMode.h" +// +void ogre_vprt_setCamera(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * cam_c); +// +void ogre_vprt_getZOrder(struct hg3dclass_struct * thisclass_c, long * result_c); -// original function: void _updateDimensions(); -void cVp__updateDimensions_c(struct hg3dclass_struct *classptr_c); -// original function: void update(); -void cVp_update_c(struct hg3dclass_struct *classptr_c); -// original function: void clear(unsigned int buffers, const ColourValue& colour, Real depth, unsigned short stencil); -void cVp_clear_c(struct hg3dclass_struct *classptr_c, unsigned int buffers_c, struct colourvalue_struct * colour_c, float depth_c, unsigned short stencil_c); -// original function: RenderTarget* getTarget(); -void cVp_getTarget_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); -// original function: Camera* getCamera(); -void cVp_getCamera_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); -// original function: void setCamera(Camera* cam); -void cVp_setCamera_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * cam_c); -// original function: int getZOrder(); -void cVp_getZOrder_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: Real getLeft(); -void cVp_getLeft_c(struct hg3dclass_struct *classptr_c, float * result_c); -// original function: Real getTop(); -void cVp_getTop_c(struct hg3dclass_struct *classptr_c, float * result_c); -// original function: Real getWidth(); -void cVp_getWidth_c(struct hg3dclass_struct *classptr_c, float * result_c); -// original function: Real getHeight(); -void cVp_getHeight_c(struct hg3dclass_struct *classptr_c, float * result_c); -// original function: int getActualLeft(); -void cVp_getActualLeft_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: int getActualTop(); -void cVp_getActualTop_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: int getActualWidth(); -void cVp_getActualWidth_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: int getActualHeight(); -void cVp_getActualHeight_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: void setDimensions(Real left, Real top, Real width, Real height); -void cVp_setDimensions_c(struct hg3dclass_struct *classptr_c, float left_c, float top_c, float width_c, float height_c); -// original function: void setOrientationMode(OrientationMode orientationMode, bool setDefault); -void cVp_setOrientationMode_c(struct hg3dclass_struct *classptr_c, enum EnumOrientationMode orientationMode_c, int setDefault_c); -// original function: OrientationMode getOrientationMode(); -void cVp_getOrientationMode_c(struct hg3dclass_struct *classptr_c, enum EnumOrientationMode * result_c); -// original function: void setBackgroundColour(const ColourValue& colour); -void cVp_setBackgroundColour_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * colour_c); -// original function: const ColourValue& getBackgroundColour(); -void cVp_getBackgroundColour_c(struct hg3dclass_struct *classptr_c, struct colourvalue_struct * result_c); -// original function: void setClearEveryFrame(bool clear, unsigned int buffers); -void cVp_setClearEveryFrame_c(struct hg3dclass_struct *classptr_c, int clear_c, unsigned int buffers_c); -// original function: bool getClearEveryFrame(); -void cVp_getClearEveryFrame_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: unsigned int getClearBuffers(); -void cVp_getClearBuffers_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); -// original function: void setAutoUpdated(bool autoupdate); -void cVp_setAutoUpdated_c(struct hg3dclass_struct *classptr_c, int autoupdate_c); -// original function: bool isAutoUpdated(); -void cVp_isAutoUpdated_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: void setMaterialScheme(const String& schemeName); -void cVp_setMaterialScheme_c(struct hg3dclass_struct *classptr_c, char * schemeName_c); -// original function: const String& getMaterialScheme(); -void cVp_getMaterialScheme_c(struct hg3dclass_struct *classptr_c, char * result_c); -// original function: unsigned int _getNumRenderedFaces(); -void cVp__getNumRenderedFaces_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); -// original function: unsigned int _getNumRenderedBatches(); -void cVp__getNumRenderedBatches_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); -// original function: void setOverlaysEnabled(bool enabled); -void cVp_setOverlaysEnabled_c(struct hg3dclass_struct *classptr_c, int enabled_c); -// original function: bool getOverlaysEnabled(); -void cVp_getOverlaysEnabled_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: void setSkiesEnabled(bool enabled); -void cVp_setSkiesEnabled_c(struct hg3dclass_struct *classptr_c, int enabled_c); -// original function: bool getSkiesEnabled(); -void cVp_getSkiesEnabled_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: void setShadowsEnabled(bool enabled); -void cVp_setShadowsEnabled_c(struct hg3dclass_struct *classptr_c, int enabled_c); -// original function: bool getShadowsEnabled(); -void cVp_getShadowsEnabled_c(struct hg3dclass_struct *classptr_c, int * result_c); -// original function: void setVisibilityMask(uint32 mask); -void cVp_setVisibilityMask_c(struct hg3dclass_struct *classptr_c, unsigned int mask_c); -// original function: uint getVisibilityMask(); -void cVp_getVisibilityMask_c(struct hg3dclass_struct *classptr_c, unsigned int * result_c); -// original function: void setRenderQueueInvocationSequenceName(const String& sequenceName); -void cVp_setRenderQueueInvocationSequenceName_c(struct hg3dclass_struct *classptr_c, char * sequenceName_c); -// original function: const String& getRenderQueueInvocationSequenceName(); -void cVp_getRenderQueueInvocationSequenceName_c(struct hg3dclass_struct *classptr_c, char * result_c); -// original function: RenderQueueInvocationSequence* _getRenderQueueInvocationSequence(); -void cVp__getRenderQueueInvocationSequence_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// +void ogre_vprt_getLeft(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_vprt_getTop(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_vprt_getWidth(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_vprt_getHeight(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_vprt_getActualLeft(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_vprt_getActualTop(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_vprt_getActualWidth(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_vprt_getActualHeight(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_vprt_setDimensions(struct hg3dclass_struct * thisclass_c, float left_c, float top_c, float width_c, float height_c); + +// +void ogre_vprt_setOrientationMode(struct hg3dclass_struct * thisclass_c, enum EnumOrientationMode orientationMode_c, long setDefault_c); + +// +void ogre_vprt_getOrientationMode(struct hg3dclass_struct * thisclass_c, enum EnumOrientationMode * result_c); + +// +void ogre_vprt_setBackgroundColour(struct hg3dclass_struct * thisclass_c, struct colourvalue_struct * colour_c); + +// +void ogre_vprt_getBackgroundColour(struct hg3dclass_struct * thisclass_c, struct colourvalue_struct * result_c); + +// +void ogre_vprt_setDepthClear(struct hg3dclass_struct * thisclass_c, float depth_c); + +// +void ogre_vprt_getDepthClear(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_vprt_setClearEveryFrame(struct hg3dclass_struct * thisclass_c, long clear_c, unsigned long buffers_c); + +// +void ogre_vprt_getClearEveryFrame(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_vprt_getClearBuffers(struct hg3dclass_struct * thisclass_c, unsigned long * result_c); + +// +void ogre_vprt_setAutoUpdated(struct hg3dclass_struct * thisclass_c, long autoupdate_c); + +// +void ogre_vprt_isAutoUpdated(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_vprt_setMaterialScheme(struct hg3dclass_struct * thisclass_c, char * schemeName_c); + +// +void ogre_vprt_getMaterialScheme(struct hg3dclass_struct * thisclass_c, char * result_c); + +// +void ogre_vprt_getActualDimensions(struct hg3dclass_struct * thisclass_c, long * left_c, long * top_c, long * width_c, long * height_c); + +// +void ogre_vprt_setOverlaysEnabled(struct hg3dclass_struct * thisclass_c, long enabled_c); + +// +void ogre_vprt_getOverlaysEnabled(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_vprt_setSkiesEnabled(struct hg3dclass_struct * thisclass_c, long enabled_c); + +// +void ogre_vprt_getSkiesEnabled(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_vprt_setShadowsEnabled(struct hg3dclass_struct * thisclass_c, long enabled_c); + +// +void ogre_vprt_getShadowsEnabled(struct hg3dclass_struct * thisclass_c, long * result_c); + +// +void ogre_vprt_setVisibilityMask(struct hg3dclass_struct * thisclass_c, unsigned long mask_c); + +// +void ogre_vprt_getVisibilityMask(struct hg3dclass_struct * thisclass_c, unsigned long * result_c); + +// +void ogre_vprt_setRenderQueueInvocationSequenceName(struct hg3dclass_struct * thisclass_c, char * sequenceName_c); + +// +void ogre_vprt_getRenderQueueInvocationSequenceName(struct hg3dclass_struct * thisclass_c, char * result_c); + +// +void ogre_vprt_pointOrientedToScreen(struct hg3dclass_struct * thisclass_c, struct vector2_struct * v_c, long orientationMode_c, struct vector2_struct * outv_c); + +// +void ogre_vprt_pointOrientedToScreen2(struct hg3dclass_struct * thisclass_c, float orientedX_c, float orientedY_c, long orientationMode_c, float * screenX_c, float * screenY_c); + +// +void ogre_vprt_setDefaultOrientationMode(enum EnumOrientationMode orientationMode_c); + +// +void ogre_vprt_getDefaultOrientationMode(enum EnumOrientationMode * result_c); + +#endif
− include/ClassWindowEventListener.h
@@ -1,48 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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.h -// -// -// -// -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" - - -// original function: void windowMoved(RenderWindow* rw); -void cWel_windowMoved_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * rw_c); -// original function: void windowResized(RenderWindow* rw); -void cWel_windowResized_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * rw_c); -// original function: bool windowClosing(RenderWindow* rw); -void cWel_windowClosing_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * rw_c, int * result_c); -// original function: void windowClosed(RenderWindow* rw); -void cWel_windowClosed_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * rw_c); -// original function: void windowFocusChange(RenderWindow* rw); -void cWel_windowFocusChange_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * rw_c);
include/ClassWindowEventUtilities.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,23 +15,19 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassWindowEventUtilities.h -// -// -// -// -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/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. -// + // #include "wchar.h" +#ifndef _DEFINED_HG3D_ClassWindowEventUtilities +#define _DEFINED_HG3D_ClassWindowEventUtilities + #include "ClassPtr.h" -#include "Utils.h" +// +void ogre_weu_messagePump(); + +#endif
− include/EnumACDataType.h
@@ -1,46 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreGpuProgramParams.h line:1037 - enum EnumACDataType { - /// no data is required - ACDT_NONE, - /// the auto constant requires data of type int - ACDT_INT, - /// the auto constant requires data of type real - ACDT_REAL - };
− include/EnumAbstractNodeType.h
@@ -1,48 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreScriptCompiler.h line:75 - enum EnumAbstractNodeType - { - ANT_UNKNOWN, - ANT_ATOM, - ANT_OBJECT, - ANT_PROPERTY, - ANT_IMPORT, - ANT_VARIABLE_SET, - ANT_VARIABLE_ACCESS - };
− include/EnumAccessMode.h
@@ -1,43 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreDataStream.h line:66 - enum EnumAccessMode - { - READ = 1, - WRITE = 2 - };
− include/EnumAlignment.h
@@ -1,44 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreTextAreaOverlayElement.h line:46 - enum EnumAlignment - { - Left, - Right, - Center - };
− include/EnumAngleUnit.h
@@ -1,43 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreMath.h line:198 - enum EnumAngleUnit - { - AU_DEGREE, - AU_RADIAN - };
+ include/EnumAnimationInterpolationMode.h view
@@ -0,0 +1,33 @@+// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// EnumAnimationInterpolationMode.h + +// + +#include "wchar.h" +#ifndef _DEFINED_HG3D_EnumAnimationInterpolationMode +#define _DEFINED_HG3D_EnumAnimationInterpolationMode + + +enum EnumAnimationInterpolationMode +{ + IM_LINEAR, // + IM_SPLINE // +}; +#endif
+ include/EnumAnimationRotationInterpolationMode.h view
@@ -0,0 +1,33 @@+// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// EnumAnimationRotationInterpolationMode.h + +// + +#include "wchar.h" +#ifndef _DEFINED_HG3D_EnumAnimationRotationInterpolationMode +#define _DEFINED_HG3D_EnumAnimationRotationInterpolationMode + + +enum EnumAnimationRotationInterpolationMode +{ + RIM_LINEAR, // + RIM_SPHERICAL // +}; +#endif
− include/EnumAutoConstantType.h
@@ -1,481 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreGpuProgramParams.h line:590 - enum EnumAutoConstantType - { - /// The current world matrix - ACT_WORLD_MATRIX, - /// The current world matrix, inverted - ACT_INVERSE_WORLD_MATRIX, - /** Provides transpose of world matrix. - Equivalent to RenderMonkey's "WorldTranspose". - */ - ACT_TRANSPOSE_WORLD_MATRIX, - /// The current world matrix, inverted & transposed - ACT_INVERSE_TRANSPOSE_WORLD_MATRIX, - - - /// The current array of world matrices, as a 3x4 matrix, used for blending - ACT_WORLD_MATRIX_ARRAY_3x4, - /// The current array of world matrices, used for blending - ACT_WORLD_MATRIX_ARRAY, - - /// The current view matrix - ACT_VIEW_MATRIX, - /// The current view matrix, inverted - ACT_INVERSE_VIEW_MATRIX, - /** Provides transpose of view matrix. - Equivalent to RenderMonkey's "ViewTranspose". - */ - ACT_TRANSPOSE_VIEW_MATRIX, - /** Provides inverse transpose of view matrix. - Equivalent to RenderMonkey's "ViewInverseTranspose". - */ - ACT_INVERSE_TRANSPOSE_VIEW_MATRIX, - - - /// The current projection matrix - ACT_PROJECTION_MATRIX, - /** Provides inverse of projection matrix. - Equivalent to RenderMonkey's "ProjectionInverse". - */ - ACT_INVERSE_PROJECTION_MATRIX, - /** Provides transpose of projection matrix. - Equivalent to RenderMonkey's "ProjectionTranspose". - */ - ACT_TRANSPOSE_PROJECTION_MATRIX, - /** Provides inverse transpose of projection matrix. - Equivalent to RenderMonkey's "ProjectionInverseTranspose". - */ - ACT_INVERSE_TRANSPOSE_PROJECTION_MATRIX, - - - /// The current view & projection matrices concatenated - ACT_VIEWPROJ_MATRIX, - /** Provides inverse of concatenated view and projection matrices. - Equivalent to RenderMonkey's "ViewProjectionInverse". - */ - ACT_INVERSE_VIEWPROJ_MATRIX, - /** Provides transpose of concatenated view and projection matrices. - Equivalent to RenderMonkey's "ViewProjectionTranspose". - */ - ACT_TRANSPOSE_VIEWPROJ_MATRIX, - /** Provides inverse transpose of concatenated view and projection matrices. - Equivalent to RenderMonkey's "ViewProjectionInverseTranspose". - */ - ACT_INVERSE_TRANSPOSE_VIEWPROJ_MATRIX, - - - /// The current world & view matrices concatenated - ACT_WORLDVIEW_MATRIX, - /// The current world & view matrices concatenated, then inverted - ACT_INVERSE_WORLDVIEW_MATRIX, - /** Provides transpose of concatenated world and view matrices. - Equivalent to RenderMonkey's "WorldViewTranspose". - */ - ACT_TRANSPOSE_WORLDVIEW_MATRIX, - /// The current world & view matrices concatenated, then inverted & transposed - ACT_INVERSE_TRANSPOSE_WORLDVIEW_MATRIX, - /// view matrices. - - - /// The current world, view & projection matrices concatenated - ACT_WORLDVIEWPROJ_MATRIX, - /** Provides inverse of concatenated world, view and projection matrices. - Equivalent to RenderMonkey's "WorldViewProjectionInverse". - */ - ACT_INVERSE_WORLDVIEWPROJ_MATRIX, - /** Provides transpose of concatenated world, view and projection matrices. - Equivalent to RenderMonkey's "WorldViewProjectionTranspose". - */ - ACT_TRANSPOSE_WORLDVIEWPROJ_MATRIX, - /** Provides inverse transpose of concatenated world, view and projection - matrices. Equivalent to RenderMonkey's "WorldViewProjectionInverseTranspose". - */ - ACT_INVERSE_TRANSPOSE_WORLDVIEWPROJ_MATRIX, - - - /// render target related values - /** -1 if requires texture flipping, +1 otherwise. It's useful when you bypassed - projection matrix transform, still able use this value to adjust transformed y position. - */ - ACT_RENDER_TARGET_FLIPPING, - - /** -1 if the winding has been inverted (e.g. for reflections), +1 otherwise. - */ - ACT_VERTEX_WINDING, - - /// Fog colour - ACT_FOG_COLOUR, - /// Fog params: density, linear start, linear end, 1/(end-start) - ACT_FOG_PARAMS, - - - /// Surface ambient colour, as set in Pass::setAmbient - ACT_SURFACE_AMBIENT_COLOUR, - /// Surface diffuse colour, as set in Pass::setDiffuse - ACT_SURFACE_DIFFUSE_COLOUR, - /// Surface specular colour, as set in Pass::setSpecular - ACT_SURFACE_SPECULAR_COLOUR, - /// Surface emissive colour, as set in Pass::setSelfIllumination - ACT_SURFACE_EMISSIVE_COLOUR, - /// Surface shininess, as set in Pass::setShininess - ACT_SURFACE_SHININESS, - - - /// The number of active light sources (better than gl_MaxLights) - ACT_LIGHT_COUNT, - - - /// The ambient light colour set in the scene - ACT_AMBIENT_LIGHT_COLOUR, - - /// Light diffuse colour (index determined by setAutoConstant call) - ACT_LIGHT_DIFFUSE_COLOUR, - /// Light specular colour (index determined by setAutoConstant call) - ACT_LIGHT_SPECULAR_COLOUR, - /// Light attenuation parameters, Vector4(range, constant, linear, quadric) - ACT_LIGHT_ATTENUATION, - /** Spotlight parameters, Vector4(innerFactor, outerFactor, falloff, isSpot) - innerFactor and outerFactor are cos(angle/2) - The isSpot parameter is 0.0f for non-spotlights, 1.0f for spotlights. - Also for non-spotlights the inner and outer factors are 1 and nearly 1 respectively - */ - ACT_SPOTLIGHT_PARAMS, - /// A light position in world space (index determined by setAutoConstant call) - ACT_LIGHT_POSITION, - /// A light position in object space (index determined by setAutoConstant call) - ACT_LIGHT_POSITION_OBJECT_SPACE, - /// A light position in view space (index determined by setAutoConstant call) - ACT_LIGHT_POSITION_VIEW_SPACE, - /// A light direction in world space (index determined by setAutoConstant call) - ACT_LIGHT_DIRECTION, - /// A light direction in object space (index determined by setAutoConstant call) - ACT_LIGHT_DIRECTION_OBJECT_SPACE, - /// A light direction in view space (index determined by setAutoConstant call) - ACT_LIGHT_DIRECTION_VIEW_SPACE, - /** The distance of the light from the center of the object - a useful approximation as an alternative to per-vertex distance - calculations. - */ - ACT_LIGHT_DISTANCE_OBJECT_SPACE, - /** Light power level, a single scalar as set in Light::setPowerScale (index determined by setAutoConstant call) */ - ACT_LIGHT_POWER_SCALE, - /// Light diffuse colour pre-scaled by Light::setPowerScale (index determined by setAutoConstant call) - ACT_LIGHT_DIFFUSE_COLOUR_POWER_SCALED, - /// Light specular colour pre-scaled by Light::setPowerScale (index determined by setAutoConstant call) - ACT_LIGHT_SPECULAR_COLOUR_POWER_SCALED, - /// Array of light diffuse colours (count set by extra param) - ACT_LIGHT_DIFFUSE_COLOUR_ARRAY, - /// Array of light specular colours (count set by extra param) - ACT_LIGHT_SPECULAR_COLOUR_ARRAY, - /// Array of light diffuse colours scaled by light power (count set by extra param) - ACT_LIGHT_DIFFUSE_COLOUR_POWER_SCALED_ARRAY, - /// Array of light specular colours scaled by light power (count set by extra param) - ACT_LIGHT_SPECULAR_COLOUR_POWER_SCALED_ARRAY, - /// Array of light attenuation parameters, Vector4(range, constant, linear, quadric) (count set by extra param) - ACT_LIGHT_ATTENUATION_ARRAY, - /// Array of light positions in world space (count set by extra param) - ACT_LIGHT_POSITION_ARRAY, - /// Array of light positions in object space (count set by extra param) - ACT_LIGHT_POSITION_OBJECT_SPACE_ARRAY, - /// Array of light positions in view space (count set by extra param) - ACT_LIGHT_POSITION_VIEW_SPACE_ARRAY, - /// Array of light directions in world space (count set by extra param) - ACT_LIGHT_DIRECTION_ARRAY, - /// Array of light directions in object space (count set by extra param) - ACT_LIGHT_DIRECTION_OBJECT_SPACE_ARRAY, - /// Array of light directions in view space (count set by extra param) - ACT_LIGHT_DIRECTION_VIEW_SPACE_ARRAY, - /** Array of distances of the lights from the center of the object - a useful approximation as an alternative to per-vertex distance - calculations. (count set by extra param) - */ - ACT_LIGHT_DISTANCE_OBJECT_SPACE_ARRAY, - /** Array of light power levels, a single scalar as set in Light::setPowerScale - (count set by extra param) - */ - ACT_LIGHT_POWER_SCALE_ARRAY, - /** Spotlight parameters array of Vector4(innerFactor, outerFactor, falloff, isSpot) - innerFactor and outerFactor are cos(angle/2) - The isSpot parameter is 0.0f for non-spotlights, 1.0f for spotlights. - Also for non-spotlights the inner and outer factors are 1 and nearly 1 respectively. - (count set by extra param) - */ - ACT_SPOTLIGHT_PARAMS_ARRAY, - - /** The derived ambient light colour, with 'r', 'g', 'b' components filled with - product of surface ambient colour and ambient light colour, respectively, - and 'a' component filled with surface ambient alpha component. - */ - ACT_DERIVED_AMBIENT_LIGHT_COLOUR, - /** The derived scene colour, with 'r', 'g' and 'b' components filled with sum - of derived ambient light colour and surface emissive colour, respectively, - and 'a' component filled with surface diffuse alpha component. - */ - ACT_DERIVED_SCENE_COLOUR, - - /** The derived light diffuse colour (index determined by setAutoConstant call), - with 'r', 'g' and 'b' components filled with product of surface diffuse colour, - light power scale and light diffuse colour, respectively, and 'a' component filled with surface - diffuse alpha component. - */ - ACT_DERIVED_LIGHT_DIFFUSE_COLOUR, - /** The derived light specular colour (index determined by setAutoConstant call), - with 'r', 'g' and 'b' components filled with product of surface specular colour - and light specular colour, respectively, and 'a' component filled with surface - specular alpha component. - */ - ACT_DERIVED_LIGHT_SPECULAR_COLOUR, - - /// Array of derived light diffuse colours (count set by extra param) - ACT_DERIVED_LIGHT_DIFFUSE_COLOUR_ARRAY, - /// Array of derived light specular colours (count set by extra param) - ACT_DERIVED_LIGHT_SPECULAR_COLOUR_ARRAY, - /** The absolute light number of a local light index. Each pass may have - a number of lights passed to it, and each of these lights will have - an index in the overall light list, which will differ from the local - light index due to factors like setStartLight and setIteratePerLight. - This binding provides the global light index for a local index. - */ - ACT_LIGHT_NUMBER, - /// Returns (int) 1 if the given light casts shadows, 0 otherwise (index set in extra param) - ACT_LIGHT_CASTS_SHADOWS, - - - /** The distance a shadow volume should be extruded when using - finite extrusion programs. - */ - ACT_SHADOW_EXTRUSION_DISTANCE, - /// The current camera's position in world space - ACT_CAMERA_POSITION, - /// The current camera's position in object space - ACT_CAMERA_POSITION_OBJECT_SPACE, - /// The view/projection matrix of the assigned texture projection frustum - ACT_TEXTURE_VIEWPROJ_MATRIX, - /// Array of view/projection matrices of the first n texture projection frustums - ACT_TEXTURE_VIEWPROJ_MATRIX_ARRAY, - /** The view/projection matrix of the assigned texture projection frustum, - combined with the current world matrix - */ - ACT_TEXTURE_WORLDVIEWPROJ_MATRIX, - /// Array of world/view/projection matrices of the first n texture projection frustums - ACT_TEXTURE_WORLDVIEWPROJ_MATRIX_ARRAY, - /// The view/projection matrix of a given spotlight - ACT_SPOTLIGHT_VIEWPROJ_MATRIX, - /// Array of view/projection matrix of a given spotlight - ACT_SPOTLIGHT_VIEWPROJ_MATRIX_ARRAY, - /** The view/projection matrix of a given spotlight projection frustum, - combined with the current world matrix - */ - ACT_SPOTLIGHT_WORLDVIEWPROJ_MATRIX, - /// A custom parameter which will come from the renderable, using 'data' as the identifier - ACT_CUSTOM, - /** provides current elapsed time - */ - ACT_TIME, - /** Single float value, which repeats itself based on given as - parameter "cycle time". Equivalent to RenderMonkey's "Time0_X". - */ - ACT_TIME_0_X, - /// Cosine of "Time0_X". Equivalent to RenderMonkey's "CosTime0_X". - ACT_COSTIME_0_X, - /// Sine of "Time0_X". Equivalent to RenderMonkey's "SinTime0_X". - ACT_SINTIME_0_X, - /// Tangent of "Time0_X". Equivalent to RenderMonkey's "TanTime0_X". - ACT_TANTIME_0_X, - /** Vector of "Time0_X", "SinTime0_X", "CosTime0_X", - "TanTime0_X". Equivalent to RenderMonkey's "Time0_X_Packed". - */ - ACT_TIME_0_X_PACKED, - /** Single float value, which represents scaled time value [0..1], - which repeats itself based on given as parameter "cycle time". - Equivalent to RenderMonkey's "Time0_1". - */ - ACT_TIME_0_1, - /// Cosine of "Time0_1". Equivalent to RenderMonkey's "CosTime0_1". - ACT_COSTIME_0_1, - /// Sine of "Time0_1". Equivalent to RenderMonkey's "SinTime0_1". - ACT_SINTIME_0_1, - /// Tangent of "Time0_1". Equivalent to RenderMonkey's "TanTime0_1". - ACT_TANTIME_0_1, - /** Vector of "Time0_1", "SinTime0_1", "CosTime0_1", - "TanTime0_1". Equivalent to RenderMonkey's "Time0_1_Packed". - */ - ACT_TIME_0_1_PACKED, - /** Single float value, which represents scaled time value [0..2*Pi], - which repeats itself based on given as parameter "cycle time". - Equivalent to RenderMonkey's "Time0_2PI". - */ - ACT_TIME_0_2PI, - /// Cosine of "Time0_2PI". Equivalent to RenderMonkey's "CosTime0_2PI". - ACT_COSTIME_0_2PI, - /// Sine of "Time0_2PI". Equivalent to RenderMonkey's "SinTime0_2PI". - ACT_SINTIME_0_2PI, - /// Tangent of "Time0_2PI". Equivalent to RenderMonkey's "TanTime0_2PI". - ACT_TANTIME_0_2PI, - /** Vector of "Time0_2PI", "SinTime0_2PI", "CosTime0_2PI", - "TanTime0_2PI". Equivalent to RenderMonkey's "Time0_2PI_Packed". - */ - ACT_TIME_0_2PI_PACKED, - /// provides the scaled frame time, returned as a floating point value. - ACT_FRAME_TIME, - /// provides the calculated frames per second, returned as a floating point value. - ACT_FPS, - /// viewport-related values - /** Current viewport width (in pixels) as floating point value. - Equivalent to RenderMonkey's "ViewportWidth". - */ - ACT_VIEWPORT_WIDTH, - /** Current viewport height (in pixels) as floating point value. - Equivalent to RenderMonkey's "ViewportHeight". - */ - ACT_VIEWPORT_HEIGHT, - /** This variable represents 1.0/ViewportWidth. - Equivalent to RenderMonkey's "ViewportWidthInverse". - */ - ACT_INVERSE_VIEWPORT_WIDTH, - /** This variable represents 1.0/ViewportHeight. - Equivalent to RenderMonkey's "ViewportHeightInverse". - */ - ACT_INVERSE_VIEWPORT_HEIGHT, - /** Packed of "ViewportWidth", "ViewportHeight", "ViewportWidthInverse", - "ViewportHeightInverse". - */ - ACT_VIEWPORT_SIZE, - - /// view parameters - /** This variable provides the view direction vector (world space). - Equivalent to RenderMonkey's "ViewDirection". - */ - ACT_VIEW_DIRECTION, - /** This variable provides the view side vector (world space). - Equivalent to RenderMonkey's "ViewSideVector". - */ - ACT_VIEW_SIDE_VECTOR, - /** This variable provides the view up vector (world space). - Equivalent to RenderMonkey's "ViewUpVector". - */ - ACT_VIEW_UP_VECTOR, - /** This variable provides the field of view as a floating point value. - Equivalent to RenderMonkey's "FOV". - */ - ACT_FOV, - /** This variable provides the near clip distance as a floating point value. - Equivalent to RenderMonkey's "NearClipPlane". - */ - ACT_NEAR_CLIP_DISTANCE, - /** This variable provides the far clip distance as a floating point value. - Equivalent to RenderMonkey's "FarClipPlane". - */ - ACT_FAR_CLIP_DISTANCE, - - /** provides the pass index number within the technique - of the active materil. - */ - ACT_PASS_NUMBER, - - /** provides the current iteration number of the pass. The iteration - number is the number of times the current render operation has - been drawn for the active pass. - */ - ACT_PASS_ITERATION_NUMBER, - - - /** Provides a parametric animation value [0..1], only available - where the renderable specifically implements it. - */ - ACT_ANIMATION_PARAMETRIC, - - /** Provides the texel offsets required by this rendersystem to map - texels to pixels. Packed as - float4(absoluteHorizontalOffset, absoluteVerticalOffset, - horizontalOffset / viewportWidth, verticalOffset / viewportHeight) - */ - ACT_TEXEL_OFFSETS, - - /** Provides information about the depth range of the scene as viewed - from the current camera. - Passed as float4(minDepth, maxDepth, depthRange, 1 / depthRange) - */ - ACT_SCENE_DEPTH_RANGE, - - /** Provides information about the depth range of the scene as viewed - from a given shadow camera. Requires an index parameter which maps - to a light index relative to the current light list. - Passed as float4(minDepth, maxDepth, depthRange, 1 / depthRange) - */ - ACT_SHADOW_SCENE_DEPTH_RANGE, - - /** Provides the fixed shadow colour as configured via SceneManager::setShadowColour; - useful for integrated modulative shadows. - */ - ACT_SHADOW_COLOUR, - /** Provides texture size of the texture unit (index determined by setAutoConstant - call). Packed as float4(width, height, depth, 1) - */ - ACT_TEXTURE_SIZE, - /** Provides inverse texture size of the texture unit (index determined by setAutoConstant - call). Packed as float4(1 / width, 1 / height, 1 / depth, 1) - */ - ACT_INVERSE_TEXTURE_SIZE, - /** Provides packed texture size of the texture unit (index determined by setAutoConstant - call). Packed as float4(width, height, 1 / width, 1 / height) - */ - ACT_PACKED_TEXTURE_SIZE, - - /** Provides the current transform matrix of the texture unit (index determined by setAutoConstant - call), as seen by the fixed-function pipeline. - */ - ACT_TEXTURE_MATRIX, - - /** Provides the position of the LOD camera in world space, allowing you - to perform separate LOD calculations in shaders independent of the rendering - camera. If there is no separate LOD camera then this is the real camera - position. See Camera::setLodCamera. - */ - ACT_LOD_CAMERA_POSITION, - /** Provides the position of the LOD camera in object space, allowing you - to perform separate LOD calculations in shaders independent of the rendering - camera. If there is no separate LOD camera then this is the real camera - position. See Camera::setLodCamera. - */ - ACT_LOD_CAMERA_POSITION_OBJECT_SPACE, - /** Binds custom per-light constants to the shaders. */ - ACT_LIGHT_CUSTOM - };
+ include/EnumAxisAlignedBoxCorner.h view
@@ -0,0 +1,39 @@+// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// EnumAxisAlignedBoxCorner.h + +// + +#include "wchar.h" +#ifndef _DEFINED_HG3D_EnumAxisAlignedBoxCorner +#define _DEFINED_HG3D_EnumAxisAlignedBoxCorner + + +enum EnumAxisAlignedBoxCorner +{ + CE_FAR_LEFT_BOTTOM = 0, // + CE_FAR_LEFT_TOP = 1, // + CE_FAR_RIGHT_TOP = 2, // + CE_FAR_RIGHT_BOTTOM = 3, // + CE_NEAR_RIGHT_BOTTOM = 7, // + CE_NEAR_LEFT_BOTTOM = 6, // + CE_NEAR_LEFT_TOP = 5, // + CE_NEAR_RIGHT_TOP = 4 // +}; +#endif
+ include/EnumAxisAlignedBoxExtent.h view
@@ -0,0 +1,34 @@+// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// EnumAxisAlignedBoxExtent.h + +// + +#include "wchar.h" +#ifndef _DEFINED_HG3D_EnumAxisAlignedBoxExtent +#define _DEFINED_HG3D_EnumAxisAlignedBoxExtent + + +enum EnumAxisAlignedBoxExtent +{ + EXTENT_NULL, // + EXTENT_FINITE, // + EXTENT_INFINITE // +}; +#endif
+ include/EnumBillboardChainTexCoordDirection.h view
@@ -0,0 +1,33 @@+// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// EnumBillboardChainTexCoordDirection.h + +// + +#include "wchar.h" +#ifndef _DEFINED_HG3D_EnumBillboardChainTexCoordDirection +#define _DEFINED_HG3D_EnumBillboardChainTexCoordDirection + + +enum EnumBillboardChainTexCoordDirection +{ + TCD_U, // Tex coord in elements is treated as the 'u' texture coordinate. + TCD_V // Tex coord in elements is treated as the 'v' texture coordinate. +}; +#endif
include/EnumBillboardOrigin.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,35 +15,26 @@ // 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: "Dep-OgreSDK/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" - +#ifndef _DEFINED_HG3D_EnumBillboardOrigin +#define _DEFINED_HG3D_EnumBillboardOrigin -// enum from Dep-OgreSDK/include/OGRE\OgreBillboardSet.h line:53 - enum EnumBillboardOrigin - { - BBO_TOP_LEFT, - BBO_TOP_CENTER, - BBO_TOP_RIGHT, - BBO_CENTER_LEFT, - BBO_CENTER, - BBO_CENTER_RIGHT, - BBO_BOTTOM_LEFT, - BBO_BOTTOM_CENTER, - BBO_BOTTOM_RIGHT - }; +enum EnumBillboardOrigin +{ + BBO_TOP_LEFT, // + BBO_TOP_CENTER, // + BBO_TOP_RIGHT, // + BBO_CENTER_LEFT, // + BBO_CENTER, // + BBO_CENTER_RIGHT, // + BBO_BOTTOM_LEFT, // + BBO_BOTTOM_CENTER, // + BBO_BOTTOM_RIGHT // +}; +#endif
include/EnumBillboardRotationType.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,30 +15,19 @@ // 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: "Dep-OgreSDK/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" - +#ifndef _DEFINED_HG3D_EnumBillboardRotationType +#define _DEFINED_HG3D_EnumBillboardRotationType -// enum from Dep-OgreSDK/include/OGRE\OgreBillboardSet.h line:66 - enum EnumBillboardRotationType - { - /// Rotate the billboard's vertices around their facing direction - BBR_VERTEX, - /// Rotate the billboard's texture coordinates - BBR_TEXCOORD - }; +enum EnumBillboardRotationType +{ + BBR_VERTEX, // Rotate the billboard's vertices around their facing direction. + BBR_TEXCOORD // Rotate the billboard's texture coordinates. +}; +#endif
include/EnumBillboardType.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,36 +15,22 @@ // 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: "Dep-OgreSDK/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" - +#ifndef _DEFINED_HG3D_EnumBillboardType +#define _DEFINED_HG3D_EnumBillboardType -// enum from Dep-OgreSDK/include/OGRE\OgreBillboardSet.h line:74 - enum EnumBillboardType - { - /// Standard point billboard (default), always faces the camera completely and is always upright - BBT_POINT, - /// Billboards are oriented around a shared direction vector (used as Y axis) and only rotate around this to face the camera - BBT_ORIENTED_COMMON, - /// Billboards are oriented around their own direction vector (their own Y axis) and only rotate around this to face the camera - BBT_ORIENTED_SELF, - /// Billboards are perpendicular to a shared direction vector (used as Z axis, the facing direction) and X, Y axis are determined by a shared up-vertor - BBT_PERPENDICULAR_COMMON, - /// Billboards are perpendicular to their own direction vector (their own Z axis, the facing direction) and X, Y axis are determined by a shared up-vertor - BBT_PERPENDICULAR_SELF - }; +enum EnumBillboardType +{ + BBT_POINT, // Standard point billboard (default), always faces the camera completely and is always upright. + BBT_ORIENTED_COMMON, // Billboards are oriented around a shared direction vector (used as Y axis) and only rotate around this to face the camera. + BBT_ORIENTED_SELF, // Billboards are oriented around their own direction vector (their own Y axis) and only rotate around this to face the camera. + BBT_PERPENDICULAR_COMMON, // Billboards are perpendicular to a shared direction vector (used as Z axis, the facing direction) and X, Y axis are determined by a shared up-vertor. + BBT_PERPENDICULAR_SELF // Billboards are perpendicular to their own direction vector (their own Z axis, the facing direction) and X, Y axis are determined by a shared up-vertor. +}; +#endif
− include/EnumBindingType.h
@@ -1,47 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreTextureUnitState.h line:410 - enum EnumBindingType - { - /** Regular fragment processing unit - the default. */ - BT_FRAGMENT = 0, - /** Vertex processing unit - indicates this unit will be used for - a vertex texture fetch. - */ - BT_VERTEX = 1 - };
− include/EnumBorderCellIndex.h
@@ -1,48 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreBorderPanelOverlayElement.h line:288 - enum EnumBorderCellIndex { - BCELL_TOP_LEFT = 0, - BCELL_TOP = 1, - BCELL_TOP_RIGHT = 2, - BCELL_LEFT = 3, - BCELL_RIGHT = 4, - BCELL_BOTTOM_LEFT = 5, - BCELL_BOTTOM = 6, - BCELL_BOTTOM_RIGHT = 7 - };
− include/EnumBoxPlane.h
@@ -1,47 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreSceneManager.h line:582 - enum EnumBoxPlane - { - BP_FRONT = 0, - BP_BACK = 1, - BP_LEFT = 2, - BP_RIGHT = 3, - BP_UP = 4, - BP_DOWN = 5 - };
− include/EnumBufferLicenseType.h
@@ -1,45 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreHardwareBufferManager.h line:153 - enum EnumBufferLicenseType - { - /// Licensee will only release buffer when it says so - BLT_MANUAL_RELEASE, - /// Licensee can have license revoked - BLT_AUTOMATIC_RELEASE - };
− include/EnumBufferType.h
@@ -1,44 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreUTFString.h line:970 - enum EnumBufferType { - bt_none, - bt_string, - bt_wstring, - bt_utf32string - };
− include/EnumBuiltinHashFunction.h
@@ -1,48 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - - - -// enum from Dep-OgreSDK/include/OGRE\OgrePass.h line:1605 - enum EnumBuiltinHashFunction - { - /** Try to minimise the number of texture changes. */ - MIN_TEXTURE_CHANGE, - /** Try to minimise the number of GPU program changes. - @note Only really useful if you use GPU programs for all of your - materials. - */ - MIN_GPU_PROGRAM_CHANGE - };
− include/EnumCacheType.h
@@ -1,41 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreVertexIndexData.h line:285 - enum EnumCacheType { - FIFO, LRU - };
− include/EnumCapabilitiesCategory.h
@@ -1,47 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreRenderSystemCapabilities.h line:62 - enum EnumCapabilitiesCategory - { - CAPS_CATEGORY_COMMON = 0, - CAPS_CATEGORY_COMMON_2 = 1, - CAPS_CATEGORY_D3D9 = 2, - CAPS_CATEGORY_GL = 3, - /// Placeholder for max value - CAPS_CATEGORY_COUNT = 4 - };
− include/EnumCapabilityKeywordType.h
@@ -1,40 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreRenderSystemCapabilitiesSerializer.h line:68 - enum EnumCapabilityKeywordType {UNDEFINED_CAPABILITY_TYPE = 0, SET_STRING_METHOD, SET_INT_METHOD, SET_BOOL_METHOD, SET_REAL_METHOD, - SET_CAPABILITY_ENUM_BOOL, ADD_SHADER_PROFILE_STRING};
− include/EnumClipResult.h
@@ -1,47 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreCommon.h line:714 - enum EnumClipResult - { - /// Nothing was clipped - CLIPPED_NONE = 0, - /// Partially clipped - CLIPPED_SOME = 1, - /// Everything was clipped away - CLIPPED_ALL = 2 - };
− include/EnumCompareFunction.h
@@ -1,49 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreCommon.h line:65 - enum EnumCompareFunction - { - CMPF_ALWAYS_FAIL, - CMPF_ALWAYS_PASS, - CMPF_LESS, - CMPF_LESS_EQUAL, - CMPF_EQUAL, - CMPF_NOT_EQUAL, - CMPF_GREATER_EQUAL, - CMPF_GREATER - };
− include/EnumConcreteNodeType.h
@@ -1,49 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreScriptCompiler.h line:48 - enum EnumConcreteNodeType - { - CNT_VARIABLE, - CNT_VARIABLE_ASSIGN, - CNT_WORD, - CNT_IMPORT, - CNT_QUOTE, - CNT_LBRACE, - CNT_RBRACE, - CNT_COLON - };
− include/EnumContentType.h
@@ -1,47 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreTextureUnitState.h line:421 - enum EnumContentType - { - /// Normal texture identified by name - CONTENT_NAMED = 0, - /// A shadow texture, automatically bound by engine - CONTENT_SHADOW = 1, - /// A compositor texture, automatically linked to active viewport's chain - CONTENT_COMPOSITOR = 2 - };
− include/EnumCpuFeatures.h
@@ -1,60 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgrePlatformInformation.h line:146 - enum EnumCpuFeatures - { -#if OGRE_CPU == OGRE_CPU_X86 - CPU_FEATURE_SSE = 1 << 0, - CPU_FEATURE_SSE2 = 1 << 1, - CPU_FEATURE_SSE3 = 1 << 2, - CPU_FEATURE_MMX = 1 << 3, - CPU_FEATURE_MMXEXT = 1 << 4, - CPU_FEATURE_3DNOW = 1 << 5, - CPU_FEATURE_3DNOWEXT = 1 << 6, - CPU_FEATURE_CMOV = 1 << 7, - CPU_FEATURE_TSC = 1 << 8, - CPU_FEATURE_FPU = 1 << 9, - CPU_FEATURE_PRO = 1 << 10, - CPU_FEATURE_HTT = 1 << 11, -#elif OGRE_CPU == OGRE_CPU_ARM - CPU_FEATURE_VFP = 1 << 12, - CPU_FEATURE_NEON = 1 << 13, -#endif - - CPU_FEATURE_NONE = 0 - };
− include/EnumCullingMode.h
@@ -1,47 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreCommon.h line:136 - enum EnumCullingMode - { - /// Hardware never culls triangles and renders everything it receives. - CULL_NONE = 1, - /// Hardware culls triangles whose vertices are listed clockwise in the view (default). - CULL_CLOCKWISE = 2, - /// Hardware culls triangles whose vertices are listed anticlockwise in the view. - CULL_ANTICLOCKWISE = 3 - };
+ include/EnumDataStreamAccessMode.h view
@@ -0,0 +1,33 @@+// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// EnumDataStreamAccessMode.h + +// + +#include "wchar.h" +#ifndef _DEFINED_HG3D_EnumDataStreamAccessMode +#define _DEFINED_HG3D_EnumDataStreamAccessMode + + +enum EnumDataStreamAccessMode +{ + AM_READ = 1, // + AM_WRITE = 2 // +}; +#endif
− include/EnumDisplayMode.h
@@ -1,45 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreProfiler.h line:229 - enum EnumDisplayMode - { - /// Display % frame usage on the overlay - DISPLAY_PERCENTAGE, - /// Display milliseconds on the overlay - DISPLAY_MILLISECONDS - };
− include/EnumElementType.h
@@ -1,42 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreGpuProgramParams.h line:1048 - enum EnumElementType { - ET_INT, - ET_REAL - };
− include/EnumEndian.h
@@ -1,47 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreStreamSerialiser.h line:70 - enum EnumEndian - { - /// Automatically determine endianness - ENDIAN_AUTO, - /// Use big endian (0x1000 is serialised as 0x10 0x00) - ENDIAN_BIG, - /// Use little endian (0x1000 is serialised as 0x00 0x10) - ENDIAN_LITTLE - };
+ include/EnumEntityVertexDataBindChoice.h view
@@ -0,0 +1,35 @@+// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// EnumEntityVertexDataBindChoice.h + +// + +#include "wchar.h" +#ifndef _DEFINED_HG3D_EnumEntityVertexDataBindChoice +#define _DEFINED_HG3D_EnumEntityVertexDataBindChoice + + +enum EnumEntityVertexDataBindChoice +{ + BIND_ORIGINAL, // + BIND_SOFTWARE_SKELETAL, // + BIND_SOFTWARE_MORPH, // + BIND_HARDWARE_MORPH // +}; +#endif
− include/EnumEnvMapType.h
@@ -1,49 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreTextureUnitState.h line:94 - enum EnumEnvMapType - { - /// Envmap based on vector from camera to vertex position, good for planar geometry - ENV_PLANAR, - /// Envmap based on dot of vector from camera to vertex and vertex normal, good for curves - ENV_CURVED, - /// Envmap intended to supply reflection vectors for cube mapping - ENV_REFLECTION, - /// Envmap intended to supply normal vectors for cube mapping - ENV_NORMAL - };
+ include/EnumExceptionCode.h view
@@ -0,0 +1,41 @@+// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// EnumExceptionCode.h + +// + +#include "wchar.h" +#ifndef _DEFINED_HG3D_EnumExceptionCode +#define _DEFINED_HG3D_EnumExceptionCode + + +enum EnumExceptionCode +{ + ERR_CANNOT_WRITE_TO_FILE, // + ERR_INVALID_STATE, // + ERR_INVALIDPARAMS, // + ERR_RENDERINGAPI_ERROR, // + ERR_DUPLICATE_ITEM, // + ERR_ITEM_NOT_FOUND, // + ERR_FILE_NOT_FOUND, // + ERR_INTERNAL_ERROR, // + ERR_RT_ASSERTION_FAILED, // + ERR_NOT_IMPLEMENTED // +}; +#endif
− include/EnumExceptionCodes.h
@@ -1,50 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreException.h line:108 - enum EnumExceptionCodes { - ERR_CANNOT_WRITE_TO_FILE, - ERR_INVALID_STATE, - ERR_INVALIDPARAMS, - ERR_RENDERINGAPI_ERROR, - ERR_DUPLICATE_ITEM, - ERR_ITEM_NOT_FOUND, - ERR_FILE_NOT_FOUND, - ERR_INTERNAL_ERROR, - ERR_RT_ASSERTION_FAILED, - ERR_NOT_IMPLEMENTED - };
− include/EnumExtent.h
@@ -1,44 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreAxisAlignedBox.h line:57 - enum EnumExtent - { - EXTENT_NULL, - EXTENT_FINITE, - EXTENT_INFINITE - };
− include/EnumFaceGroupType.h
@@ -1,43 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreStaticFaceGroup.h line:45 - enum EnumFaceGroupType { - FGT_FACE_LIST, - FGT_PATCH, - FGT_UNKNOWN - };
− include/EnumFilter.h
@@ -1,47 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreImage.h line:450 - enum EnumFilter - { - FILTER_NEAREST, - FILTER_LINEAR, - FILTER_BILINEAR, - FILTER_BOX, - FILTER_TRIANGLE, - FILTER_BICUBIC - };
− include/EnumFilterOptions.h
@@ -1,49 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreCommon.h line:101 - enum EnumFilterOptions - { - /// No filtering, used for FILT_MIP to turn off mipmapping - FO_NONE, - /// Use the closest pixel - FO_POINT, - /// Average of a 2x2 pixel area, denotes bilinear for MIN and MAG, trilinear for MIP - FO_LINEAR, - /// Similar to FO_LINEAR, but compensates for the angle of the texture plane - FO_ANISOTROPIC - };
− include/EnumFilterType.h
@@ -1,47 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreCommon.h line:91 - enum EnumFilterType - { - /// The filter used when shrinking a texture - FT_MIN, - /// The filter used when magnifying a texture - FT_MAG, - /// The filter used when determining the mipmap - FT_MIP - };
− include/EnumFogMode.h
@@ -1,49 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreCommon.h line:122 - enum EnumFogMode - { - /// No fog. Duh. - FOG_NONE, - /// Fog density increases exponentially from the camera (fog = 1/e^(distance * density)) - FOG_EXP, - /// Fog density increases at the square of FOG_EXP, i.e. even quicker (fog = 1/e^(distance * density)^2) - FOG_EXP2, - /// Fog density increases linearly between the start and end distances - FOG_LINEAR - };
− include/EnumFontType.h
@@ -1,45 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreFont.h line:45 - enum EnumFontType - { - /// Generated from a truetype (.ttf) font - FT_TRUETYPE = 1, - /// Loaded from an image created by an artist - FT_IMAGE = 2 - };
− include/EnumFrameBuffer.h
@@ -1,44 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreRenderTarget.h line:90 - enum EnumFrameBuffer - { - FB_FRONT, - FB_BACK, - FB_AUTO - };
− include/EnumFrameBufferType.h
@@ -1,43 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreCommon.h line:296 - enum EnumFrameBufferType { - FBT_COLOUR = 0x1, - FBT_DEPTH = 0x2, - FBT_STENCIL = 0x4 - };
− include/EnumFrameEventTimeType.h
@@ -1,45 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreRoot.h line:175 - enum EnumFrameEventTimeType { - FETT_ANY = 0, - FETT_STARTED = 1, - FETT_QUEUED = 2, - FETT_ENDED = 3, - FETT_COUNT = 4 - };
include/EnumFrustumPlane.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,32 +15,23 @@ // 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: "Dep-OgreSDK/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" - +#ifndef _DEFINED_HG3D_EnumFrustumPlane +#define _DEFINED_HG3D_EnumFrustumPlane -// enum from Dep-OgreSDK/include/OGRE\OgreFrustum.h line:70 - enum EnumFrustumPlane - { - FRUSTUM_PLANE_NEAR = 0, - FRUSTUM_PLANE_FAR = 1, - FRUSTUM_PLANE_LEFT = 2, - FRUSTUM_PLANE_RIGHT = 3, - FRUSTUM_PLANE_TOP = 4, - FRUSTUM_PLANE_BOTTOM = 5 - }; +enum EnumFrustumPlane +{ + FRUSTUM_PLANE_NEAR = 0, // + FRUSTUM_PLANE_FAR = 1, // + FRUSTUM_PLANE_LEFT = 2, // + FRUSTUM_PLANE_RIGHT = 3, // + FRUSTUM_PLANE_TOP = 4, // + FRUSTUM_PLANE_BOTTOM = 5 // +}; +#endif
− include/EnumGPUVendor.h
@@ -1,55 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreRenderSystemCapabilities.h line:211 - enum EnumGPUVendor - { - GPU_UNKNOWN = 0, - GPU_NVIDIA = 1, - GPU_ATI = 2, - GPU_INTEL = 3, - GPU_S3 = 4, - GPU_MATROX = 5, - GPU_3DLABS = 6, - GPU_SIS = 7, - GPU_IMAGINATION_TECHNOLOGIES = 8, - GPU_APPLE = 9, // Apple Software Renderer - GPU_NOKIA = 10, - - /// placeholder - GPU_VENDOR_COUNT = 11 - };
− include/EnumGpuConstantType.h
@@ -1,65 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreGpuProgramParams.h line:52 - enum EnumGpuConstantType - { - GCT_FLOAT1 = 1, - GCT_FLOAT2 = 2, - GCT_FLOAT3 = 3, - GCT_FLOAT4 = 4, - GCT_SAMPLER1D = 5, - GCT_SAMPLER2D = 6, - GCT_SAMPLER3D = 7, - GCT_SAMPLERCUBE = 8, - GCT_SAMPLER1DSHADOW = 9, - GCT_SAMPLER2DSHADOW = 10, - GCT_MATRIX_2X2 = 11, - GCT_MATRIX_2X3 = 12, - GCT_MATRIX_2X4 = 13, - GCT_MATRIX_3X2 = 14, - GCT_MATRIX_3X3 = 15, - GCT_MATRIX_3X4 = 16, - GCT_MATRIX_4X2 = 17, - GCT_MATRIX_4X3 = 18, - GCT_MATRIX_4X4 = 19, - GCT_INT1 = 20, - GCT_INT2 = 21, - GCT_INT3 = 22, - GCT_INT4 = 23, - GCT_UNKNOWN = 99 - };
− include/EnumGpuParamVariability.h
@@ -1,54 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreGpuProgramParams.h line:83 - enum EnumGpuParamVariability - { - /// No variation except by manual setting - the default - GPV_GLOBAL = 1, - /// Varies per object (based on an auto param usually), but not per light setup - GPV_PER_OBJECT = 2, - /// Varies with light setup - GPV_LIGHTS = 4, - /// Varies with pass iteration number - GPV_PASS_ITERATION_NUMBER = 8, - - - /// Full mask (16-bit) - GPV_ALL = 0xFFFF - - };
include/EnumGpuProgramType.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,29 +15,20 @@ // 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: "Dep-OgreSDK/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" - +#ifndef _DEFINED_HG3D_EnumGpuProgramType +#define _DEFINED_HG3D_EnumGpuProgramType -// enum from Dep-OgreSDK/include/OGRE\OgreGpuProgram.h line:49 - enum EnumGpuProgramType - { - GPT_VERTEX_PROGRAM, - GPT_FRAGMENT_PROGRAM, - GPT_GEOMETRY_PROGRAM - }; +enum EnumGpuProgramType +{ + GPT_VERTEX_PROGRAM, // + GPT_FRAGMENT_PROGRAM, // + GPT_GEOMETRY_PROGRAM // +}; +#endif
− include/EnumGuiHorizontalAlignment.h
@@ -1,44 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreOverlayElement.h line:72 - enum EnumGuiHorizontalAlignment - { - GHA_LEFT, - GHA_CENTER, - GHA_RIGHT - };
− include/EnumGuiMetricsMode.h
@@ -1,47 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreOverlayElement.h line:59 - enum EnumGuiMetricsMode - { - /// 'left', 'top', 'height' and 'width' are parametrics from 0.0 to 1.0 - GMM_RELATIVE, - /// Positions & sizes are in absolute pixels - GMM_PIXELS, - /// Positions & sizes are in virtual pixels - GMM_RELATIVE_ASPECT_ADJUSTED - };
− include/EnumGuiVerticalAlignment.h
@@ -1,44 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreOverlayElement.h line:81 - enum EnumGuiVerticalAlignment - { - GVA_TOP, - GVA_CENTER, - GVA_BOTTOM - };
− include/EnumIlluminationPassesState.h
@@ -1,44 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreTechnique.h line:57 - enum EnumIlluminationPassesState - { - IPS_COMPILE_DISABLED = -1, - IPS_NOT_COMPILED = 0, - IPS_COMPILED = 1 - };
− include/EnumIlluminationRenderStage.h
@@ -1,47 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreSceneManager.h line:169 - enum EnumIlluminationRenderStage - { - /// No special illumination stage - IRS_NONE, - /// Render to texture stage, used for texture based shadows - IRS_RENDER_TO_TEXTURE, - /// Render from shadow texture to receivers stage - IRS_RENDER_RECEIVER_PASS - };
− include/EnumIlluminationStage.h
@@ -1,49 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - - - -// enum from Dep-OgreSDK/include/OGRE\OgrePass.h line:49 - enum EnumIlluminationStage - { - /// Part of the rendering which occurs without any kind of direct lighting - IS_AMBIENT, - /// Part of the rendering which occurs per light - IS_PER_LIGHT, - /// Post-lighting rendering - IS_DECAL, - /// Not determined - IS_UNKNOWN - };
− include/EnumImageFlags.h
@@ -1,44 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreImage.h line:44 - enum EnumImageFlags - { - IF_COMPRESSED = 0x00000001, - IF_CUBEMAP = 0x00000002, - IF_3D_TEXTURE = 0x00000004 - };
− include/EnumIncludeOrExclude.h
@@ -1,45 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreTechnique.h line:114 - enum EnumIncludeOrExclude - { - /// Inclusive - only support if present - INCLUDE = 0, - /// Exclusive - do not support if present - EXCLUDE = 1 - };
− include/EnumIndexType.h
@@ -1,42 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreHardwareIndexBuffer.h line:49 - enum EnumIndexType { - IT_16BIT, - IT_32BIT - };
− include/EnumInputMode.h
@@ -1,43 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreCompositionTargetPass.h line:52 - enum EnumInputMode - { - IM_NONE, // No input - IM_PREVIOUS // Output of previous Composition in chain - };
− include/EnumInterpolationMode.h
@@ -1,45 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreAnimation.h line:63 - enum EnumInterpolationMode - { - /** Values are interpolated along straight lines. */ - IM_LINEAR, - /** Values are interpolated along a spline, resulting in smoother changes in direction. */ - IM_SPLINE - };
− include/EnumLayerBlendOperation.h
@@ -1,49 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreBlendMode.h line:57 - enum EnumLayerBlendOperation { - /// Replace all colour with texture with no adjustment - LBO_REPLACE, - /// Add colour components together. - LBO_ADD, - /// Multiply colour components together. - LBO_MODULATE, - /// Blend based on texture alpha - LBO_ALPHA_BLEND - - };
− include/EnumLayerBlendOperationEx.h
@@ -1,70 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreBlendMode.h line:75 - enum EnumLayerBlendOperationEx { - /// use source1 without modification - LBX_SOURCE1, - /// use source2 without modification - LBX_SOURCE2, - /// multiply source1 and source2 together - LBX_MODULATE, - /// as LBX_MODULATE but brighten afterwards (x2) - LBX_MODULATE_X2, - /// as LBX_MODULATE but brighten more afterwards (x4) - LBX_MODULATE_X4, - /// add source1 and source2 together - LBX_ADD, - /// as LBX_ADD, but subtract 0.5 from the result - LBX_ADD_SIGNED, - /// as LBX_ADD, but subtract product from the sum - LBX_ADD_SMOOTH, - /// subtract source2 from source1 - LBX_SUBTRACT, - /// use interpolated alpha value from vertices to scale source1, then add source2 scaled by (1-alpha) - LBX_BLEND_DIFFUSE_ALPHA, - /// as LBX_BLEND_DIFFUSE_ALPHA, but use alpha from texture - LBX_BLEND_TEXTURE_ALPHA, - /// as LBX_BLEND_DIFFUSE_ALPHA, but use current alpha from previous stages - LBX_BLEND_CURRENT_ALPHA, - /// as LBX_BLEND_DIFFUSE_ALPHA but use a constant manual blend value (0.0-1.0) - LBX_BLEND_MANUAL, - /// dot product of color1 and color2 - LBX_DOTPRODUCT, - /// use interpolated color values from vertices to scale source1, then add source2 scaled by (1-color) - LBX_BLEND_DIFFUSE_COLOUR - };
− include/EnumLayerBlendSource.h
@@ -1,51 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreBlendMode.h line:112 - enum EnumLayerBlendSource - { - /// the colour as built up from previous stages - LBS_CURRENT, - /// the colour derived from the texture assigned to this layer - LBS_TEXTURE, - /// the interpolated diffuse colour from the vertices - LBS_DIFFUSE, - /// the interpolated specular colour from the vertices - LBS_SPECULAR, - /// a colour supplied manually as a separate argument - LBS_MANUAL - };
− include/EnumLayerBlendType.h
@@ -1,43 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreBlendMode.h line:44 - enum EnumLayerBlendType - { - LBT_COLOUR, - LBT_ALPHA - };
+ include/EnumLightType.h view
@@ -0,0 +1,34 @@+// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// EnumLightType.h + +// + +#include "wchar.h" +#ifndef _DEFINED_HG3D_EnumLightType +#define _DEFINED_HG3D_EnumLightType + + +enum EnumLightType +{ + LT_POINT = 0, // Point light sources give off light equally in all directions, so require only position not direction. + LT_DIRECTIONAL = 1, // Directional lights simulate parallel light beams from a distant source, hence have direction but no position. + LT_SPOTLIGHT = 2 // Spotlights simulate a cone of light from a source so require position and direction, plus extra values for falloff. +}; +#endif
− include/EnumLightTypes.h
@@ -1,47 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreLight.h line:81 - enum EnumLightTypes - { - /// Point light sources give off light equally in all directions, so require only position not direction - LT_POINT = 0, - /// Directional lights simulate parallel light beams from a distant source, hence have direction but no position - LT_DIRECTIONAL = 1, - /// Spotlights simulate a cone of light from a source so require position and direction, plus extra values for falloff - LT_SPOTLIGHT = 2 - };
− include/EnumLoadingState.h
@@ -1,53 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreResource.h line:125 - enum EnumLoadingState - { - /// Not loaded - LOADSTATE_UNLOADED, - /// Loading is in progress - LOADSTATE_LOADING, - /// Fully loaded - LOADSTATE_LOADED, - /// Currently unloading - LOADSTATE_UNLOADING, - /// Fully prepared - LOADSTATE_PREPARED, - /// Preparing is in progress - LOADSTATE_PREPARING - };
− include/EnumLockOptions.h
@@ -1,57 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreHardwareBuffer.h line:120 - enum EnumLockOptions - { - /** Normal mode, ie allows read/write and contents are preserved. */ - HBL_NORMAL, - /** Discards the <em>entire</em> buffer while locking; this allows optimisation to be - performed because synchronisation issues are relaxed. Only allowed on buffers - created with the HBU_DYNAMIC flag. - */ - HBL_DISCARD, - /** Lock the buffer for reading only. Not allowed in buffers which are created with HBU_WRITE_ONLY. - Mandatory on static buffers, i.e. those created without the HBU_DYNAMIC flag. - */ - HBL_READ_ONLY, - /** As HBL_NORMAL, except the application guarantees not to overwrite any - region of the buffer which has already been used in this frame, can allow - some optimisation on some APIs. */ - HBL_NO_OVERWRITE - - };
include/EnumLogMessageLevel.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,29 +15,20 @@ // 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: "Dep-OgreSDK/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. -// + // #include "wchar.h" - +#ifndef _DEFINED_HG3D_EnumLogMessageLevel +#define _DEFINED_HG3D_EnumLogMessageLevel -// enum from Dep-OgreSDK/include/OGRE\OgreLog.h line:57 - enum EnumLogMessageLevel - { - LML_TRIVIAL = 1, - LML_NORMAL = 2, - LML_CRITICAL = 3 - }; +enum EnumLogMessageLevel +{ + LML_TRIVIAL = 1, // + LML_NORMAL = 2, // + LML_CRITICAL = 3 // +}; +#endif
include/EnumLoggingLevel.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,29 +15,20 @@ // 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: "Dep-OgreSDK/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. -// + // #include "wchar.h" - +#ifndef _DEFINED_HG3D_EnumLoggingLevel +#define _DEFINED_HG3D_EnumLoggingLevel -// enum from Dep-OgreSDK/include/OGRE\OgreLog.h line:48 - enum EnumLoggingLevel - { - LL_LOW = 1, - LL_NORMAL = 2, - LL_BOREME = 3 - }; +enum EnumLoggingLevel +{ + LL_LOW = 1, // + LL_NORMAL = 2, // + LL_BOREME = 3 // +}; +#endif
− include/EnumManualCullingMode.h
@@ -1,47 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreCommon.h line:151 - enum EnumManualCullingMode - { - /// No culling so everything is sent to the hardware. - MANUAL_CULL_NONE = 1, - /// Cull triangles whose normal is pointing away from the camera (default). - MANUAL_CULL_BACK = 2, - /// Cull triangles whose normal is pointing towards the camera. - MANUAL_CULL_FRONT = 3 - };
− include/EnumMaterialScriptSection.h
@@ -1,50 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreMaterialSerializer.h line:47 - enum EnumMaterialScriptSection - { - MSS_NONE, - MSS_MATERIAL, - MSS_TECHNIQUE, - MSS_PASS, - MSS_TEXTUREUNIT, - MSS_PROGRAM_REF, - MSS_PROGRAM, - MSS_DEFAULT_PARAMETERS, - MSS_TEXTURESOURCE - };
+ include/EnumMathAngleUnit.h view
@@ -0,0 +1,33 @@+// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// EnumMathAngleUnit.h + +// + +#include "wchar.h" +#ifndef _DEFINED_HG3D_EnumMathAngleUnit +#define _DEFINED_HG3D_EnumMathAngleUnit + + +enum EnumMathAngleUnit +{ + AU_DEGREE, // + AU_RADIAN // +}; +#endif
− include/EnumMemoryCategory.h
@@ -1,61 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreMemoryAllocatorConfig.h line:158 - enum EnumMemoryCategory - { - /// General purpose - MEMCATEGORY_GENERAL = 0, - /// Geometry held in main memory - MEMCATEGORY_GEOMETRY = 1, - /// Animation data like tracks, bone matrices - MEMCATEGORY_ANIMATION = 2, - /// Nodes, control data - MEMCATEGORY_SCENE_CONTROL = 3, - /// Scene object instances - MEMCATEGORY_SCENE_OBJECTS = 4, - /// Other resources - MEMCATEGORY_RESOURCE = 5, - /// Scripting - MEMCATEGORY_SCRIPTING = 6, - /// Rendersystem structures - MEMCATEGORY_RENDERSYS = 7, - - - // sentinel value, do not use - MEMCATEGORY_COUNT = 8 - };
− include/EnumMeshBuildType.h
@@ -1,44 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreMeshManager.h line:444 - enum EnumMeshBuildType - { - MBT_PLANE, - MBT_CURVED_ILLUSION_PLANE, - MBT_CURVED_PLANE - };
+ include/EnumMeshManagerMeshBuildType.h view
@@ -0,0 +1,34 @@+// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// EnumMeshManagerMeshBuildType.h + +// + +#include "wchar.h" +#ifndef _DEFINED_HG3D_EnumMeshManagerMeshBuildType +#define _DEFINED_HG3D_EnumMeshManagerMeshBuildType + + +enum EnumMeshManagerMeshBuildType +{ + MBT_PLANE, // + MBT_CURVED_ILLUSION_PLANE, // + MBT_CURVED_PLANE // +}; +#endif
+ include/EnumNodeTransformSpace.h view
@@ -0,0 +1,34 @@+// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// EnumNodeTransformSpace.h + +// + +#include "wchar.h" +#ifndef _DEFINED_HG3D_EnumNodeTransformSpace +#define _DEFINED_HG3D_EnumNodeTransformSpace + + +enum EnumNodeTransformSpace +{ + TS_LOCAL, // Transform is relative to the local space. + TS_PARENT, // Transform is relative to the space of the parent node. + TS_WORLD // Transform is relative to world space. +}; +#endif
− include/EnumOperationType.h
@@ -1,52 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreRenderOperation.h line:47 - enum EnumOperationType { - /// A list of points, 1 vertex per point - OT_POINT_LIST = 1, - /// A list of lines, 2 vertices per line - OT_LINE_LIST = 2, - /// A strip of connected lines, 1 vertex per line plus 1 start vertex - OT_LINE_STRIP = 3, - /// A list of triangles, 3 vertices per triangle - OT_TRIANGLE_LIST = 4, - /// A strip of triangles, 3 vertices for the first triangle, and 1 per triangle after that - OT_TRIANGLE_STRIP = 5, - /// A fan of triangles, 3 vertices for the first triangle, and 1 per triangle after that - OT_TRIANGLE_FAN = 6 - };
− include/EnumOrganisationMode.h
@@ -1,49 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreRenderQueueSortingGrouping.h line:124 - enum EnumOrganisationMode - { - /// Group by pass - OM_PASS_GROUP = 1, - /// Sort descending camera distance - OM_SORT_DESCENDING = 2, - /** Sort ascending camera distance - Note value overlaps with descending since both use same sort - */ - OM_SORT_ASCENDING = 6 - };
include/EnumOrientationMode.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,34 +15,24 @@ // 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: "Dep-OgreSDK/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" - +#ifndef _DEFINED_HG3D_EnumOrientationMode +#define _DEFINED_HG3D_EnumOrientationMode -// enum from Dep-OgreSDK/include/OGRE\OgreFrustum.h line:48 - enum EnumOrientationMode - { - OR_DEGREE_0 = 0, - OR_DEGREE_90 = 1, - OR_DEGREE_180 = 2, - OR_DEGREE_270 = 3, - - OR_PORTRAIT = OR_DEGREE_0, - OR_LANDSCAPERIGHT = OR_DEGREE_90, - OR_LANDSCAPELEFT = OR_DEGREE_270 - }; +enum EnumOrientationMode +{ + OR_DEGREE_0 = 0, // + OR_DEGREE_90 = 1, // + OR_DEGREE_180 = 2, // + OR_DEGREE_270 = 3, // + OR_PORTRAIT = OR_DEGREE_0, // + OR_LANDSCAPERIGHT = OR_DEGREE_90, // + OR_LANDSCAPELEFT = OR_DEGREE_270 // +}; +#endif
− include/EnumParameterType.h
@@ -1,55 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreStringInterface.h line:46 - enum EnumParameterType - { - PT_BOOL, - PT_REAL, - PT_INT, - PT_UNSIGNED_INT, - PT_SHORT, - PT_UNSIGNED_SHORT, - PT_LONG, - PT_UNSIGNED_LONG, - PT_STRING, - PT_VECTOR3, - PT_MATRIX3, - PT_MATRIX4, - PT_QUATERNION, - PT_COLOURVALUE - };
− include/EnumParseAction.h
@@ -1,39 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreRenderSystemCapabilitiesSerializer.h line:109 - enum EnumParseAction {PARSE_HEADER, FIND_OPEN_BRACE, COLLECT_LINES};
− include/EnumParticleType.h
@@ -1,43 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreParticle.h line:69 - enum EnumParticleType - { - Visual, - Emitter - };
− include/EnumPassType.h
@@ -1,46 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreCompositionPass.h line:54 - enum EnumPassType - { - PT_CLEAR, // Clear target to one colour - PT_STENCIL, // Set stencil operation - PT_RENDERSCENE, // Render the scene or part of it - PT_RENDERQUAD, // Render a full screen quad - PT_RENDERCUSTOM // Render a custom sequence - };
− include/EnumPatchSurfaceType.h
@@ -1,43 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - - - -// enum from Dep-OgreSDK/include/OGRE\OgrePatchSurface.h line:58 - enum EnumPatchSurfaceType - { - /// A patch defined by a set of bezier curves - PST_BEZIER - };
− include/EnumPixelComponentType.h
@@ -1,46 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgrePixelFormat.h line:179 - enum EnumPixelComponentType - { - PCT_BYTE = 0, /// Byte per component (8 bit fixed 0.0..1.0) - PCT_SHORT = 1, /// Short per component (16 bit fixed 0.0..1.0)) - PCT_FLOAT16 = 2, /// 16 bit float per component - PCT_FLOAT32 = 3, /// 32 bit float per component - PCT_COUNT = 4 /// Number of pixel types - };
− include/EnumPixelFormat.h
@@ -1,151 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreEnumPixelFormat.h line:42 - enum EnumPixelFormat - { - /// Unknown pixel format. - PF_UNKNOWN = 0, - /// 8-bit pixel format, all bits luminace. - PF_L8 = 1, - PF_BYTE_L = PF_L8, - /// 16-bit pixel format, all bits luminace. - PF_L16 = 2, - PF_SHORT_L = PF_L16, - /// 8-bit pixel format, all bits alpha. - PF_A8 = 3, - PF_BYTE_A = PF_A8, - /// 8-bit pixel format, 4 bits alpha, 4 bits luminance. - PF_A4L4 = 4, - /// 2 byte pixel format, 1 byte luminance, 1 byte alpha - PF_BYTE_LA = 5, - /// 16-bit pixel format, 5 bits red, 6 bits green, 5 bits blue. - PF_R5G6B5 = 6, - /// 16-bit pixel format, 5 bits red, 6 bits green, 5 bits blue. - PF_B5G6R5 = 7, - /// 8-bit pixel format, 2 bits blue, 3 bits green, 3 bits red. - PF_R3G3B2 = 31, - /// 16-bit pixel format, 4 bits for alpha, red, green and blue. - PF_A4R4G4B4 = 8, - /// 16-bit pixel format, 5 bits for blue, green, red and 1 for alpha. - PF_A1R5G5B5 = 9, - /// 24-bit pixel format, 8 bits for red, green and blue. - PF_R8G8B8 = 10, - /// 24-bit pixel format, 8 bits for blue, green and red. - PF_B8G8R8 = 11, - /// 32-bit pixel format, 8 bits for alpha, red, green and blue. - PF_A8R8G8B8 = 12, - /// 32-bit pixel format, 8 bits for blue, green, red and alpha. - PF_A8B8G8R8 = 13, - /// 32-bit pixel format, 8 bits for blue, green, red and alpha. - PF_B8G8R8A8 = 14, - /// 32-bit pixel format, 8 bits for red, green, blue and alpha. - PF_R8G8B8A8 = 28, - /// 32-bit pixel format, 8 bits for red, 8 bits for green, 8 bits for blue - /// like PF_A8R8G8B8, but alpha will get discarded - PF_X8R8G8B8 = 26, - /// 32-bit pixel format, 8 bits for blue, 8 bits for green, 8 bits for red - /// like PF_A8B8G8R8, but alpha will get discarded - PF_X8B8G8R8 = 27, -#if OGRE_ENDIAN == OGRE_ENDIAN_BIG - /// 3 byte pixel format, 1 byte for red, 1 byte for green, 1 byte for blue - PF_BYTE_RGB = PF_R8G8B8, - /// 3 byte pixel format, 1 byte for blue, 1 byte for green, 1 byte for red - PF_BYTE_BGR = PF_B8G8R8, - /// 4 byte pixel format, 1 byte for blue, 1 byte for green, 1 byte for red and one byte for alpha - PF_BYTE_BGRA = PF_B8G8R8A8, - /// 4 byte pixel format, 1 byte for red, 1 byte for green, 1 byte for blue, and one byte for alpha - PF_BYTE_RGBA = PF_R8G8B8A8, -#else - /// 3 byte pixel format, 1 byte for red, 1 byte for green, 1 byte for blue - PF_BYTE_RGB = PF_B8G8R8, - /// 3 byte pixel format, 1 byte for blue, 1 byte for green, 1 byte for red - PF_BYTE_BGR = PF_R8G8B8, - /// 4 byte pixel format, 1 byte for blue, 1 byte for green, 1 byte for red and one byte for alpha - PF_BYTE_BGRA = PF_A8R8G8B8, - /// 4 byte pixel format, 1 byte for red, 1 byte for green, 1 byte for blue, and one byte for alpha - PF_BYTE_RGBA = PF_A8B8G8R8, -#endif - /// 32-bit pixel format, 2 bits for alpha, 10 bits for red, green and blue. - PF_A2R10G10B10 = 15, - /// 32-bit pixel format, 10 bits for blue, green and red, 2 bits for alpha. - PF_A2B10G10R10 = 16, - /// DDS (DirectDraw Surface) DXT1 format - PF_DXT1 = 17, - /// DDS (DirectDraw Surface) DXT2 format - PF_DXT2 = 18, - /// DDS (DirectDraw Surface) DXT3 format - PF_DXT3 = 19, - /// DDS (DirectDraw Surface) DXT4 format - PF_DXT4 = 20, - /// DDS (DirectDraw Surface) DXT5 format - PF_DXT5 = 21, - // 16-bit pixel format, 16 bits (float) for red - PF_FLOAT16_R = 32, - // 48-bit pixel format, 16 bits (float) for red, 16 bits (float) for green, 16 bits (float) for blue - PF_FLOAT16_RGB = 22, - // 64-bit pixel format, 16 bits (float) for red, 16 bits (float) for green, 16 bits (float) for blue, 16 bits (float) for alpha - PF_FLOAT16_RGBA = 23, - // 32-bit pixel format, 32 bits (float) for red - PF_FLOAT32_R = 33, - // 96-bit pixel format, 32 bits (float) for red, 32 bits (float) for green, 32 bits (float) for blue - PF_FLOAT32_RGB = 24, - // 128-bit pixel format, 32 bits (float) for red, 32 bits (float) for green, 32 bits (float) for blue, 32 bits (float) for alpha - PF_FLOAT32_RGBA = 25, - // 32-bit, 2-channel s10e5 floating point pixel format, 16-bit green, 16-bit red - PF_FLOAT16_GR = 35, - // 64-bit, 2-channel floating point pixel format, 32-bit green, 32-bit red - PF_FLOAT32_GR = 36, - // Depth texture format - PF_DEPTH = 29, - // 64-bit pixel format, 16 bits for red, green, blue and alpha - PF_SHORT_RGBA = 30, - // 32-bit pixel format, 16-bit green, 16-bit red - PF_SHORT_GR = 34, - // 48-bit pixel format, 16 bits for red, green and blue - PF_SHORT_RGB = 37, - /// PVRTC (PowerVR) RGB 2 bpp - PF_PVRTC_RGB2 = 38, - /// PVRTC (PowerVR) RGBA 2 bpp - PF_PVRTC_RGBA2 = 39, - /// PVRTC (PowerVR) RGB 4 bpp - PF_PVRTC_RGB4 = 40, - /// PVRTC (PowerVR) RGBA 4 bpp - PF_PVRTC_RGBA4 = 41, - // Number of pixel formats currently defined - PF_COUNT = 42 - };
− include/EnumPixelFormatFlags.h
@@ -1,55 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgrePixelFormat.h line:160 - enum EnumPixelFormatFlags { - // This format has an alpha channel - PFF_HASALPHA = 0x00000001, - // This format is compressed. This invalidates the values in elemBytes, - // elemBits and the bit counts as these might not be fixed in a compressed format. - PFF_COMPRESSED = 0x00000002, - // This is a floating point format - PFF_FLOAT = 0x00000004, - // This is a depth format (for depth textures) - PFF_DEPTH = 0x00000008, - // Format is in native endian. Generally true for the 16, 24 and 32 bits - // formats which can be represented as machine integers. - PFF_NATIVEENDIAN = 0x00000010, - // This is an intensity format instead of a RGB one. The luminance - // replaces R,G and B. (but not A) - PFF_LUMINANCE = 0x00000020 - };
− include/EnumPolygonMode.h
@@ -1,47 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreCommon.h line:180 - enum EnumPolygonMode - { - /// Only points are rendered. - PM_POINTS = 1, - /// Wireframe models are rendered. - PM_WIREFRAME = 2, - /// Solid polygons are rendered. - PM_SOLID = 3 - };
− include/EnumPrefabType.h
@@ -1,43 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreSceneManager.h line:1317 - enum EnumPrefabType { - PT_PLANE, - PT_CUBE, - PT_SPHERE - };
− include/EnumProfileGroupMask.h
@@ -1,51 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreProfiler.h line:75 - enum EnumProfileGroupMask - { - /// User default profile - OGREPROF_USER_DEFAULT = 0x00000001, - /// All in-built Ogre profiling will match this mask - OGREPROF_ALL = 0xFF000000, - /// General processing - OGREPROF_GENERAL = 0x80000000, - /// Culling - OGREPROF_CULLING = 0x40000000, - /// Rendering - OGREPROF_RENDERING = 0x20000000 - };
− include/EnumPrograms.h
@@ -1,58 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreShadowVolumeExtrudeProgram.h line:172 - enum EnumPrograms - { - // Point light extruder, infinite distance - POINT_LIGHT = 0, - // Point light extruder, infinite distance, debug mode - POINT_LIGHT_DEBUG = 1, - // Directional light extruder, infinite distance - DIRECTIONAL_LIGHT = 2, - // Directional light extruder, infinite distance, debug mode - DIRECTIONAL_LIGHT_DEBUG = 3, - // Point light extruder, finite distance - POINT_LIGHT_FINITE = 4, - // Point light extruder, finite distance, debug mode - POINT_LIGHT_FINITE_DEBUG = 5, - // Directional light extruder, finite distance - DIRECTIONAL_LIGHT_FINITE = 6, - // Directional light extruder, finite distance, debug mode - DIRECTIONAL_LIGHT_FINITE_DEBUG = 7 - - };
include/EnumProjectionType.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,28 +15,19 @@ // 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: "Dep-OgreSDK/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" - +#ifndef _DEFINED_HG3D_EnumProjectionType +#define _DEFINED_HG3D_EnumProjectionType -// enum from Dep-OgreSDK/include/OGRE\OgreFrustum.h line:62 - enum EnumProjectionType - { - PT_ORTHOGRAPHIC, - PT_PERSPECTIVE - }; +enum EnumProjectionType +{ + PT_ORTHOGRAPHIC, // + PT_PERSPECTIVE // +}; +#endif
− include/EnumRealStorageFormat.h
@@ -1,45 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreStreamSerialiser.h line:81 - enum EnumRealStorageFormat - { - /// Real is stored as float, reducing precision if you're using OGRE_DOUBLE_PRECISION - REAL_FLOAT, - /// Real as stored as double, not useful unless you're using OGRE_DOUBLE_PRECISION - REAL_DOUBLE - };
+ include/EnumRenderOperationOperationType.h view
@@ -0,0 +1,37 @@+// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// EnumRenderOperationOperationType.h + +// + +#include "wchar.h" +#ifndef _DEFINED_HG3D_EnumRenderOperationOperationType +#define _DEFINED_HG3D_EnumRenderOperationOperationType + + +enum EnumRenderOperationOperationType +{ + OT_POINT_LIST = 1, // A list of points, 1 vertex per point. + OT_LINE_LIST = 2, // A list of lines, 2 vertices per line. + OT_LINE_STRIP = 3, // A strip of connected lines, 1 vertex per line plus 1 start vertex. + OT_TRIANGLE_LIST = 4, // A list of triangles, 3 vertices per triangle. + OT_TRIANGLE_STRIP = 5, // A strip of triangles, 3 vertices for the first triangle, and 1 per triangle after that. + OT_TRIANGLE_FAN = 6 // A fan of triangles, 3 vertices for the first triangle, and 1 per triangle after that. +}; +#endif
− include/EnumRenderQueueGroupID.h
@@ -1,63 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreRenderQueue.h line:53 - enum EnumRenderQueueGroupID - { - /// Use this queue for objects which must be rendered first e.g. backgrounds - RENDER_QUEUE_BACKGROUND = 0, - /// First queue (after backgrounds), used for skyboxes if rendered first - RENDER_QUEUE_SKIES_EARLY = 5, - RENDER_QUEUE_1 = 10, - RENDER_QUEUE_2 = 20, - RENDER_QUEUE_WORLD_GEOMETRY_1 = 25, - RENDER_QUEUE_3 = 30, - RENDER_QUEUE_4 = 40, - /// The default render queue - RENDER_QUEUE_MAIN = 50, - RENDER_QUEUE_6 = 60, - RENDER_QUEUE_7 = 70, - RENDER_QUEUE_WORLD_GEOMETRY_2 = 75, - RENDER_QUEUE_8 = 80, - RENDER_QUEUE_9 = 90, - /// Penultimate queue(before overlays), used for skyboxes if rendered last - RENDER_QUEUE_SKIES_LATE = 95, - /// Use this queue for objects which must be rendered last e.g. overlays - RENDER_QUEUE_OVERLAY = 100, - /// Final possible render queue, don't exceed this - RENDER_QUEUE_MAX = 105 - };
+ include/EnumRenderTargetFrameBuffer.h view
@@ -0,0 +1,34 @@+// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// EnumRenderTargetFrameBuffer.h + +// + +#include "wchar.h" +#ifndef _DEFINED_HG3D_EnumRenderTargetFrameBuffer +#define _DEFINED_HG3D_EnumRenderTargetFrameBuffer + + +enum EnumRenderTargetFrameBuffer +{ + FB_FRONT, // + FB_BACK, // + FB_AUTO // +}; +#endif
+ include/EnumRenderTargetStatFlags.h view
@@ -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.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// EnumRenderTargetStatFlags.h + +// + +#include "wchar.h" +#ifndef _DEFINED_HG3D_EnumRenderTargetStatFlags +#define _DEFINED_HG3D_EnumRenderTargetStatFlags + + +enum EnumRenderTargetStatFlags +{ + SF_NONE = 0, // + SF_FPS = 1, // + SF_AVG_FPS = 2, // + SF_BEST_FPS = 4, // + SF_WORST_FPS = 8, // + SF_TRIANGLE_COUNT = 16, // + SF_ALL = 0xFFFF // +}; +#endif
− include/EnumRequestType.h
@@ -1,49 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreResourceBackgroundQueue.h line:111 - enum EnumRequestType - { - RT_INITIALISE_GROUP = 0, - RT_INITIALISE_ALL_GROUPS = 1, - RT_PREPARE_GROUP = 2, - RT_PREPARE_RESOURCE = 3, - RT_LOAD_GROUP = 4, - RT_LOAD_RESOURCE = 5, - RT_UNLOAD_GROUP = 6, - RT_UNLOAD_RESOURCE = 7 - };
− include/EnumResourceType.h
@@ -1,45 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreScriptCompiler.h line:477 - enum EnumResourceType - { - TEXTURE, - MATERIAL, - GPU_PROGRAM, - COMPOSITOR - };
+ include/EnumRootFrameEventTimeType.h view
@@ -0,0 +1,36 @@+// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// EnumRootFrameEventTimeType.h + +// + +#include "wchar.h" +#ifndef _DEFINED_HG3D_EnumRootFrameEventTimeType +#define _DEFINED_HG3D_EnumRootFrameEventTimeType + + +enum EnumRootFrameEventTimeType +{ + FETT_ANY = 0, // + FETT_STARTED = 1, // + FETT_QUEUED = 2, // + FETT_ENDED = 3, // + FETT_COUNT = 4 // +}; +#endif
− include/EnumRotationInterpolationMode.h
@@ -1,49 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreAnimation.h line:72 - enum EnumRotationInterpolationMode - { - /** Values are interpolated linearly. This is faster but does not - necessarily give a completely accurate result. - */ - RIM_LINEAR, - /** Values are interpolated spherically. This is more accurate but - has a higher cost. - */ - RIM_SPHERICAL - };
− include/EnumSceneBlendFactor.h
@@ -1,52 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreBlendMode.h line:234 - enum EnumSceneBlendFactor - { - SBF_ONE, - SBF_ZERO, - SBF_DEST_COLOUR, - SBF_SOURCE_COLOUR, - SBF_ONE_MINUS_DEST_COLOUR, - SBF_ONE_MINUS_SOURCE_COLOUR, - SBF_DEST_ALPHA, - SBF_SOURCE_ALPHA, - SBF_ONE_MINUS_DEST_ALPHA, - SBF_ONE_MINUS_SOURCE_ALPHA - - };
− include/EnumSceneBlendOperation.h
@@ -1,46 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreBlendMode.h line:253 - enum EnumSceneBlendOperation - { - SBO_ADD, - SBO_SUBTRACT, - SBO_REVERSE_SUBTRACT, - SBO_MIN, - SBO_MAX - };
− include/EnumSceneBlendType.h
@@ -1,52 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreBlendMode.h line:215 - enum EnumSceneBlendType - { - /// Make the object transparent based on the final alpha values in the texture - SBT_TRANSPARENT_ALPHA, - /// Make the object transparent based on the colour values in the texture (brighter = more opaque) - SBT_TRANSPARENT_COLOUR, - /// Add the texture values to the existing scene content - SBT_ADD, - /// Multiply the 2 colours together - SBT_MODULATE, - /// The default blend mode where source replaces destination - SBT_REPLACE - // TODO : more - };
+ include/EnumSceneManagerBoxPlane.h view
@@ -0,0 +1,37 @@+// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// EnumSceneManagerBoxPlane.h + +// + +#include "wchar.h" +#ifndef _DEFINED_HG3D_EnumSceneManagerBoxPlane +#define _DEFINED_HG3D_EnumSceneManagerBoxPlane + + +enum EnumSceneManagerBoxPlane +{ + BP_FRONT = 0, // + BP_BACK = 1, // + BP_LEFT = 2, // + BP_RIGHT = 3, // + BP_UP = 4, // + BP_DOWN = 5 // +}; +#endif
+ include/EnumSceneManagerIlluminationRenderStage.h view
@@ -0,0 +1,34 @@+// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// EnumSceneManagerIlluminationRenderStage.h + +// + +#include "wchar.h" +#ifndef _DEFINED_HG3D_EnumSceneManagerIlluminationRenderStage +#define _DEFINED_HG3D_EnumSceneManagerIlluminationRenderStage + + +enum EnumSceneManagerIlluminationRenderStage +{ + IRS_NONE, // No special illumination stage. + IRS_RENDER_TO_TEXTURE, // Render to texture stage, used for texture based shadows. + IRS_RENDER_RECEIVER_PASS // Render from shadow texture to receivers stage. +}; +#endif
+ include/EnumSceneManagerPrefabType.h view
@@ -0,0 +1,34 @@+// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// EnumSceneManagerPrefabType.h + +// + +#include "wchar.h" +#ifndef _DEFINED_HG3D_EnumSceneManagerPrefabType +#define _DEFINED_HG3D_EnumSceneManagerPrefabType + + +enum EnumSceneManagerPrefabType +{ + PT_PLANE, // + PT_CUBE, // + PT_SPHERE // +}; +#endif
+ include/EnumSceneManagerSpecialCaseRenderQueueMode.h view
@@ -0,0 +1,33 @@+// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// EnumSceneManagerSpecialCaseRenderQueueMode.h + +// + +#include "wchar.h" +#ifndef _DEFINED_HG3D_EnumSceneManagerSpecialCaseRenderQueueMode +#define _DEFINED_HG3D_EnumSceneManagerSpecialCaseRenderQueueMode + + +enum EnumSceneManagerSpecialCaseRenderQueueMode +{ + SCRQM_INCLUDE, // Render only the queues in the special case list. + SCRQM_EXCLUDE // Render all except the queues in the special case list. +}; +#endif
include/EnumSceneType.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,31 +15,22 @@ // 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: "Dep-OgreSDK/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" - +#ifndef _DEFINED_HG3D_EnumSceneType +#define _DEFINED_HG3D_EnumSceneType -// enum from Dep-OgreSDK/include/OGRE\OgreSceneManager.h line:3461 - enum EnumSceneType - { - ST_GENERIC = 1, - ST_EXTERIOR_CLOSE = 2, - ST_EXTERIOR_FAR = 4, - ST_EXTERIOR_REAL_FAR = 8, - ST_INTERIOR = 16 - }; +enum EnumSceneType +{ + ST_GENERIC = 1, // + ST_EXTERIOR_CLOSE = 2, // + ST_EXTERIOR_FAR = 4, // + ST_EXTERIOR_REAL_FAR = 8, // + ST_INTERIOR = 16 // +}; +#endif
− include/EnumSerializeEvent.h
@@ -1,45 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreMaterialSerializer.h line:109 - enum EnumSerializeEvent - { - MSE_PRE_WRITE, - MSE_WRITE_BEGIN, - MSE_WRITE_END, - MSE_POST_WRITE - };
− include/EnumShadeOptions.h
@@ -1,44 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreCommon.h line:114 - enum EnumShadeOptions - { - SO_FLAT, - SO_GOURAUD, - SO_PHONG - };
− include/EnumShadowRenderableFlags.h
@@ -1,47 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreShadowCaster.h line:97 - enum EnumShadowRenderableFlags - { - /// For shadow volume techniques only, generate a light cap on the volume - SRF_INCLUDE_LIGHT_CAP = 0x00000001, - /// For shadow volume techniques only, generate a dark cap on the volume - SRF_INCLUDE_DARK_CAP = 0x00000002, - /// For shadow volume techniques only, indicates volume is extruded to infinity - SRF_EXTRUDE_TO_INFINITY = 0x00000004 - };
− include/EnumShadowTechnique.h
@@ -1,122 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreCommon.h line:191 - enum EnumShadowTechnique - { - /** No shadows */ - SHADOWTYPE_NONE = 0x00, - /** Mask for additive shadows (not for direct use, use SHADOWTYPE_ enum instead) - */ - SHADOWDETAILTYPE_ADDITIVE = 0x01, - /** Mask for modulative shadows (not for direct use, use SHADOWTYPE_ enum instead) - */ - SHADOWDETAILTYPE_MODULATIVE = 0x02, - /** Mask for integrated shadows (not for direct use, use SHADOWTYPE_ enum instead) - */ - SHADOWDETAILTYPE_INTEGRATED = 0x04, - /** Mask for stencil shadows (not for direct use, use SHADOWTYPE_ enum instead) - */ - SHADOWDETAILTYPE_STENCIL = 0x10, - /** Mask for texture shadows (not for direct use, use SHADOWTYPE_ enum instead) - */ - SHADOWDETAILTYPE_TEXTURE = 0x20, - - /** Stencil shadow technique which renders all shadow volumes as - a modulation after all the non-transparent areas have been - rendered. This technique is considerably less fillrate intensive - than the additive stencil shadow approach when there are multiple - lights, but is not an accurate model. - */ - SHADOWTYPE_STENCIL_MODULATIVE = 0x12, - /** Stencil shadow technique which renders each light as a separate - additive pass to the scene. This technique can be very fillrate - intensive because it requires at least 2 passes of the entire - scene, more if there are multiple lights. However, it is a more - accurate model than the modulative stencil approach and this is - especially apparent when using coloured lights or bump mapping. - */ - SHADOWTYPE_STENCIL_ADDITIVE = 0x11, - /** Texture-based shadow technique which involves a monochrome render-to-texture - of the shadow caster and a projection of that texture onto the - shadow receivers as a modulative pass. - */ - SHADOWTYPE_TEXTURE_MODULATIVE = 0x22, - - /** Texture-based shadow technique which involves a render-to-texture - of the shadow caster and a projection of that texture onto the - shadow receivers, built up per light as additive passes. - This technique can be very fillrate intensive because it requires numLights + 2 - passes of the entire scene. However, it is a more accurate model than the - modulative approach and this is especially apparent when using coloured lights - or bump mapping. - */ - SHADOWTYPE_TEXTURE_ADDITIVE = 0x21, - - /** Texture-based shadow technique which involves a render-to-texture - of the shadow caster and a projection of that texture on to the shadow - receivers, with the usage of those shadow textures completely controlled - by the materials of the receivers. - This technique is easily the most flexible of all techniques because - the material author is in complete control over how the shadows are - combined with regular rendering. It can perform shadows as accurately - as SHADOWTYPE_TEXTURE_ADDITIVE but more efficiently because it requires - less passes. However it also requires more expertise to use, and - in almost all cases, shader capable hardware to really use to the full. - @note The 'additive' part of this mode means that the colour of - the rendered shadow texture is by default plain black. It does - not mean it does the adding on your receivers automatically though, how you - use that result is up to you. - */ - SHADOWTYPE_TEXTURE_ADDITIVE_INTEGRATED = 0x25, - /** Texture-based shadow technique which involves a render-to-texture - of the shadow caster and a projection of that texture on to the shadow - receivers, with the usage of those shadow textures completely controlled - by the materials of the receivers. - This technique is easily the most flexible of all techniques because - the material author is in complete control over how the shadows are - combined with regular rendering. It can perform shadows as accurately - as SHADOWTYPE_TEXTURE_ADDITIVE but more efficiently because it requires - less passes. However it also requires more expertise to use, and - in almost all cases, shader capable hardware to really use to the full. - @note The 'modulative' part of this mode means that the colour of - the rendered shadow texture is by default the 'shadow colour'. It does - not mean it modulates on your receivers automatically though, how you - use that result is up to you. - */ - SHADOWTYPE_TEXTURE_MODULATIVE_INTEGRATED = 0x26 - };
@@ -1,47 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreSharedPtr.h line:42 - enum EnumSharedPtrFreeMethod - { - /// Use OGRE_DELETE to free the memory - SPFM_DELETE, - /// Use OGRE_DELETE_T to free (only MEMCATEGORY_GENERAL supported) - SPFM_DELETE_T, - /// Use OGRE_FREE to free (only MEMCATEGORY_GENERAL supported) - SPFM_FREE - };
− include/EnumSide.h
@@ -1,45 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgrePlane.h line:80 - enum EnumSide - { - NO_SIDE, - POSITIVE_SIDE, - NEGATIVE_SIDE, - BOTH_SIDE - };
include/EnumSkeletonAnimationBlendMode.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,29 +15,19 @@ // 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: "Dep-OgreSDK/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. -// + // #include "wchar.h" - +#ifndef _DEFINED_HG3D_EnumSkeletonAnimationBlendMode +#define _DEFINED_HG3D_EnumSkeletonAnimationBlendMode -// enum from Dep-OgreSDK/include/OGRE\OgreSkeleton.h line:48 - enum EnumSkeletonAnimationBlendMode { - /// Animations are applied by calculating a weighted average of all animations - ANIMBLEND_AVERAGE, - /// Animations are applied by calculating a weighted cumulative total - ANIMBLEND_CUMULATIVE - }; +enum EnumSkeletonAnimationBlendMode +{ + ANIMBLEND_AVERAGE = 0, // Animations are applied by calculating a weighted average of all animations. + ANIMBLEND_CUMULATIVE = 1 // Animations are applied by calculating a weighted cumulative total. +}; +#endif
− include/EnumSkeletonChunkID.h
@@ -1,86 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreSkeletonFileFormat.h line:55 - enum EnumSkeletonChunkID { - SKELETON_HEADER = 0x1000, - // char* version : Version number check - SKELETON_BONE = 0x2000, - // Repeating section defining each bone in the system. - // Bones are assigned indexes automatically based on their order of declaration - // starting with 0. - - // char* name : name of the bone - // unsigned short handle : handle of the bone, should be contiguous & start at 0 - // Vector3 position : position of this bone relative to parent - // Quaternion orientation : orientation of this bone relative to parent - // Vector3 scale : scale of this bone relative to parent - - SKELETON_BONE_PARENT = 0x3000, - // Record of the parent of a single bone, used to build the node tree - // Repeating section, listed in Bone Index order, one per Bone - - // unsigned short handle : child bone - // unsigned short parentHandle : parent bone - - SKELETON_ANIMATION = 0x4000, - // A single animation for this skeleton - - // char* name : Name of the animation - // float length : Length of the animation in seconds - - SKELETON_ANIMATION_TRACK = 0x4100, - // A single animation track (relates to a single bone) - // Repeating section (within SKELETON_ANIMATION) - - // unsigned short boneIndex : Index of bone to apply to - - SKELETON_ANIMATION_TRACK_KEYFRAME = 0x4110, - // A single keyframe within the track - // Repeating section - - // float time : The time position (seconds) - // Quaternion rotate : Rotation to apply at this keyframe - // Vector3 translate : Translation to apply at this keyframe - // Vector3 scale : Scale to apply at this keyframe - SKELETON_ANIMATION_LINK = 0x5000 - // Link to another skeleton, to re-use its animations - - // char* skeletonName : name of skeleton to get animations from - // float scale : scale to apply to trans/scale keys - - };
− include/EnumSortMode.h
@@ -1,45 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreCommon.h line:287 - enum EnumSortMode - { - /** Sort by direction of the camera */ - SM_DIRECTION, - /** Sort by distance from the camera */ - SM_DISTANCE - };
− include/EnumSpecialCaseRenderQueueMode.h
@@ -1,45 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreSceneManager.h line:183 - enum EnumSpecialCaseRenderQueueMode - { - /// Render only the queues in the special case list - SCRQM_INCLUDE, - /// Render all except the queues in the special case list - SCRQM_EXCLUDE - };
− include/EnumStatFlags.h
@@ -1,48 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreRenderTarget.h line:67 - enum EnumStatFlags - { - SF_NONE = 0, - SF_FPS = 1, - SF_AVG_FPS = 2, - SF_BEST_FPS = 4, - SF_WORST_FPS = 8, - SF_TRIANGLE_COUNT = 16, - SF_ALL = 0xFFFF - };
− include/EnumStatus.h
@@ -1,46 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreResourceGroupManager.h line:308 - enum EnumStatus - { - UNINITIALSED = 0, - INITIALISING = 1, - INITIALISED = 2, - LOADING = 3, - LOADED = 4 - };
include/EnumStencilOperation.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,42 +15,25 @@ // 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: "Dep-OgreSDK/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. -// + // #include "wchar.h" - +#ifndef _DEFINED_HG3D_EnumStencilOperation +#define _DEFINED_HG3D_EnumStencilOperation -// enum from Dep-OgreSDK/include/OGRE\OgreRenderSystem.h line:77 - enum EnumStencilOperation - { - /// Leave the stencil buffer unchanged - SOP_KEEP, - /// Set the stencil value to zero - SOP_ZERO, - /// Set the stencil value to the reference value - SOP_REPLACE, - /// Increase the stencil value by 1, clamping at the maximum value - SOP_INCREMENT, - /// Decrease the stencil value by 1, clamping at 0 - SOP_DECREMENT, - /// Increase the stencil value by 1, wrapping back to 0 when incrementing the maximum value - SOP_INCREMENT_WRAP, - /// Decrease the stencil value by 1, wrapping when decrementing 0 - SOP_DECREMENT_WRAP, - /// Invert the bits of the stencil buffer - SOP_INVERT - }; +enum EnumStencilOperation +{ + SOP_KEEP, // Leave the stencil buffer unchanged. + SOP_ZERO, // Set the stencil value to zero. + SOP_REPLACE, // Set the stencil value to the reference value. + SOP_INCREMENT, // Increase the stencil value by 1, clamping at the maximum value. + SOP_DECREMENT, // Decrease the stencil value by 1, clamping at 0. + SOP_INCREMENT_WRAP, // Increase the stencil value by 1, wrapping back to 0 when incrementing the maximum value. + SOP_DECREMENT_WRAP, // Decrease the stencil value by 1, wrapping when decrementing 0. + SOP_INVERT // Invert the bits of the stencil buffer. +}; +#endif
− include/EnumTargetMode.h
@@ -1,46 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreAnimationTrack.h line:478 - enum EnumTargetMode - { - /// Interpolate vertex positions in software - TM_SOFTWARE, - /** Bind keyframe 1 to position, and keyframe 2 to a texture coordinate - for interpolation in hardware */ - TM_HARDWARE - };
include/EnumTexCoordCalcMethod.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,36 +15,23 @@ // 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: "Dep-OgreSDK/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. -// + // #include "wchar.h" - +#ifndef _DEFINED_HG3D_EnumTexCoordCalcMethod +#define _DEFINED_HG3D_EnumTexCoordCalcMethod -// enum from Dep-OgreSDK/include/OGRE\OgreRenderSystem.h line:63 - enum EnumTexCoordCalcMethod - { - /// No calculated texture coordinates - TEXCALC_NONE, - /// Environment map based on vertex normals - TEXCALC_ENVIRONMENT_MAP, - /// Environment map based on vertex positions - TEXCALC_ENVIRONMENT_MAP_PLANAR, - TEXCALC_ENVIRONMENT_MAP_REFLECTION, - TEXCALC_ENVIRONMENT_MAP_NORMAL, - /// Projective texture - TEXCALC_PROJECTIVE_TEXTURE - }; +enum EnumTexCoordCalcMethod +{ + TEXCALC_NONE, // No calculated texture coordinates. + TEXCALC_ENVIRONMENT_MAP, // Environment map based on vertex normals. + TEXCALC_ENVIRONMENT_MAP_PLANAR, // Environment map based on vertex positions. + TEXCALC_ENVIRONMENT_MAP_REFLECTION, // + TEXCALC_ENVIRONMENT_MAP_NORMAL, // + TEXCALC_PROJECTIVE_TEXTURE // Projective texture. +}; +#endif
− include/EnumTexCoordDirection.h
@@ -1,45 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreBillboardChain.h line:147 - enum EnumTexCoordDirection - { - /// Tex coord in elements is treated as the 'u' texture coordinate - TCD_U, - /// Tex coord in elements is treated as the 'v' texture coordinate - TCD_V - };
− include/EnumTextureAddressingMode.h
@@ -1,49 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreTextureUnitState.h line:125 - enum EnumTextureAddressingMode - { - /// Texture wraps at values over 1.0 - TAM_WRAP, - /// Texture mirrors (flips) at joins over 1.0 - TAM_MIRROR, - /// Texture clamps at 1.0 - TAM_CLAMP, - /// Texture coordinates outside the range [0.0, 1.0] are set to the border colour - TAM_BORDER - };
− include/EnumTextureCubeFace.h
@@ -1,47 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreTextureUnitState.h line:145 - enum EnumTextureCubeFace - { - CUBE_FRONT = 0, - CUBE_BACK = 1, - CUBE_LEFT = 2, - CUBE_RIGHT = 3, - CUBE_UP = 4, - CUBE_DOWN = 5 - };
− include/EnumTextureEffectType.h
@@ -1,56 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreTextureUnitState.h line:70 - enum EnumTextureEffectType - { - /// Generate all texture coords based on angle between camera and vertex - ET_ENVIRONMENT_MAP, - /// Generate texture coords based on a frustum - ET_PROJECTIVE_TEXTURE, - /// Constant u/v scrolling effect - ET_UVSCROLL, - /// Constant u scrolling effect - ET_USCROLL, - /// Constant u/v scrolling effect - ET_VSCROLL, - /// Constant rotation - ET_ROTATE, - /// More complex transform - ET_TRANSFORM - - };
− include/EnumTextureFilterOptions.h
@@ -1,49 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreCommon.h line:79 - enum EnumTextureFilterOptions - { - /// Equal to: min=FO_POINT, mag=FO_POINT, mip=FO_NONE - TFO_NONE, - /// Equal to: min=FO_LINEAR, mag=FO_LINEAR, mip=FO_POINT - TFO_BILINEAR, - /// Equal to: min=FO_LINEAR, mag=FO_LINEAR, mip=FO_LINEAR - TFO_TRILINEAR, - /// Equal to: min=FO_ANISOTROPIC, max=FO_ANISOTROPIC, mip=FO_LINEAR - TFO_ANISOTROPIC - };
− include/EnumTextureMipmap.h
@@ -1,45 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreTexture.h line:81 - enum EnumTextureMipmap - { - /// Generate mipmaps up to 1x1 - MIP_UNLIMITED = 0x7FFFFFFF, - /// Use TextureManager default - MIP_DEFAULT = -1 - };
− include/EnumTextureScope.h
@@ -1,46 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreCompositionTechnique.h line:51 - enum EnumTextureScope { - //Local texture - only available to the compositor passes in this technique - TS_LOCAL, - //Chain texture - available to the other compositors in the chain - TS_CHAIN, - //Global texture - available to everyone in every scope - TS_GLOBAL - };
− include/EnumTextureTransformType.h
@@ -1,46 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreTextureUnitState.h line:111 - enum EnumTextureTransformType - { - TT_TRANSLATE_U, - TT_TRANSLATE_V, - TT_SCALE_U, - TT_SCALE_V, - TT_ROTATE - };
− include/EnumTextureType.h
@@ -1,49 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreTexture.h line:67 - enum EnumTextureType - { - /// 1D texture, used in combination with 1D texture coordinates - TEX_TYPE_1D = 1, - /// 2D texture, used in combination with 2D texture coordinates (default) - TEX_TYPE_2D = 2, - /// 3D volume texture, used in combination with 3D texture coordinates - TEX_TYPE_3D = 3, - /// 3D cube map, used in combination with 3D texture coordinates - TEX_TYPE_CUBE_MAP = 4 - };
− include/EnumTrackVertexColourEnum.h
@@ -1,45 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreCommon.h line:278 - enum EnumTrackVertexColourEnum { - TVC_NONE = 0x0, - TVC_AMBIENT = 0x1, - TVC_DIFFUSE = 0x2, - TVC_SPECULAR = 0x4, - TVC_EMISSIVE = 0x8 - };
− include/EnumTransformSpace.h
@@ -1,47 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreNode.h line:67 - enum EnumTransformSpace - { - /// Transform is relative to the local space - TS_LOCAL, - /// Transform is relative to the space of the parent node - TS_PARENT, - /// Transform is relative to world space - TS_WORLD - };
− include/EnumUsage.h
@@ -1,79 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreHardwareBuffer.h line:78 - enum EnumUsage - { - /** Static buffer which the application rarely modifies once created. Modifying - the contents of this buffer will involve a performance hit. - */ - HBU_STATIC = 1, - /** Indicates the application would like to modify this buffer with the CPU - fairly often. - Buffers created with this flag will typically end up in AGP memory rather - than video memory. - */ - HBU_DYNAMIC = 2, - /** Indicates the application will never read the contents of the buffer back, - it will only ever write data. Locking a buffer with this flag will ALWAYS - return a pointer to new, blank memory rather than the memory associated - with the contents of the buffer; this avoids DMA stalls because you can - write to a new memory area while the previous one is being used. - */ - HBU_WRITE_ONLY = 4, - /** Indicates that the application will be refilling the contents - of the buffer regularly (not just updating, but generating the - contents from scratch), and therefore does not mind if the contents - of the buffer are lost somehow and need to be recreated. This - allows and additional level of optimisation on the buffer. - This option only really makes sense when combined with - HBU_DYNAMIC_WRITE_ONLY. - */ - HBU_DISCARDABLE = 8, - /// Combination of HBU_STATIC and HBU_WRITE_ONLY - HBU_STATIC_WRITE_ONLY = 5, - /** Combination of HBU_DYNAMIC and HBU_WRITE_ONLY. If you use - this, strongly consider using HBU_DYNAMIC_WRITE_ONLY_DISCARDABLE - instead if you update the entire contents of the buffer very - regularly. - */ - HBU_DYNAMIC_WRITE_ONLY = 6, - /// Combination of HBU_DYNAMIC, HBU_WRITE_ONLY and HBU_DISCARDABLE - HBU_DYNAMIC_WRITE_ONLY_DISCARDABLE = 14 - - - };
− include/EnumValueType.h
@@ -1,50 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreAnimable.h line:75 - enum EnumValueType - { - INT, - REAL, - VECTOR2, - VECTOR3, - VECTOR4, - QUATERNION, - COLOUR, - RADIAN, - DEGREE - };
+ include/EnumVertexAnimationTrackTargetMode.h view
@@ -0,0 +1,33 @@+// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// EnumVertexAnimationTrackTargetMode.h + +// + +#include "wchar.h" +#ifndef _DEFINED_HG3D_EnumVertexAnimationTrackTargetMode +#define _DEFINED_HG3D_EnumVertexAnimationTrackTargetMode + + +enum EnumVertexAnimationTrackTargetMode +{ + TM_SOFTWARE, // Interpolate vertex positions in software. + TM_HARDWARE // +}; +#endif
include/EnumVertexAnimationType.h view
@@ -1,8 +1,7 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html +// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . // -// (c) 2011 Peter Althainz +// (c) 2011-2014 Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,32 +15,20 @@ // 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: "Dep-OgreSDK/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" - +#ifndef _DEFINED_HG3D_EnumVertexAnimationType +#define _DEFINED_HG3D_EnumVertexAnimationType -// enum from Dep-OgreSDK/include/OGRE\OgreAnimationTrack.h line:461 - enum EnumVertexAnimationType - { - /// No animation - VAT_NONE = 0, - /// Morph animation is made up of many interpolated snapshot keyframes - VAT_MORPH = 1, - /// Pose animation is made up of a single delta pose keyframe - VAT_POSE = 2 - }; +enum EnumVertexAnimationType +{ + VAT_NONE = 0, // No animation. + VAT_MORPH = 1, // Morph animation is made up of many interpolated snapshot keyframes. + VAT_POSE = 2 // Pose animation is made up of a single delta pose keyframe. +}; +#endif
− include/EnumVertexDataBindChoice.h
@@ -1,45 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreEntity.h line:716 - enum EnumVertexDataBindChoice - { - BIND_ORIGINAL, - BIND_SOFTWARE_SKELETAL, - BIND_SOFTWARE_MORPH, - BIND_HARDWARE_MORPH - };
− include/EnumVertexElementSemantic.h
@@ -1,59 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreHardwareVertexBuffer.h line:84 - enum EnumVertexElementSemantic { - /// Position, 3 reals per vertex - VES_POSITION = 1, - /// Blending weights - VES_BLEND_WEIGHTS = 2, - /// Blending indices - VES_BLEND_INDICES = 3, - /// Normal, 3 reals per vertex - VES_NORMAL = 4, - /// Diffuse colours - VES_DIFFUSE = 5, - /// Specular colours - VES_SPECULAR = 6, - /// Texture coordinates - VES_TEXTURE_COORDINATES = 7, - /// Binormal (Y axis if normal is Z) - VES_BINORMAL = 8, - /// Tangent (X axis if normal is Z) - VES_TANGENT = 9 - - };
− include/EnumVertexElementType.h
@@ -1,56 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreHardwareVertexBuffer.h line:107 - enum EnumVertexElementType - { - VET_FLOAT1 = 0, - VET_FLOAT2 = 1, - VET_FLOAT3 = 2, - VET_FLOAT4 = 3, - /// alias to more specific colour type - use the current rendersystem's colour packing - VET_COLOUR = 4, - VET_SHORT1 = 5, - VET_SHORT2 = 6, - VET_SHORT3 = 7, - VET_SHORT4 = 8, - VET_UBYTE4 = 9, - /// D3D style compact colour - VET_COLOUR_ARGB = 10, - /// GL style compact colour - VET_COLOUR_ABGR = 11 - };
− include/EnumVertexReductionQuota.h
@@ -1,45 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreProgressiveMesh.h line:69 - enum EnumVertexReductionQuota - { - /// A set number of vertices are removed at each reduction - VRQ_CONSTANT, - /// A proportion of the remaining number of vertices are removed at each reduction - VRQ_PROPORTIONAL - };
− include/EnumVisibleSide.h
@@ -1,46 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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" - - - -// enum from Dep-OgreSDK/include/OGRE\OgrePatchSurface.h line:70 - enum EnumVisibleSide { - /// The side from which u goes right and v goes up (as in texture coords) - VS_FRONT, - /// The side from which u goes right and v goes down (reverse of texture coords) - VS_BACK, - /// Both sides are visible - warning this creates 2x the number of triangles and adds extra overhead for calculating normals - VS_BOTH - };
− include/EnumWaveformType.h
@@ -1,54 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreCommon.h line:162 - enum EnumWaveformType - { - /// Standard sine wave which smoothly changes from low to high and back again. - WFT_SINE, - /// An angular wave with a constant increase / decrease speed with pointed peaks. - WFT_TRIANGLE, - /// Half of the time is spent at the min, half at the max with instant transition between. - WFT_SQUARE, - /// Gradual steady increase from min to max over the period with an instant return to min at the end. - WFT_SAWTOOTH, - /// Gradual steady decrease from max to min over the period, with an instant return to max at the end. - WFT_INVERSE_SAWTOOTH, - /// Pulse Width Modulation. Works like WFT_SQUARE, except the high to low transition is controlled by duty cycle. - /// With a duty cycle of 50% (0.5) will give the same output as WFT_SQUARE. - WFT_PWM - };
− include/EnumWorldFragmentType.h
@@ -1,50 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreSceneQuery.h line:82 - enum EnumWorldFragmentType { - /// Return no world geometry hits at all - WFT_NONE, - /// Return pointers to convex plane-bounded regions - WFT_PLANE_BOUNDED_REGION, - /// Return a single intersection point (typically RaySceneQuery only) - WFT_SINGLE_INTERSECTION, - /// Custom geometry as defined by the SceneManager - WFT_CUSTOM_GEOMETRY, - /// General RenderOperation structure - WFT_RENDER_OPERATION - };
− include/EnumeTexturePlayMode.h
@@ -1,44 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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: "Dep-OgreSDK/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. -// -// - -#include "wchar.h" - - - -// enum from Dep-OgreSDK/include/OGRE\OgreExternalTextureSource.h line:59 - enum EnumeTexturePlayMode - { - TextureEffectPause = 0, //! Video starts out paused - TextureEffectPlay_ASAP = 1, //! Video starts playing as soon as possible - TextureEffectPlay_Looping = 2 //! Video Plays Instantly && Loops - };
+ include/HG3DUtilities.h view
@@ -0,0 +1,31 @@+/*+This source file is part of HGamer3D+(A project to enable 3D game development in Haskell)+For the latest info, see http://www.althainz.de/HGamer3D.html++(c) 2011 Peter Althainz++Licensed under the Apache License, Version 2.0 (the "License");+you may not use this file except in compliance with the License.+You may obtain a copy of the License at++ http://www.apache.org/licenses/LICENSE-2.0++Unless required by applicable law or agreed to in writing, software+distributed under the License is distributed on an "AS IS" BASIS,+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+See the License for the specific language governing permissions and+limitations under the License.+*/++#include "Ogre.h"++class HG3DUtilities+{+ public:+ static unsigned long getWindowHandle(Ogre::RenderWindow *window);+ static void setupCloseEventHandler(Ogre::RenderWindow *window);+ static int checkQuitReceived();+ static void buildTangentVectors(Ogre::Entity *entity);+};+
include/OgreDllDefines.h view
@@ -1,29 +1,25 @@-/* -This source file is part of HGamer3D -(A project to enable 3D game development in Haskell) -For the latest info, see http://www.althainz.de/HGamer3D.html +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// -(c) 2011 Peter Althainz -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - // OgreDllDefines.h -#ifndef _HGamer3DOgre015_DLLDEFINES_H_ -#define _HGamer3DOgre015_DLLDEFINES_H_ +#ifndef _HGamer3DOgre050_DLLDEFINES_H_ +#define _HGamer3DOgre050_DLLDEFINES_H_ -/* Cmake will define HGamer3DOgre015_EXPORTS on Windows when it +/* Cmake will define HGamer3DOgre050_EXPORTS on Windows when it configures to build a shared library. If you are going to use another build system on windows or create the visual studio projects by hand you need to define MyLibrary_EXPORTS when @@ -33,13 +29,13 @@ // We are using the Visual Studio Compiler and building Shared libraries #if (defined (_WIN32)) && !(defined (__GNUC__)) - #if defined(HGamer3DOgre015_EXPORTS) + #if defined(HGamer3DOgre050_EXPORTS) #define Ogre_LIB_EXPORT __declspec(dllexport) #else #define Ogre_LIB_EXPORT __declspec(dllimport) - #endif /* HGamer3DOgre015_EXPORTS */ + #endif /* HGamer3DOgre050_EXPORTS */ #else /* defined (_WIN32) */ #define Ogre_LIB_EXPORT #endif -#endif /* _HGamer3DOgre015_DLLDEFINES_H_ */ +#endif /* _HGamer3DOgre050_DLLDEFINES_H_ */
+ include/StructColour.h view
@@ -0,0 +1,36 @@+// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// StructColour.h + +// + +#include "wchar.h" + + +#ifndef _INC_STRUCT_COLOURVALUE +#define _INC_STRUCT_COLOURVALUE + +typedef struct colourvalue_struct { + float r; + float g; + float b; + float a; +} colourvalue_struct; + +#endif
+ include/StructDegrees.h view
@@ -0,0 +1,34 @@+// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// StructDegrees.h + +// + +#include "wchar.h" + + +#ifndef _INC_STRUCT_DEGREE +#define _INC_STRUCT_DEGREE + +typedef struct degree_struct { + float d; +} degree_struct; + + +#endif
+ include/StructHG3DClass.h view
@@ -0,0 +1,34 @@+// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// StructHG3DClass.h + +// + +#include "wchar.h" + + +#ifndef _INC_STRUCT_HG3DCLASS +#define _INC_STRUCT_HG3DCLASS + +typedef struct hg3dclass_struct { + void *ptr; + void *fptr; +} hg3dclass_struct; + +#endif
+ include/StructQuaternion.h view
@@ -0,0 +1,36 @@+// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// StructQuaternion.h + +// + +#include "wchar.h" + + +#ifndef _INC_STRUCT_QUATERNION +#define _INC_STRUCT_QUATERNION + +typedef struct quaternion_struct { + float fw; + float fx; + float fy; + float fz; +} quaternion_struct; + +#endif
+ include/StructRadians.h view
@@ -0,0 +1,33 @@+// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// StructRadians.h + +// + +#include "wchar.h" + + +#ifndef _INC_STRUCT_RADIAN +#define _INC_STRUCT_RADIAN + +typedef struct radian_struct { + float r; +} radian_struct; + +#endif
@@ -0,0 +1,35 @@+// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// StructSharedPtr.h + +// + +#include "wchar.h" + + +#ifndef _INC_STRUCT_SHAREDPTR +#define _INC_STRUCT_SHAREDPTR + +typedef struct sharedptr_struct { + void* pT; + void* pCount; + void* pFreeFunc; +} sharedptr_struct; + +#endif
+ include/StructVec2.h view
@@ -0,0 +1,34 @@+// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// StructVec2.h + +// + +#include "wchar.h" + + +#ifndef _INC_STRUCT_VECTOR2 +#define _INC_STRUCT_VECTOR2 + +typedef struct vector2_struct { + float x; + float y; +} vector2_struct; + +#endif
+ include/StructVec3.h view
@@ -0,0 +1,35 @@+// This source file is part of HGamer3D, a project to enable 3D game development +// in Haskell. For the latest info, see http://www.hgamer3d.org . +// +// (c) 2011-2014 Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// StructVec3.h + +// + +#include "wchar.h" + + +#ifndef _INC_STRUCT_VECTOR3 +#define _INC_STRUCT_VECTOR3 + +typedef struct vector3_struct { + float x; + float y; + float z; +} vector3_struct; + +#endif
− include/TypeColour.h
@@ -1,43 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// TypeColour.h -// -// -// -// -// 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. -// -// - -#include "wchar.h" - - -typedef struct colourvalue_struct { - float r; - float g; - float b; - float a; -} colourvalue_struct; -
− include/TypeDegree.h
@@ -1,40 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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.h -// -// -// -// -// 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. -// -// - -#include "wchar.h" - - -typedef struct degree_struct { - float d; -} degree_struct; -
− include/TypeHG3DClass.h
@@ -1,41 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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.h -// -// -// -// -// 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. -// -// - -#include "wchar.h" - - -typedef struct hg3dclass_struct { - void *ptr; - void *fptr; -} hg3dclass_struct; -
− include/TypeQuaternion.h
@@ -1,43 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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.h -// -// -// -// -// 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. -// -// - -#include "wchar.h" - - -typedef struct quaternion_struct { - float fw; - float fx; - float fy; - float fz; -} quaternion_struct; -
− include/TypeRadian.h
@@ -1,40 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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.h -// -// -// -// -// 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. -// -// - -#include "wchar.h" - - -typedef struct radian_struct { - float r; -} radian_struct; -
@@ -1,42 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// TypeSharedPtr.h -// -// -// -// -// 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. -// -// - -#include "wchar.h" - - -typedef struct sharedptr_struct { - void* pT; - void* pCount; - void* pFreeFunc; -} sharedptr_struct; -
− include/TypeVector2.h
@@ -1,41 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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.h -// -// -// -// -// 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. -// -// - -#include "wchar.h" - - -typedef struct vector2_struct { - float x; - float y; -} vector2_struct; -
− include/TypeVector3.h
@@ -1,42 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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.h -// -// -// -// -// 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. -// -// - -#include "wchar.h" - - -typedef struct vector3_struct { - float x; - float y; - float z; -} vector3_struct; -
− include/TypeVector4.h
@@ -1,43 +0,0 @@-// This source file is part of HGamer3D -// (A project to enable 3D game development in Haskell) -// For the latest info, see http://www.althainz.de/HGamer3D.html -// -// (c) 2011 Peter Althainz -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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.h -// -// -// -// -// 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. -// -// - -#include "wchar.h" - - -typedef struct vector4_struct { - float x; - float y; - float z; - float w; -} vector4_struct; -
− include/Utils.h
@@ -1,22 +0,0 @@-/* -This source file is part of HGamer3D -(A project to enable 3D game development in Haskell) -For the latest info, see http://www.althainz.de/HGamer3D.html - -(c) 2011 Peter Althainz - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -void fU_addResourceLocations_c(const char* configFile); -void fU_messagePump_c();
+ include/WindowUtilsHG3D.h view
@@ -0,0 +1,66 @@+// WindowUtilsHG3D - special utilities+++#include <Ogre.h>++// Linux CODE+// ----------++#ifdef __linux__ ++class WindowUtilsHG3D {+ + public:+ static void getWindowTopLeft(Ogre::RenderWindow* rwind, int* top, int* bottom, int* left, int* right) {+ unsigned int width, height, colourDepth;+ int left2, top2;+ rwind->getMetrics (width, height, colourDepth, left2, top2);+ *left = left2;+ *top = top2;+ *bottom = (int)(top2 + height);+ *right = (int)(left2 + width);+ };+ + static void showCursor(bool fShow) {+ };+ +};+++// Windows CODE+// ------------++#elif _WIN32++#include <windows.h>++class WindowUtilsHG3D {+ + public:+ static void getWindowTopLeft(Ogre::RenderWindow* rwind, int* top, int* bottom, int* left, int* right) {+ HWND windowHnd = 0;+ RECT rect;+ rwind->getCustomAttribute("WINDOW", &windowHnd);+ GetWindowRect(windowHnd, &rect);+ *top = rect.top;+ *bottom = rect.bottom;+ *left = rect.left;+ *right = rect.right;+ };+ + static void showCursor(bool fShow) {+ if (fShow) {+ ShowCursor(TRUE);+ } else {+ ShowCursor(FALSE);+ };+ };+ +};++#else++// CODE if not Windows or Linux+// ----------------------------++#endif
+ include/colorvalue_struct.h view
@@ -0,0 +1,6 @@+typedef struct colourvalue_struct {+ float r;+ float g;+ float b;+ float a;+} colourvalue_struct;
+ include/degree_struct.h view
@@ -0,0 +1,3 @@+typedef struct degree_struct {+ float d;+} degree_struct;
+ include/hg3dstruct.h view
@@ -0,0 +1,4 @@+typedef struct hg3dclass_struct {+ void *ptr;+ void *fptr;+} hg3dclass_struct;
+ include/quaternion_struct.h view
@@ -0,0 +1,6 @@+typedef struct quaternion_struct {+ float fw;+ float fx;+ float fy;+ float fz;+} quaternion_struct;
+ include/radian_struct.h view
@@ -0,0 +1,3 @@+typedef struct radian_struct {+ float r;+} radian_struct;
@@ -0,0 +1,5 @@+typedef struct sharedptr_struct {+ void* pT;+ void* pCount;+ void* pFreeFunc;+} sharedptr_struct;
+ include/vector2_struct.h view
@@ -0,0 +1,4 @@+typedef struct vector2_struct {+ float x;+ float y;+} vector2_struct;
+ include/vector3_struct.h view
@@ -0,0 +1,5 @@+typedef struct vector3_struct {+ float x;+ float y;+ float z;+} vector3_struct;
+ include/vector4_struct.h view
@@ -0,0 +1,6 @@+typedef struct vector4_struct {+ float x;+ float y;+ float z;+ float w;+} vector4_struct;