HGamer3D-Ogre-Binding 0.1.5 → 0.1.7
raw patch · 626 files changed
+24976/−51160 lines, 626 filesdep ~HGamer3D-Datasetup-changed
Dependency ranges changed: HGamer3D-Data
Files
- HGamer3D-Ogre-Binding.cabal +16/−18
- HGamer3D/Bindings/Ogre/ClassAnimation.hs +446/−267
- HGamer3D/Bindings/Ogre/ClassAnimationState.hs +277/−142
- HGamer3D/Bindings/Ogre/ClassAnimationStateSet.hs +182/−0
- HGamer3D/Bindings/Ogre/ClassAnimationTrack.hs +115/−96
- HGamer3D/Bindings/Ogre/ClassArchive.hs +105/−164
- HGamer3D/Bindings/Ogre/ClassArchiveManager.hs +72/−44
- HGamer3D/Bindings/Ogre/ClassBillboard.hs +220/−155
- HGamer3D/Bindings/Ogre/ClassBillboardChain.hs +291/−166
- HGamer3D/Bindings/Ogre/ClassBillboardChainFactory.hs +68/−23
- HGamer3D/Bindings/Ogre/ClassBillboardSet.hs +848/−683
- HGamer3D/Bindings/Ogre/ClassBillboardSetFactory.hs +68/−23
- HGamer3D/Bindings/Ogre/ClassBone.hs +105/−102
- HGamer3D/Bindings/Ogre/ClassCamera.hs +970/−776
- 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.hs +117/−72
- HGamer3D/Bindings/Ogre/ClassControllerManager.hs +129/−98
- 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.hs +390/−433
- HGamer3D/Bindings/Ogre/ClassEntityFactory.hs +68/−23
- HGamer3D/Bindings/Ogre/ClassException.hs +114/−72
- 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.hs +499/−310
- HGamer3D/Bindings/Ogre/ClassGeometryBucket.hs +0/−88
- HGamer3D/Bindings/Ogre/ClassGpuProgram.hs +0/−390
- HGamer3D/Bindings/Ogre/ClassGpuProgramManager.hs +0/−162
- 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.hs +520/−425
- HGamer3D/Bindings/Ogre/ClassLightFactory.hs +68/−23
- HGamer3D/Bindings/Ogre/ClassLog.hs +208/−0
- HGamer3D/Bindings/Ogre/ClassLogManager.hs +175/−53
- HGamer3D/Bindings/Ogre/ClassManualObject.hs +488/−317
- HGamer3D/Bindings/Ogre/ClassManualObjectFactory.hs +68/−23
- HGamer3D/Bindings/Ogre/ClassManualObjectSection.hs +131/−68
- HGamer3D/Bindings/Ogre/ClassManualObjectSectionShadowRenderable.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassMaterial.hs +395/−402
- HGamer3D/Bindings/Ogre/ClassMaterialBucket.hs +0/−112
- HGamer3D/Bindings/Ogre/ClassMaterialManager.hs +144/−167
- HGamer3D/Bindings/Ogre/ClassMaterialSerializer.hs +0/−143
- HGamer3D/Bindings/Ogre/ClassMemoryDataStream.hs +0/−158
- HGamer3D/Bindings/Ogre/ClassMesh.hs +405/−437
- HGamer3D/Bindings/Ogre/ClassMeshManager.hs +166/−0
- HGamer3D/Bindings/Ogre/ClassMeshSerializer.hs +0/−78
- HGamer3D/Bindings/Ogre/ClassMovableObject.hs +407/−311
- HGamer3D/Bindings/Ogre/ClassMovableObjectFactory.hs +66/−51
- HGamer3D/Bindings/Ogre/ClassMultiRenderTarget.hs +52/−50
- HGamer3D/Bindings/Ogre/ClassNode.hs +876/−706
- HGamer3D/Bindings/Ogre/ClassNodeAnimationTrack.hs +136/−93
- HGamer3D/Bindings/Ogre/ClassNumericAnimationTrack.hs +42/−43
- 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.hs +163/−390
- 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.hs +738/−0
- HGamer3D/Bindings/Ogre/ClassRenderSystemOperation.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassRenderTarget.hs +415/−273
- HGamer3D/Bindings/Ogre/ClassRenderTexture.hs +25/−23
- HGamer3D/Bindings/Ogre/ClassRenderWindow.hs +176/−119
- HGamer3D/Bindings/Ogre/ClassRenderable.hs +255/−0
- HGamer3D/Bindings/Ogre/ClassRenderingAPIException.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassResource.hs +357/−0
- HGamer3D/Bindings/Ogre/ClassResourceGroupListener.hs +0/−230
- HGamer3D/Bindings/Ogre/ClassResourceGroupManager.hs +370/−448
- HGamer3D/Bindings/Ogre/ClassResourceManager.hs +218/−180
- HGamer3D/Bindings/Ogre/ClassRibbonTrail.hs +0/−284
- HGamer3D/Bindings/Ogre/ClassRibbonTrailFactory.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassRoot.hs +815/−722
- HGamer3D/Bindings/Ogre/ClassRuntimeAssertionException.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassSceneManager.hs +2615/−2410
- HGamer3D/Bindings/Ogre/ClassSceneManagerEnumerator.hs +0/−160
- HGamer3D/Bindings/Ogre/ClassSceneManagerFactory.hs +47/−37
- HGamer3D/Bindings/Ogre/ClassSceneMgrQueuedRenderableVisitor.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassSceneNode.hs +330/−320
- HGamer3D/Bindings/Ogre/ClassShadowCameraSetup.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassSimpleRenderable.hs +0/−75
- HGamer3D/Bindings/Ogre/ClassSkeleton.hs +285/−213
- HGamer3D/Bindings/Ogre/ClassSkeletonInstance.hs +0/−147
- HGamer3D/Bindings/Ogre/ClassSkeletonManager.hs +91/−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.hs +53/−150
- HGamer3D/Bindings/Ogre/ClassTextureUnitState.hs +0/−1099
- HGamer3D/Bindings/Ogre/ClassTimeIndex.hs +72/−23
- HGamer3D/Bindings/Ogre/ClassTransformKeyFrame.hs +0/−136
- HGamer3D/Bindings/Ogre/ClassUnimplementedException.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassVertexAnimationTrack.hs +100/−109
- HGamer3D/Bindings/Ogre/ClassVertexMorphKeyFrame.hs +0/−63
- HGamer3D/Bindings/Ogre/ClassVertexPoseKeyFrame.hs +0/−73
- HGamer3D/Bindings/Ogre/ClassViewport.hs +518/−315
- HGamer3D/Bindings/Ogre/ClassWindowEventListener.hs +0/−120
- HGamer3D/Bindings/Ogre/ClassWindowEventUtilities.hs +23/−23
- 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.hs +52/−0
- HGamer3D/Bindings/Ogre/EnumAnimationRotationInterpolationMode.hs +52/−0
- HGamer3D/Bindings/Ogre/EnumAutoConstantType.hs +0/−180
- HGamer3D/Bindings/Ogre/EnumAxisAlignedBoxCorner.hs +83/−0
- HGamer3D/Bindings/Ogre/EnumAxisAlignedBoxExtent.hs +54/−0
- HGamer3D/Bindings/Ogre/EnumBillboardChainTexCoordDirection.hs +52/−0
- HGamer3D/Bindings/Ogre/EnumBillboardOrigin.hs +30/−26
- HGamer3D/Bindings/Ogre/EnumBillboardRotationType.hs +16/−19
- HGamer3D/Bindings/Ogre/EnumBillboardType.hs +22/−22
- 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.hs +59/−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.hs +56/−0
- HGamer3D/Bindings/Ogre/EnumEnvMapType.hs +0/−57
- HGamer3D/Bindings/Ogre/EnumExceptionCode.hs +68/−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.hs +36/−35
- 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.hs +18/−20
- 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.hs +63/−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.hs +24/−26
- HGamer3D/Bindings/Ogre/EnumLoggingLevel.hs +24/−26
- HGamer3D/Bindings/Ogre/EnumManualCullingMode.hs +0/−65
- HGamer3D/Bindings/Ogre/EnumMaterialScriptSection.hs +0/−62
- HGamer3D/Bindings/Ogre/EnumMathAngleUnit.hs +52/−0
- HGamer3D/Bindings/Ogre/EnumMemoryCategory.hs +0/−83
- HGamer3D/Bindings/Ogre/EnumMeshBuildType.hs +0/−56
- HGamer3D/Bindings/Ogre/EnumMeshManagerMeshBuildType.hs +54/−0
- HGamer3D/Bindings/Ogre/EnumNodeTransformSpace.hs +54/−0
- HGamer3D/Bindings/Ogre/EnumOperationType.hs +0/−74
- HGamer3D/Bindings/Ogre/EnumOrganisationMode.hs +0/−65
- HGamer3D/Bindings/Ogre/EnumOrientationMode.hs +40/−38
- 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.hs +16/−19
- HGamer3D/Bindings/Ogre/EnumRealStorageFormat.hs +0/−55
- HGamer3D/Bindings/Ogre/EnumRenderOperationOperationType.hs +75/−0
- HGamer3D/Bindings/Ogre/EnumRenderQueueGroupID.hs +0/−104
- HGamer3D/Bindings/Ogre/EnumRenderTargetFrameBuffer.hs +54/−0
- HGamer3D/Bindings/Ogre/EnumRenderTargetStatFlags.hs +79/−0
- HGamer3D/Bindings/Ogre/EnumRequestType.hs +0/−80
- HGamer3D/Bindings/Ogre/EnumResourceType.hs +0/−57
- HGamer3D/Bindings/Ogre/EnumRootFrameEventTimeType.hs +71/−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.hs +75/−0
- HGamer3D/Bindings/Ogre/EnumSceneManagerIlluminationRenderStage.hs +54/−0
- HGamer3D/Bindings/Ogre/EnumSceneManagerPrefabType.hs +54/−0
- HGamer3D/Bindings/Ogre/EnumSceneManagerSpecialCaseRenderQueueMode.hs +52/−0
- HGamer3D/Bindings/Ogre/EnumSceneType.hs +32/−32
- 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.hs +16/−19
- 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.hs +28/−25
- HGamer3D/Bindings/Ogre/EnumTargetMode.hs +0/−55
- HGamer3D/Bindings/Ogre/EnumTexCoordCalcMethod.hs +24/−23
- 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.hs +52/−0
- HGamer3D/Bindings/Ogre/EnumVertexAnimationType.hs +24/−26
- 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.hs +75/−0
- HGamer3D/Bindings/Ogre/StructDegrees.hs +69/−0
- HGamer3D/Bindings/Ogre/StructHG3DClass.hs +61/−0
- HGamer3D/Bindings/Ogre/StructQuaternion.hs +84/−0
- HGamer3D/Bindings/Ogre/StructRadians.hs +70/−0
- HGamer3D/Bindings/Ogre/StructSharedPtr.hs +78/−0
- HGamer3D/Bindings/Ogre/StructVec2.hs +80/−0
- HGamer3D/Bindings/Ogre/StructVec3.hs +80/−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.hs +17/−40
- LICENSE +1/−1
- Setup.hs +6/−6
- include/ClassAnimation.h +127/−81
- include/ClassAnimationState.h +73/−46
- include/ClassAnimationStateSet.h +57/−0
- include/ClassAnimationTrack.h +33/−28
- include/ClassArchive.h +32/−40
- include/ClassArchiveManager.h +23/−19
- include/ClassBillboard.h +61/−47
- include/ClassBillboardChain.h +79/−51
- include/ClassBillboardChainFactory.h +21/−14
- include/ClassBillboardSet.h +165/−123
- include/ClassBillboardSetFactory.h +21/−14
- include/ClassBone.h +30/−30
- include/ClassCamera.h +189/−135
- 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 +32/−27
- include/ClassControllerManager.h +37/−30
- 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 +115/−108
- include/ClassEntityFactory.h +21/−14
- include/ClassException.h +31/−24
- include/ClassFileHandleDataStream.h +0/−48
- include/ClassFileNotFoundException.h +0/−38
- include/ClassFileStreamDataStream.h +0/−50
- include/ClassFrustum.h +139/−94
- include/ClassGeometryBucket.h +0/−43
- include/ClassGpuProgram.h +0/−95
- include/ClassGpuProgramManager.h +0/−52
- 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 +143/−115
- include/ClassLightFactory.h +21/−14
- include/ClassLog.h +64/−0
- include/ClassLogManager.h +40/−20
- include/ClassManualObject.h +130/−94
- include/ClassManualObjectFactory.h +21/−14
- include/ClassManualObjectSection.h +39/−27
- include/ClassManualObjectSectionShadowRenderable.h +0/−38
- include/ClassMaterial.h +108/−106
- include/ClassMaterialBucket.h +0/−47
- include/ClassMaterialManager.h +32/−42
- include/ClassMaterialSerializer.h +0/−51
- include/ClassMemoryDataStream.h +0/−54
- include/ClassMesh.h +118/−111
- include/ClassMeshManager.h +57/−0
- include/ClassMeshSerializer.h +0/−41
- include/ClassMovableObject.h +118/−86
- include/ClassMovableObjectFactory.h +24/−22
- include/ClassMultiRenderTarget.h +18/−21
- include/ClassNode.h +162/−120
- include/ClassNodeAnimationTrack.h +37/−28
- include/ClassNumericAnimationTrack.h +16/−18
- 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/−354
- include/ClassRegion.h +0/−49
- include/ClassRenderObjectListener.h +0/−38
- include/ClassRenderQueueInvocation.h +0/−48
- include/ClassRenderQueueInvocationSequence.h +0/−50
- include/ClassRenderSystem.h +165/−0
- include/ClassRenderSystemOperation.h +0/−38
- include/ClassRenderTarget.h +111/−77
- include/ClassRenderTexture.h +11/−14
- include/ClassRenderWindow.h +46/−37
- include/ClassRenderable.h +75/−0
- include/ClassRenderingAPIException.h +0/−38
- include/ClassResource.h +96/−0
- include/ClassResourceGroupListener.h +0/−69
- include/ClassResourceGroupManager.h +95/−103
- include/ClassResourceManager.h +61/−51
- include/ClassRibbonTrail.h +0/−75
- include/ClassRibbonTrailFactory.h +0/−38
- include/ClassRoot.h +160/−122
- include/ClassRuntimeAssertionException.h +0/−38
- include/ClassSceneManager.h +511/−413
- include/ClassSceneManagerEnumerator.h +0/−54
- include/ClassSceneManagerFactory.h +18/−18
- include/ClassSceneMgrQueuedRenderableVisitor.h +0/−38
- include/ClassSceneNode.h +92/−84
- include/ClassShadowCameraSetup.h +0/−38
- include/ClassSimpleRenderable.h +0/−40
- include/ClassSkeleton.h +83/−63
- include/ClassSkeletonInstance.h +0/−52
- include/ClassSkeletonManager.h +41/−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 +20/−35
- include/ClassTextureUnitState.h +0/−225
- include/ClassTimeIndex.h +20/−14
- include/ClassTransformKeyFrame.h +0/−52
- include/ClassUnimplementedException.h +0/−38
- include/ClassVertexAnimationTrack.h +32/−33
- include/ClassVertexMorphKeyFrame.h +0/−38
- include/ClassVertexPoseKeyFrame.h +0/−40
- include/ClassViewport.h +138/−92
- include/ClassWindowEventListener.h +0/−48
- include/ClassWindowEventUtilities.h +11/−14
- 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 +35/−0
- include/EnumAnimationRotationInterpolationMode.h +35/−0
- include/EnumAutoConstantType.h +0/−481
- include/EnumAxisAlignedBoxCorner.h +41/−0
- include/EnumAxisAlignedBoxExtent.h +36/−0
- include/EnumBillboardChainTexCoordDirection.h +35/−0
- include/EnumBillboardOrigin.h +18/−26
- include/EnumBillboardRotationType.h +11/−21
- include/EnumBillboardType.h +14/−27
- 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 +35/−0
- include/EnumDisplayMode.h +0/−45
- include/EnumElementType.h +0/−42
- include/EnumEndian.h +0/−47
- include/EnumEntityVertexDataBindChoice.h +37/−0
- include/EnumEnvMapType.h +0/−49
- include/EnumExceptionCode.h +43/−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 +15/−23
- include/EnumGPUVendor.h +0/−55
- include/EnumGpuConstantType.h +0/−65
- include/EnumGpuParamVariability.h +0/−54
- include/EnumGpuProgramType.h +12/−20
- 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 +36/−0
- include/EnumLightTypes.h +0/−47
- include/EnumLoadingState.h +0/−53
- include/EnumLockOptions.h +0/−57
- include/EnumLogMessageLevel.h +12/−20
- include/EnumLoggingLevel.h +12/−20
- include/EnumManualCullingMode.h +0/−47
- include/EnumMaterialScriptSection.h +0/−50
- include/EnumMathAngleUnit.h +35/−0
- include/EnumMemoryCategory.h +0/−61
- include/EnumMeshBuildType.h +0/−44
- include/EnumMeshManagerMeshBuildType.h +36/−0
- include/EnumNodeTransformSpace.h +36/−0
- include/EnumOperationType.h +0/−52
- include/EnumOrganisationMode.h +0/−49
- include/EnumOrientationMode.h +16/−25
- 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 +11/−19
- include/EnumRealStorageFormat.h +0/−45
- include/EnumRenderOperationOperationType.h +39/−0
- include/EnumRenderQueueGroupID.h +0/−63
- include/EnumRenderTargetFrameBuffer.h +36/−0
- include/EnumRenderTargetStatFlags.h +40/−0
- include/EnumRequestType.h +0/−49
- include/EnumResourceType.h +0/−45
- include/EnumRootFrameEventTimeType.h +38/−0
- include/EnumRotationInterpolationMode.h +0/−49
- include/EnumSceneBlendFactor.h +0/−52
- include/EnumSceneBlendOperation.h +0/−46
- include/EnumSceneBlendType.h +0/−52
- include/EnumSceneManagerBoxPlane.h +39/−0
- include/EnumSceneManagerIlluminationRenderStage.h +36/−0
- include/EnumSceneManagerPrefabType.h +36/−0
- include/EnumSceneManagerSpecialCaseRenderQueueMode.h +35/−0
- include/EnumSceneType.h +14/−22
- 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 +11/−20
- 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 +17/−33
- include/EnumTargetMode.h +0/−46
- include/EnumTexCoordCalcMethod.h +15/−27
- 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 +35/−0
- include/EnumVertexAnimationType.h +12/−23
- 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/OgreDllDefines.h +20/−24
- include/StructColour.h +38/−0
- include/StructDegrees.h +36/−0
- include/StructHG3DClass.h +36/−0
- include/StructQuaternion.h +38/−0
- include/StructRadians.h +35/−0
- include/StructSharedPtr.h +37/−0
- include/StructVec2.h +36/−0
- include/StructVec3.h +37/−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
HGamer3D-Ogre-Binding.cabal view
@@ -1,20 +1,18 @@ Name: HGamer3D-Ogre-Binding -Version: 0.1.5 +Version: 0.1.7 Synopsis: Library to enable 3D game development for Haskell - Ogre Bindings Description: - Library, to enable 3D game development for Haskell, - based on bindings to 3D Graphics, 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 + Library, to enable 3D game development for Haskell, + based on bindings to 3D Graphics, Audio and GUI libraries. + + This is the Ogre Bindings module, which provides 3D engine + capabilities. + + Platform: Windows only + License: Apache License, Version 2.0 + Install: see http://www.althainz.de/HGamer3D/Download-and-Installation.html + + License: OtherLicense License-file: LICENSE @@ -24,12 +22,12 @@ 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 +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/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/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/OgreDllDefines.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 Library - Build-Depends: base >= 3 && < 5, HGamer3D-Data == 0.1.5 + Build-Depends: base >= 3 && < 5, HGamer3D-Data >= 0.1.7 - 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 + Exposed-modules: HGamer3D.Bindings.Ogre.ClassPtr, HGamer3D.Bindings.Ogre.StructHG3DClass, HGamer3D.Bindings.Ogre.Utils, 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.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: C2HS ghc-options: @@ -38,4 +36,4 @@ Include-dirs: include Build-tools: build-depends: haskell98 - extra-libraries: HGamer3DOgre015 + extra-libraries:
HGamer3D/Bindings/Ogre/ClassAnimation.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,435 +39,622 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\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" #-} +{-# LINE 45 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +import HGamer3D.Bindings.Ogre.EnumAnimationInterpolationMode +{-# LINE 46 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +import HGamer3D.Bindings.Ogre.EnumAnimationRotationInterpolationMode +{-# LINE 47 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} +-- | +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = + withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 52 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -cAnGetName :: HG3DClass -> IO (String) -cAnGetName a1 = +-- | Gets the name of this animation. +getName :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getName a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> - cAnGetName'_ a1' a2' >>= \res -> + getName'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') -{-# LINE 63 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -; -cAnGetLength :: HG3DClass -> IO (Float) -cAnGetLength a1 = +{-# LINE 57 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} + +-- | Gets the total length of the animation. +getLength :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getLength a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cAnGetLength'_ a1' a2' >>= \res -> + getLength'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') -{-# LINE 67 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -; -cAnSetLength :: HG3DClass -> Float -> IO () -cAnSetLength a1 a2 = +{-# LINE 62 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} + +-- | Sets the length of the animation. Changing the length of an animation may invalidate existing AnimationState +setLength :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ len + -> IO () + -- ^ +setLength a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in - cAnSetLength'_ a1' a2' >>= \res -> + setLength'_ a1' a2' >>= \res -> return () -{-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -; -cAnCreateNodeTrack :: HG3DClass -> Int -> IO (HG3DClass) -cAnCreateNodeTrack a1 a2 = +{-# LINE 67 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} + +-- | Creates a NodeAnimationTrackNode +createNodeTrack :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ handle - Handle to give the track, used for accessing the track later. Must be unique within this Animation. + -> IO (HG3DClass) + -- ^ +createNodeTrack a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in alloca $ \a3' -> - cAnCreateNodeTrack'_ a1' a2' a3' >>= \res -> + createNodeTrack'_ a1' a2' a3' >>= \res -> peek a3'>>= \a3'' -> return (a3'') -{-# LINE 76 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -; -cAnCreateNumericTrack :: HG3DClass -> Int -> IO (HG3DClass) -cAnCreateNumericTrack a1 a2 = +{-# LINE 73 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} + +-- | Creates a NumericAnimationTrack +createNumericTrack :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ handle - Handle to give the track, used for accessing the track later. Must be unique within this Animation. + -> IO (HG3DClass) + -- ^ +createNumericTrack a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in alloca $ \a3' -> - cAnCreateNumericTrack'_ a1' a2' a3' >>= \res -> + createNumericTrack'_ 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 = +{-# LINE 79 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} + +-- | Creates a VertexAnimationTrack +createVertexTrack :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ handle - Handle to give the track, used for accessing the track later. Must be unique within this Animation, and is used to identify the target. For example when applied to a Mesh, the handle must reference the index of the geometry being modified; 0 for the shared geometry, and 1+ for SubMesh geometry with the same index-1. + -> EnumVertexAnimationType -- ^ animType - Either morph or pose animation, + -> IO (HG3DClass) + -- ^ +createVertexTrack a1 a2 a3 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in let {a3' = cIntFromEnum a3} in alloca $ \a4' -> - cAnCreateVertexTrack'_ a1' a2' a3' a4' >>= \res -> + createVertexTrack'_ 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 = +{-# LINE 86 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} + +-- | Creates a new AnimationTrackNodeThis method creates a standard AnimationTrackNode +createNodeTrack2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ handle - Numeric handle to give the track, used for accessing the track later. Must be unique within this Animation. + -> HG3DClass -- ^ node - A pointer to the Node object which will be affected by this track + -> IO (HG3DClass) + -- ^ +createNodeTrack2 a1 a2 a3 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in withHG3DClass a3 $ \a3' -> alloca $ \a4' -> - cAnCreateNodeTrack2'_ a1' a2' a3' a4' >>= \res -> + createNodeTrack2'_ a1' a2' a3' a4' >>= \res -> peek a4'>>= \a4'' -> return (a4'') -{-# LINE 93 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -; -cAnGetNumNodeTracks :: HG3DClass -> IO (Int) -cAnGetNumNodeTracks a1 = +{-# LINE 93 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} + +-- | Gets the number of NodeAnimationTrack +getNumNodeTracks :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getNumNodeTracks a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cAnGetNumNodeTracks'_ a1' a2' >>= \res -> + getNumNodeTracks'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 97 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -; -cAnGetNodeTrack :: HG3DClass -> Int -> IO (HG3DClass) -cAnGetNodeTrack a1 a2 = +{-# LINE 98 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} + +-- | Gets a node track by it's handle. +getNodeTrack :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ handle + -> IO (HG3DClass) + -- ^ +getNodeTrack a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in alloca $ \a3' -> - cAnGetNodeTrack'_ a1' a2' a3' >>= \res -> + getNodeTrack'_ a1' a2' a3' >>= \res -> peek a3'>>= \a3'' -> return (a3'') -{-# LINE 102 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -; -cAnHasNodeTrack :: HG3DClass -> Int -> IO (Bool) -cAnHasNodeTrack a1 a2 = +{-# LINE 104 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} + +-- | Does a track exist with the given handle? +hasNodeTrack :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ handle + -> IO (Bool) + -- ^ +hasNodeTrack a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in alloca $ \a3' -> - cAnHasNodeTrack'_ a1' a2' a3' >>= \res -> + hasNodeTrack'_ a1' a2' a3' >>= \res -> peekBoolUtil a3'>>= \a3'' -> return (a3'') -{-# LINE 107 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -; -cAnGetNumNumericTracks :: HG3DClass -> IO (Int) -cAnGetNumNumericTracks a1 = +{-# LINE 110 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} + +-- | Gets the number of NumericAnimationTrack +getNumNumericTracks :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getNumNumericTracks a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cAnGetNumNumericTracks'_ a1' a2' >>= \res -> + getNumNumericTracks'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 111 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -; -cAnGetNumericTrack :: HG3DClass -> Int -> IO (HG3DClass) -cAnGetNumericTrack a1 a2 = +{-# LINE 115 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} + +-- | Gets a numeric track by it's handle. +getNumericTrack :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ handle + -> IO (HG3DClass) + -- ^ +getNumericTrack a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in alloca $ \a3' -> - cAnGetNumericTrack'_ a1' a2' a3' >>= \res -> + getNumericTrack'_ a1' a2' a3' >>= \res -> peek a3'>>= \a3'' -> return (a3'') -{-# LINE 116 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -; -cAnHasNumericTrack :: HG3DClass -> Int -> IO (Bool) -cAnHasNumericTrack a1 a2 = +{-# LINE 121 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} + +-- | Does a track exist with the given handle? +hasNumericTrack :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ handle + -> IO (Bool) + -- ^ +hasNumericTrack a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in alloca $ \a3' -> - cAnHasNumericTrack'_ a1' a2' a3' >>= \res -> + hasNumericTrack'_ a1' a2' a3' >>= \res -> peekBoolUtil a3'>>= \a3'' -> return (a3'') -{-# LINE 121 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -; -cAnGetNumVertexTracks :: HG3DClass -> IO (Int) -cAnGetNumVertexTracks a1 = +{-# LINE 127 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} + +-- | Gets the number of VertexAnimationTrack +getNumVertexTracks :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getNumVertexTracks a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cAnGetNumVertexTracks'_ a1' a2' >>= \res -> + getNumVertexTracks'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 125 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -; -cAnGetVertexTrack :: HG3DClass -> Int -> IO (HG3DClass) -cAnGetVertexTrack a1 a2 = +{-# LINE 132 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} + +-- | Gets a Vertex track by it's handle. +getVertexTrack :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ handle + -> IO (HG3DClass) + -- ^ +getVertexTrack a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in alloca $ \a3' -> - cAnGetVertexTrack'_ a1' a2' a3' >>= \res -> + getVertexTrack'_ a1' a2' a3' >>= \res -> peek a3'>>= \a3'' -> return (a3'') -{-# LINE 130 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -; -cAnHasVertexTrack :: HG3DClass -> Int -> IO (Bool) -cAnHasVertexTrack a1 a2 = +{-# LINE 138 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} + +-- | Does a track exist with the given handle? +hasVertexTrack :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ handle + -> IO (Bool) + -- ^ +hasVertexTrack a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in alloca $ \a3' -> - cAnHasVertexTrack'_ a1' a2' a3' >>= \res -> + hasVertexTrack'_ a1' a2' a3' >>= \res -> peekBoolUtil a3'>>= \a3'' -> return (a3'') -{-# LINE 135 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -; -cAnDestroyNodeTrack :: HG3DClass -> Int -> IO () -cAnDestroyNodeTrack a1 a2 = +{-# LINE 144 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} + +-- | Destroys the node track with the given handle. +destroyNodeTrack :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ handle + -> IO () + -- ^ +destroyNodeTrack a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in - cAnDestroyNodeTrack'_ a1' a2' >>= \res -> + destroyNodeTrack'_ a1' a2' >>= \res -> return () -{-# LINE 139 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -; -cAnDestroyNumericTrack :: HG3DClass -> Int -> IO () -cAnDestroyNumericTrack a1 a2 = +{-# LINE 149 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} + +-- | Destroys the numeric track with the given handle. +destroyNumericTrack :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ handle + -> IO () + -- ^ +destroyNumericTrack a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in - cAnDestroyNumericTrack'_ a1' a2' >>= \res -> + destroyNumericTrack'_ a1' a2' >>= \res -> return () -{-# LINE 143 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -; -cAnDestroyVertexTrack :: HG3DClass -> Int -> IO () -cAnDestroyVertexTrack a1 a2 = +{-# LINE 154 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} + +-- | Destroys the Vertex track with the given handle. +destroyVertexTrack :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ handle + -> IO () + -- ^ +destroyVertexTrack a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in - cAnDestroyVertexTrack'_ a1' a2' >>= \res -> + destroyVertexTrack'_ a1' a2' >>= \res -> return () -{-# LINE 147 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -; -cAnDestroyAllTracks :: HG3DClass -> IO () -cAnDestroyAllTracks a1 = +{-# LINE 159 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} + +-- | Removes and destroys all tracks making up this animation. +destroyAllTracks :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +destroyAllTracks a1 = withHG3DClass a1 $ \a1' -> - cAnDestroyAllTracks'_ a1' >>= \res -> + destroyAllTracks'_ a1' >>= \res -> return () -{-# LINE 150 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -; -cAnDestroyAllNodeTracks :: HG3DClass -> IO () -cAnDestroyAllNodeTracks a1 = +{-# LINE 163 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} + +-- | Removes and destroys all tracks making up this animation. +destroyAllNodeTracks :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +destroyAllNodeTracks a1 = withHG3DClass a1 $ \a1' -> - cAnDestroyAllNodeTracks'_ a1' >>= \res -> + destroyAllNodeTracks'_ a1' >>= \res -> return () -{-# LINE 153 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -; -cAnDestroyAllNumericTracks :: HG3DClass -> IO () -cAnDestroyAllNumericTracks a1 = +{-# LINE 167 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} + +-- | Removes and destroys all tracks making up this animation. +destroyAllNumericTracks :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +destroyAllNumericTracks a1 = withHG3DClass a1 $ \a1' -> - cAnDestroyAllNumericTracks'_ a1' >>= \res -> + destroyAllNumericTracks'_ a1' >>= \res -> return () -{-# LINE 156 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -; -cAnDestroyAllVertexTracks :: HG3DClass -> IO () -cAnDestroyAllVertexTracks a1 = +{-# LINE 171 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} + +-- | Removes and destroys all tracks making up this animation. +destroyAllVertexTracks :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +destroyAllVertexTracks a1 = withHG3DClass a1 $ \a1' -> - cAnDestroyAllVertexTracks'_ a1' >>= \res -> + destroyAllVertexTracks'_ a1' >>= \res -> return () -{-# LINE 159 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -; -cAnApply :: HG3DClass -> Float -> Float -> Float -> IO () -cAnApply a1 a2 a3 a4 = +{-# LINE 175 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} + +-- | Applies an animation given a specific time point and weight. Where you have associated animation tracks with objects, you can easily apply an animation to those objects by calling this method. +apply :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ timePos - The time position in the animation to apply. + -> Float -- ^ weight - The influence to give to this track, 1.0 for full influence, less to blend with other animations. + -> Float -- ^ scale - The scale to apply to translations and scalings, useful for adapting an animation to a different size target. + -> IO () + -- ^ +apply 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 -> + apply'_ 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 = +{-# LINE 182 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} + +-- | Applies all node tracks given a specific time point and weight to the specified node. It does not consider the actual node tracks are attached to. As such, it resembles the apply method for a given skeleton (see below). +applyToNode :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ node + -> Float -- ^ timePos - The time position in the animation to apply. + -> Float -- ^ weight - The influence to give to this track, 1.0 for full influence, less to blend with other animations. + -> Float -- ^ scale - The scale to apply to translations and scalings, useful for adapting an animation to a different size target. + -> IO () + -- ^ +applyToNode 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 -> + applyToNode'_ 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 = +{-# LINE 190 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} + +-- | Applies all node tracks given a specific time point and weight to a given skeleton. Where you have associated animation tracks with Node +apply2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ skeleton + -> Float -- ^ timePos - The time position in the animation to apply. + -> Float -- ^ weight - The influence to give to this track, 1.0 for full influence, less to blend with other animations. + -> Float -- ^ scale - The scale to apply to translations and scalings, useful for adapting an animation to a different size target. + -> IO () + -- ^ +apply2 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 -> + apply2'_ 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 = +{-# LINE 198 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} + +-- | Applies all vertex tracks given a specific time point and weight to a given entity. +apply4 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ entity - The Entity to which this animation should be applied + -> Float -- ^ timePos - The time position in the animation to apply. + -> Float -- ^ weight - The weight at which the animation should be applied (only affects pose animation) + -> Bool -- ^ software - Whether to populate the software morph vertex data + -> Bool -- ^ hardware - Whether to populate the hardware morph vertex data + -> IO () + -- ^ +apply4 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 -> + apply4'_ a1' a2' a3' a4' a5' a6' >>= \res -> return () -{-# LINE 187 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -; -cAnSetInterpolationMode :: HG3DClass -> EnumInterpolationMode -> IO () -cAnSetInterpolationMode a1 a2 = +{-# LINE 207 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} + +-- | Tells the animation how to interpolate between keyframes. By default, animations normally interpolate linearly between keyframes. This is fast, but when animations include quick changes in direction it can look a little unnatural because directions change instantly at keyframes. An alternative is to tell the animation to interpolate along a spline, which is more expensive in terms of calculation time, but looks smoother because major changes in direction are distributed around the keyframes rather than just at the keyframe. You can also change the default animation behaviour by calling Animation::setDefaultInterpolationMode +setInterpolationMode :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> EnumAnimationInterpolationMode -- ^ im + -> IO () + -- ^ +setInterpolationMode a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = cIntFromEnum a2} in - cAnSetInterpolationMode'_ a1' a2' >>= \res -> + setInterpolationMode'_ a1' a2' >>= \res -> return () -{-# LINE 191 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -; -cAnGetInterpolationMode :: HG3DClass -> IO (EnumInterpolationMode) -cAnGetInterpolationMode a1 = +{-# LINE 212 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} + +-- | Gets the current interpolation mode of this animation. See setInterpolationMode for more info. +getInterpolationMode :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (EnumAnimationInterpolationMode) + -- ^ +getInterpolationMode a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cAnGetInterpolationMode'_ a1' a2' >>= \res -> + getInterpolationMode'_ a1' a2' >>= \res -> peekEnumUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 195 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -; -cAnSetRotationInterpolationMode :: HG3DClass -> EnumRotationInterpolationMode -> IO () -cAnSetRotationInterpolationMode a1 a2 = +{-# LINE 217 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} + +-- | Tells the animation how to interpolate rotations. By default, animations interpolate linearly between rotations. This is fast but not necessarily completely accurate. If you want more accurate interpolation, use spherical interpolation, but be aware that it will incur a higher cost. You can also change the default rotation behaviour by calling Animation::setDefaultRotationInterpolationMode +setRotationInterpolationMode :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> EnumAnimationRotationInterpolationMode -- ^ im + -> IO () + -- ^ +setRotationInterpolationMode a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = cIntFromEnum a2} in - cAnSetRotationInterpolationMode'_ a1' a2' >>= \res -> + setRotationInterpolationMode'_ a1' a2' >>= \res -> return () -{-# LINE 199 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -; -cAnGetRotationInterpolationMode :: HG3DClass -> IO (EnumRotationInterpolationMode) -cAnGetRotationInterpolationMode a1 = +{-# LINE 222 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} + +-- | Gets the current rotation interpolation mode of this animation. See setRotationInterpolationMode for more info. +getRotationInterpolationMode :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (EnumAnimationRotationInterpolationMode) + -- ^ +getRotationInterpolationMode a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cAnGetRotationInterpolationMode'_ a1' a2' >>= \res -> + getRotationInterpolationMode'_ a1' a2' >>= \res -> peekEnumUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 203 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -; -cAnOptimise :: HG3DClass -> Bool -> IO () -cAnOptimise a1 a2 = +{-# LINE 227 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} + +-- | Optimise an animation by removing unnecessary tracks and keyframes. When you export an animation, it is possible that certain tracks have been keyframed but actually don't include anything useful - the keyframes include no transformation. These tracks can be completely eliminated from the animation and thus speed up the animation. In addition, if several keyframes in a row have the same value, then they are just adding overhead and can be removed. Since track-less and identity track has difference behavior for accumulate animation blending if corresponding track presenting at other animation that is non-identity, and in normally this method didn't known about the situation of other animation, it can't deciding whether or not discards identity tracks. So there have a parameter allow you choose what you want, in case you aren't sure how to do that, you should use Skeleton::optimiseAllAnimations +optimise :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ discardIdentityNodeTracks - If true, discard identity node tracks. + -> IO () + -- ^ +optimise a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cAnOptimise'_ a1' a2' >>= \res -> + optimise'_ a1' a2' >>= \res -> return () -{-# LINE 207 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -; -cAnClone :: HG3DClass -> String -> IO (HG3DClass) -cAnClone a1 a2 = +{-# LINE 232 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} + +-- | Clone this animation. The pointer returned from this method is the only one recorded, thus it is up to the caller to arrange for the deletion of this object. +clone :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ newName + -> IO (HG3DClass) + -- ^ +clone a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> alloca $ \a3' -> - cAnClone'_ a1' a2' a3' >>= \res -> + clone'_ 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 -> +{-# LINE 238 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} + +-- | Sets the default animation interpolation mode. Every animation created after this option is set will have the new interpolation mode specified. You can also change the mode per animation by calling the setInterpolationMode method on the instance in question. +setDefaultInterpolationMode :: EnumAnimationInterpolationMode -- ^ im + -> IO () + -- ^ +setDefaultInterpolationMode a1 = + let {a1' = cIntFromEnum a1} in + setDefaultInterpolationMode'_ a1' >>= \res -> return () -{-# LINE 215 "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -; +{-# LINE 242 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_getName_c" - cAnGetName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) +-- | Gets the default interpolation mode for all animations. +getDefaultInterpolationMode :: IO (EnumAnimationInterpolationMode) + -- ^ +getDefaultInterpolationMode = + alloca $ \a1' -> + getDefaultInterpolationMode'_ a1' >>= \res -> + peekEnumUtil a1'>>= \a1'' -> + return (a1'') +{-# LINE 246 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_getLength_c" - cAnGetLength'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) +-- | Sets the default rotation interpolation mode. Every animation created after this option is set will have the new interpolation mode specified. You can also change the mode per animation by calling the setInterpolationMode method on the instance in question. +setDefaultRotationInterpolationMode :: EnumAnimationRotationInterpolationMode -- ^ im + -> IO () + -- ^ +setDefaultRotationInterpolationMode a1 = + let {a1' = cIntFromEnum a1} in + setDefaultRotationInterpolationMode'_ a1' >>= \res -> + return () +{-# LINE 250 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn_setLength_c" - cAnSetLength'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) +-- | Gets the default rotation interpolation mode for all animations. +getDefaultRotationInterpolationMode :: IO (EnumAnimationRotationInterpolationMode) + -- ^ +getDefaultRotationInterpolationMode = + alloca $ \a1' -> + getDefaultRotationInterpolationMode'_ a1' >>= \res -> + peekEnumUtil a1'>>= \a1'' -> + return (a1'') +{-# LINE 254 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs" #-} -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 ogre_anm_destruct" + delete'_ :: ((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 ogre_anm_getName" + getName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (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 ogre_anm_getLength" + getLength'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (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 ogre_anm_setLength" + setLength'_ :: ((HG3DClassPtr) -> (CFloat -> (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 ogre_anm_createNodeTrack" + createNodeTrack'_ :: ((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 ogre_anm_createNumericTrack" + createNumericTrack'_ :: ((HG3DClassPtr) -> (CUShort -> ((HG3DClassPtr) -> (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 ogre_anm_createVertexTrack" + createVertexTrack'_ :: ((HG3DClassPtr) -> (CUShort -> (CInt -> ((HG3DClassPtr) -> (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 ogre_anm_createNodeTrack2" + createNodeTrack2'_ :: ((HG3DClassPtr) -> (CUShort -> ((HG3DClassPtr) -> ((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 ogre_anm_getNumNodeTracks" + getNumNodeTracks'_ :: ((HG3DClassPtr) -> ((Ptr CUShort) -> (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 ogre_anm_getNodeTrack" + getNodeTrack'_ :: ((HG3DClassPtr) -> (CUShort -> ((HG3DClassPtr) -> (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 ogre_anm_hasNodeTrack" + hasNodeTrack'_ :: ((HG3DClassPtr) -> (CUShort -> ((Ptr CInt) -> (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 ogre_anm_getNumNumericTracks" + getNumNumericTracks'_ :: ((HG3DClassPtr) -> ((Ptr CUShort) -> (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 ogre_anm_getNumericTrack" + getNumericTrack'_ :: ((HG3DClassPtr) -> (CUShort -> ((HG3DClassPtr) -> (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 ogre_anm_hasNumericTrack" + hasNumericTrack'_ :: ((HG3DClassPtr) -> (CUShort -> ((Ptr CInt) -> (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 ogre_anm_getNumVertexTracks" + getNumVertexTracks'_ :: ((HG3DClassPtr) -> ((Ptr 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 ogre_anm_getVertexTrack" + getVertexTrack'_ :: ((HG3DClassPtr) -> (CUShort -> ((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 ogre_anm_hasVertexTrack" + hasVertexTrack'_ :: ((HG3DClassPtr) -> (CUShort -> ((Ptr CInt) -> (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 ogre_anm_destroyNodeTrack" + destroyNodeTrack'_ :: ((HG3DClassPtr) -> (CUShort -> (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 ogre_anm_destroyNumericTrack" + destroyNumericTrack'_ :: ((HG3DClassPtr) -> (CUShort -> (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 ogre_anm_destroyVertexTrack" + destroyVertexTrack'_ :: ((HG3DClassPtr) -> (CUShort -> (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 ogre_anm_destroyAllTracks" + destroyAllTracks'_ :: ((HG3DClassPtr) -> (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 ogre_anm_destroyAllNodeTracks" + destroyAllNodeTracks'_ :: ((HG3DClassPtr) -> (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 ogre_anm_destroyAllNumericTracks" + destroyAllNumericTracks'_ :: ((HG3DClassPtr) -> (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 ogre_anm_destroyAllVertexTracks" + destroyAllVertexTracks'_ :: ((HG3DClassPtr) -> (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 ogre_anm_apply" + apply'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (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 ogre_anm_applyToNode" + applyToNode'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (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 ogre_anm_apply2" + apply2'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (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 ogre_anm_apply4" + apply4'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CInt -> (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 ogre_anm_setInterpolationMode" + setInterpolationMode'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h cAn__keyFrameListChanged_c" - cAnKeyFrameListChanged'_ :: ((HG3DClassPtr) -> (IO ())) +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h ogre_anm_getInterpolationMode" + getInterpolationMode'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h ogre_anm_setRotationInterpolationMode" + setRotationInterpolationMode'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h ogre_anm_getRotationInterpolationMode" + getRotationInterpolationMode'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h ogre_anm_optimise" + optimise'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h ogre_anm_clone" + clone'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h ogre_anm_setDefaultInterpolationMode" + setDefaultInterpolationMode'_ :: (CInt -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h ogre_anm_getDefaultInterpolationMode" + getDefaultInterpolationMode'_ :: ((Ptr CInt) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h ogre_anm_setDefaultRotationInterpolationMode" + setDefaultRotationInterpolationMode'_ :: (CInt -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimation.chs.h ogre_anm_getDefaultRotationInterpolationMode" + getDefaultRotationInterpolationMode'_ :: ((Ptr CInt) -> (IO ()))
HGamer3D/Bindings/Ogre/ClassAnimationState.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,213 +39,356 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} +-- | Normal constructor with all params supplied. +new :: String -- ^ animName + -> HG3DClass -- ^ parent + -> Float -- ^ timePos + -> Float -- ^ length + -> Float -- ^ weight + -> Bool -- ^ enabled + -> IO (HG3DClass) + -- ^ +new a1 a2 a3 a4 a5 a6 = + withCString a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + let {a5' = realToFrac a5} in + let {a6' = fromBool a6} in + alloca $ \a7' -> + new'_ a1' a2' a3' a4' a5' a6' a7' >>= \res -> + peek a7'>>= \a7'' -> + return (a7'') +{-# LINE 55 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} -cAnsGetAnimationName :: HG3DClass -> IO (String) -cAnsGetAnimationName a1 = +-- | Destructor - is here because class has virtual functions and some compilers would whine if it won't exist. +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 59 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} + +-- | Gets the name of the animation to which this state applies. +getAnimationName :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getAnimationName a1 = + withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> - cAnsGetAnimationName'_ a1' a2' >>= \res -> + getAnimationName'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') -{-# LINE 60 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} -; -cAnsGetTimePosition :: HG3DClass -> IO (Float) -cAnsGetTimePosition a1 = +{-# LINE 64 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} + +-- | Gets the time position for this animation. +getTimePosition :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getTimePosition a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cAnsGetTimePosition'_ a1' a2' >>= \res -> + getTimePosition'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') -{-# LINE 64 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} -; -cAnsSetTimePosition :: HG3DClass -> Float -> IO () -cAnsSetTimePosition a1 a2 = +{-# LINE 69 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} + +-- | Sets the time position for this animation. +setTimePosition :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ timePos + -> IO () + -- ^ +setTimePosition a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in - cAnsSetTimePosition'_ a1' a2' >>= \res -> + setTimePosition'_ a1' a2' >>= \res -> return () -{-# LINE 68 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} -; -cAnsGetLength :: HG3DClass -> IO (Float) -cAnsGetLength a1 = +{-# LINE 74 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} + +-- | Gets the total length of this animation (may be shorter than whole animation) +getLength :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getLength a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cAnsGetLength'_ a1' a2' >>= \res -> + getLength'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') -{-# LINE 72 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} -; -cAnsSetLength :: HG3DClass -> Float -> IO () -cAnsSetLength a1 a2 = +{-# LINE 79 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} + +-- | Sets the total length of this animation (may be shorter than whole animation) +setLength :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ len + -> IO () + -- ^ +setLength a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in - cAnsSetLength'_ a1' a2' >>= \res -> + setLength'_ a1' a2' >>= \res -> return () -{-# LINE 76 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} -; -cAnsGetWeight :: HG3DClass -> IO (Float) -cAnsGetWeight a1 = +{-# LINE 84 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} + +-- | Gets the weight (influence) of this animation. +getWeight :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getWeight a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cAnsGetWeight'_ a1' a2' >>= \res -> + getWeight'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') -{-# LINE 80 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} -; -cAnsSetWeight :: HG3DClass -> Float -> IO () -cAnsSetWeight a1 a2 = +{-# LINE 89 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} + +-- | Sets the weight (influence) of this animation. +setWeight :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ weight + -> IO () + -- ^ +setWeight a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in - cAnsSetWeight'_ a1' a2' >>= \res -> + setWeight'_ a1' a2' >>= \res -> return () -{-# LINE 84 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} -; -cAnsAddTime :: HG3DClass -> Float -> IO () -cAnsAddTime a1 a2 = +{-# LINE 94 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} + +-- | Modifies the time position, adjusting for animation length This method loops at the edges if animation looping is enabled. +addTime :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ offset + -> IO () + -- ^ +addTime a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in - cAnsAddTime'_ a1' a2' >>= \res -> + addTime'_ a1' a2' >>= \res -> return () -{-# LINE 88 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} -; -cAnsHasEnded :: HG3DClass -> IO (Bool) -cAnsHasEnded a1 = +{-# LINE 99 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} + +-- | Returns true if the animation has reached the end and is not looping. +hasEnded :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +hasEnded a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cAnsHasEnded'_ a1' a2' >>= \res -> + hasEnded'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 92 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} -; -cAnsGetEnabled :: HG3DClass -> IO (Bool) -cAnsGetEnabled a1 = +{-# LINE 104 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} + +-- | Returns true if this animation is currently enabled. +getEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getEnabled a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cAnsGetEnabled'_ a1' a2' >>= \res -> + getEnabled'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 96 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} -; -cAnsSetEnabled :: HG3DClass -> Bool -> IO () -cAnsSetEnabled a1 a2 = +{-# LINE 109 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} + +-- | Sets whether this animation is enabled. +setEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ enabled + -> IO () + -- ^ +setEnabled a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cAnsSetEnabled'_ a1' a2' >>= \res -> + setEnabled'_ a1' a2' >>= \res -> return () -{-# LINE 100 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} -; -cAnsSetLoop :: HG3DClass -> Bool -> IO () -cAnsSetLoop a1 a2 = +{-# LINE 114 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} + +-- | Sets whether or not an animation loops at the start and end of the animation if the time continues to be altered. +setLoop :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ loop + -> IO () + -- ^ +setLoop a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cAnsSetLoop'_ a1' a2' >>= \res -> + setLoop'_ a1' a2' >>= \res -> return () -{-# LINE 104 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} -; -cAnsGetLoop :: HG3DClass -> IO (Bool) -cAnsGetLoop a1 = +{-# LINE 119 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} + +-- | Gets whether or not this animation loops. +getLoop :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getLoop a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cAnsGetLoop'_ a1' a2' >>= \res -> + getLoop'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 108 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} -; -cAnsCreateBlendMask :: HG3DClass -> Int -> Float -> IO () -cAnsCreateBlendMask a1 a2 a3 = +{-# LINE 124 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} + +-- | Copies the states from another animation state, preserving the animation name (unlike operator=) but copying everything else. +copyStateFrom :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ animState - Reference to animation state which will use as source. + -> IO () + -- ^ +copyStateFrom a1 a2 = withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + copyStateFrom'_ a1' a2' >>= \res -> + return () +{-# LINE 129 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} + +-- | Get the parent animation state set. +getParent :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (HG3DClass) + -- ^ +getParent a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getParent'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 134 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} + +-- | create a new blend mask with the given number of entries - Details: In addition to assigning a single weight value to a skeletal animation, it may be desirable to assign animation weights per bone using a 'blend mask'. +createBlendMask :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ blendMaskSizeHint + -> Float -- ^ initialWeight + -> IO () + -- ^ +createBlendMask a1 a2 a3 = + withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in let {a3' = realToFrac a3} in - cAnsCreateBlendMask'_ a1' a2' a3' >>= \res -> + createBlendMask'_ a1' a2' a3' >>= \res -> return () -{-# LINE 113 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} -; -cAnsDestroyBlendMask :: HG3DClass -> IO () -cAnsDestroyBlendMask a1 = +{-# LINE 140 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} + +-- | destroy the currently set blend mask +destroyBlendMask :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +destroyBlendMask a1 = withHG3DClass a1 $ \a1' -> - cAnsDestroyBlendMask'_ a1' >>= \res -> + destroyBlendMask'_ a1' >>= \res -> return () -{-# LINE 116 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} -; -cAnsHasBlendMask :: HG3DClass -> IO (Bool) -cAnsHasBlendMask a1 = +{-# LINE 144 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} + +-- | return whether there is currently a valid blend mask set +hasBlendMask :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +hasBlendMask a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cAnsHasBlendMask'_ a1' a2' >>= \res -> + hasBlendMask'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 120 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} -; -cAnsSetBlendMaskEntry :: HG3DClass -> Int -> Float -> IO () -cAnsSetBlendMaskEntry a1 a2 a3 = +{-# LINE 149 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} + +-- | set the weight for the bone identified by the given handle +setBlendMaskEntry :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ boneHandle + -> Float -- ^ weight + -> IO () + -- ^ +setBlendMaskEntry a1 a2 a3 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in let {a3' = realToFrac a3} in - cAnsSetBlendMaskEntry'_ a1' a2' a3' >>= \res -> + setBlendMaskEntry'_ a1' a2' a3' >>= \res -> return () -{-# LINE 125 "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} -; +{-# LINE 155 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs.h cAns_getAnimationName_c" - cAnsGetAnimationName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) +-- | get the weight for the bone identified by the given handle +getBlendMaskEntry :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ boneHandle + -> IO (Float) + -- ^ +getBlendMaskEntry a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + getBlendMaskEntry'_ a1' a2' a3' >>= \res -> + peekFloatConv a3'>>= \a3'' -> + return (a3'') +{-# LINE 161 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs" #-} -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 ogre_anms_construct" + new'_ :: ((Ptr CChar) -> ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (CInt -> ((HG3DClassPtr) -> (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 ogre_anms_destruct" + delete'_ :: ((HG3DClassPtr) -> (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 ogre_anms_getAnimationName" + getAnimationName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (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 ogre_anms_getTimePosition" + getTimePosition'_ :: ((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 ogre_anms_setTimePosition" + setTimePosition'_ :: ((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 ogre_anms_getLength" + getLength'_ :: ((HG3DClassPtr) -> ((Ptr 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 ogre_anms_setLength" + setLength'_ :: ((HG3DClassPtr) -> (CFloat -> (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 ogre_anms_getWeight" + getWeight'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (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 ogre_anms_setWeight" + setWeight'_ :: ((HG3DClassPtr) -> (CFloat -> (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 ogre_anms_addTime" + addTime'_ :: ((HG3DClassPtr) -> (CFloat -> (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 ogre_anms_hasEnded" + hasEnded'_ :: ((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 ogre_anms_getEnabled" + getEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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 ogre_anms_setEnabled" + setEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_anms_setLoop" + setLoop'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs.h cAns_setBlendMaskEntry_c" - cAnsSetBlendMaskEntry'_ :: ((HG3DClassPtr) -> (CInt -> (CFloat -> (IO ())))) +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs.h ogre_anms_getLoop" + getLoop'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs.h ogre_anms_copyStateFrom" + copyStateFrom'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs.h ogre_anms_getParent" + getParent'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs.h ogre_anms_createBlendMask" + createBlendMask'_ :: ((HG3DClassPtr) -> (CInt -> (CFloat -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs.h ogre_anms_destroyBlendMask" + destroyBlendMask'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs.h ogre_anms_hasBlendMask" + hasBlendMask'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs.h ogre_anms_setBlendMaskEntry" + setBlendMaskEntry'_ :: ((HG3DClassPtr) -> (CInt -> (CFloat -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationState.chs.h ogre_anms_getBlendMaskEntry" + getBlendMaskEntry'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CFloat) -> (IO ()))))
+ HGamer3D/Bindings/Ogre/ClassAnimationStateSet.hs view
@@ -0,0 +1,182 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationStateSet.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- + +-- (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. +-- + + +-- ClassAnimationStateSet.chs + +-- + +module HGamer3D.Bindings.Ogre.ClassAnimationStateSet where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationStateSet.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationStateSet.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationStateSet.chs" #-} + +-- | +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = + withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 49 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationStateSet.chs" #-} + +-- | Create a new AnimationState +createAnimationState :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ animName - The name of the animation + -> Float -- ^ timePos - Starting time position + -> Float -- ^ length - Length of the animation to play + -> Float -- ^ weight - Weight to apply the animation with + -> Bool -- ^ enabled - Whether the animation is enabled + -> IO (HG3DClass) + -- ^ +createAnimationState a1 a2 a3 a4 a5 a6 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + let {a5' = realToFrac a5} in + let {a6' = fromBool a6} in + alloca $ \a7' -> + createAnimationState'_ a1' a2' a3' a4' a5' a6' a7' >>= \res -> + peek a7'>>= \a7'' -> + return (a7'') +{-# LINE 59 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationStateSet.chs" #-} + +-- | Get an animation state by the name of the animation. +getAnimationState :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (HG3DClass) + -- ^ +getAnimationState a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + getAnimationState'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 65 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationStateSet.chs" #-} + +-- | Tests if state for the named animation is present. +hasAnimationState :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (Bool) + -- ^ +hasAnimationState a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + hasAnimationState'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 71 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationStateSet.chs" #-} + +-- | Remove animation state with the given name. +removeAnimationState :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO () + -- ^ +removeAnimationState a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + removeAnimationState'_ a1' a2' >>= \res -> + return () +{-# LINE 76 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationStateSet.chs" #-} + +-- | Remove all animation states. +removeAllAnimationStates :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +removeAllAnimationStates a1 = + withHG3DClass a1 $ \a1' -> + removeAllAnimationStates'_ a1' >>= \res -> + return () +{-# LINE 80 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationStateSet.chs" #-} + +-- | Copy the state of any matching animation states from this to another. +copyMatchingState :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ target + -> IO () + -- ^ +copyMatchingState a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + copyMatchingState'_ a1' a2' >>= \res -> + return () +{-# LINE 85 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationStateSet.chs" #-} + +-- | Tests if exists enabled animation state in this set. +hasEnabledAnimationState :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +hasEnabledAnimationState a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + hasEnabledAnimationState'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 90 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationStateSet.chs" #-} + + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationStateSet.chs.h ogre_ass_destruct" + delete'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationStateSet.chs.h ogre_ass_createAnimationState" + createAnimationState'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CFloat -> (CFloat -> (CFloat -> (CInt -> ((HG3DClassPtr) -> (IO ())))))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationStateSet.chs.h ogre_ass_getAnimationState" + getAnimationState'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationStateSet.chs.h ogre_ass_hasAnimationState" + hasAnimationState'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationStateSet.chs.h ogre_ass_removeAnimationState" + removeAnimationState'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationStateSet.chs.h ogre_ass_removeAllAnimationStates" + removeAllAnimationStates'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationStateSet.chs.h ogre_ass_copyMatchingState" + copyMatchingState'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationStateSet.chs.h ogre_ass_hasEnabledAnimationState" + hasEnabledAnimationState'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
HGamer3D/Bindings/Ogre/ClassAnimationTrack.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,120 +39,147 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-} +-- | +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = + withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 49 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-} -cAntGetHandle :: HG3DClass -> IO (Int) -cAntGetHandle a1 = +-- | Get the handle associated with this track. +getHandle :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getHandle a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cAntGetHandle'_ a1' a2' >>= \res -> + getHandle'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 60 "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-} -; -cAntGetNumKeyFrames :: HG3DClass -> IO (Int) -cAntGetNumKeyFrames a1 = +{-# LINE 54 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-} + +-- | Returns the number of keyframes in this animation. +getNumKeyFrames :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getNumKeyFrames a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cAntGetNumKeyFrames'_ a1' a2' >>= \res -> + getNumKeyFrames'_ 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 = +{-# LINE 59 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-} + +-- | Removes a KeyFrame +removeKeyFrame :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ index + -> IO () + -- ^ +removeKeyFrame a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in - cAntRemoveKeyFrame'_ a1' a2' >>= \res -> + removeKeyFrame'_ a1' a2' >>= \res -> return () -{-# LINE 78 "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-} -; -cAntRemoveAllKeyFrames :: HG3DClass -> IO () -cAntRemoveAllKeyFrames a1 = +{-# LINE 64 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-} + +-- | Removes all the KeyFrames from this track. +removeAllKeyFrames :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +removeAllKeyFrames a1 = withHG3DClass a1 $ \a1' -> - cAntRemoveAllKeyFrames'_ a1' >>= \res -> + removeAllKeyFrames'_ a1' >>= \res -> return () -{-# LINE 81 "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-} -; -cAntKeyFrameDataChanged :: HG3DClass -> IO () -cAntKeyFrameDataChanged a1 = +{-# LINE 68 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-} + +-- | Applies an animation track to the designated target. +apply :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ timeIndex - The time position in the animation to apply. + -> Float -- ^ weight - The influence to give to this track, 1.0 for full influence, less to blend with other animations. + -> Float -- ^ scale - The scale to apply to translations and scalings, useful for adapting an animation to a different size target. + -> IO () + -- ^ +apply a1 a2 a3 a4 = withHG3DClass a1 $ \a1' -> - cAntKeyFrameDataChanged'_ a1' >>= \res -> + withHG3DClass a2 $ \a2' -> + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + apply'_ a1' a2' a3' a4' >>= \res -> return () -{-# LINE 84 "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-} -; -cAntHasNonZeroKeyFrames :: HG3DClass -> IO (Bool) -cAntHasNonZeroKeyFrames a1 = +{-# LINE 75 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-} + +-- | Method to determine if this track has any KeyFrames which are doing anything useful - can be used to determine if this track can be optimised out. +hasNonZeroKeyFrames :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +hasNonZeroKeyFrames a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cAntHasNonZeroKeyFrames'_ a1' a2' >>= \res -> + hasNonZeroKeyFrames'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 88 "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-} -; -cAntOptimise :: HG3DClass -> IO () -cAntOptimise a1 = +{-# LINE 80 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-} + +-- | Optimise the current track by removing any duplicate keyframes. +optimise :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +optimise a1 = withHG3DClass a1 $ \a1' -> - cAntOptimise'_ a1' >>= \res -> + optimise'_ a1' >>= \res -> return () -{-# LINE 91 "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-} -; +{-# LINE 84 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-} -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs.h cAnt_getHandle_c" - cAntGetHandle'_ :: ((HG3DClassPtr) -> ((Ptr CUShort) -> (IO ()))) +-- | Returns the parent Animation +getParent :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (HG3DClass) + -- ^ +getParent a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getParent'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 89 ".\\HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs" #-} -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 ogre_at_destruct" + delete'_ :: ((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 ogre_at_getHandle" + getHandle'_ :: ((HG3DClassPtr) -> ((Ptr CUShort) -> (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 ogre_at_getNumKeyFrames" + getNumKeyFrames'_ :: ((HG3DClassPtr) -> ((Ptr 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 ogre_at_removeKeyFrame" + removeKeyFrame'_ :: ((HG3DClassPtr) -> (CUShort -> (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 ogre_at_removeAllKeyFrames" + removeAllKeyFrames'_ :: ((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 ogre_at_apply" + apply'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (CFloat -> (CFloat -> (IO ()))))) -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs.h cAnt_optimise_c" - cAntOptimise'_ :: ((HG3DClassPtr) -> (IO ())) +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs.h ogre_at_hasNonZeroKeyFrames" + hasNonZeroKeyFrames'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs.h ogre_at_optimise" + optimise'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs.h ogre_at_getParent" + getParent'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
HGamer3D/Bindings/Ogre/ClassArchive.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,196 +39,145 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} +-- | Default destructor. +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = + withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 49 ".\\HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} -cArGetName :: HG3DClass -> IO (String) -cArGetName a1 = +-- | Get the name of this archive. +getName :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getName a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> - cArGetName'_ a1' a2' >>= \res -> + getName'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') -{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} -; -cArIsCaseSensitive :: HG3DClass -> IO (Bool) -cArIsCaseSensitive a1 = +{-# LINE 54 ".\\HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} + +-- | Returns whether this archive is case sensitive in the way it matches files. +isCaseSensitive :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isCaseSensitive a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cArIsCaseSensitive'_ a1' a2' >>= \res -> + isCaseSensitive'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 65 "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} -; -cArLoad :: HG3DClass -> IO () -cArLoad a1 = +{-# LINE 59 ".\\HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} + +-- | Loads the archive. This initializes all the internal data of the class. Do not call this function directly, it is meant to be used only by the ArchiveManager +load :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +load a1 = withHG3DClass a1 $ \a1' -> - cArLoad'_ a1' >>= \res -> + load'_ a1' >>= \res -> return () -{-# LINE 68 "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} -; -cArUnload :: HG3DClass -> IO () -cArUnload a1 = +{-# LINE 63 ".\\HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} + +-- | Unloads the archive. Do not call this function directly, it is meant to be used only by the ArchiveManager +unload :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +unload a1 = withHG3DClass a1 $ \a1' -> - cArUnload'_ a1' >>= \res -> + unload'_ a1' >>= \res -> return () -{-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} -; -cArIsReadOnly :: HG3DClass -> IO (Bool) -cArIsReadOnly a1 = +{-# LINE 67 ".\\HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} + +-- | Reports whether this Archive +isReadOnly :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isReadOnly a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cArIsReadOnly'_ a1' a2' >>= \res -> + isReadOnly'_ 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 = +{-# LINE 72 ".\\HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} + +-- | Delete a named file. Not possible on read-only archives +remove :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ filename - The fully qualified name of the file + -> IO () + -- ^ +remove a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> - cArRemove'_ a1' a2' >>= \res -> + remove'_ 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 = +{-# LINE 77 ".\\HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} + +-- | Find out if the named file exists (note: fully qualified filename required) +exists :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ filename + -> IO (Bool) + -- ^ +exists a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> alloca $ \a3' -> - cArExists'_ a1' a2' a3' >>= \res -> + exists'_ 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 = +{-# LINE 83 ".\\HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} + +-- | Return the type code of this Archive +getType :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getType a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> - cArGetType'_ a1' a2' >>= \res -> + getType'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') -{-# LINE 125 "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs" #-} -; +{-# LINE 88 ".\\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 ogre_arch_destruct" + delete'_ :: ((HG3DClassPtr) -> (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 ogre_arch_getName" + getName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (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 ogre_arch_isCaseSensitive" + isCaseSensitive'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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 ogre_arch_load" + load'_ :: ((HG3DClassPtr) -> (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 ogre_arch_unload" + unload'_ :: ((HG3DClassPtr) -> (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 ogre_arch_isReadOnly" + isReadOnly'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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 ogre_arch_remove" + remove'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (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 ogre_arch_exists" + exists'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs.h cAr_getType_c" - cArGetType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassArchive.chs.h ogre_arch_getType" + getType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ())))
HGamer3D/Bindings/Ogre/ClassArchiveManager.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassArchiveManager.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,53 +39,89 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassArchiveManager.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassArchiveManager.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassArchiveManager.chs" #-} +-- | Default destructor. +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = + withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 49 ".\\HGamer3D\\Bindings\\Ogre\\ClassArchiveManager.chs" #-} -cArmLoad :: HG3DClass -> String -> String -> IO (HG3DClass) -cArmLoad a1 a2 a3 = +-- | Opens an archive for file reading. The archives are created using class factories within extension libraries. If the function fails, an exception is thrown. +load :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ filename - The filename that will be opened + -> String -- ^ archiveType + -> IO (HG3DClass) + -- ^ return value - If the function succeeds, a valid pointer to an +load a1 a2 a3 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> withCString a3 $ \a3' -> alloca $ \a4' -> - cArmLoad'_ a1' a2' a3' a4' >>= \res -> + load'_ a1' a2' a3' a4' >>= \res -> peek a4'>>= \a4'' -> return (a4'') -{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassArchiveManager.chs" #-} -; -cArmUnload :: HG3DClass -> HG3DClass -> IO () -cArmUnload a1 a2 = +{-# LINE 56 ".\\HGamer3D\\Bindings\\Ogre\\ClassArchiveManager.chs" #-} + +-- | Unloads an archive. You must ensure that this archive is not being used before removing it. +unload :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ arch + -> IO () + -- ^ +unload a1 a2 = withHG3DClass a1 $ \a1' -> withHG3DClass a2 $ \a2' -> - cArmUnload'_ a1' a2' >>= \res -> + unload'_ a1' a2' >>= \res -> return () -{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassArchiveManager.chs" #-} -; -cArmUnload2 :: HG3DClass -> String -> IO () -cArmUnload2 a1 a2 = +{-# LINE 61 ".\\HGamer3D\\Bindings\\Ogre\\ClassArchiveManager.chs" #-} + +-- | Unloads an archive by name. You must ensure that this archive is not being used before removing it. +unload2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ filename + -> IO () + -- ^ +unload2 a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> - cArmUnload2'_ a1' a2' >>= \res -> + unload2'_ a1' a2' >>= \res -> return () -{-# LINE 70 "HGamer3D\\Bindings\\Ogre\\ClassArchiveManager.chs" #-} -; +{-# LINE 66 ".\\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 ()))))) +-- | Override standard Singleton retrieval. Why do we do this? Well, it's because the Singleton implementation is in a .h file, which means it gets compiled into anybody who includes it. This is needed for the Singleton template to work, but we actually only want it compiled into the implementation of the class based on the Singleton, not all of them. If we don't change this, we get link errors when trying to use the Singleton-based class from an outside dll. This method just delegates to the template version anyway, but the implementation stays in this single compilation unit, preventing link errors. +getSingletonPtr :: IO (HG3DClass) + -- ^ +getSingletonPtr = + alloca $ \a1' -> + getSingletonPtr'_ a1' >>= \res -> + peek a1'>>= \a1'' -> + return (a1'') +{-# LINE 70 ".\\HGamer3D\\Bindings\\Ogre\\ClassArchiveManager.chs" #-} -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 ()))) +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassArchiveManager.chs.h ogre_archm_destruct" + delete'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassArchiveManager.chs.h ogre_archm_load" + load'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassArchiveManager.chs.h ogre_archm_unload" + unload'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassArchiveManager.chs.h ogre_archm_unload2" + unload2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassArchiveManager.chs.h ogre_archm_getSingletonPtr" + getSingletonPtr'_ :: ((HG3DClassPtr) -> (IO ()))
HGamer3D/Bindings/Ogre/ClassBillboard.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,223 +39,296 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} +import HGamer3D.Bindings.Ogre.StructRadians +{-# LINE 45 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} +import HGamer3D.Bindings.Ogre.StructVec3 +{-# LINE 46 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} +import HGamer3D.Bindings.Ogre.StructColour +{-# LINE 47 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} +-- | Default constructor. +new :: IO (HG3DClass) + -- ^ +new = + alloca $ \a1' -> + new'_ a1' >>= \res -> + peek a1'>>= \a1'' -> + return (a1'') +{-# LINE 52 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} -cBbGetRotation :: HG3DClass -> IO (Radians) -cBbGetRotation a1 = +-- | Default destructor. +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 56 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} + +-- | Get the rotation of the billboard. This rotation is relative to the center of the billboard. +getRotation :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Radians) + -- ^ +getRotation a1 = + withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cBbGetRotation'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> + getRotation'_ a1' a2' >>= \res -> + peekRadians a2'>>= \a2'' -> return (a2'') -{-# LINE 63 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} -; -cBbSetRotation :: HG3DClass -> Radians -> IO () -cBbSetRotation a1 a2 = +{-# LINE 61 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} + +-- | Set the rotation of the billboard. This rotation is relative to the center of the billboard. +setRotation :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Radians -- ^ rotation + -> IO () + -- ^ +setRotation a1 a2 = withHG3DClass a1 $ \a1' -> withRadians a2 $ \a2' -> - cBbSetRotation'_ a1' a2' >>= \res -> + setRotation'_ a1' a2' >>= \res -> return () -{-# LINE 67 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} -; -cBbSetPosition :: HG3DClass -> Vector3 -> IO () -cBbSetPosition a1 a2 = +{-# LINE 66 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} + +-- | Set the position of the billboard. This position is relative to a point on the quad which is the billboard. Depending on the BillboardSetBillboardSet::setBillboardOrigin +setPosition :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Vec3 -- ^ position + -> IO () + -- ^ +setPosition a1 a2 = withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> - cBbSetPosition'_ a1' a2' >>= \res -> + withVec3 a2 $ \a2' -> + setPosition'_ a1' a2' >>= \res -> return () -{-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} -; -cBbSetPosition2 :: HG3DClass -> Float -> Float -> Float -> IO () -cBbSetPosition2 a1 a2 a3 a4 = +{-# LINE 71 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} + +-- | Set the position of the billboard. This position is relative to a point on the quad which is the billboard. Depending on the BillboardSetBillboardSet::setBillboardOrigin +setPosition2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ x + -> Float -- ^ y + -> Float -- ^ z + -> IO () + -- ^ +setPosition2 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 -> + setPosition2'_ a1' a2' a3' a4' >>= \res -> return () -{-# LINE 77 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} -; -cBbGetPosition :: HG3DClass -> IO (Vector3) -cBbGetPosition a1 = +{-# LINE 78 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} + +-- | Get the position of the billboard. This position is relative to a point on the quad which is the billboard. Depending on the BillboardSetBillboardSet::setBillboardOrigin +getPosition :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Vec3) + -- ^ +getPosition a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cBbGetPosition'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> + getPosition'_ a1' a2' >>= \res -> + peekVec3 a2'>>= \a2'' -> return (a2'') -{-# LINE 81 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} -; -cBbSetDimensions :: HG3DClass -> Float -> Float -> IO () -cBbSetDimensions a1 a2 a3 = +{-# LINE 83 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} + +-- | Sets the width and height for this billboard. Note that it is most efficient for every billboard in a BillboardSetBillboardSet::setDefaultDimensions +setDimensions :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ width + -> Float -- ^ height + -> IO () + -- ^ +setDimensions a1 a2 a3 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in let {a3' = realToFrac a3} in - cBbSetDimensions'_ a1' a2' a3' >>= \res -> + setDimensions'_ a1' a2' a3' >>= \res -> return () -{-# LINE 86 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} -; -cBbResetDimensions :: HG3DClass -> IO () -cBbResetDimensions a1 = +{-# LINE 89 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} + +-- | Resets this BillboardBillboardSet +resetDimensions :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +resetDimensions a1 = withHG3DClass a1 $ \a1' -> - cBbResetDimensions'_ a1' >>= \res -> + resetDimensions'_ a1' >>= \res -> return () -{-# LINE 89 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} -; -cBbSetColour :: HG3DClass -> Colour -> IO () -cBbSetColour a1 a2 = +{-# LINE 93 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} + +-- | Sets the colour of this billboard. Billboards can be tinted based on a base colour. This allows variations in colour irrespective of the base colour of the material allowing more varied billboards. The default colour is white. The tinting is effected using vertex colours. +setColour :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Colour -- ^ colour + -> IO () + -- ^ +setColour a1 a2 = withHG3DClass a1 $ \a1' -> withColour a2 $ \a2' -> - cBbSetColour'_ a1' a2' >>= \res -> + setColour'_ a1' a2' >>= \res -> return () -{-# LINE 93 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} -; -cBbGetColour :: HG3DClass -> IO (Colour) -cBbGetColour a1 = +{-# LINE 98 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} + +-- | Gets the colour of this billboard. +getColour :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Colour) + -- ^ +getColour a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cBbGetColour'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> + getColour'_ a1' a2' >>= \res -> + peekColour a2'>>= \a2'' -> return (a2'') -{-# LINE 97 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} -; -cBbHasOwnDimensions :: HG3DClass -> IO (Bool) -cBbHasOwnDimensions a1 = +{-# LINE 103 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} + +-- | Returns true if this billboard deviates from the BillboardSetBillboard::setDimensionsBillboard::setDimensions +hasOwnDimensions :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +hasOwnDimensions a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cBbHasOwnDimensions'_ a1' a2' >>= \res -> + hasOwnDimensions'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 101 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} -; -cBbGetOwnWidth :: HG3DClass -> IO (Float) -cBbGetOwnWidth a1 = +{-# LINE 108 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} + +-- | Retrieves the billboard's personal width, if hasOwnDimensions is true. +getOwnWidth :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getOwnWidth a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cBbGetOwnWidth'_ a1' a2' >>= \res -> + getOwnWidth'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') -{-# LINE 105 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} -; -cBbGetOwnHeight :: HG3DClass -> IO (Float) -cBbGetOwnHeight a1 = +{-# LINE 113 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} + +-- | Retrieves the billboard's personal width, if hasOwnDimensions is true. +getOwnHeight :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getOwnHeight a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cBbGetOwnHeight'_ a1' a2' >>= \res -> + getOwnHeight'_ 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 = +{-# LINE 118 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} + +-- | Returns true if this billboard use individual texture coordinate rect (i.e. if the Billboard::setTexcoordRectBillboardSetBillboard::setTexcoordIndexBillboard::setTexcoordIndex()Billboard::setTexcoordRect() +isUseTexcoordRect :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isUseTexcoordRect a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cBbIsUseTexcoordRect'_ a1' a2' >>= \res -> + isUseTexcoordRect'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 117 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} -; -cBbSetTexcoordIndex :: HG3DClass -> Int -> IO () -cBbSetTexcoordIndex a1 a2 = +{-# LINE 123 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} + +-- | setTexcoordIndex()BillboardSet::setTextureCoords() +setTexcoordIndex :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ texcoordIndex + -> IO () + -- ^ +setTexcoordIndex a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in - cBbSetTexcoordIndex'_ a1' a2' >>= \res -> + setTexcoordIndex'_ a1' a2' >>= \res -> return () -{-# LINE 121 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} -; -cBbGetTexcoordIndex :: HG3DClass -> IO (Int) -cBbGetTexcoordIndex a1 = +{-# LINE 128 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} + +-- | getTexcoordIndex()setTexcoordIndex()This value is useful only when isUseTexcoordRect return false. +getTexcoordIndex :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getTexcoordIndex a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cBbGetTexcoordIndex'_ a1' a2' >>= \res -> + getTexcoordIndex'_ 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 = +{-# LINE 133 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} + +-- | setTexcoordRect() +setTexcoordRect2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ u0 + -> Float -- ^ v0 + -> Float -- ^ u1 + -> Float -- ^ v1 + -> IO () + -- ^ +setTexcoordRect2 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 -> + setTexcoordRect2'_ a1' a2' a3' a4' a5' >>= \res -> return () -{-# LINE 132 "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs" #-} -; +{-# LINE 141 ".\\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 ogre_bbd_construct" + new'_ :: ((HG3DClassPtr) -> (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 ogre_bbd_destruct" + delete'_ :: ((HG3DClassPtr) -> (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 ogre_bbd_getRotation" + getRotation'_ :: ((HG3DClassPtr) -> ((RadiansPtr) -> (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 ogre_bbd_setRotation" + setRotation'_ :: ((HG3DClassPtr) -> ((RadiansPtr) -> (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 ogre_bbd_setPosition" + setPosition'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (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 ogre_bbd_setPosition2" + setPosition2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (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 ogre_bbd_getPosition" + getPosition'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (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 ogre_bbd_setDimensions" + setDimensions'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (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 ogre_bbd_resetDimensions" + resetDimensions'_ :: ((HG3DClassPtr) -> (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 ogre_bbd_setColour" + setColour'_ :: ((HG3DClassPtr) -> ((ColourPtr) -> (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 ogre_bbd_getColour" + getColour'_ :: ((HG3DClassPtr) -> ((ColourPtr) -> (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 ogre_bbd_hasOwnDimensions" + hasOwnDimensions'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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 ogre_bbd_getOwnWidth" + getOwnWidth'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (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 ogre_bbd_getOwnHeight" + getOwnHeight'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (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 ogre_bbd_isUseTexcoordRect" + isUseTexcoordRect'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs.h cBb_setTexcoordRect2_c" - cBbSetTexcoordRect2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (CFloat -> (IO ())))))) +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs.h ogre_bbd_setTexcoordIndex" + setTexcoordIndex'_ :: ((HG3DClassPtr) -> (CUShort -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs.h ogre_bbd_getTexcoordIndex" + getTexcoordIndex'_ :: ((HG3DClassPtr) -> ((Ptr CUShort) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboard.chs.h ogre_bbd_setTexcoordRect2" + setTexcoordRect2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))))
HGamer3D/Bindings/Ogre/ClassBillboardChain.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,249 +39,382 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} +import HGamer3D.Bindings.Ogre.EnumBillboardChainTexCoordDirection +{-# LINE 45 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} +import HGamer3D.Bindings.Ogre.StructSharedPtr +{-# LINE 46 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} +-- | destructor +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = + withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 51 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} -cBcSetMaxChainElements :: HG3DClass -> Int -> IO () -cBcSetMaxChainElements a1 a2 = +-- | Set the maximum number of chain elements per chain +setMaxChainElements :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ maxElements + -> IO () + -- ^ +setMaxChainElements a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in - cBcSetMaxChainElements'_ a1' a2' >>= \res -> + setMaxChainElements'_ a1' a2' >>= \res -> return () -{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} -; -cBcGetMaxChainElements :: HG3DClass -> IO (Int) -cBcGetMaxChainElements a1 = +{-# LINE 56 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} + +-- | Get the maximum number of chain elements per chain +getMaxChainElements :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getMaxChainElements a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cBcGetMaxChainElements'_ a1' a2' >>= \res -> + getMaxChainElements'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 65 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} -; -cBcSetNumberOfChains :: HG3DClass -> Int -> IO () -cBcSetNumberOfChains a1 a2 = +{-# LINE 61 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} + +-- | Set the number of chain segments (this class can render multiple chains at once using the same material). +setNumberOfChains :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ numChains + -> IO () + -- ^ +setNumberOfChains a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in - cBcSetNumberOfChains'_ a1' a2' >>= \res -> + setNumberOfChains'_ a1' a2' >>= \res -> return () -{-# LINE 69 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} -; -cBcGetNumberOfChains :: HG3DClass -> IO (Int) -cBcGetNumberOfChains a1 = +{-# LINE 66 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} + +-- | Get the number of chain segments (this class can render multiple chains at once using the same material). +getNumberOfChains :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getNumberOfChains a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cBcGetNumberOfChains'_ a1' a2' >>= \res -> + getNumberOfChains'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 73 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} -; -cBcSetUseTextureCoords :: HG3DClass -> Bool -> IO () -cBcSetUseTextureCoords a1 a2 = +{-# LINE 71 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} + +-- | Sets whether texture coordinate information should be included in the final buffers generated. You must use either texture coordinates or vertex colour since the vertices have no normals and without one of these there is no source of colour for the vertices. +setUseTextureCoords :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ use + -> IO () + -- ^ +setUseTextureCoords a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cBcSetUseTextureCoords'_ a1' a2' >>= \res -> + setUseTextureCoords'_ a1' a2' >>= \res -> return () -{-# LINE 77 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} -; -cBcGetUseTextureCoords :: HG3DClass -> IO (Bool) -cBcGetUseTextureCoords a1 = +{-# LINE 76 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} + +-- | Gets whether texture coordinate information should be included in the final buffers generated. +getUseTextureCoords :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getUseTextureCoords a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cBcGetUseTextureCoords'_ a1' a2' >>= \res -> + getUseTextureCoords'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 81 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} -; -cBcSetTextureCoordDirection :: HG3DClass -> EnumTexCoordDirection -> IO () -cBcSetTextureCoordDirection a1 a2 = +{-# LINE 81 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} + +-- | Sets the direction in which texture coords specified on each element are deemed to run along the length of the chain. +setTextureCoordDirection :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> EnumBillboardChainTexCoordDirection -- ^ dir - The direction, default is TCD_U. + -> IO () + -- ^ +setTextureCoordDirection a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = cIntFromEnum a2} in - cBcSetTextureCoordDirection'_ a1' a2' >>= \res -> + setTextureCoordDirection'_ a1' a2' >>= \res -> return () -{-# LINE 85 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} -; -cBcGetTextureCoordDirection :: HG3DClass -> IO (EnumTexCoordDirection) -cBcGetTextureCoordDirection a1 = +{-# LINE 86 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} + +-- | Gets the direction in which texture coords specified on each element are deemed to run. +getTextureCoordDirection :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (EnumBillboardChainTexCoordDirection) + -- ^ +getTextureCoordDirection a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cBcGetTextureCoordDirection'_ a1' a2' >>= \res -> + getTextureCoordDirection'_ a1' a2' >>= \res -> peekEnumUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 89 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} -; -cBcSetOtherTextureCoordRange :: HG3DClass -> Float -> Float -> IO () -cBcSetOtherTextureCoordRange a1 a2 a3 = +{-# LINE 91 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} + +-- | Set the range of the texture coordinates generated across the width of the chain elements. +setOtherTextureCoordRange :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ start - Start coordinate, default 0.0 + -> Float -- ^ end - End coordinate, default 1.0 + -> IO () + -- ^ +setOtherTextureCoordRange a1 a2 a3 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in let {a3' = realToFrac a3} in - cBcSetOtherTextureCoordRange'_ a1' a2' a3' >>= \res -> + setOtherTextureCoordRange'_ a1' a2' a3' >>= \res -> return () -{-# LINE 94 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} -; -cBcSetUseVertexColours :: HG3DClass -> Bool -> IO () -cBcSetUseVertexColours a1 a2 = +{-# LINE 97 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} + +-- | Sets whether vertex colour information should be included in the final buffers generated. You must use either texture coordinates or vertex colour since the vertices have no normals and without one of these there is no source of colour for the vertices. +setUseVertexColours :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ use + -> IO () + -- ^ +setUseVertexColours a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cBcSetUseVertexColours'_ a1' a2' >>= \res -> + setUseVertexColours'_ a1' a2' >>= \res -> return () -{-# LINE 98 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} -; -cBcGetUseVertexColours :: HG3DClass -> IO (Bool) -cBcGetUseVertexColours a1 = +{-# LINE 102 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} + +-- | Gets whether vertex colour information should be included in the final buffers generated. +getUseVertexColours :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getUseVertexColours a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cBcGetUseVertexColours'_ a1' a2' >>= \res -> + getUseVertexColours'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 102 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} -; -cBcSetDynamic :: HG3DClass -> Bool -> IO () -cBcSetDynamic a1 a2 = +{-# LINE 107 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} + +-- | Sets whether or not the buffers created for this object are suitable for dynamic alteration. +setDynamic :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ dyn + -> IO () + -- ^ +setDynamic a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cBcSetDynamic'_ a1' a2' >>= \res -> + setDynamic'_ a1' a2' >>= \res -> return () -{-# LINE 106 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} -; -cBcGetDynamic :: HG3DClass -> IO (Bool) -cBcGetDynamic a1 = +{-# LINE 112 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} + +-- | Gets whether or not the buffers created for this object are suitable for dynamic alteration. +getDynamic :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getDynamic a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cBcGetDynamic'_ a1' a2' >>= \res -> + getDynamic'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 110 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} -; -cBcRemoveChainElement :: HG3DClass -> Int -> IO () -cBcRemoveChainElement a1 a2 = +{-# LINE 117 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} + +-- | Remove an element from the 'tail' of a chain. +removeChainElement :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ chainIndex - The index of the chain + -> IO () + -- ^ +removeChainElement a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in - cBcRemoveChainElement'_ a1' a2' >>= \res -> + removeChainElement'_ a1' a2' >>= \res -> return () -{-# LINE 114 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} -; -cBcGetNumChainElements :: HG3DClass -> Int -> IO (Int) -cBcGetNumChainElements a1 a2 = +{-# LINE 122 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} + +-- | Returns the number of chain elements. +getNumChainElements :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ chainIndex + -> IO (Int) + -- ^ +getNumChainElements a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in alloca $ \a3' -> - cBcGetNumChainElements'_ a1' a2' a3' >>= \res -> + getNumChainElements'_ a1' a2' a3' >>= \res -> peekIntConv a3'>>= \a3'' -> return (a3'') -{-# LINE 119 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} -; -cBcClearChain :: HG3DClass -> Int -> IO () -cBcClearChain a1 a2 = +{-# LINE 128 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} + +-- | Remove all elements of a given chain (but leave the chain intact). +clearChain :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ chainIndex + -> IO () + -- ^ +clearChain a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in - cBcClearChain'_ a1' a2' >>= \res -> + clearChain'_ a1' a2' >>= \res -> return () -{-# LINE 123 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} -; -cBcClearAllChains :: HG3DClass -> IO () -cBcClearAllChains a1 = +{-# LINE 133 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} + +-- | Remove all elements from all chains (but leave the chains themselves intact). +clearAllChains :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +clearAllChains a1 = withHG3DClass a1 $ \a1' -> - cBcClearAllChains'_ a1' >>= \res -> + clearAllChains'_ a1' >>= \res -> return () -{-# LINE 126 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} -; -cBcGetMaterialName :: HG3DClass -> IO (String) -cBcGetMaterialName a1 = +{-# LINE 137 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} + +-- | Get the material name in use. +getMaterialName :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getMaterialName a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> - cBcGetMaterialName'_ a1' a2' >>= \res -> + getMaterialName'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') -{-# LINE 130 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} -; -cBcSetMaterialName :: HG3DClass -> String -> String -> IO () -cBcSetMaterialName a1 a2 a3 = +{-# LINE 142 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} + +-- | Set the material name to use for rendering. +setMaterialName :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> String -- ^ groupName + -> IO () + -- ^ +setMaterialName a1 a2 a3 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> withCString a3 $ \a3' -> - cBcSetMaterialName'_ a1' a2' a3' >>= \res -> + setMaterialName'_ a1' a2' a3' >>= \res -> return () -{-# LINE 135 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} -; -cBcNotifyCurrentCamera :: HG3DClass -> HG3DClass -> IO () -cBcNotifyCurrentCamera a1 a2 = +{-# LINE 148 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} + +-- | Returns the camera-relative squared depth of this renderable. Used to sort transparent objects. Squared depth is used rather than actual depth to avoid having to perform a square root on the result. +getSquaredViewDepth :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ cam + -> IO (Float) + -- ^ +getSquaredViewDepth a1 a2 = withHG3DClass a1 $ \a1' -> withHG3DClass a2 $ \a2' -> - cBcNotifyCurrentCamera'_ a1' a2' >>= \res -> - return () -{-# LINE 139 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} -; + alloca $ \a3' -> + getSquaredViewDepth'_ a1' a2' a3' >>= \res -> + peekFloatConv a3'>>= \a3'' -> + return (a3'') +{-# LINE 154 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_setMaxChainElements_c" - cBcSetMaxChainElements'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) +-- | Retrieves the radius of the origin-centered bounding sphere for this object. +getBoundingRadius :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getBoundingRadius a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getBoundingRadius'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 159 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_getMaxChainElements_c" - cBcGetMaxChainElements'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) +-- | Retrieves a weak reference to the material this renderable object uses. Note that the Renderable +getMaterial :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (SharedPtr) + -- ^ +getMaterial a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getMaterial'_ a1' a2' >>= \res -> + peekSharedPtr a2'>>= \a2'' -> + return (a2'') +{-# LINE 164 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_setNumberOfChains_c" - cBcSetNumberOfChains'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) +-- | Returns the type name of this object. +getMovableType :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getMovableType a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + getMovableType'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 169 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} -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 ogre_bbdc_destruct" + delete'_ :: ((HG3DClassPtr) -> (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 ogre_bbdc_setMaxChainElements" + setMaxChainElements'_ :: ((HG3DClassPtr) -> (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 ogre_bbdc_getMaxChainElements" + getMaxChainElements'_ :: ((HG3DClassPtr) -> ((Ptr 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 ogre_bbdc_setNumberOfChains" + setNumberOfChains'_ :: ((HG3DClassPtr) -> (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 ogre_bbdc_getNumberOfChains" + getNumberOfChains'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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 ogre_bbdc_setUseTextureCoords" + setUseTextureCoords'_ :: ((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 ogre_bbdc_getUseTextureCoords" + getUseTextureCoords'_ :: ((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 ogre_bbdc_setTextureCoordDirection" + setTextureCoordDirection'_ :: ((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 ogre_bbdc_getTextureCoordDirection" + getTextureCoordDirection'_ :: ((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 ogre_bbdc_setOtherTextureCoordRange" + setOtherTextureCoordRange'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (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 ogre_bbdc_setUseVertexColours" + setUseVertexColours'_ :: ((HG3DClassPtr) -> (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 ogre_bbdc_getUseVertexColours" + getUseVertexColours'_ :: ((HG3DClassPtr) -> ((Ptr 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 ogre_bbdc_setDynamic" + setDynamic'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_bbdc_getDynamic" + getDynamic'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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 ogre_bbdc_removeChainElement" + removeChainElement'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc__notifyCurrentCamera_c" - cBcNotifyCurrentCamera'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h ogre_bbdc_getNumChainElements" + getNumChainElements'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h ogre_bbdc_clearChain" + clearChain'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h ogre_bbdc_clearAllChains" + clearAllChains'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h ogre_bbdc_getMaterialName" + getMaterialName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h ogre_bbdc_setMaterialName" + setMaterialName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h ogre_bbdc_getSquaredViewDepth" + getSquaredViewDepth'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h ogre_bbdc_getBoundingRadius" + getBoundingRadius'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h ogre_bbdc_getMaterial" + getMaterial'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h ogre_bbdc_getMovableType" + getMovableType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ())))
HGamer3D/Bindings/Ogre/ClassBillboardChainFactory.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChainFactory.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,17 +39,70 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardChainFactory.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardChainFactory.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardChainFactory.chs" #-} +-- | +new :: IO (HG3DClass) + -- ^ +new = + alloca $ \a1' -> + new'_ a1' >>= \res -> + peek a1'>>= \a1'' -> + return (a1'') +{-# LINE 49 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardChainFactory.chs" #-} +-- | +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = + withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 53 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardChainFactory.chs" #-} + +-- | Get the type of the object to be created. +getType :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getType a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + getType'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 58 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardChainFactory.chs" #-} + +-- | Destroy an instance of the object +destroyInstance :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ obj + -> IO () + -- ^ +destroyInstance a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + destroyInstance'_ a1' a2' >>= \res -> + return () +{-# LINE 63 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardChainFactory.chs" #-} + + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChainFactory.chs.h ogre_bbdcf_construct" + new'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChainFactory.chs.h ogre_bbdcf_destruct" + delete'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChainFactory.chs.h ogre_bbdcf_getType" + getType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChainFactory.chs.h ogre_bbdcf_destroyInstance" + destroyInstance'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
HGamer3D/Bindings/Ogre/ClassBillboardSet.hs view
@@ -2,686 +2,851 @@ -- 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 ())) +{-# 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, 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. +-- + + +-- ClassBillboardSet.chs + +-- + +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.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +import HGamer3D.Bindings.Ogre.StructVec3 +{-# LINE 45 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +import HGamer3D.Bindings.Ogre.StructColour +{-# LINE 46 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +import HGamer3D.Bindings.Ogre.EnumBillboardOrigin +{-# LINE 47 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +import HGamer3D.Bindings.Ogre.EnumBillboardRotationType +{-# LINE 48 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +import HGamer3D.Bindings.Ogre.StructSharedPtr +{-# LINE 49 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} +import HGamer3D.Bindings.Ogre.EnumBillboardType +{-# LINE 50 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Usual constructor - this is called by the SceneManagerBillboardSet::setAutoextend +new :: String -- ^ name - The name to give the billboard set (must be unique) + -> Int -- ^ poolSize - The initial size of the billboard pool. Estimate of the number of billboards which will be required, and pass it using this parameter. The set will preallocate this number to avoid memory fragmentation. The default behaviour once this pool has run out is to double it. + -> Bool -- ^ externalDataSource - If true, the source of data for drawing the billboards will not be the internal billboard list, but external data. When driving the billboard from external data, you must call _notifyCurrentCamera to reorient the billboards, setPoolSize to set the maximum billboards you want to use, beginBillboards to start the update, and injectBillboard per billboard, followed by endBillboards. + -> IO (HG3DClass) + -- ^ +new a1 a2 a3 = + withCString a1 $ \a1' -> + let {a2' = fromIntegral a2} in + let {a3' = fromBool a3} in + alloca $ \a4' -> + new'_ a1' a2' a3' a4' >>= \res -> + peek a4'>>= \a4'' -> + return (a4'') +{-# LINE 58 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = + withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 62 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Creates a new billboard and adds it to this set. Behaviour once the billboard pool has been exhausted depends on the BillboardSet::setAutoextendPool option. On failiure (i.e. no more space and can't autoextend), NULLBillboardSet::setAutoextend +createBillboard :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Vec3 -- ^ position - The position of the new billboard realtive to the certer of the set + -> Colour -- ^ colour - Optional base colour of the billboard. + -> IO (HG3DClass) + -- ^ return value - On success, a pointer to a newly created +createBillboard a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withVec3 a2 $ \a2' -> + withColour a3 $ \a3' -> + alloca $ \a4' -> + createBillboard'_ a1' a2' a3' a4' >>= \res -> + peek a4'>>= \a4'' -> + return (a4'') +{-# LINE 69 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Creates a new billboard and adds it to this set. Behaviour once the billboard pool has been exhausted depends on the BillboardSet::setAutoextendPool option. On failure (i.e. no more space and can't autoextend), NULLBillboardSet::setAutoextend +createBillboard2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ x + -> Float -- ^ y + -> Float -- ^ z - The position of the new billboard relative to the center of the set + -> Colour -- ^ colour - Optional base colour of the billboard. + -> IO (HG3DClass) + -- ^ return value - On success, a pointer to a newly created +createBillboard2 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' -> + createBillboard2'_ a1' a2' a3' a4' a5' a6' >>= \res -> + peek a6'>>= \a6'' -> + return (a6'') +{-# LINE 78 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Returns the number of active billboards which currently make up this set. +getNumBillboards :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getNumBillboards a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getNumBillboards'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 83 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Tells the set whether to allow automatic extension of the pool of billboards. A BillboardSetThe default behaviour is to allow the pool to extend (typically this allocates double the current pool of billboards when the pool is expended), equivalent to calling this method with autoExtend = true. If you set the parameter to false however, any attempt to create a new billboard when the pool has expired will simply fail silently, returning a null pointer. +setAutoextend :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ autoextend - true to double the pool every time it runs out, false to fail silently. + -> IO () + -- ^ +setAutoextend a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setAutoextend'_ a1' a2' >>= \res -> + return () +{-# LINE 88 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Returns true if the billboard pool automatically extends. BillboardSet::setAutoextend +getAutoextend :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getAutoextend a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getAutoextend'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 93 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Enables sorting for this BillboardSet +setSortingEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ sortenable - true to sort the billboards according to their distance to the camera + -> IO () + -- ^ +setSortingEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setSortingEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 98 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Returns true if sorting of billboards is enabled based on their distance from the camera BillboardSet::setSortingEnabled +getSortingEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getSortingEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getSortingEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 103 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Adjusts the size of the pool of billboards available in this set. See the BillboardSet::setAutoextend +setPoolSize :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ size - The new size for the pool. + -> IO () + -- ^ +setPoolSize a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + setPoolSize'_ a1' a2' >>= \res -> + return () +{-# LINE 108 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Returns the current size of the billboard pool. BillboardSet::setAutoextend +getPoolSize :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ return value - The current size of the billboard pool. +getPoolSize a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getPoolSize'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 113 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Empties this set of all billboards. +clear :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +clear a1 = + withHG3DClass a1 $ \a1' -> + clear'_ a1' >>= \res -> + return () +{-# LINE 117 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Returns a pointer to the billboard at the supplied index. This method requires linear time since the billboard list is a linked list. On failure, NULL +getBillboard :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ index - The index of the billboard that is requested. + -> IO (HG3DClass) + -- ^ return value - On success, a valid pointer to the requested billboard is returned. +getBillboard a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + getBillboard'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 123 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Removes the billboard at the supplied index. This method requires linear time since the billboard list is a linked list. +removeBillboard :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ index + -> IO () + -- ^ +removeBillboard a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + removeBillboard'_ a1' a2' >>= \res -> + return () +{-# LINE 128 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Removes a billboard from the set. This version is more efficient than removing by index. +removeBillboard2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ pBill + -> IO () + -- ^ +removeBillboard2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + removeBillboard2'_ a1' a2' >>= \res -> + return () +{-# LINE 133 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Sets the point which acts as the origin point for all billboards in this set. This setting controls the fine tuning of where a billboard appears in relation to it's position. It could be that a billboard's position represents it's center (e.g. for fireballs), it could mean the center of the bottom edge (e.g. a tree which is positioned on the ground), the top-left corner (e.g. a cursor). The default setting is BBO_CENTER. +setBillboardOrigin :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> EnumBillboardOrigin -- ^ origin - A member of the BillboardOrigin enum specifying the origin for all the billboards in this set. + -> IO () + -- ^ +setBillboardOrigin a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + setBillboardOrigin'_ a1' a2' >>= \res -> + return () +{-# LINE 138 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Gets the point which acts as the origin point for all billboards in this set. +getBillboardOrigin :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (EnumBillboardOrigin) + -- ^ return value - A member of the BillboardOrigin enum specifying the origin for all the billboards in this set. +getBillboardOrigin a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getBillboardOrigin'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 143 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Sets billboard rotation type. This setting controls the billboard rotation type, you can deciding rotate the billboard's vertices around their facing direction or rotate the billboard's texture coordinates. The default settings is BBR_TEXCOORD. +setBillboardRotationType :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> EnumBillboardRotationType -- ^ rotationType - A member of the BillboardRotationType enum specifying the rotation type for all the billboards in this set. + -> IO () + -- ^ +setBillboardRotationType a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + setBillboardRotationType'_ a1' a2' >>= \res -> + return () +{-# LINE 148 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Sets billboard rotation type. +getBillboardRotationType :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (EnumBillboardRotationType) + -- ^ return value - A member of the BillboardRotationType enum specifying the rotation type for all the billboards in this set. +getBillboardRotationType a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getBillboardRotationType'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 153 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Sets the default dimensions of the billboards in this set. All billboards in a set are created with these default dimensions. The set will render most efficiently if all the billboards in the set are the default size. It is possible to alter the size of individual billboards at the expense of extra calculation. See the Billboard +setDefaultDimensions :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ width - The new default width for the billboards in this set. + -> Float -- ^ height - The new default height for the billboards in this set. + -> IO () + -- ^ +setDefaultDimensions a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + setDefaultDimensions'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 159 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | See setDefaultDimensions - this sets 1 component individually. +setDefaultWidth :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ width + -> IO () + -- ^ +setDefaultWidth a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + setDefaultWidth'_ a1' a2' >>= \res -> + return () +{-# LINE 164 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | See setDefaultDimensions - this gets 1 component individually. +getDefaultWidth :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getDefaultWidth a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getDefaultWidth'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 169 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | See setDefaultDimensions - this sets 1 component individually. +setDefaultHeight :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ height + -> IO () + -- ^ +setDefaultHeight a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + setDefaultHeight'_ a1' a2' >>= \res -> + return () +{-# LINE 174 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | See setDefaultDimensions - this gets 1 component individually. +getDefaultHeight :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getDefaultHeight a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getDefaultHeight'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 179 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Sets the name of the material to be used for this billboard set. +setMaterialName :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name - The new name of the material to use for this set. + -> String -- ^ groupName + -> IO () + -- ^ +setMaterialName a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + setMaterialName'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 185 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Sets the name of the material to be used for this billboard set. +getMaterialName :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ return value - The name of the material that is used for this set. +getMaterialName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + getMaterialName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 190 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Begin injection of billboard data; applicable when constructing the BillboardSet +beginBillboards :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ numBillboards - If you know the number of billboards you will be issuing, state it here to make the update more efficient. + -> IO () + -- ^ +beginBillboards a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + beginBillboards'_ a1' a2' >>= \res -> + return () +{-# LINE 195 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Define a billboard. +injectBillboard :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ bb + -> IO () + -- ^ +injectBillboard a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + injectBillboard'_ a1' a2' >>= \res -> + return () +{-# LINE 200 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Finish defining billboards. +endBillboards :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +endBillboards a1 = + withHG3DClass a1 $ \a1' -> + endBillboards'_ a1' >>= \res -> + return () +{-# LINE 204 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Overridden from MovableObjectMovableObject +getBoundingRadius :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getBoundingRadius a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getBoundingRadius'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 209 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Overridden from MovableObjectMovableObject +getMaterial :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (SharedPtr) + -- ^ +getMaterial a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getMaterial'_ a1' a2' >>= \res -> + peekSharedPtr a2'>>= \a2'' -> + return (a2'') +{-# LINE 214 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Sets the name of the material to be used for this billboard set. +setMaterial :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> SharedPtr -- ^ material - The new material to use for this set. + -> IO () + -- ^ +setMaterial a1 a2 = + withHG3DClass a1 $ \a1' -> + withSharedPtr a2 $ \a2' -> + setMaterial'_ a1' a2' >>= \res -> + return () +{-# LINE 219 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Returns whether or not billboards in this are tested individually for culling. +getCullIndividually :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getCullIndividually a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getCullIndividually'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 224 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Sets whether culling tests billboards in this individually as well as in a group. BillboardThis is useful when you have a large, fairly distributed set of billboards, like maybe trees on a landscape. You probably still want to group them into more than one set (maybe one set per section of landscape), which will be culled coarsely, but you also want to cull the billboards individually because they are spread out. Whilst you could have lots of single-tree sets which are culled separately, this would be inefficient to render because each tree would be issued as it's own rendering operation. By calling this method with a parameter of true, you can have large billboard sets which are spaced out and so get the benefit of batch rendering and coarse culling, but also have fine-grained culling so unnecessary rendering is avoided. +setCullIndividually :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ cullIndividual - If true, each billboard is tested before being sent to the pipeline as well as the whole set having to pass the coarse group bounding test. + -> IO () + -- ^ +setCullIndividually a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setCullIndividually'_ a1' a2' >>= \res -> + return () +{-# LINE 229 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Sets the type of billboard to render. The default sort of billboard (BBT_POINT), always has both x and y axes parallel to the camera's local axes. This is fine for 'point' style billboards (e.g. flares, smoke, anything which is symmetrical about a central point) but does not look good for billboards which have an orientation (e.g. an elongated raindrop). In this case, the oriented billboards are more suitable (BBT_ORIENTED_COMMON or BBT_ORIENTED_SELF) since they retain an independant Y axis and only the X axis is generated, perpendicular to both the local Y and the camera Z. In some case you might want the billboard has fixed Z axis and doesn't need to face to camera (e.g. an aureola around the player and parallel to the ground). You can use BBT_PERPENDICULAR_SELF which the billboard plane perpendicular to the billboard own direction. Or BBT_PERPENDICULAR_COMMON which the billboard plane perpendicular to the common direction. BBT_PERPENDICULAR_SELF and BBT_PERPENDICULAR_COMMON can't guarantee counterclockwise, you might use double-side material (cull_hardware node +setBillboardType :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> EnumBillboardType -- ^ bbt - The type of billboard to render + -> IO () + -- ^ +setBillboardType a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + setBillboardType'_ a1' a2' >>= \res -> + return () +{-# LINE 234 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Returns the billboard type in use. +getBillboardType :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (EnumBillboardType) + -- ^ +getBillboardType a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getBillboardType'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 239 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Use this to specify the common direction given to billboards of type BBT_ORIENTED_COMMON or BBT_PERPENDICULAR_COMMON. Use BBT_ORIENTED_COMMON when you want oriented billboards but you know they are always going to be oriented the same way (e.g. rain in calm weather). It is faster for the system to calculate the billboard vertices if they have a common direction. The common direction also use in BBT_PERPENDICULAR_COMMON, in this case the common direction treat as Z axis, and an additional common up-vector was use to determine billboard X and Y axis. setCommonUpVectorThe direction are use as is, never normalised in internal, user are supposed to normalise it himself. +setCommonDirection :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Vec3 -- ^ vec - The direction for all billboards. + -> IO () + -- ^ +setCommonDirection a1 a2 = + withHG3DClass a1 $ \a1' -> + withVec3 a2 $ \a2' -> + setCommonDirection'_ a1' a2' >>= \res -> + return () +{-# LINE 244 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Gets the common direction for all billboards (BBT_ORIENTED_COMMON) +getCommonDirection :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Vec3) + -- ^ +getCommonDirection a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getCommonDirection'_ a1' a2' >>= \res -> + peekVec3 a2'>>= \a2'' -> + return (a2'') +{-# LINE 249 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Use this to specify the common up-vector given to billboards of type BBT_PERPENDICULAR_SELF or BBT_PERPENDICULAR_COMMON. Use BBT_PERPENDICULAR_SELF or BBT_PERPENDICULAR_COMMON when you want oriented billboards perpendicular to specify direction vector (or, Z axis), and doesn't face to camera. In this case, we need an additional up-vector to determine the billboard X and Y axis. The generated billboard plane and X-axis guarantee perpendicular to specify direction. setCommonDirectionThe specify direction is billboard own direction when billboard type is BBT_PERPENDICULAR_SELF, and it's shared common direction when billboard type is BBT_PERPENDICULAR_COMMON. The up-vector are use as is, never normalised in internal, user are supposed to normalise it himself. +setCommonUpVector :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Vec3 -- ^ vec - The up-vector for all billboards. + -> IO () + -- ^ +setCommonUpVector a1 a2 = + withHG3DClass a1 $ \a1' -> + withVec3 a2 $ \a2' -> + setCommonUpVector'_ a1' a2' >>= \res -> + return () +{-# LINE 254 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Gets the common up-vector for all billboards (BBT_PERPENDICULAR_SELF and BBT_PERPENDICULAR_COMMON) +getCommonUpVector :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Vec3) + -- ^ +getCommonUpVector a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getCommonUpVector'_ a1' a2' >>= \res -> + peekVec3 a2'>>= \a2'' -> + return (a2'') +{-# LINE 259 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Sets whether or not billboards should use an 'accurate' facing model based on the vector from each billboard to the camera, rather than an optimised version using just the camera direction. By default, the axes for all billboards are calculated using the camera's view direction, not the vector from the camera position to the billboard. The former is faster, and most of the time the difference is not noticeable. However for some purposes (e.g. very large, static billboards) the changing billboard orientation when rotating the camera can be off putting, therefore you can enable this option to use a more expensive, but more accurate version. +setUseAccurateFacing :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ acc - True to use the slower but more accurate model. Default is false. + -> IO () + -- ^ +setUseAccurateFacing a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setUseAccurateFacing'_ a1' a2' >>= \res -> + return () +{-# LINE 264 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Gets whether or not billboards use an 'accurate' facing model based on the vector from each billboard to the camera, rather than an optimised version using just the camera direction. +getUseAccurateFacing :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getUseAccurateFacing a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getUseAccurateFacing'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 269 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Overridden from MovableObject +getMovableType :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getMovableType a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + getMovableType'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 274 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Overridden, see Renderable +getSquaredViewDepth :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ cam + -> IO (Float) + -- ^ +getSquaredViewDepth a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + alloca $ \a3' -> + getSquaredViewDepth'_ a1' a2' a3' >>= \res -> + peekFloatConv a3'>>= \a3'' -> + return (a3'') +{-# LINE 280 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Sets whether billboards should be treated as being in world space. This is most useful when you are driving the billboard set from an external data source. +setBillboardsInWorldSpace :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ ws + -> IO () + -- ^ +setBillboardsInWorldSpace a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setBillboardsInWorldSpace'_ a1' a2' >>= \res -> + return () +{-# LINE 285 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Set whether or not the BillboardSetBy default a billboardset is rendered by generating geometry for a textured quad in memory, taking into account the size and orientation settings, and uploading it to the video card. The alternative is to use hardware point rendering, which means that only one position needs to be sent per billboard rather than 4 and the hardware sorts out how this is rendered based on the render state. Using point rendering is faster than generating quads manually, but is more restrictive. The following restrictions apply: +-- +-- +-- +-- +-- +-- +--You will almost certainly want to enable in your material pass both point attenuation and point sprites if you use this option. +setPointRenderingEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ enabled - True to enable point rendering, false otherwise + -> IO () + -- ^ +setPointRenderingEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setPointRenderingEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 290 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Returns whether point rendering is enabled. +isPointRenderingEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isPointRenderingEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + isPointRenderingEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 295 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Override to return specific type flag. +getTypeFlags :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getTypeFlags a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getTypeFlags'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 300 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Set the auto update state of this billboard set. This methods controls the updating policy of the vertex buffer. By default auto update is true so the vertex buffer is being update every time this billboard set is about to be rendered. This behavior best fit when the billboards of this set changes frequently. When using static or semi-static billboards, it is recommended to set auto update to false. In that case one should call notifyBillboardDataChanged method to reflect changes made to the billboards data. +setAutoUpdate :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ autoUpdate + -> IO () + -- ^ +setAutoUpdate a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setAutoUpdate'_ a1' a2' >>= \res -> + return () +{-# LINE 305 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | Return the auto update state of this billboard set. +getAutoUpdate :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getAutoUpdate a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getAutoUpdate'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 310 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + +-- | When billboard set is not auto updating its GPU buffer, the user is responsible to inform it about any billboard changes in order to reflect them at the rendering stage. Calling this method will cause GPU buffers update in the next render queue update. +notifyBillboardDataChanged :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +notifyBillboardDataChanged a1 = + withHG3DClass a1 $ \a1' -> + notifyBillboardDataChanged'_ a1' >>= \res -> + return () +{-# LINE 314 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs" #-} + + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_construct" + new'_ :: ((Ptr CChar) -> (CUInt -> (CInt -> ((HG3DClassPtr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_destruct" + delete'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_createBillboard" + createBillboard'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> ((ColourPtr) -> ((HG3DClassPtr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_createBillboard2" + createBillboard2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> ((ColourPtr) -> ((HG3DClassPtr) -> (IO ()))))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_getNumBillboards" + getNumBillboards'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_setAutoextend" + setAutoextend'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_getAutoextend" + getAutoextend'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_setSortingEnabled" + setSortingEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_getSortingEnabled" + getSortingEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_setPoolSize" + setPoolSize'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_getPoolSize" + getPoolSize'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_clear" + clear'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_getBillboard" + getBillboard'_ :: ((HG3DClassPtr) -> (CUInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_removeBillboard" + removeBillboard'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_removeBillboard2" + removeBillboard2'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_setBillboardOrigin" + setBillboardOrigin'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_getBillboardOrigin" + getBillboardOrigin'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_setBillboardRotationType" + setBillboardRotationType'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_getBillboardRotationType" + getBillboardRotationType'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_setDefaultDimensions" + setDefaultDimensions'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_setDefaultWidth" + setDefaultWidth'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_getDefaultWidth" + getDefaultWidth'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_setDefaultHeight" + setDefaultHeight'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_getDefaultHeight" + getDefaultHeight'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_setMaterialName" + setMaterialName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_getMaterialName" + getMaterialName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_beginBillboards" + beginBillboards'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_injectBillboard" + injectBillboard'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_endBillboards" + endBillboards'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_getBoundingRadius" + getBoundingRadius'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_getMaterial" + getMaterial'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_setMaterial" + setMaterial'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_getCullIndividually" + getCullIndividually'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_setCullIndividually" + setCullIndividually'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_setBillboardType" + setBillboardType'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_getBillboardType" + getBillboardType'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_setCommonDirection" + setCommonDirection'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_getCommonDirection" + getCommonDirection'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_setCommonUpVector" + setCommonUpVector'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_getCommonUpVector" + getCommonUpVector'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_setUseAccurateFacing" + setUseAccurateFacing'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_getUseAccurateFacing" + getUseAccurateFacing'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_getMovableType" + getMovableType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_getSquaredViewDepth" + getSquaredViewDepth'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_setBillboardsInWorldSpace" + setBillboardsInWorldSpace'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_setPointRenderingEnabled" + setPointRenderingEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_isPointRenderingEnabled" + isPointRenderingEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_getTypeFlags" + getTypeFlags'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_setAutoUpdate" + setAutoUpdate'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_getAutoUpdate" + getAutoUpdate'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSet.chs.h ogre_bbs_notifyBillboardDataChanged" + notifyBillboardDataChanged'_ :: ((HG3DClassPtr) -> (IO ()))
HGamer3D/Bindings/Ogre/ClassBillboardSetFactory.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassBillboardSetFactory.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,17 +39,70 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSetFactory.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSetFactory.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSetFactory.chs" #-} +-- | +new :: IO (HG3DClass) + -- ^ +new = + alloca $ \a1' -> + new'_ a1' >>= \res -> + peek a1'>>= \a1'' -> + return (a1'') +{-# LINE 49 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSetFactory.chs" #-} +-- | +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = + withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 53 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSetFactory.chs" #-} + +-- | Get the type of the object to be created. +getType :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getType a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + getType'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 58 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSetFactory.chs" #-} + +-- | Destroy an instance of the object +destroyInstance :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ obj + -> IO () + -- ^ +destroyInstance a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + destroyInstance'_ a1' a2' >>= \res -> + return () +{-# LINE 63 ".\\HGamer3D\\Bindings\\Ogre\\ClassBillboardSetFactory.chs" #-} + + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSetFactory.chs.h ogre_bbsf_construct" + new'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSetFactory.chs.h ogre_bbsf_destruct" + delete'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSetFactory.chs.h ogre_bbsf_getType" + getType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardSetFactory.chs.h ogre_bbsf_destroyInstance" + destroyInstance'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
HGamer3D/Bindings/Ogre/ClassBone.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,127 +39,138 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} +import HGamer3D.Bindings.Ogre.StructVec3 +{-# LINE 45 ".\\HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} +import HGamer3D.Bindings.Ogre.StructQuaternion +{-# LINE 46 ".\\HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} +-- | +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = + withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 51 ".\\HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} -cBCreateChild :: HG3DClass -> Int -> Vector3 -> Quaternion -> IO (HG3DClass) -cBCreateChild a1 a2 a3 a4 = +-- | Creates a new BoneThis method creates a new bone which will inherit the transforms of this bone, with the handle specified. +createChild :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ handle - The numeric handle to give the new bone; must be unique within the Skeleton. + -> Vec3 -- ^ translate - Initial translation offset of child relative to parent + -> Quaternion -- ^ rotate - Initial rotation relative to parent + -> IO (HG3DClass) + -- ^ +createChild a1 a2 a3 a4 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in - withVector3 a3 $ \a3' -> + withVec3 a3 $ \a3' -> withQuaternion a4 $ \a4' -> alloca $ \a5' -> - cBCreateChild'_ a1' a2' a3' a4' a5' >>= \res -> + createChild'_ a1' a2' a3' a4' a5' >>= \res -> peek a5'>>= \a5'' -> return (a5'') -{-# LINE 65 "HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} -; -cBGetHandle :: HG3DClass -> IO (Int) -cBGetHandle a1 = +{-# LINE 59 ".\\HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} + +-- | Gets the numeric handle for this bone (unique within the skeleton). +getHandle :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getHandle a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cBGetHandle'_ a1' a2' >>= \res -> + getHandle'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 69 "HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} -; -cBSetBindingPose :: HG3DClass -> IO () -cBSetBindingPose a1 = +{-# LINE 64 ".\\HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} + +-- | Sets the current position / orientation to be the 'binding pose' ie the layout in which bones were originally bound to a mesh. +setBindingPose :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +setBindingPose a1 = withHG3DClass a1 $ \a1' -> - cBSetBindingPose'_ a1' >>= \res -> + setBindingPose'_ a1' >>= \res -> return () -{-# LINE 72 "HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} -; -cBReset :: HG3DClass -> IO () -cBReset a1 = +{-# LINE 68 ".\\HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} + +-- | Resets the position and orientation of this BoneBones are bound to the mesh in a binding pose. They are then modified from this position during animation. This method returns the bone to it's original position and orientation. +reset :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +reset a1 = withHG3DClass a1 $ \a1' -> - cBReset'_ a1' >>= \res -> + reset'_ a1' >>= \res -> return () -{-# LINE 75 "HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} -; -cBSetManuallyControlled :: HG3DClass -> Bool -> IO () -cBSetManuallyControlled a1 a2 = +{-# LINE 72 ".\\HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} + +-- | Sets whether or not this bone is manually controlled. Manually controlled bones can be altered by the application at runtime, and their positions will not be reset by the animation routines. Note that you should also make sure that there are no AnimationTrackgetHandle()You can also use AnimationState::setBlendMask to mask out animation from chosen tracks if you want to prevent application of a scripted animation to a bone without altering the Animation +setManuallyControlled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ manuallyControlled + -> IO () + -- ^ +setManuallyControlled a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cBSetManuallyControlled'_ a1' a2' >>= \res -> + setManuallyControlled'_ a1' a2' >>= \res -> return () -{-# LINE 79 "HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} -; -cBIsManuallyControlled :: HG3DClass -> IO (Bool) -cBIsManuallyControlled a1 = +{-# LINE 77 ".\\HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} + +-- | Getter for mManuallyControlled Flag +isManuallyControlled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isManuallyControlled a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cBIsManuallyControlled'_ a1' a2' >>= \res -> + isManuallyControlled'_ 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 = +{-# LINE 82 ".\\HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} + +-- | Node::needUpdate +needUpdate :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ forceParentUpdate + -> IO () + -- ^ +needUpdate a1 a2 = withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cBGetBindingPoseInverseOrientation'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 95 "HGamer3D\\Bindings\\Ogre\\ClassBone.chs" #-} -; + let {a2' = fromBool a2} in + needUpdate'_ a1' a2' >>= \res -> + return () +{-# LINE 87 ".\\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 ogre_bn_destruct" + delete'_ :: ((HG3DClassPtr) -> (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 ogre_bn_createChild" + createChild'_ :: ((HG3DClassPtr) -> (CUShort -> ((Vec3Ptr) -> ((QuaternionPtr) -> ((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 ogre_bn_getHandle" + getHandle'_ :: ((HG3DClassPtr) -> ((Ptr CUShort) -> (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 ogre_bn_setBindingPose" + setBindingPose'_ :: ((HG3DClassPtr) -> (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 ogre_bn_reset" + reset'_ :: ((HG3DClassPtr) -> (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 ogre_bn_setManuallyControlled" + setManuallyControlled'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_bn_isManuallyControlled" + isManuallyControlled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBone.chs.h cB__getBindingPoseInverseOrientation_c" - cBGetBindingPoseInverseOrientation'_ :: ((HG3DClassPtr) -> ((QuaternionPtr) -> (IO ()))) +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBone.chs.h ogre_bn_needUpdate" + needUpdate'_ :: ((HG3DClassPtr) -> (CInt -> (IO ())))
HGamer3D/Bindings/Ogre/ClassCamera.hs view
@@ -2,779 +2,973 @@ -- 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 ()))) +{-# 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, 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. +-- + + +-- ClassCamera.chs + +-- + +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.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +import HGamer3D.Bindings.Ogre.StructVec3 +{-# LINE 45 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +import HGamer3D.Bindings.Ogre.StructRadians +{-# LINE 46 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +import HGamer3D.Bindings.Ogre.StructQuaternion +{-# LINE 47 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} +import HGamer3D.Bindings.Ogre.EnumFrustumPlane +{-# LINE 48 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Standard constructor. +new :: String -- ^ name + -> HG3DClass -- ^ sm + -> IO (HG3DClass) + -- ^ +new a1 a2 = + withCString a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + alloca $ \a3' -> + new'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 55 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Standard destructor. +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = + withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 59 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Returns a pointer to the SceneManager +getSceneManager :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (HG3DClass) + -- ^ +getSceneManager a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getSceneManager'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 64 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Sets the camera's position. +setPosition :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ x + -> Float -- ^ y + -> Float -- ^ z + -> IO () + -- ^ +setPosition a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + setPosition'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 71 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Sets the camera's position. +setPosition2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Vec3 -- ^ vec + -> IO () + -- ^ +setPosition2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withVec3 a2 $ \a2' -> + setPosition2'_ a1' a2' >>= \res -> + return () +{-# LINE 76 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Retrieves the camera's position. +getPosition :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Vec3) + -- ^ +getPosition a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getPosition'_ a1' a2' >>= \res -> + peekVec3 a2'>>= \a2'' -> + return (a2'') +{-# LINE 81 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Moves the camera's position by the vector offset provided along world axes. +move :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Vec3 -- ^ vec + -> IO () + -- ^ +move a1 a2 = + withHG3DClass a1 $ \a1' -> + withVec3 a2 $ \a2' -> + move'_ a1' a2' >>= \res -> + return () +{-# LINE 86 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Moves the camera's position by the vector offset provided along it's own axes (relative to orientation). +moveRelative :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Vec3 -- ^ vec + -> IO () + -- ^ +moveRelative a1 a2 = + withHG3DClass a1 $ \a1' -> + withVec3 a2 $ \a2' -> + moveRelative'_ a1' a2' >>= \res -> + return () +{-# LINE 91 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Sets the camera's direction vector. Note that the 'up' vector for the camera will automatically be recalculated based on the current 'up' vector (i.e. the roll will remain the same). +setDirection :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ x + -> Float -- ^ y + -> Float -- ^ z + -> IO () + -- ^ +setDirection a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + setDirection'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 98 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Sets the camera's direction vector. +setDirection2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Vec3 -- ^ vec + -> IO () + -- ^ +setDirection2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withVec3 a2 $ \a2' -> + setDirection2'_ a1' a2' >>= \res -> + return () +{-# LINE 103 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | +getDirection :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Vec3) + -- ^ +getDirection a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getDirection'_ a1' a2' >>= \res -> + peekVec3 a2'>>= \a2'' -> + return (a2'') +{-# LINE 108 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Gets the camera's up vector. +getUp :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Vec3) + -- ^ +getUp a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getUp'_ a1' a2' >>= \res -> + peekVec3 a2'>>= \a2'' -> + return (a2'') +{-# LINE 113 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Gets the camera's right vector. +getRight :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Vec3) + -- ^ +getRight a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getRight'_ a1' a2' >>= \res -> + peekVec3 a2'>>= \a2'' -> + return (a2'') +{-# LINE 118 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Points the camera at a location in worldspace. This is a helper method to automatically generate the direction vector for the camera, based on it's current position and the supplied look-at point. +lookAt :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Vec3 -- ^ targetPoint - A vector specifying the look at point. + -> IO () + -- ^ +lookAt a1 a2 = + withHG3DClass a1 $ \a1' -> + withVec3 a2 $ \a2' -> + lookAt'_ a1' a2' >>= \res -> + return () +{-# LINE 123 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Points the camera at a location in worldspace. This is a helper method to automatically generate the direction vector for the camera, based on it's current position and the supplied look-at point. +lookAt2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ x + -> Float -- ^ y + -> Float -- ^ z - Co-ordinates of the point to look at. + -> IO () + -- ^ +lookAt2 a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + lookAt2'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 130 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Rolls the camera anticlockwise, around its local z axis. +roll :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Radians -- ^ angle + -> IO () + -- ^ +roll a1 a2 = + withHG3DClass a1 $ \a1' -> + withRadians a2 $ \a2' -> + roll'_ a1' a2' >>= \res -> + return () +{-# LINE 135 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Rotates the camera anticlockwise around it's local y axis. +yaw :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Radians -- ^ angle + -> IO () + -- ^ +yaw a1 a2 = + withHG3DClass a1 $ \a1' -> + withRadians a2 $ \a2' -> + yaw'_ a1' a2' >>= \res -> + return () +{-# LINE 140 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Pitches the camera up/down anticlockwise around it's local z axis. +pitch :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Radians -- ^ angle + -> IO () + -- ^ +pitch a1 a2 = + withHG3DClass a1 $ \a1' -> + withRadians a2 $ \a2' -> + pitch'_ a1' a2' >>= \res -> + return () +{-# LINE 145 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Rotate the camera around an arbitrary axis. +rotate :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Vec3 -- ^ axis + -> Radians -- ^ angle + -> IO () + -- ^ +rotate a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withVec3 a2 $ \a2' -> + withRadians a3 $ \a3' -> + rotate'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 151 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Rotate the camera around an arbitrary axis using a Quaternion +rotate2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Quaternion -- ^ q + -> IO () + -- ^ +rotate2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withQuaternion a2 $ \a2' -> + rotate2'_ a1' a2' >>= \res -> + return () +{-# LINE 156 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Tells the camera whether to yaw around it's own local Y axis or a fixed axis of choice. This method allows you to change the yaw behaviour of the camera +-- +setFixedYawAxis :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ useFixed - If true, the axis passed in the second parameter will always be the yaw axis no matter what the camera orientation. If false, the camera yaws around the local Y. + -> Vec3 -- ^ fixedAxis - The axis to use if the first parameter is true. + -> IO () + -- ^ +setFixedYawAxis a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + withVec3 a3 $ \a3' -> + setFixedYawAxis'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 162 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Returns the camera's current orientation. +getOrientation :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Quaternion) + -- ^ +getOrientation a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getOrientation'_ a1' a2' >>= \res -> + peekQuaternion a2'>>= \a2'' -> + return (a2'') +{-# LINE 167 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Sets the camera's orientation. +setOrientation :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Quaternion -- ^ q + -> IO () + -- ^ +setOrientation a1 a2 = + withHG3DClass a1 $ \a1' -> + withQuaternion a2 $ \a2' -> + setOrientation'_ a1' a2' >>= \res -> + return () +{-# LINE 172 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Gets the derived orientation of the camera, including any rotation inherited from a node attachment and reflection matrix. +getDerivedOrientation :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Quaternion) + -- ^ +getDerivedOrientation a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getDerivedOrientation'_ a1' a2' >>= \res -> + peekQuaternion a2'>>= \a2'' -> + return (a2'') +{-# LINE 177 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Gets the derived position of the camera, including any translation inherited from a node attachment and reflection matrix. +getDerivedPosition :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Vec3) + -- ^ +getDerivedPosition a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getDerivedPosition'_ a1' a2' >>= \res -> + peekVec3 a2'>>= \a2'' -> + return (a2'') +{-# LINE 182 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Gets the derived direction vector of the camera, including any rotation inherited from a node attachment and reflection matrix. +getDerivedDirection :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Vec3) + -- ^ +getDerivedDirection a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getDerivedDirection'_ a1' a2' >>= \res -> + peekVec3 a2'>>= \a2'' -> + return (a2'') +{-# LINE 187 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Gets the derived up vector of the camera, including any rotation inherited from a node attachment and reflection matrix. +getDerivedUp :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Vec3) + -- ^ +getDerivedUp a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getDerivedUp'_ a1' a2' >>= \res -> + peekVec3 a2'>>= \a2'' -> + return (a2'') +{-# LINE 192 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Gets the derived right vector of the camera, including any rotation inherited from a node attachment and reflection matrix. +getDerivedRight :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Vec3) + -- ^ +getDerivedRight a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getDerivedRight'_ a1' a2' >>= \res -> + peekVec3 a2'>>= \a2'' -> + return (a2'') +{-# LINE 197 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Gets the real world orientation of the camera, including any rotation inherited from a node attachment +getRealOrientation :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Quaternion) + -- ^ +getRealOrientation a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getRealOrientation'_ a1' a2' >>= \res -> + peekQuaternion a2'>>= \a2'' -> + return (a2'') +{-# LINE 202 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Gets the real world position of the camera, including any translation inherited from a node attachment. +getRealPosition :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Vec3) + -- ^ +getRealPosition a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getRealPosition'_ a1' a2' >>= \res -> + peekVec3 a2'>>= \a2'' -> + return (a2'') +{-# LINE 207 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Gets the real world direction vector of the camera, including any rotation inherited from a node attachment. +getRealDirection :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Vec3) + -- ^ +getRealDirection a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getRealDirection'_ a1' a2' >>= \res -> + peekVec3 a2'>>= \a2'' -> + return (a2'') +{-# LINE 212 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Gets the real world up vector of the camera, including any rotation inherited from a node attachment. +getRealUp :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Vec3) + -- ^ +getRealUp a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getRealUp'_ a1' a2' >>= \res -> + peekVec3 a2'>>= \a2'' -> + return (a2'') +{-# LINE 217 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Gets the real world right vector of the camera, including any rotation inherited from a node attachment. +getRealRight :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Vec3) + -- ^ +getRealRight a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getRealRight'_ a1' a2' >>= \res -> + peekVec3 a2'>>= \a2'' -> + return (a2'') +{-# LINE 222 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Overridden from MovableObject +getMovableType :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getMovableType a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + getMovableType'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 227 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Enables / disables automatic tracking of a SceneNodeIf you enable auto-tracking, this CameraSceneNodeSceneNodeCameraCameraSceneNode +setAutoTracking :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ enabled - If true, the Camera will track the SceneNode supplied as the next parameter (cannot be null). If false the camera will cease tracking and will remain in it's current orientation. + -> HG3DClass -- ^ target - Pointer to the SceneNode which this Camera will track. Make sure you don't delete this SceneNode before turning off tracking (e.g. SceneManager::clearScene will delete it so be careful of this). Can be null if and only if the enabled param is false. + -> Vec3 -- ^ offset - If supplied, the camera targets this point in local space of the target node instead of the origin of the target node. Good for fine tuning the look at point. + -> IO () + -- ^ +setAutoTracking a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + withHG3DClass a3 $ \a3' -> + withVec3 a4 $ \a4' -> + setAutoTracking'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 234 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Sets the level-of-detail factor for this CameraThis method can be used to influence the overall level of detail of the scenes rendered using this camera. Various elements of the scene have level-of-detail reductions to improve rendering speed at distance; this method allows you to hint to those elements that you would like to adjust the level of detail that they would normally use (up or down). The most common use for this method is to reduce the overall level of detail used for a secondary camera used for sub viewports like rear-view mirrors etc. Note that scene elements are at liberty to ignore this setting if they choose, this is merely a hint. +setLodBias :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ factor - The factor to apply to the usual level of detail calculation. Higher values increase the detail, so 2.0 doubles the normal detail and 0.5 halves it. + -> IO () + -- ^ +setLodBias a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + setLodBias'_ a1' a2' >>= \res -> + return () +{-# LINE 239 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Returns the level-of-detail bias factor currently applied to this camera. See Camera::setLodBias +getLodBias :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getLodBias a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getLodBias'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 244 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Get a pointer to the camera which should be used to determine LOD settings. Sometimes you don't want the LOD of a render to be based on the camera that's doing the rendering, you want it to be based on a different camera. A good example is when rendering shadow maps, since they will be viewed from the perspective of another camera. Therefore this method lets you associate a different camera instance to use to determine the LOD. To revert the camera to determining LOD based on itself, call this method with a pointer to itself. +setLodCamera :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ lodCam + -> IO () + -- ^ +setLodCamera a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + setLodCamera'_ a1' a2' >>= \res -> + return () +{-# LINE 249 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Get a pointer to the camera which should be used to determine LOD settings. If setLodCamera hasn't been called with a different camera, this method will return 'this'. +getLodCamera :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (HG3DClass) + -- ^ +getLodCamera a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getLodCamera'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 254 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Sets the viewing window inside of viewport. This method can be used to set a subset of the viewport as the rendering target. +setWindow :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ Left - Relative to Viewport - 0 corresponds to left edge, 1 - to right edge (default - 0). + -> Float -- ^ Top - Relative to Viewport - 0 corresponds to top edge, 1 - to bottom edge (default - 0). + -> Float -- ^ Right - Relative to Viewport - 0 corresponds to left edge, 1 - to right edge (default - 1). + -> Float -- ^ Bottom - Relative to Viewport - 0 corresponds to top edge, 1 - to bottom edge (default - 1). + -> IO () + -- ^ +setWindow 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 + setWindow'_ a1' a2' a3' a4' a5' >>= \res -> + return () +{-# LINE 262 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Cancel view window. +resetWindow :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +resetWindow a1 = + withHG3DClass a1 $ \a1' -> + resetWindow'_ a1' >>= \res -> + return () +{-# LINE 266 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Returns if a viewport window is being used. +isWindowSet :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isWindowSet a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + isWindowSet'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 271 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Overridden from MovableObject +getBoundingRadius :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getBoundingRadius a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getBoundingRadius'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 276 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Get the auto tracking target for this camera, if any. +getAutoTrackTarget :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (HG3DClass) + -- ^ +getAutoTrackTarget a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getAutoTrackTarget'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 281 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Get the auto tracking offset for this camera, if it is auto tracking. +getAutoTrackOffset :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Vec3) + -- ^ +getAutoTrackOffset a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getAutoTrackOffset'_ a1' a2' >>= \res -> + peekVec3 a2'>>= \a2'' -> + return (a2'') +{-# LINE 286 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Get the last viewport which was attached to this camera. This is not guaranteed to be the only viewport which is using this camera, just the last once which was created referring to it. +getViewport :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (HG3DClass) + -- ^ +getViewport a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getViewport'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 291 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | If set to true a viewport that owns this frustum will be able to recalculate the aspect ratio whenever the frustum is resized. You should set this to true only if the frustum / camera is used by one viewport at the same time. Otherwise the aspect ratio for other viewports may be wrong. +setAutoAspectRatio :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ autoratio + -> IO () + -- ^ +setAutoAspectRatio a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setAutoAspectRatio'_ a1' a2' >>= \res -> + return () +{-# LINE 296 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Retrieves if AutoAspectRatio is currently set or not +getAutoAspectRatio :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getAutoAspectRatio a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getAutoAspectRatio'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 301 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Tells the camera to use a separate FrustumBy calling this method, you can tell the camera to perform culling against a different frustum to it's own. This is mostly useful for debug cameras that allow you to show the culling behaviour of another camera, or a manual frustum instance. +setCullingFrustum :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ frustum - Pointer to a frustum to use; this can either be a manual Frustum instance (which you can attach to scene nodes like any other MovableObject), or another camera. If you pass 0 to this method it reverts the camera to normal behaviour. + -> IO () + -- ^ +setCullingFrustum a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + setCullingFrustum'_ a1' a2' >>= \res -> + return () +{-# LINE 306 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Returns the custom culling frustum in use. +getCullingFrustum :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (HG3DClass) + -- ^ +getCullingFrustum a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getCullingFrustum'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 311 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Tests whether the given container is visible in the FrustumOtherwise, false is returned. +isVisible3 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Vec3 -- ^ vert + -> IO (EnumFrustumPlane, Bool) + -- ^ culledBy +isVisible3 a1 a2 = + withHG3DClass a1 $ \a1' -> + withVec3 a2 $ \a2' -> + alloca $ \a3' -> + alloca $ \a4' -> + isVisible3'_ a1' a2' a3' a4' >>= \res -> + peekEnumUtil a3'>>= \a3'' -> + peekBoolUtil a4'>>= \a4'' -> + return (a3'', a4'') +{-# LINE 318 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Gets the world space corners of the frustum. The corners are ordered as follows: top-right near, top-left near, bottom-left near, bottom-right near, top-right far, top-left far, bottom-left far, bottom-right far. +getWorldSpaceCorners :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Vec3) + -- ^ +getWorldSpaceCorners a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getWorldSpaceCorners'_ a1' a2' >>= \res -> + peekVec3 a2'>>= \a2'' -> + return (a2'') +{-# LINE 323 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Sets the position of the near clipping plane. +getNearClipDistance :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getNearClipDistance a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getNearClipDistance'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 328 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Retrieves the distance from the frustum to the far clipping plane. +getFarClipDistance :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getFarClipDistance a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getFarClipDistance'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 333 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Set whether this camera should use the 'rendering distance' on objects to exclude distant objects from the final image. The default behaviour is to use it. +setUseRenderingDistance :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ use - True to use the rendering distance, false not to. + -> IO () + -- ^ +setUseRenderingDistance a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setUseRenderingDistance'_ a1' a2' >>= \res -> + return () +{-# LINE 338 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Get whether this camera should use the 'rendering distance' on objects to exclude distant objects from the final image. +getUseRenderingDistance :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getUseRenderingDistance a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getUseRenderingDistance'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 343 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Synchronise core camera settings with another. Copies the position, orientation, clip distances, projection type, FOV, focal length and aspect ratio from another camera. Other settings like query flags, reflection etc are preserved. +synchroniseBaseSettingsWith :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ cam + -> IO () + -- ^ +synchroniseBaseSettingsWith a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + synchroniseBaseSettingsWith'_ a1' a2' >>= \res -> + return () +{-# LINE 348 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Get the derived position of this frustum. +getPositionForViewUpdate :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Vec3) + -- ^ +getPositionForViewUpdate a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getPositionForViewUpdate'_ a1' a2' >>= \res -> + peekVec3 a2'>>= \a2'' -> + return (a2'') +{-# LINE 353 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + +-- | Get the derived orientation of this frustum. +getOrientationForViewUpdate :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Quaternion) + -- ^ +getOrientationForViewUpdate a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getOrientationForViewUpdate'_ a1' a2' >>= \res -> + peekQuaternion a2'>>= \a2'' -> + return (a2'') +{-# LINE 358 ".\\HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} + + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_construct" + new'_ :: ((Ptr CChar) -> ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_destruct" + delete'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_getSceneManager" + getSceneManager'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_setPosition" + setPosition'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_setPosition2" + setPosition2'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_getPosition" + getPosition'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_move" + move'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_moveRelative" + moveRelative'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_setDirection" + setDirection'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_setDirection2" + setDirection2'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_getDirection" + getDirection'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_getUp" + getUp'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_getRight" + getRight'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_lookAt" + lookAt'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_lookAt2" + lookAt2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_roll" + roll'_ :: ((HG3DClassPtr) -> ((RadiansPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_yaw" + yaw'_ :: ((HG3DClassPtr) -> ((RadiansPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_pitch" + pitch'_ :: ((HG3DClassPtr) -> ((RadiansPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_rotate" + rotate'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> ((RadiansPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_rotate2" + rotate2'_ :: ((HG3DClassPtr) -> ((QuaternionPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_setFixedYawAxis" + setFixedYawAxis'_ :: ((HG3DClassPtr) -> (CInt -> ((Vec3Ptr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_getOrientation" + getOrientation'_ :: ((HG3DClassPtr) -> ((QuaternionPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_setOrientation" + setOrientation'_ :: ((HG3DClassPtr) -> ((QuaternionPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_getDerivedOrientation" + getDerivedOrientation'_ :: ((HG3DClassPtr) -> ((QuaternionPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_getDerivedPosition" + getDerivedPosition'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_getDerivedDirection" + getDerivedDirection'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_getDerivedUp" + getDerivedUp'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_getDerivedRight" + getDerivedRight'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_getRealOrientation" + getRealOrientation'_ :: ((HG3DClassPtr) -> ((QuaternionPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_getRealPosition" + getRealPosition'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_getRealDirection" + getRealDirection'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_getRealUp" + getRealUp'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_getRealRight" + getRealRight'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_getMovableType" + getMovableType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_setAutoTracking" + setAutoTracking'_ :: ((HG3DClassPtr) -> (CInt -> ((HG3DClassPtr) -> ((Vec3Ptr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_setLodBias" + setLodBias'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_getLodBias" + getLodBias'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_setLodCamera" + setLodCamera'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_getLodCamera" + getLodCamera'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_setWindow" + setWindow'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (CFloat -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_resetWindow" + resetWindow'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_isWindowSet" + isWindowSet'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_getBoundingRadius" + getBoundingRadius'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_getAutoTrackTarget" + getAutoTrackTarget'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_getAutoTrackOffset" + getAutoTrackOffset'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_getViewport" + getViewport'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_setAutoAspectRatio" + setAutoAspectRatio'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_getAutoAspectRatio" + getAutoAspectRatio'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_setCullingFrustum" + setCullingFrustum'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_getCullingFrustum" + getCullingFrustum'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_isVisible3" + isVisible3'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> ((Ptr CInt) -> ((Ptr CInt) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_getWorldSpaceCorners" + getWorldSpaceCorners'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_getNearClipDistance" + getNearClipDistance'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_getFarClipDistance" + getFarClipDistance'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_setUseRenderingDistance" + setUseRenderingDistance'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_getUseRenderingDistance" + getUseRenderingDistance'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_synchroniseBaseSettingsWith" + synchroniseBaseSettingsWith'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_getPositionForViewUpdate" + getPositionForViewUpdate'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h ogre_cam_getOrientationForViewUpdate" + getOrientationForViewUpdate'_ :: ((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.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,101 +39,154 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs" #-} +-- | +new :: IO (HG3DClass) + -- ^ +new = + alloca $ \a1' -> + new'_ a1' >>= \res -> + peek a1'>>= \a1'' -> + return (a1'') +{-# LINE 49 ".\\HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs" #-} -cCfLoad :: HG3DClass -> String -> String -> Bool -> IO () -cCfLoad a1 a2 a3 a4 = +-- | +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 53 ".\\HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs" #-} + +-- | load from a filename (not using resource group locations) +load :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ filename + -> String -- ^ separators + -> Bool -- ^ trimWhitespace + -> IO () + -- ^ +load a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> withCString a3 $ \a3' -> let {a4' = fromBool a4} in - cCfLoad'_ a1' a2' a3' a4' >>= \res -> + load'_ 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 = +{-# LINE 60 ".\\HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs" #-} + +-- | load from a filename (using resource group locations) +load2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ filename + -> String -- ^ resourceGroup + -> String -- ^ separators + -> Bool -- ^ trimWhitespace + -> IO () + -- ^ +load2 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 -> + load2'_ a1' a2' a3' a4' a5' >>= \res -> return () -{-# LINE 76 "HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs" #-} -; -cCfLoadDirect :: HG3DClass -> String -> String -> Bool -> IO () -cCfLoadDirect a1 a2 a3 a4 = +{-# LINE 68 ".\\HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs" #-} + +-- | load from a filename (not using resource group locations) +loadDirect :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ filename + -> String -- ^ separators + -> Bool -- ^ trimWhitespace + -> IO () + -- ^ +loadDirect a1 a2 a3 a4 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> withCString a3 $ \a3' -> let {a4' = fromBool a4} in - cCfLoadDirect'_ a1' a2' a3' a4' >>= \res -> + loadDirect'_ 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 = +{-# LINE 75 ".\\HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs" #-} + +-- | load from a filename (using resource group locations) +loadFromResourceSystem :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ filename + -> String -- ^ resourceGroup + -> String -- ^ separators + -> Bool -- ^ trimWhitespace + -> IO () + -- ^ +loadFromResourceSystem 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 -> + loadFromResourceSystem'_ 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 = +{-# LINE 83 ".\\HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs" #-} + +-- | Gets the first setting from the file with the named key. +getSetting :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ key - The name of the setting + -> String -- ^ section - The name of the section it must be in (if any) + -> String -- ^ defaultValue - The value to return if the setting is not found + -> IO (String) + -- ^ +getSetting 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 -> + getSetting'_ a1' a2' a3' a4' a5' >>= \res -> peekCString a5'>>= \a5'' -> return (a5'') -{-# LINE 96 "HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs" #-} -; +{-# LINE 91 ".\\HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs" #-} -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs.h cCf_load_c" - cCfLoad'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (CInt -> (IO ()))))) +-- | Clear the settings +clear :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +clear a1 = + withHG3DClass a1 $ \a1' -> + clear'_ a1' >>= \res -> + return () +{-# LINE 95 ".\\HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs" #-} -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 ogre_cf_construct" + new'_ :: ((HG3DClassPtr) -> (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 ogre_cf_destruct" + delete'_ :: ((HG3DClassPtr) -> (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 ogre_cf_load" + load'_ :: ((HG3DClassPtr) -> ((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 ())))))) +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs.h ogre_cf_load2" + load2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CChar) -> (CInt -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs.h ogre_cf_loadDirect" + loadDirect'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (CInt -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs.h ogre_cf_loadFromResourceSystem" + loadFromResourceSystem'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CChar) -> (CInt -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs.h ogre_cf_getSetting" + getSetting'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassConfigFile.chs.h ogre_cf_clear" + clear'_ :: ((HG3DClassPtr) -> (IO ()))
HGamer3D/Bindings/Ogre/ClassControllerManager.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,130 +39,169 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} +-- | +new :: IO (HG3DClass) + -- ^ +new = + alloca $ \a1' -> + new'_ a1' >>= \res -> + peek a1'>>= \a1'' -> + return (a1'') +{-# LINE 49 ".\\HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} -cCmClearControllers :: HG3DClass -> IO () -cCmClearControllers a1 = +-- | +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = withHG3DClass a1 $ \a1' -> - cCmClearControllers'_ a1' >>= \res -> + delete'_ a1' >>= \res -> return () -{-# LINE 59 "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} -; -cCmUpdateAllControllers :: HG3DClass -> IO () -cCmUpdateAllControllers a1 = +{-# LINE 53 ".\\HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} + +-- | Destroys all the controllers in existence. +clearControllers :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +clearControllers a1 = withHG3DClass a1 $ \a1' -> - cCmUpdateAllControllers'_ a1' >>= \res -> + clearControllers'_ a1' >>= \res -> return () -{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} -; -cCmGetTimeFactor :: HG3DClass -> IO (Float) -cCmGetTimeFactor a1 = +{-# LINE 57 ".\\HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} + +-- | Updates all the registered controllers. +updateAllControllers :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +updateAllControllers a1 = withHG3DClass a1 $ \a1' -> + updateAllControllers'_ a1' >>= \res -> + return () +{-# LINE 61 ".\\HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} + +-- | Return relative speed of time as perceived by time based controllers. See setTimeFactor for full information on the meaning of this value. +getTimeFactor :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getTimeFactor a1 = + withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cCmGetTimeFactor'_ a1' a2' >>= \res -> + getTimeFactor'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') -{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} -; -cCmSetTimeFactor :: HG3DClass -> Float -> IO () -cCmSetTimeFactor a1 a2 = +{-# LINE 66 ".\\HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} + +-- | Set the relative speed to update frame time based controllers. Normally any controllers which use time as an input (FrameTimeController) are updated automatically in line with the real passage of time. This method allows you to change that, so that controllers are told that the time is passing slower or faster than it actually is. Use this to globally speed up / slow down the effect of time-based controllers. +setTimeFactor :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ tf - The virtual speed of time (1.0 is real time). + -> IO () + -- ^ +setTimeFactor a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in - cCmSetTimeFactor'_ a1' a2' >>= \res -> + setTimeFactor'_ a1' a2' >>= \res -> return () -{-# LINE 70 "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} -; -cCmGetFrameDelay :: HG3DClass -> IO (Float) -cCmGetFrameDelay a1 = +{-# LINE 71 ".\\HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} + +-- | Gets the constant that is added to time lapsed between each frame. See setFrameDelay for full information on the meaning of this value. +getFrameDelay :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getFrameDelay a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cCmGetFrameDelay'_ a1' a2' >>= \res -> + getFrameDelay'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') -{-# LINE 74 "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} -; -cCmSetFrameDelay :: HG3DClass -> Float -> IO () -cCmSetFrameDelay a1 a2 = +{-# LINE 76 ".\\HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} + +-- | Sets a constant frame rate. This function is useful when rendering a sequence to files that should create a film clip with constant frame rate. It will ensure that scrolling textures and animations move at a constant frame rate. +setFrameDelay :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ fd - The delay in seconds wanted between each frame (1.0f / 25.0f means a seconds worth of animation is done in 25 frames). + -> IO () + -- ^ +setFrameDelay a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in - cCmSetFrameDelay'_ a1' a2' >>= \res -> + setFrameDelay'_ a1' a2' >>= \res -> return () -{-# LINE 78 "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} -; -cCmGetElapsedTime :: HG3DClass -> IO (Float) -cCmGetElapsedTime a1 = +{-# LINE 81 ".\\HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} + +-- | Return the elapsed time. See setElapsedTime for full information on the meaning of this value. +getElapsedTime :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getElapsedTime a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cCmGetElapsedTime'_ a1' a2' >>= \res -> + getElapsedTime'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') -{-# LINE 82 "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} -; -cCmSetElapsedTime :: HG3DClass -> Float -> IO () -cCmSetElapsedTime a1 a2 = +{-# LINE 86 ".\\HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} + +-- | Set the elapsed time. Normally elapsed time accumulated all frames time (which speed relative to time factor) since the rendering loop started. This method allows your to change that to special time, so some elapsed-time-based globally effect is repeatable. +setElapsedTime :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ elapsedTime - The new elapsed time + -> IO () + -- ^ +setElapsedTime a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in - cCmSetElapsedTime'_ a1' a2' >>= \res -> + setElapsedTime'_ 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 = +{-# LINE 91 ".\\HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} + +-- | Override standard Singleton retrieval. Why do we do this? Well, it's because the Singleton implementation is in a .h file, which means it gets compiled into anybody who includes it. This is needed for the Singleton template to work, but we actually only want it compiled into the implementation of the class based on the Singleton, not all of them. If we don't change this, we get link errors when trying to use the Singleton-based class from an outside dll. This method just delegates to the template version anyway, but the implementation stays in this single compilation unit, preventing link errors. +getSingletonPtr :: IO (HG3DClass) + -- ^ +getSingletonPtr = alloca $ \a1' -> - cCmGetSingletonPtr'_ a1' >>= \res -> + getSingletonPtr'_ a1' >>= \res -> peek a1'>>= \a1'' -> return (a1'') -{-# LINE 94 "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs" #-} -; +{-# LINE 95 ".\\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 ogre_cmgr_construct" + new'_ :: ((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 ogre_cmgr_destruct" + delete'_ :: ((HG3DClassPtr) -> (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 ogre_cmgr_clearControllers" + clearControllers'_ :: ((HG3DClassPtr) -> (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 ogre_cmgr_updateAllControllers" + updateAllControllers'_ :: ((HG3DClassPtr) -> (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 ogre_cmgr_getTimeFactor" + getTimeFactor'_ :: ((HG3DClassPtr) -> ((Ptr 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 ogre_cmgr_setTimeFactor" + setTimeFactor'_ :: ((HG3DClassPtr) -> (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 ogre_cmgr_getFrameDelay" + getFrameDelay'_ :: ((HG3DClassPtr) -> ((Ptr 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 ogre_cmgr_setFrameDelay" + setFrameDelay'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs.h cCm_getSingletonPtr_c" - cCmGetSingletonPtr'_ :: ((HG3DClassPtr) -> (IO ())) +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs.h ogre_cmgr_getElapsedTime" + getElapsedTime'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs.h ogre_cmgr_setElapsedTime" + setElapsedTime'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassControllerManager.chs.h ogre_cmgr_getSingletonPtr" + getSingletonPtr'_ :: ((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.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,582 +39,547 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +import HGamer3D.Bindings.Ogre.StructSharedPtr +{-# LINE 45 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +import HGamer3D.Bindings.Ogre.EnumEntityVertexDataBindChoice +{-# LINE 46 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} +-- | Default destructor. +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = + withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 51 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} -cEGetMesh :: HG3DClass -> IO (SharedPtr) -cEGetMesh a1 = +-- | Gets the MeshEntity +getMesh :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (SharedPtr) + -- ^ +getMesh a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cEGetMesh'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> + getMesh'_ a1' a2' >>= \res -> + peekSharedPtr 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 = +{-# LINE 56 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} + +-- | Retrieves the number of SubEntity objects making up this entity. +getNumSubEntities :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getNumSubEntities a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cEGetNumSubEntities'_ a1' a2' >>= \res -> + getNumSubEntities'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 76 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} -; -cEClone :: HG3DClass -> String -> IO (HG3DClass) -cEClone a1 a2 = +{-# LINE 61 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} + +-- | Clones this entity and returns a pointer to the clone. Useful method for duplicating an entity. The new entity must be given a unique name, and is not attached to the scene in any way so must be attached to a SceneNodeSceneManager::createEntity +clone :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ newName - Name for the new entity. + -> IO (HG3DClass) + -- ^ +clone a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> alloca $ \a3' -> - cEClone'_ a1' a2' a3' >>= \res -> + clone'_ 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 = +{-# LINE 67 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} + +-- | Sets the material to use for the whole of this entity. This is a shortcut method to set all the materials for all subentities of this entity. Only use this method is you want to set the same material for all subentities or if you know there is only one. Otherwise call getSubEntity() +setMaterialName :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> String -- ^ groupName + -> IO () + -- ^ +setMaterialName a1 a2 a3 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> withCString a3 $ \a3' -> - cESetMaterialName'_ a1' a2' a3' >>= \res -> + setMaterialName'_ a1' a2' a3' >>= \res -> return () -{-# LINE 86 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} -; -cESetMaterial :: HG3DClass -> SharedPtr -> IO () -cESetMaterial a1 a2 = +{-# LINE 73 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} + +-- | Sets the material to use for the whole of this entity. This is a shortcut method to set all the materials for all subentities of this entity. Only use this method is you want to set the same material for all subentities or if you know there is only one. Otherwise call getSubEntity() +setMaterial :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> SharedPtr -- ^ material + -> IO () + -- ^ +setMaterial 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 -> + setMaterial'_ a1' a2' >>= \res -> return () -{-# LINE 94 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} -; -cEGetMovableType :: HG3DClass -> IO (String) -cEGetMovableType a1 = +{-# LINE 78 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} + +-- | Overridden from MovableObject +getMovableType :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getMovableType a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> - cEGetMovableType'_ a1' a2' >>= \res -> + getMovableType'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') -{-# LINE 98 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} -; -cEGetAnimationState :: HG3DClass -> String -> IO (HG3DClass) -cEGetAnimationState a1 a2 = +{-# LINE 83 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} + +-- | For entities based on animated meshes, gets the AnimationStateYou animate an entity by updating the animation state objects. Each of these represents the current state of each animation available to the entity. The AnimationStateMesh +getAnimationState :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (HG3DClass) + -- ^ +getAnimationState a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> alloca $ \a3' -> - cEGetAnimationState'_ a1' a2' a3' >>= \res -> + getAnimationState'_ a1' a2' a3' >>= \res -> peek a3'>>= \a3'' -> return (a3'') -{-# LINE 103 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} -; -cESetDisplaySkeleton :: HG3DClass -> Bool -> IO () -cESetDisplaySkeleton a1 a2 = +{-# LINE 89 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} + +-- | For entities based on animated meshes, gets the AnimationStateYou animate an entity by updating the animation state objects. Each of these represents the current state of each animation available to the entity. The AnimationStateMesh +getAllAnimationStates :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (HG3DClass) + -- ^ return value - In case the entity is animated, this functions returns the pointer to a +getAllAnimationStates a1 = withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getAllAnimationStates'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 94 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} + +-- | Tells the Entity +setDisplaySkeleton :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ display + -> IO () + -- ^ +setDisplaySkeleton a1 a2 = + withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cESetDisplaySkeleton'_ a1' a2' >>= \res -> + setDisplaySkeleton'_ a1' a2' >>= \res -> return () -{-# LINE 107 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} -; -cEGetDisplaySkeleton :: HG3DClass -> IO (Bool) -cEGetDisplaySkeleton a1 = +{-# LINE 99 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} + +-- | Returns whether or not the entity is currently displaying its skeleton. +getDisplaySkeleton :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getDisplaySkeleton a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cEGetDisplaySkeleton'_ a1' a2' >>= \res -> + getDisplaySkeleton'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 111 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} -; -cEGetManualLodLevel :: HG3DClass -> Int -> IO (HG3DClass) -cEGetManualLodLevel a1 a2 = +{-# LINE 104 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} + +-- | Gets a pointer to the entity representing the numbered manual level of detail. The zero-based index never includes the original entity, unlike Mesh::getLodLevel +getManualLodLevel :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ index + -> IO (HG3DClass) + -- ^ +getManualLodLevel a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in alloca $ \a3' -> - cEGetManualLodLevel'_ a1' a2' a3' >>= \res -> + getManualLodLevel'_ a1' a2' a3' >>= \res -> peek a3'>>= \a3'' -> return (a3'') -{-# LINE 116 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} -; -cEGetNumManualLodLevels :: HG3DClass -> IO (Int) -cEGetNumManualLodLevels a1 = +{-# LINE 110 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} + +-- | Returns the number of manual levels of detail that this entity supports. This number never includes the original entity, it is difference with Mesh::getNumLodLevels +getNumManualLodLevels :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getNumManualLodLevels a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cEGetNumManualLodLevels'_ a1' a2' >>= \res -> + getNumManualLodLevels'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 120 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} -; -cESetPolygonModeOverrideable :: HG3DClass -> Bool -> IO () -cESetPolygonModeOverrideable a1 a2 = +{-# LINE 115 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} + +-- | Sets whether the polygon mode of this entire entity may be overridden by the camera detail settings. +setPolygonModeOverrideable :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ PolygonModeOverrideable + -> IO () + -- ^ +setPolygonModeOverrideable a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cESetPolygonModeOverrideable'_ a1' a2' >>= \res -> + setPolygonModeOverrideable'_ a1' a2' >>= \res -> return () -{-# LINE 124 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} -; -cEDetachObjectFromBone :: HG3DClass -> String -> IO (HG3DClass) -cEDetachObjectFromBone a1 a2 = +{-# LINE 120 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} + +-- | Detach a MovableObject +detachObjectFromBone :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ movableName - is the name of the movable object to be detached. + -> IO (HG3DClass) + -- ^ +detachObjectFromBone a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> alloca $ \a3' -> - cEDetachObjectFromBone'_ a1' a2' a3' >>= \res -> + detachObjectFromBone'_ a1' a2' a3' >>= \res -> peek a3'>>= \a3'' -> return (a3'') -{-# LINE 129 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} -; -cEDetachObjectFromBone2 :: HG3DClass -> HG3DClass -> IO () -cEDetachObjectFromBone2 a1 a2 = +{-# LINE 126 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} + +-- | Detaches an object by pointer. Use this method to destroy a MovableObject +detachObjectFromBone2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ obj + -> IO () + -- ^ +detachObjectFromBone2 a1 a2 = withHG3DClass a1 $ \a1' -> withHG3DClass a2 $ \a2' -> - cEDetachObjectFromBone2'_ a1' a2' >>= \res -> + detachObjectFromBone2'_ a1' a2' >>= \res -> return () -{-# LINE 133 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} -; -cEDetachAllObjectsFromBone :: HG3DClass -> IO () -cEDetachAllObjectsFromBone a1 = +{-# LINE 131 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} + +-- | Detach all MovableObjects previously attached using attachObjectToBone. +detachAllObjectsFromBone :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +detachAllObjectsFromBone a1 = withHG3DClass a1 $ \a1' -> - cEDetachAllObjectsFromBone'_ a1' >>= \res -> + detachAllObjectsFromBone'_ a1' >>= \res -> return () -{-# LINE 136 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} -; -cEGetBoundingRadius :: HG3DClass -> IO (Float) -cEGetBoundingRadius a1 = +{-# LINE 135 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} + +-- | MovableObject::getBoundingRadius +getBoundingRadius :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getBoundingRadius a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cEGetBoundingRadius'_ a1' a2' >>= \res -> + getBoundingRadius'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') -{-# LINE 140 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} -; -cEHasEdgeList :: HG3DClass -> IO (Bool) -cEHasEdgeList a1 = +{-# LINE 140 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} + +-- | Overridden member from ShadowCaster. +hasEdgeList :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +hasEdgeList a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cEHasEdgeList'_ a1' a2' >>= \res -> + hasEdgeList'_ 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 = +{-# LINE 145 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} + +-- | Returns whether or not this entity is skeletally animated. +hasSkeleton :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +hasSkeleton a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cEHasSkeleton'_ a1' a2' >>= \res -> + hasSkeleton'_ 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 = +{-# LINE 150 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} + +-- | Returns whether or not hardware animation is enabled. Because fixed-function indexed vertex blending is rarely supported by existing graphics cards, hardware animation can only be done if the vertex programs in the materials used to render an entity support it. Therefore, this method will only return true if all the materials assigned to this entity have vertex programs assigned, and all those vertex programs must support 'includes_morph_animation true' if using morph animation, 'includes_pose_animation true' if using pose animation and 'includes_skeletal_animation true' if using skeletal animation. +isHardwareAnimationEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isHardwareAnimationEnabled a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cEIsHardwareAnimationEnabled'_ a1' a2' >>= \res -> + isHardwareAnimationEnabled'_ 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 = +{-# LINE 155 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} + +-- | Returns the number of requests that have been made for software animation If non-zero then software animation will be performed in updateAnimation regardless of the current setting of isHardwareAnimationEnabled or any internal optimise for eliminate software animation. Requests for software animation are made by calling the addSoftwareAnimationRequest() +getSoftwareAnimationRequests :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getSoftwareAnimationRequests a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cEGetSoftwareAnimationRequests'_ a1' a2' >>= \res -> + getSoftwareAnimationRequests'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 169 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} -; -cEGetSoftwareAnimationNormalsRequests :: HG3DClass -> IO (Int) -cEGetSoftwareAnimationNormalsRequests a1 = +{-# LINE 160 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} + +-- | Returns the number of requests that have been made for software animation of normals If non-zero, and getSoftwareAnimationRequests()getSoftwareAnimationRequests()addSoftwareAnimationRequest() +getSoftwareAnimationNormalsRequests :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getSoftwareAnimationNormalsRequests a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cEGetSoftwareAnimationNormalsRequests'_ a1' a2' >>= \res -> + getSoftwareAnimationNormalsRequests'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 173 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} -; -cEAddSoftwareAnimationRequest :: HG3DClass -> Bool -> IO () -cEAddSoftwareAnimationRequest a1 a2 = +{-# LINE 165 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} + +-- | Add a request for software animation Tells the entity to perform animation calculations for skeletal/vertex animations in software, regardless of the current setting of isHardwareAnimationEnabled()removeSoftwareAnimationRequest() +addSoftwareAnimationRequest :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ normalsAlso + -> IO () + -- ^ +addSoftwareAnimationRequest a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cEAddSoftwareAnimationRequest'_ a1' a2' >>= \res -> + addSoftwareAnimationRequest'_ a1' a2' >>= \res -> return () -{-# LINE 177 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} -; -cERemoveSoftwareAnimationRequest :: HG3DClass -> Bool -> IO () -cERemoveSoftwareAnimationRequest a1 a2 = +{-# LINE 170 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} + +-- | Removes a request for software animation Calling this decrements the entity's internal counter of the number of requests for software animation. If the counter is already zero then calling this method throws an exception. The 'normalsAlso' flag if set to 'true' will also decrement the internal counter of number of requests for software animation of normals. +removeSoftwareAnimationRequest :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ normalsAlso + -> IO () + -- ^ +removeSoftwareAnimationRequest a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cERemoveSoftwareAnimationRequest'_ a1' a2' >>= \res -> + removeSoftwareAnimationRequest'_ a1' a2' >>= \res -> return () -{-# LINE 181 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} -; -cEShareSkeletonInstanceWith :: HG3DClass -> HG3DClass -> IO () -cEShareSkeletonInstanceWith a1 a2 = +{-# LINE 175 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} + +-- | Shares the SkeletonInstance with the supplied entity. Note that in order for this to work, both entities must have the same Skeleton +shareSkeletonInstanceWith :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ entity + -> IO () + -- ^ +shareSkeletonInstanceWith a1 a2 = withHG3DClass a1 $ \a1' -> withHG3DClass a2 $ \a2' -> - cEShareSkeletonInstanceWith'_ a1' a2' >>= \res -> + shareSkeletonInstanceWith'_ a1' a2' >>= \res -> return () -{-# LINE 185 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} -; -cEHasVertexAnimation :: HG3DClass -> IO (Bool) -cEHasVertexAnimation a1 = +{-# LINE 180 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} + +-- | Returns whether or not this entity is either morph or pose animated. +hasVertexAnimation :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +hasVertexAnimation a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cEHasVertexAnimation'_ a1' a2' >>= \res -> + hasVertexAnimation'_ 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 = +{-# LINE 185 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} + +-- | Stops sharing the SkeletonInstance with other entities. +stopSharingSkeletonInstance :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +stopSharingSkeletonInstance a1 = withHG3DClass a1 $ \a1' -> - cEUpdateAnimation'_ a1' >>= \res -> + stopSharingSkeletonInstance'_ 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 = +{-# LINE 189 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} + +-- | Returns whether this entity shares it's SkeltonInstance with other entity instances. +sharesSkeletonInstance :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +sharesSkeletonInstance a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cEIsSkeletonAnimated'_ a1' a2' >>= \res -> + sharesSkeletonInstance'_ 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 = +{-# LINE 194 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} + +-- | Updates the internal animation state set to include the latest available animations from the attached skeleton. Use this method if you manually add animations to a skeleton, or have linked the skeleton to another for animation purposes since creating this entity. If you have called getAnimationState prior to calling this method, the pointers will still remain valid. +refreshAvailableAnimationState :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +refreshAvailableAnimationState 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 = + refreshAvailableAnimationState'_ a1' >>= \res -> + return () +{-# LINE 198 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} + +-- | Choose which vertex data to bind to the renderer. +chooseVertexDataForBinding :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ hasVertexAnim + -> IO (EnumEntityVertexDataBindChoice) + -- ^ +chooseVertexDataForBinding a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in alloca $ \a3' -> - cEChooseVertexDataForBinding'_ a1' a2' a3' >>= \res -> + chooseVertexDataForBinding'_ 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 = +{-# LINE 204 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} + +-- | Has this EntityIf this returns false, it means this EntityMeshSkeletonEntity +isInitialised :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isInitialised a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cEIsInitialised'_ a1' a2' >>= \res -> + isInitialised'_ 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 = +{-# LINE 209 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} + +-- | Resource::ListenerEntityMesh +backgroundLoadingComplete :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ res + -> IO () + -- ^ +backgroundLoadingComplete a1 a2 = withHG3DClass a1 $ \a1' -> - cEDeinitialise'_ a1' >>= \res -> + withHG3DClass a2 $ \a2' -> + backgroundLoadingComplete'_ a1' a2' >>= \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 = +{-# LINE 214 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} + +-- | EntityAnimationStateAnimationState +setSkipAnimationStateUpdate :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ skip + -> IO () + -- ^ +setSkipAnimationStateUpdate a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cESetSkipAnimationStateUpdate'_ a1' a2' >>= \res -> + setSkipAnimationStateUpdate'_ a1' a2' >>= \res -> return () -{-# LINE 249 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} -; -cEGetSkipAnimationStateUpdate :: HG3DClass -> IO (Bool) -cEGetSkipAnimationStateUpdate a1 = +{-# LINE 219 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} + +-- | EntityAnimationStateAnimationState +getSkipAnimationStateUpdate :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getSkipAnimationStateUpdate a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cEGetSkipAnimationStateUpdate'_ a1' a2' >>= \res -> + getSkipAnimationStateUpdate'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 253 "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs" #-} -; +{-# LINE 224 ".\\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 ogre_ent_destruct" + delete'_ :: ((HG3DClassPtr) -> (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 ogre_ent_getMesh" + getMesh'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (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 ogre_ent_getNumSubEntities" + getNumSubEntities'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (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 ogre_ent_clone" + clone'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((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 ogre_ent_setMaterialName" + setMaterialName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (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 ogre_ent_setMaterial" + setMaterial'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (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 ogre_ent_getMovableType" + getMovableType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (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 ogre_ent_getAnimationState" + getAnimationState'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (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 ogre_ent_getAllAnimationStates" + getAllAnimationStates'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (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 ogre_ent_setDisplaySkeleton" + setDisplaySkeleton'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_ent_getDisplaySkeleton" + getDisplaySkeleton'_ :: ((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 ogre_ent_getManualLodLevel" + getManualLodLevel'_ :: ((HG3DClassPtr) -> (CInt -> ((HG3DClassPtr) -> (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 ogre_ent_getNumManualLodLevels" + getNumManualLodLevels'_ :: ((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 ogre_ent_setPolygonModeOverrideable" + setPolygonModeOverrideable'_ :: ((HG3DClassPtr) -> (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 ogre_ent_detachObjectFromBone" + detachObjectFromBone'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (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 ogre_ent_detachObjectFromBone2" + detachObjectFromBone2'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (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 ogre_ent_detachAllObjectsFromBone" + detachAllObjectsFromBone'_ :: ((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 ogre_ent_getBoundingRadius" + getBoundingRadius'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (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 ogre_ent_hasEdgeList" + hasEdgeList'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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 ogre_ent_hasSkeleton" + hasSkeleton'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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 ogre_ent_isHardwareAnimationEnabled" + isHardwareAnimationEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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 ogre_ent_getSoftwareAnimationRequests" + getSoftwareAnimationRequests'_ :: ((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 ogre_ent_getSoftwareAnimationNormalsRequests" + getSoftwareAnimationNormalsRequests'_ :: ((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 ogre_ent_addSoftwareAnimationRequest" + addSoftwareAnimationRequest'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_ent_removeSoftwareAnimationRequest" + removeSoftwareAnimationRequest'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_ent_shareSkeletonInstanceWith" + shareSkeletonInstanceWith'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (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 ogre_ent_hasVertexAnimation" + hasVertexAnimation'_ :: ((HG3DClassPtr) -> ((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 ogre_ent_stopSharingSkeletonInstance" + stopSharingSkeletonInstance'_ :: ((HG3DClassPtr) -> (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 ogre_ent_sharesSkeletonInstance" + sharesSkeletonInstance'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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 ogre_ent_refreshAvailableAnimationState" + refreshAvailableAnimationState'_ :: ((HG3DClassPtr) -> (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 ogre_ent_chooseVertexDataForBinding" + chooseVertexDataForBinding'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr 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 ogre_ent_isInitialised" + isInitialised'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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 ogre_ent_backgroundLoadingComplete" + backgroundLoadingComplete'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (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 ogre_ent_setSkipAnimationStateUpdate" + setSkipAnimationStateUpdate'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h cE_getSkipAnimationStateUpdate_c" - cEGetSkipAnimationStateUpdate'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntity.chs.h ogre_ent_getSkipAnimationStateUpdate" + getSkipAnimationStateUpdate'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
HGamer3D/Bindings/Ogre/ClassEntityFactory.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassEntityFactory.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,17 +39,70 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntityFactory.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntityFactory.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntityFactory.chs" #-} +-- | +new :: IO (HG3DClass) + -- ^ +new = + alloca $ \a1' -> + new'_ a1' >>= \res -> + peek a1'>>= \a1'' -> + return (a1'') +{-# LINE 49 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntityFactory.chs" #-} +-- | +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = + withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 53 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntityFactory.chs" #-} + +-- | Get the type of the object to be created. +getType :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getType a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + getType'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 58 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntityFactory.chs" #-} + +-- | Destroy an instance of the object +destroyInstance :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ obj + -> IO () + -- ^ +destroyInstance a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + destroyInstance'_ a1' a2' >>= \res -> + return () +{-# LINE 63 ".\\HGamer3D\\Bindings\\Ogre\\ClassEntityFactory.chs" #-} + + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntityFactory.chs.h ogre_entf_construct" + new'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntityFactory.chs.h ogre_entf_destruct" + delete'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntityFactory.chs.h ogre_entf_getType" + getType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassEntityFactory.chs.h ogre_entf_destroyInstance" + destroyInstance'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
HGamer3D/Bindings/Ogre/ClassException.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassException.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,101 +39,151 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassException.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassException.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassException.chs" #-} +-- | Default constructor. +new :: Int -- ^ number + -> String -- ^ description + -> String -- ^ source + -> IO (HG3DClass) + -- ^ +new a1 a2 a3 = + let {a1' = fromIntegral a1} in + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + alloca $ \a4' -> + new'_ a1' a2' a3' a4' >>= \res -> + peek a4'>>= \a4'' -> + return (a4'') +{-# LINE 52 ".\\HGamer3D\\Bindings\\Ogre\\ClassException.chs" #-} -cExGetFullDescription :: HG3DClass -> IO (String) -cExGetFullDescription a1 = +-- | Needed for compatibility with std::exception. +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 56 ".\\HGamer3D\\Bindings\\Ogre\\ClassException.chs" #-} + +-- | Returns a string with the full description of this error. The description contains the error number, the description supplied by the thrower, what routine threw the exception, and will also supply extra platform-specific information where applicable. For example - in the case of a rendering library error, the description of the error will include both the place in which OGRE found the problem, and a text description from the 3D rendering library, if available. +getFullDescription :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getFullDescription a1 = + withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> - cExGetFullDescription'_ a1' a2' >>= \res -> + getFullDescription'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') -{-# LINE 60 "HGamer3D\\Bindings\\Ogre\\ClassException.chs" #-} -; -cExGetNumber :: HG3DClass -> IO (Int) -cExGetNumber a1 = +{-# LINE 61 ".\\HGamer3D\\Bindings\\Ogre\\ClassException.chs" #-} + +-- | Gets the error code. +getNumber :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getNumber a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cExGetNumber'_ a1' a2' >>= \res -> + getNumber'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 64 "HGamer3D\\Bindings\\Ogre\\ClassException.chs" #-} -; -cExGetSource :: HG3DClass -> IO (String) -cExGetSource a1 = +{-# LINE 66 ".\\HGamer3D\\Bindings\\Ogre\\ClassException.chs" #-} + +-- | Gets the source function. +getSource :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getSource a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> - cExGetSource'_ a1' a2' >>= \res -> + getSource'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') -{-# LINE 68 "HGamer3D\\Bindings\\Ogre\\ClassException.chs" #-} -; -cExGetFile :: HG3DClass -> IO (String) -cExGetFile a1 = +{-# LINE 71 ".\\HGamer3D\\Bindings\\Ogre\\ClassException.chs" #-} + +-- | Gets source file name. +getFile :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getFile a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> - cExGetFile'_ a1' a2' >>= \res -> + getFile'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') -{-# LINE 72 "HGamer3D\\Bindings\\Ogre\\ClassException.chs" #-} -; -cExGetLine :: HG3DClass -> IO (Int) -cExGetLine a1 = +{-# LINE 76 ".\\HGamer3D\\Bindings\\Ogre\\ClassException.chs" #-} + +-- | Gets line number. +getLine :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getLine a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cExGetLine'_ a1' a2' >>= \res -> + getLine'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 76 "HGamer3D\\Bindings\\Ogre\\ClassException.chs" #-} -; -cExGetDescription :: HG3DClass -> IO (String) -cExGetDescription a1 = +{-# LINE 81 ".\\HGamer3D\\Bindings\\Ogre\\ClassException.chs" #-} + +-- | Returns a string with only the 'description' field of this exception. Use getFullDescriptionto get a full description of the error including line number, error number and what function threw the exception. +getDescription :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getDescription a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> - cExGetDescription'_ a1' a2' >>= \res -> + getDescription'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') -{-# LINE 80 "HGamer3D\\Bindings\\Ogre\\ClassException.chs" #-} -; -cExWhat :: HG3DClass -> IO (String) -cExWhat a1 = +{-# LINE 86 ".\\HGamer3D\\Bindings\\Ogre\\ClassException.chs" #-} + +-- | Override std::exception::what. +what :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +what a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> - cExWhat'_ a1' a2' >>= \res -> + what'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') -{-# LINE 84 "HGamer3D\\Bindings\\Ogre\\ClassException.chs" #-} -; +{-# LINE 91 ".\\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 ogre_exc_construct" + new'_ :: (CInt -> ((Ptr CChar) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (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 ogre_exc_destruct" + delete'_ :: ((HG3DClassPtr) -> (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 ogre_exc_getFullDescription" + getFullDescription'_ :: ((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 ogre_exc_getNumber" + getNumber'_ :: ((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 ogre_exc_getSource" + getSource'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassException.chs.h cEx_what_c" - cExWhat'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassException.chs.h ogre_exc_getFile" + getFile'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassException.chs.h ogre_exc_getLine" + getLine'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassException.chs.h ogre_exc_getDescription" + getDescription'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassException.chs.h ogre_exc_what" + what'_ :: ((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.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,477 +39,674 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +import HGamer3D.Bindings.Ogre.StructRadians +{-# LINE 45 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +import HGamer3D.Bindings.Ogre.StructVec2 +{-# LINE 46 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +import HGamer3D.Bindings.Ogre.StructVec3 +{-# LINE 47 ".\\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" #-} +{-# LINE 48 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +import HGamer3D.Bindings.Ogre.StructSharedPtr +{-# LINE 49 ".\\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" #-} +{-# LINE 50 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +import HGamer3D.Bindings.Ogre.StructQuaternion +{-# LINE 51 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} import HGamer3D.Bindings.Ogre.EnumOrientationMode -{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +{-# LINE 52 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} +-- | Named constructor. +new :: String -- ^ name + -> IO (HG3DClass) + -- ^ +new a1 = + withCString a1 $ \a1' -> + alloca $ \a2' -> + new'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 58 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -cFSetFOVy :: HG3DClass -> Radians -> IO () -cFSetFOVy a1 a2 = +-- | +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 62 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Sets the Y-dimension Field Of View (FOV) of the frustum. Field Of View (FOV) is the angle made between the frustum's position, and the edges of the 'screen' onto which the scene is projected. High values (90+ degrees) result in a wide-angle, fish-eye kind of view, low values (30- degrees) in a stretched, telescopic kind of view. Typical values are between 45 and 60 degrees. This value represents the VERTICAL field-of-view. The horizontal field of view is calculated from this depending on the dimensions of the viewport (they will only be the same if the viewport is square). Setting the FOV overrides the value supplied for frustum::setNearClipPlane. +setFOVy :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Radians -- ^ fovy + -> IO () + -- ^ +setFOVy a1 a2 = + withHG3DClass a1 $ \a1' -> withRadians a2 $ \a2' -> - cFSetFOVy'_ a1' a2' >>= \res -> + setFOVy'_ a1' a2' >>= \res -> return () -{-# LINE 68 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFGetFOVy :: HG3DClass -> IO (Radians) -cFGetFOVy a1 = +{-# LINE 67 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Retrieves the frustums Y-dimension Field Of View (FOV). +getFOVy :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Radians) + -- ^ +getFOVy a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cFGetFOVy'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> + getFOVy'_ a1' a2' >>= \res -> + peekRadians a2'>>= \a2'' -> return (a2'') -{-# LINE 72 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFSetNearClipDistance :: HG3DClass -> Float -> IO () -cFSetNearClipDistance a1 a2 = +{-# LINE 72 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Sets the position of the near clipping plane. The position of the near clipping plane is the distance from the frustums position to the screen on which the world is projected. The near plane distance, combined with the field-of-view and the aspect ratio, determines the size of the viewport through which the world is viewed (in world co-ordinates). Note that this world viewport is different to a screen viewport, which has it's dimensions expressed in pixels. The frustums viewport should have the same aspect ratio as the screen viewport it renders into to avoid distortion. +setNearClipDistance :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ nearDist + -> IO () + -- ^ +setNearClipDistance a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in - cFSetNearClipDistance'_ a1' a2' >>= \res -> + setNearClipDistance'_ a1' a2' >>= \res -> return () -{-# LINE 76 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFGetNearClipDistance :: HG3DClass -> IO (Float) -cFGetNearClipDistance a1 = +{-# LINE 77 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Sets the position of the near clipping plane. +getNearClipDistance :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getNearClipDistance a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cFGetNearClipDistance'_ a1' a2' >>= \res -> + getNearClipDistance'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') -{-# LINE 80 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFSetFarClipDistance :: HG3DClass -> Float -> IO () -cFSetFarClipDistance a1 a2 = +{-# LINE 82 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Sets the distance to the far clipping plane. The view frustum is a pyramid created from the frustum position and the edges of the viewport. This method sets the distance for the far end of that pyramid. Different applications need different values: e.g. a flight sim needs a much further far clipping plane than a first-person shooter. An important point here is that the larger the ratio between near and far clipping planes, the lower the accuracy of the Z-buffer used to depth-cue pixels. This is because the Z-range is limited to the size of the Z buffer (16 or 32-bit) and the max values must be spread over the gap between near and far clip planes. As it happens, you can affect the accuracy far more by altering the near distance rather than the far distance, but keep this in mind. +setFarClipDistance :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ farDist + -> IO () + -- ^ +setFarClipDistance a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in - cFSetFarClipDistance'_ a1' a2' >>= \res -> + setFarClipDistance'_ a1' a2' >>= \res -> return () -{-# LINE 84 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFGetFarClipDistance :: HG3DClass -> IO (Float) -cFGetFarClipDistance a1 = +{-# LINE 87 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Retrieves the distance from the frustum to the far clipping plane. +getFarClipDistance :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getFarClipDistance a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cFGetFarClipDistance'_ a1' a2' >>= \res -> + getFarClipDistance'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') -{-# LINE 88 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFSetAspectRatio :: HG3DClass -> Float -> IO () -cFSetAspectRatio a1 a2 = +{-# LINE 92 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Sets the aspect ratio for the frustum viewport. The ratio between the x and y dimensions of the rectangular area visible through the frustum is known as aspect ratio: aspect = width / height . The default for most fullscreen windows is 1.3333 - this is also assumed by Ogre +setAspectRatio :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ ratio + -> IO () + -- ^ +setAspectRatio a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in - cFSetAspectRatio'_ a1' a2' >>= \res -> + setAspectRatio'_ a1' a2' >>= \res -> return () -{-# LINE 92 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFGetAspectRatio :: HG3DClass -> IO (Float) -cFGetAspectRatio a1 = +{-# LINE 97 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Retreives the current aspect ratio. +getAspectRatio :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getAspectRatio a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cFGetAspectRatio'_ a1' a2' >>= \res -> + getAspectRatio'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') -{-# LINE 96 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFSetFrustumOffset :: HG3DClass -> Vector2 -> IO () -cFSetFrustumOffset a1 a2 = +{-# LINE 102 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Sets frustum offsets, used in stereo rendering. You can set both horizontal and vertical plane offsets of "eye"; in stereo rendering frustum is moved in horizontal plane. To be able to render from two "eyes" you'll need two cameras rendering on two RenderTargets. The frustum offsets is in world coordinates, and default to (0, 0) - no offsets. +setFrustumOffset :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Vec2 -- ^ offset - The horizontal and vertical plane offsets. + -> IO () + -- ^ +setFrustumOffset a1 a2 = withHG3DClass a1 $ \a1' -> - withVector2 a2 $ \a2' -> - cFSetFrustumOffset'_ a1' a2' >>= \res -> + withVec2 a2 $ \a2' -> + setFrustumOffset'_ a1' a2' >>= \res -> return () -{-# LINE 100 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFSetFrustumOffset2 :: HG3DClass -> Float -> Float -> IO () -cFSetFrustumOffset2 a1 a2 a3 = +{-# LINE 107 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Sets frustum offsets, used in stereo rendering. You can set both horizontal and vertical plane offsets of "eye"; in stereo rendering frustum is moved in horizontal plane. To be able to render from two "eyes" you'll need two cameras rendering on two RenderTargets. The frustum offsets is in world coordinates, and default to (0, 0) - no offsets. +setFrustumOffset2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ horizontal - The horizontal plane offset. + -> Float -- ^ vertical - The vertical plane offset. + -> IO () + -- ^ +setFrustumOffset2 a1 a2 a3 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in let {a3' = realToFrac a3} in - cFSetFrustumOffset2'_ a1' a2' a3' >>= \res -> + setFrustumOffset2'_ a1' a2' a3' >>= \res -> return () -{-# LINE 105 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFGetFrustumOffset :: HG3DClass -> IO (Vector2) -cFGetFrustumOffset a1 = +{-# LINE 113 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Retrieves the frustum offsets. +getFrustumOffset :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Vec2) + -- ^ +getFrustumOffset a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cFGetFrustumOffset'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> + getFrustumOffset'_ a1' a2' >>= \res -> + peekVec2 a2'>>= \a2'' -> return (a2'') -{-# LINE 109 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFSetFocalLength :: HG3DClass -> Float -> IO () -cFSetFocalLength a1 a2 = +{-# LINE 118 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Sets frustum focal length (used in stereo rendering). +setFocalLength :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ focalLength - The distance to the focal plane from the frustum in world coordinates. + -> IO () + -- ^ +setFocalLength a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in - cFSetFocalLength'_ a1' a2' >>= \res -> + setFocalLength'_ a1' a2' >>= \res -> return () -{-# LINE 113 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFGetFocalLength :: HG3DClass -> IO (Float) -cFGetFocalLength a1 = +{-# LINE 123 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Returns focal length of frustum. +getFocalLength :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getFocalLength a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cFGetFocalLength'_ a1' a2' >>= \res -> + getFocalLength'_ 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 = +{-# LINE 128 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Manually set the extents of the frustum. +setFrustumExtents :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ left - The position where the side clip planes intersect the near clip plane, in eye space + -> Float -- ^ right + -> Float -- ^ top + -> Float -- ^ bottom + -> IO () + -- ^ +setFrustumExtents 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 -> + setFrustumExtents'_ a1' a2' a3' a4' a5' >>= \res -> return () -{-# LINE 124 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFResetFrustumExtents :: HG3DClass -> IO () -cFResetFrustumExtents a1 = +{-# LINE 136 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Reset the frustum extents to be automatically derived from other params. +resetFrustumExtents :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +resetFrustumExtents a1 = withHG3DClass a1 $ \a1' -> - cFResetFrustumExtents'_ a1' >>= \res -> + resetFrustumExtents'_ a1' >>= \res -> return () -{-# LINE 127 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFIsCustomViewMatrixEnabled :: HG3DClass -> IO (Bool) -cFIsCustomViewMatrixEnabled a1 = +{-# LINE 140 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Get the extents of the frustum in view space. +getFrustumExtents :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float, Float, Float, Float) + -- ^ outleft +getFrustumExtents a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cFIsCustomViewMatrixEnabled'_ a1' a2' >>= \res -> + alloca $ \a3' -> + alloca $ \a4' -> + alloca $ \a5' -> + getFrustumExtents'_ a1' a2' a3' a4' a5' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + peekFloatConv a3'>>= \a3'' -> + peekFloatConv a4'>>= \a4'' -> + peekFloatConv a5'>>= \a5'' -> + return (a2'', a3'', a4'', a5'') +{-# LINE 148 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Returns whether a custom view matrix is in use. +isCustomViewMatrixEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isCustomViewMatrixEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + isCustomViewMatrixEnabled'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 131 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFIsCustomProjectionMatrixEnabled :: HG3DClass -> IO (Bool) -cFIsCustomProjectionMatrixEnabled a1 = +{-# LINE 153 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Returns whether a custom projection matrix is in use. +isCustomProjectionMatrixEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isCustomProjectionMatrixEnabled a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cFIsCustomProjectionMatrixEnabled'_ a1' a2' >>= \res -> + isCustomProjectionMatrixEnabled'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 135 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFIsVisible3 :: HG3DClass -> Vector3 -> IO (EnumFrustumPlane, Bool) -cFIsVisible3 a1 a2 = +{-# LINE 158 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Tests whether the given vertex is visible in the FrustumOtherwise, false is returned. +isVisible3 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Vec3 -- ^ vert - Vertex to be checked (world space) + -> IO (EnumFrustumPlane, Bool) + -- ^ culledBy - Optional pointer to an int which will be filled by the plane number which culled the box if the result was false; +isVisible3 a1 a2 = withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> + withVec3 a2 $ \a2' -> alloca $ \a3' -> alloca $ \a4' -> - cFIsVisible3'_ a1' a2' a3' a4' >>= \res -> + isVisible3'_ 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 = +{-# LINE 165 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Overridden from MovableObject::getTypeFlags +getTypeFlags :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getTypeFlags a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cFGetTypeFlags'_ a1' a2' >>= \res -> + getTypeFlags'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 145 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFGetBoundingRadius :: HG3DClass -> IO (Float) -cFGetBoundingRadius a1 = +{-# LINE 170 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Overridden from MovableObject +getBoundingRadius :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getBoundingRadius a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cFGetBoundingRadius'_ a1' a2' >>= \res -> + getBoundingRadius'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') -{-# LINE 149 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFGetMovableType :: HG3DClass -> IO (String) -cFGetMovableType a1 = +{-# LINE 175 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Overridden from MovableObject +getMovableType :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getMovableType a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> - cFGetMovableType'_ a1' a2' >>= \res -> + getMovableType'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') -{-# LINE 153 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFNotifyCurrentCamera :: HG3DClass -> HG3DClass -> IO () -cFNotifyCurrentCamera a1 a2 = +{-# LINE 180 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Overridden from Renderable +getMaterial :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (SharedPtr) + -- ^ +getMaterial a1 = withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getMaterial'_ a1' a2' >>= \res -> + peekSharedPtr a2'>>= \a2'' -> + return (a2'') +{-# LINE 185 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Overridden from Renderable +getSquaredViewDepth :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ cam + -> IO (Float) + -- ^ +getSquaredViewDepth 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 = + alloca $ \a3' -> + getSquaredViewDepth'_ a1' a2' a3' >>= \res -> + peekFloatConv a3'>>= \a3'' -> + return (a3'') +{-# LINE 191 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Gets the world space corners of the frustum. The corners are ordered as follows: top-right near, top-left near, bottom-left near, bottom-right near, top-right far, top-left far, bottom-left far, bottom-right far. +getWorldSpaceCorners :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Vec3) + -- ^ +getWorldSpaceCorners a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cFGetMaterial'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> + getWorldSpaceCorners'_ a1' a2' >>= \res -> + peekVec3 a2'>>= \a2'' -> return (a2'') -{-# LINE 161 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFSetProjectionType :: HG3DClass -> EnumProjectionType -> IO () -cFSetProjectionType a1 a2 = +{-# LINE 196 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Sets the type of projection to use (orthographic or perspective). Default is perspective. +setProjectionType :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> EnumProjectionType -- ^ pt + -> IO () + -- ^ +setProjectionType a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = cIntFromEnum a2} in - cFSetProjectionType'_ a1' a2' >>= \res -> + setProjectionType'_ a1' a2' >>= \res -> return () -{-# LINE 165 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFGetProjectionType :: HG3DClass -> IO (EnumProjectionType) -cFGetProjectionType a1 = +{-# LINE 201 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Retrieves info on the type of projection used (orthographic or perspective). +getProjectionType :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (EnumProjectionType) + -- ^ +getProjectionType a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cFGetProjectionType'_ a1' a2' >>= \res -> + getProjectionType'_ a1' a2' >>= \res -> peekEnumUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 169 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFSetOrthoWindow :: HG3DClass -> Float -> Float -> IO () -cFSetOrthoWindow a1 a2 a3 = +{-# LINE 206 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Sets the orthographic window settings, for use with orthographic rendering only. Calling this method will recalculate the aspect ratio, use setOrthoWindowHeight or setOrthoWindowWidth alone if you wish to preserve the aspect ratio but just fit one or other dimension to a particular size. +setOrthoWindow :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ w - The dimensions of the view window in world units + -> Float -- ^ h + -> IO () + -- ^ +setOrthoWindow a1 a2 a3 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in let {a3' = realToFrac a3} in - cFSetOrthoWindow'_ a1' a2' a3' >>= \res -> + setOrthoWindow'_ a1' a2' a3' >>= \res -> return () -{-# LINE 174 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFSetOrthoWindowHeight :: HG3DClass -> Float -> IO () -cFSetOrthoWindowHeight a1 a2 = +{-# LINE 212 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Sets the orthographic window height, for use with orthographic rendering only. The width of the window will be calculated from the aspect ratio. +setOrthoWindowHeight :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ h - The height of the view window in world units + -> IO () + -- ^ +setOrthoWindowHeight a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in - cFSetOrthoWindowHeight'_ a1' a2' >>= \res -> + setOrthoWindowHeight'_ a1' a2' >>= \res -> return () -{-# LINE 178 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFSetOrthoWindowWidth :: HG3DClass -> Float -> IO () -cFSetOrthoWindowWidth a1 a2 = +{-# LINE 217 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Sets the orthographic window width, for use with orthographic rendering only. The height of the window will be calculated from the aspect ratio. +setOrthoWindowWidth :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ w - The width of the view window in world units + -> IO () + -- ^ +setOrthoWindowWidth a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in - cFSetOrthoWindowWidth'_ a1' a2' >>= \res -> + setOrthoWindowWidth'_ a1' a2' >>= \res -> return () -{-# LINE 182 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFGetOrthoWindowHeight :: HG3DClass -> IO (Float) -cFGetOrthoWindowHeight a1 = +{-# LINE 222 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Gets the orthographic window height, for use with orthographic rendering only. +getOrthoWindowHeight :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getOrthoWindowHeight a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cFGetOrthoWindowHeight'_ a1' a2' >>= \res -> + getOrthoWindowHeight'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') -{-# LINE 186 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFGetOrthoWindowWidth :: HG3DClass -> IO (Float) -cFGetOrthoWindowWidth a1 = +{-# LINE 227 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Gets the orthographic window width, for use with orthographic rendering only. This is calculated from the orthographic height and the aspect ratio +getOrthoWindowWidth :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getOrthoWindowWidth a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cFGetOrthoWindowWidth'_ a1' a2' >>= \res -> + getOrthoWindowWidth'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') -{-# LINE 190 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFDisableReflection :: HG3DClass -> IO () -cFDisableReflection a1 = +{-# LINE 232 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Disables reflection modification previously turned on with enableReflection +disableReflection :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +disableReflection a1 = withHG3DClass a1 $ \a1' -> - cFDisableReflection'_ a1' >>= \res -> + disableReflection'_ a1' >>= \res -> return () -{-# LINE 193 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFIsReflected :: HG3DClass -> IO (Bool) -cFIsReflected a1 = +{-# LINE 236 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Returns whether this frustum is being reflected. +isReflected :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isReflected a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cFIsReflected'_ a1' a2' >>= \res -> + isReflected'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 197 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFDisableCustomNearClipPlane :: HG3DClass -> IO () -cFDisableCustomNearClipPlane a1 = +{-# LINE 241 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Disables any custom near clip plane. +disableCustomNearClipPlane :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +disableCustomNearClipPlane a1 = withHG3DClass a1 $ \a1' -> - cFDisableCustomNearClipPlane'_ a1' >>= \res -> + disableCustomNearClipPlane'_ a1' >>= \res -> return () -{-# LINE 200 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFIsCustomNearClipPlaneEnabled :: HG3DClass -> IO (Bool) -cFIsCustomNearClipPlaneEnabled a1 = +{-# LINE 245 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Is a custom near clip plane in use? +isCustomNearClipPlaneEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isCustomNearClipPlaneEnabled a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cFIsCustomNearClipPlaneEnabled'_ a1' a2' >>= \res -> + isCustomNearClipPlaneEnabled'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 204 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFGetPositionForViewUpdate :: HG3DClass -> IO (Vector3) -cFGetPositionForViewUpdate a1 = +{-# LINE 250 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Get the derived position of this frustum. +getPositionForViewUpdate :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Vec3) + -- ^ +getPositionForViewUpdate a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cFGetPositionForViewUpdate'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> + getPositionForViewUpdate'_ a1' a2' >>= \res -> + peekVec3 a2'>>= \a2'' -> return (a2'') -{-# LINE 208 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFGetOrientationForViewUpdate :: HG3DClass -> IO (Quaternion) -cFGetOrientationForViewUpdate a1 = +{-# LINE 255 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Get the derived orientation of this frustum. +getOrientationForViewUpdate :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Quaternion) + -- ^ +getOrientationForViewUpdate a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cFGetOrientationForViewUpdate'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> + getOrientationForViewUpdate'_ a1' a2' >>= \res -> + peekQuaternion a2'>>= \a2'' -> return (a2'') -{-# LINE 212 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFSetOrientationMode :: HG3DClass -> EnumOrientationMode -> IO () -cFSetOrientationMode a1 a2 = +{-# LINE 260 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Set the orientation mode of the frustum. Default is OR_DEGREE_0 Setting the orientation of a frustum is only supported on iPhone at this time. An exception is thrown on other platforms. +setOrientationMode :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> EnumOrientationMode -- ^ orientationMode + -> IO () + -- ^ +setOrientationMode a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = cIntFromEnum a2} in - cFSetOrientationMode'_ a1' a2' >>= \res -> + setOrientationMode'_ a1' a2' >>= \res -> return () -{-# LINE 216 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; -cFGetOrientationMode :: HG3DClass -> IO (EnumOrientationMode) -cFGetOrientationMode a1 = +{-# LINE 265 ".\\HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} + +-- | Get the orientation mode of the frustum. Getting the orientation of a frustum is only supported on iPhone at this time. An exception is thrown on other platforms. +getOrientationMode :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (EnumOrientationMode) + -- ^ +getOrientationMode a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cFGetOrientationMode'_ a1' a2' >>= \res -> + getOrientationMode'_ a1' a2' >>= \res -> peekEnumUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 220 "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs" #-} -; +{-# LINE 270 ".\\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 ogre_frst_construct" + new'_ :: ((Ptr CChar) -> ((HG3DClassPtr) -> (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 ogre_frst_destruct" + delete'_ :: ((HG3DClassPtr) -> (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 ogre_frst_setFOVy" + setFOVy'_ :: ((HG3DClassPtr) -> ((RadiansPtr) -> (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 ogre_frst_getFOVy" + getFOVy'_ :: ((HG3DClassPtr) -> ((RadiansPtr) -> (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 ogre_frst_setNearClipDistance" + setNearClipDistance'_ :: ((HG3DClassPtr) -> (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 ogre_frst_getNearClipDistance" + getNearClipDistance'_ :: ((HG3DClassPtr) -> ((Ptr 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 ogre_frst_setFarClipDistance" + setFarClipDistance'_ :: ((HG3DClassPtr) -> (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 ogre_frst_getFarClipDistance" + getFarClipDistance'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (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 ogre_frst_setAspectRatio" + setAspectRatio'_ :: ((HG3DClassPtr) -> (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 ogre_frst_getAspectRatio" + getAspectRatio'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (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 ogre_frst_setFrustumOffset" + setFrustumOffset'_ :: ((HG3DClassPtr) -> ((Vec2Ptr) -> (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 ogre_frst_setFrustumOffset2" + setFrustumOffset2'_ :: ((HG3DClassPtr) -> (CFloat -> (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 ogre_frst_getFrustumOffset" + getFrustumOffset'_ :: ((HG3DClassPtr) -> ((Vec2Ptr) -> (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 ogre_frst_setFocalLength" + setFocalLength'_ :: ((HG3DClassPtr) -> (CFloat -> (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 ogre_frst_getFocalLength" + getFocalLength'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (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 ogre_frst_setFrustumExtents" + setFrustumExtents'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (CFloat -> (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 ogre_frst_resetFrustumExtents" + resetFrustumExtents'_ :: ((HG3DClassPtr) -> (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 ogre_frst_getFrustumExtents" + getFrustumExtents'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> ((Ptr CFloat) -> ((Ptr CFloat) -> ((Ptr CFloat) -> (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 ogre_frst_isCustomViewMatrixEnabled" + isCustomViewMatrixEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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 ogre_frst_isCustomProjectionMatrixEnabled" + isCustomProjectionMatrixEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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 ogre_frst_isVisible3" + isVisible3'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> ((Ptr CInt) -> ((Ptr CInt) -> (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 ogre_frst_getTypeFlags" + getTypeFlags'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (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 ogre_frst_getBoundingRadius" + getBoundingRadius'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (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 ogre_frst_getMovableType" + getMovableType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (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 ogre_frst_getMaterial" + getMaterial'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (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 ogre_frst_getSquaredViewDepth" + getSquaredViewDepth'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((Ptr 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 ogre_frst_getWorldSpaceCorners" + getWorldSpaceCorners'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (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 ogre_frst_setProjectionType" + setProjectionType'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_frst_getProjectionType" + getProjectionType'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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 ogre_frst_setOrthoWindow" + setOrthoWindow'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (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 ogre_frst_setOrthoWindowHeight" + setOrthoWindowHeight'_ :: ((HG3DClassPtr) -> (CFloat -> (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 ogre_frst_setOrthoWindowWidth" + setOrthoWindowWidth'_ :: ((HG3DClassPtr) -> (CFloat -> (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 ogre_frst_getOrthoWindowHeight" + getOrthoWindowHeight'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (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 ogre_frst_getOrthoWindowWidth" + getOrthoWindowWidth'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (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 ogre_frst_disableReflection" + disableReflection'_ :: ((HG3DClassPtr) -> (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 ogre_frst_isReflected" + isReflected'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h cF_getOrientationMode_c" - cFGetOrientationMode'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h ogre_frst_disableCustomNearClipPlane" + disableCustomNearClipPlane'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h ogre_frst_isCustomNearClipPlaneEnabled" + isCustomNearClipPlaneEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h ogre_frst_getPositionForViewUpdate" + getPositionForViewUpdate'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h ogre_frst_getOrientationForViewUpdate" + getOrientationForViewUpdate'_ :: ((HG3DClassPtr) -> ((QuaternionPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h ogre_frst_setOrientationMode" + setOrientationMode'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassFrustum.chs.h ogre_frst_getOrientationMode" + getOrientationMode'_ :: ((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/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.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,616 +39,719 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +import HGamer3D.Bindings.Ogre.EnumLightType +{-# LINE 45 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +import HGamer3D.Bindings.Ogre.StructColour +{-# LINE 46 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +import HGamer3D.Bindings.Ogre.StructVec3 +{-# LINE 47 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +import HGamer3D.Bindings.Ogre.StructRadians +{-# LINE 48 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} +-- | Normal constructor. Should not be called directly, but rather the SceneManager::createLight +new :: String -- ^ name + -> IO (HG3DClass) + -- ^ +new a1 = + withCString a1 $ \a1' -> + alloca $ \a2' -> + new'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 54 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -cLCalcTempSquareDist :: HG3DClass -> Vector3 -> IO () -cLCalcTempSquareDist a1 a2 = +-- | Standard destructor. +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> - cLCalcTempSquareDist'_ a1' a2' >>= \res -> + delete'_ a1' >>= \res -> return () -{-# LINE 65 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLSetType :: HG3DClass -> EnumLightTypes -> IO () -cLSetType a1 a2 = +{-# LINE 58 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Sets the type of light - see LightTypes for more info. +setType :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> EnumLightType -- ^ type + -> IO () + -- ^ +setType a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = cIntFromEnum a2} in - cLSetType'_ a1' a2' >>= \res -> + setType'_ a1' a2' >>= \res -> return () -{-# LINE 69 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLGetType :: HG3DClass -> IO (EnumLightTypes) -cLGetType a1 = +{-# LINE 63 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Returns the light type. +getType :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (EnumLightType) + -- ^ +getType a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cLGetType'_ a1' a2' >>= \res -> + getType'_ 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 = +{-# LINE 68 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Sets the colour of the diffuse light given off by this source. MaterialDiffuse light simulates the typical light emanating from light sources and affects the base colour of objects together with ambient light. +setDiffuseColour :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ red + -> Float -- ^ green + -> Float -- ^ blue + -> IO () + -- ^ +setDiffuseColour 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 -> + setDiffuseColour'_ a1' a2' a3' a4' >>= \res -> return () -{-# LINE 79 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLSetDiffuseColour2 :: HG3DClass -> Colour -> IO () -cLSetDiffuseColour2 a1 a2 = +{-# LINE 75 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Sets the colour of the diffuse light given off by this source. MaterialDiffuse light simulates the typical light emanating from light sources and affects the base colour of objects together with ambient light. +setDiffuseColour2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Colour -- ^ colour + -> IO () + -- ^ +setDiffuseColour2 a1 a2 = withHG3DClass a1 $ \a1' -> withColour a2 $ \a2' -> - cLSetDiffuseColour2'_ a1' a2' >>= \res -> + setDiffuseColour2'_ a1' a2' >>= \res -> return () -{-# LINE 83 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLGetDiffuseColour :: HG3DClass -> IO (Colour) -cLGetDiffuseColour a1 = +{-# LINE 80 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Returns the colour of the diffuse light given off by this light source (see setDiffuseColour for more info). +getDiffuseColour :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Colour) + -- ^ +getDiffuseColour a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cLGetDiffuseColour'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> + getDiffuseColour'_ a1' a2' >>= \res -> + peekColour a2'>>= \a2'' -> return (a2'') -{-# LINE 87 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLSetSpecularColour :: HG3DClass -> Float -> Float -> Float -> IO () -cLSetSpecularColour a1 a2 a3 a4 = +{-# LINE 85 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Sets the colour of the specular light given off by this source. MaterialSpecular light affects the appearance of shiny highlights on objects, and is also dependent on the 'shininess' Material +setSpecularColour :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ red + -> Float -- ^ green + -> Float -- ^ blue + -> IO () + -- ^ +setSpecularColour 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 -> + setSpecularColour'_ a1' a2' a3' a4' >>= \res -> return () -{-# LINE 93 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLSetSpecularColour2 :: HG3DClass -> Colour -> IO () -cLSetSpecularColour2 a1 a2 = +{-# LINE 92 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Sets the colour of the specular light given off by this source. MaterialSpecular light affects the appearance of shiny highlights on objects, and is also dependent on the 'shininess' Material +setSpecularColour2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Colour -- ^ colour + -> IO () + -- ^ +setSpecularColour2 a1 a2 = withHG3DClass a1 $ \a1' -> withColour a2 $ \a2' -> - cLSetSpecularColour2'_ a1' a2' >>= \res -> + setSpecularColour2'_ a1' a2' >>= \res -> return () -{-# LINE 97 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLGetSpecularColour :: HG3DClass -> IO (Colour) -cLGetSpecularColour a1 = +{-# LINE 97 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Returns the colour of specular light given off by this light source. +getSpecularColour :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Colour) + -- ^ +getSpecularColour a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cLGetSpecularColour'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> + getSpecularColour'_ a1' a2' >>= \res -> + peekColour a2'>>= \a2'' -> return (a2'') -{-# LINE 101 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLSetAttenuation :: HG3DClass -> Float -> Float -> Float -> Float -> IO () -cLSetAttenuation a1 a2 a3 a4 a5 = +{-# LINE 102 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Sets the attenuation parameters of the light source i.e. how it diminishes with distance. Lights normally get fainter the further they are away. Also, each light is given a maximum range beyond which it cannot affect any objects. LightThis follows a standard attenuation approach - see any good 3D text for the details of what they mean since i don't have room here! +setAttenuation :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ range - The absolute upper range of the light in world units + -> Float -- ^ constant - The constant factor in the attenuation formula: 1.0 means never attenuate, 0.0 is complete attenuation + -> Float -- ^ linear - The linear factor in the attenuation formula: 1 means attenuate evenly over the distance + -> Float -- ^ quadratic - The quadratic factor in the attenuation formula: adds a curvature to the attenuation formula. + -> IO () + -- ^ +setAttenuation 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 -> + setAttenuation'_ a1' a2' a3' a4' a5' >>= \res -> return () -{-# LINE 108 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLGetAttenuationRange :: HG3DClass -> IO (Float) -cLGetAttenuationRange a1 = +{-# LINE 110 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Returns the absolute upper range of the light. +getAttenuationRange :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getAttenuationRange a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cLGetAttenuationRange'_ a1' a2' >>= \res -> + getAttenuationRange'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') -{-# LINE 112 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLGetAttenuationConstant :: HG3DClass -> IO (Float) -cLGetAttenuationConstant a1 = +{-# LINE 115 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Returns the constant factor in the attenuation formula. +getAttenuationConstant :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getAttenuationConstant a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cLGetAttenuationConstant'_ a1' a2' >>= \res -> + getAttenuationConstant'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') -{-# LINE 116 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLGetAttenuationLinear :: HG3DClass -> IO (Float) -cLGetAttenuationLinear a1 = +{-# LINE 120 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Returns the linear factor in the attenuation formula. +getAttenuationLinear :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getAttenuationLinear a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cLGetAttenuationLinear'_ a1' a2' >>= \res -> + getAttenuationLinear'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') -{-# LINE 120 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLGetAttenuationQuadric :: HG3DClass -> IO (Float) -cLGetAttenuationQuadric a1 = +{-# LINE 125 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Returns the quadric factor in the attenuation formula. +getAttenuationQuadric :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getAttenuationQuadric a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cLGetAttenuationQuadric'_ a1' a2' >>= \res -> + getAttenuationQuadric'_ 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 = +{-# LINE 130 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Sets the position of the light. Applicable to point lights and spotlights only. This will be overridden if the light is attached to a SceneNode +setPosition :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ x + -> Float -- ^ y + -> Float -- ^ z + -> IO () + -- ^ +setPosition 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 -> + setPosition'_ a1' a2' a3' a4' >>= \res -> return () -{-# LINE 130 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLSetPosition2 :: HG3DClass -> Vector3 -> IO () -cLSetPosition2 a1 a2 = +{-# LINE 137 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Sets the position of the light. Applicable to point lights and spotlights only. This will be overridden if the light is attached to a SceneNode +setPosition2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Vec3 -- ^ vec + -> IO () + -- ^ +setPosition2 a1 a2 = withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> - cLSetPosition2'_ a1' a2' >>= \res -> + withVec3 a2 $ \a2' -> + setPosition2'_ a1' a2' >>= \res -> return () -{-# LINE 134 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLGetPosition :: HG3DClass -> IO (Vector3) -cLGetPosition a1 = +{-# LINE 142 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Returns the position of the light. Applicable to point lights and spotlights only. +getPosition :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Vec3) + -- ^ +getPosition a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cLGetPosition'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> + getPosition'_ a1' a2' >>= \res -> + peekVec3 a2'>>= \a2'' -> return (a2'') -{-# LINE 138 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLSetDirection :: HG3DClass -> Float -> Float -> Float -> IO () -cLSetDirection a1 a2 a3 a4 = +{-# LINE 147 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Sets the direction in which a light points. Applicable only to the spotlight and directional light types. This will be overridden if the light is attached to a SceneNode +setDirection :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ x + -> Float -- ^ y + -> Float -- ^ z + -> IO () + -- ^ +setDirection 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 -> + setDirection'_ a1' a2' a3' a4' >>= \res -> return () -{-# LINE 144 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLSetDirection2 :: HG3DClass -> Vector3 -> IO () -cLSetDirection2 a1 a2 = +{-# LINE 154 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Sets the direction in which a light points. Applicable only to the spotlight and directional light types. This will be overridden if the light is attached to a SceneNode +setDirection2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Vec3 -- ^ vec + -> IO () + -- ^ +setDirection2 a1 a2 = withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> - cLSetDirection2'_ a1' a2' >>= \res -> + withVec3 a2 $ \a2' -> + setDirection2'_ a1' a2' >>= \res -> return () -{-# LINE 148 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLGetDirection :: HG3DClass -> IO (Vector3) -cLGetDirection a1 = +{-# LINE 159 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Returns the light's direction. Applicable only to the spotlight and directional light types. +getDirection :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Vec3) + -- ^ +getDirection a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cLGetDirection'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> + getDirection'_ a1' a2' >>= \res -> + peekVec3 a2'>>= \a2'' -> return (a2'') -{-# LINE 152 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLSetSpotlightRange :: HG3DClass -> Radians -> Radians -> Float -> IO () -cLSetSpotlightRange a1 a2 a3 a4 = +{-# LINE 164 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Sets the range of a spotlight, i.e. the angle of the inner and outer cones and the rate of falloff between them. +setSpotlightRange :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Radians -- ^ innerAngle - Angle covered by the bright inner cone The inner cone applicable only to Direct3D, it'll always treat as zero in OpenGL. + -> Radians -- ^ outerAngle - Angle covered by the outer cone + -> Float -- ^ falloff - The rate of falloff between the inner and outer cones. 1.0 means a linear falloff, less means slower falloff, higher means faster falloff. + -> IO () + -- ^ +setSpotlightRange a1 a2 a3 a4 = withHG3DClass a1 $ \a1' -> withRadians a2 $ \a2' -> withRadians a3 $ \a3' -> let {a4' = realToFrac a4} in - cLSetSpotlightRange'_ a1' a2' a3' a4' >>= \res -> + setSpotlightRange'_ a1' a2' a3' a4' >>= \res -> return () -{-# LINE 158 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLGetSpotlightInnerAngle :: HG3DClass -> IO (Radians) -cLGetSpotlightInnerAngle a1 = +{-# LINE 171 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Returns the angle covered by the spotlights inner cone. +getSpotlightInnerAngle :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Radians) + -- ^ +getSpotlightInnerAngle a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cLGetSpotlightInnerAngle'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> + getSpotlightInnerAngle'_ a1' a2' >>= \res -> + peekRadians a2'>>= \a2'' -> return (a2'') -{-# LINE 162 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLGetSpotlightOuterAngle :: HG3DClass -> IO (Radians) -cLGetSpotlightOuterAngle a1 = +{-# LINE 176 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Returns the angle covered by the spotlights outer cone. +getSpotlightOuterAngle :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Radians) + -- ^ +getSpotlightOuterAngle a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cLGetSpotlightOuterAngle'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> + getSpotlightOuterAngle'_ a1' a2' >>= \res -> + peekRadians a2'>>= \a2'' -> return (a2'') -{-# LINE 166 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLGetSpotlightFalloff :: HG3DClass -> IO (Float) -cLGetSpotlightFalloff a1 = +{-# LINE 181 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Returns the falloff between the inner and outer cones of the spotlight. +getSpotlightFalloff :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getSpotlightFalloff a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cLGetSpotlightFalloff'_ a1' a2' >>= \res -> + getSpotlightFalloff'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') -{-# LINE 170 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLSetSpotlightInnerAngle :: HG3DClass -> Radians -> IO () -cLSetSpotlightInnerAngle a1 a2 = +{-# LINE 186 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Sets the angle covered by the spotlights inner cone. +setSpotlightInnerAngle :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Radians -- ^ val + -> IO () + -- ^ +setSpotlightInnerAngle a1 a2 = withHG3DClass a1 $ \a1' -> withRadians a2 $ \a2' -> - cLSetSpotlightInnerAngle'_ a1' a2' >>= \res -> + setSpotlightInnerAngle'_ a1' a2' >>= \res -> return () -{-# LINE 174 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLSetSpotlightOuterAngle :: HG3DClass -> Radians -> IO () -cLSetSpotlightOuterAngle a1 a2 = +{-# LINE 191 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Sets the angle covered by the spotlights outer cone. +setSpotlightOuterAngle :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Radians -- ^ val + -> IO () + -- ^ +setSpotlightOuterAngle a1 a2 = withHG3DClass a1 $ \a1' -> withRadians a2 $ \a2' -> - cLSetSpotlightOuterAngle'_ a1' a2' >>= \res -> + setSpotlightOuterAngle'_ a1' a2' >>= \res -> return () -{-# LINE 178 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLSetSpotlightFalloff :: HG3DClass -> Float -> IO () -cLSetSpotlightFalloff a1 a2 = +{-# LINE 196 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Sets the falloff between the inner and outer cones of the spotlight. +setSpotlightFalloff :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ val + -> IO () + -- ^ +setSpotlightFalloff a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in - cLSetSpotlightFalloff'_ a1' a2' >>= \res -> + setSpotlightFalloff'_ a1' a2' >>= \res -> return () -{-# LINE 182 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLSetPowerScale :: HG3DClass -> Float -> IO () -cLSetPowerScale a1 a2 = +{-# LINE 201 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Set a scaling factor to indicate the relative power of a light. This factor is only useful in High Dynamic Range (HDR) rendering. You can bind it to a shader variable to take it into account, GpuProgramParameters +setPowerScale :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ power - The power rating of this light, default is 1.0. + -> IO () + -- ^ +setPowerScale a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in - cLSetPowerScale'_ a1' a2' >>= \res -> + setPowerScale'_ a1' a2' >>= \res -> return () -{-# LINE 186 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLGetPowerScale :: HG3DClass -> IO (Float) -cLGetPowerScale a1 = +{-# LINE 206 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Set the scaling factor which indicates the relative power of a light. +getPowerScale :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getPowerScale a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cLGetPowerScale'_ a1' a2' >>= \res -> + getPowerScale'_ 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 = +{-# LINE 211 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Overridden from MovableObject +getMovableType :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getMovableType a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> - cLGetMovableType'_ a1' a2' >>= \res -> + getMovableType'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') -{-# LINE 202 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLGetDerivedPosition :: HG3DClass -> Bool -> IO (Vector3) -cLGetDerivedPosition a1 a2 = +{-# LINE 216 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Retrieves the position of the light including any transform from nodes it is attached to. +getDerivedPosition :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ cameraRelativeIfSet - If set to true, returns data in camera-relative units if that's been set up (render use) + -> IO (Vec3) + -- ^ +getDerivedPosition a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in alloca $ \a3' -> - cLGetDerivedPosition'_ a1' a2' a3' >>= \res -> - peek a3'>>= \a3'' -> + getDerivedPosition'_ a1' a2' a3' >>= \res -> + peekVec3 a3'>>= \a3'' -> return (a3'') -{-# LINE 207 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLGetDerivedDirection :: HG3DClass -> IO (Vector3) -cLGetDerivedDirection a1 = +{-# LINE 222 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Retrieves the direction of the light including any transform from nodes it is attached to. +getDerivedDirection :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Vec3) + -- ^ +getDerivedDirection a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cLGetDerivedDirection'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> + getDerivedDirection'_ a1' a2' >>= \res -> + peekVec3 a2'>>= \a2'' -> return (a2'') -{-# LINE 211 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLSetVisible :: HG3DClass -> Bool -> IO () -cLSetVisible a1 a2 = +{-# LINE 227 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Overridden from MovableObjectAlthough lights themselves are not 'visible', setting a light to invisible means it no longer affects the scene. +setVisible :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ visible + -> IO () + -- ^ +setVisible a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cLSetVisible'_ a1' a2' >>= \res -> + setVisible'_ a1' a2' >>= \res -> return () -{-# LINE 215 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLGetBoundingRadius :: HG3DClass -> IO (Float) -cLGetBoundingRadius a1 = +{-# LINE 232 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Overridden from MovableObject +getBoundingRadius :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getBoundingRadius a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cLGetBoundingRadius'_ a1' a2' >>= \res -> + getBoundingRadius'_ 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 = +{-# LINE 237 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Override to return specific type flag. +getTypeFlags :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getTypeFlags a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cLGetTypeFlags'_ a1' a2' >>= \res -> + getTypeFlags'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 228 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLResetCustomShadowCameraSetup :: HG3DClass -> IO () -cLResetCustomShadowCameraSetup a1 = +{-# LINE 242 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Reset the shadow camera setup to the default. ShadowCameraSetup +resetCustomShadowCameraSetup :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +resetCustomShadowCameraSetup a1 = withHG3DClass a1 $ \a1' -> - cLResetCustomShadowCameraSetup'_ a1' >>= \res -> + resetCustomShadowCameraSetup'_ 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 = +{-# LINE 246 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Sets the maximum distance away from the camera that shadows by this light will be visible. Shadow techniques can be expensive, therefore it is a good idea to limit them to being rendered close to the camera if possible, and to skip the expense of rendering shadows for distance objects. This method allows you to set the distance at which shadows will no longer be rendered. Each shadow technique can interpret this subtely differently. For example, one technique may use this to eliminate casters, another might use it to attenuate the shadows themselves. You should tweak this value to suit your chosen shadow technique and scene setup. +setShadowFarDistance :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ distance + -> IO () + -- ^ +setShadowFarDistance a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in - cLSetShadowFarDistance'_ a1' a2' >>= \res -> + setShadowFarDistance'_ a1' a2' >>= \res -> return () -{-# LINE 239 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLResetShadowFarDistance :: HG3DClass -> IO () -cLResetShadowFarDistance a1 = +{-# LINE 251 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Tells the light to use the shadow far distance of the SceneManager +resetShadowFarDistance :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +resetShadowFarDistance a1 = withHG3DClass a1 $ \a1' -> - cLResetShadowFarDistance'_ a1' >>= \res -> + resetShadowFarDistance'_ a1' >>= \res -> return () -{-# LINE 242 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLGetShadowFarDistance :: HG3DClass -> IO (Float) -cLGetShadowFarDistance a1 = +{-# LINE 255 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Gets the maximum distance away from the camera that shadows by this light will be visible. +getShadowFarDistance :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getShadowFarDistance a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cLGetShadowFarDistance'_ a1' a2' >>= \res -> + getShadowFarDistance'_ 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 = +{-# LINE 260 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | +getShadowFarDistanceSquared :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getShadowFarDistanceSquared a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cLGetShadowNearClipDistance'_ a1' a2' >>= \res -> + getShadowFarDistanceSquared'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') -{-# LINE 254 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLSetShadowFarClipDistance :: HG3DClass -> Float -> IO () -cLSetShadowFarClipDistance a1 a2 = +{-# LINE 265 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Set the near clip plane distance to be used by the shadow camera, if this light casts texture shadows. +setShadowNearClipDistance :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ nearClip + -> IO () + -- ^ +setShadowNearClipDistance a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in - cLSetShadowFarClipDistance'_ a1' a2' >>= \res -> + setShadowNearClipDistance'_ a1' a2' >>= \res -> return () -{-# LINE 258 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLGetShadowFarClipDistance :: HG3DClass -> IO (Float) -cLGetShadowFarClipDistance a1 = +{-# LINE 270 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Get the near clip plane distance to be used by the shadow camera, if this light casts texture shadows. May be zero if the light doesn't have it's own near distance set; use _deriveShadowNearDistance for a version guaranteed to give a result. +getShadowNearClipDistance :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getShadowNearClipDistance a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cLGetShadowFarClipDistance'_ a1' a2' >>= \res -> + getShadowNearClipDistance'_ 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 = +{-# LINE 275 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Set the far clip plane distance to be used by the shadow camera, if this light casts texture shadows. This is different from the 'shadow far distance', which is always measured from the main camera. This distance is the far clip plane of the light camera. +setShadowFarClipDistance :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ farClip + -> IO () + -- ^ +setShadowFarClipDistance a1 a2 = withHG3DClass a1 $ \a1' -> - let {a2' = fromIntegral a2} in - withVector4 a3 $ \a3' -> - cLSetCustomParameter'_ a1' a2' a3' >>= \res -> + let {a2' = realToFrac a2} in + setShadowFarClipDistance'_ a1' a2' >>= \res -> return () -{-# LINE 271 "HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} -; -cLGetCustomParameter :: HG3DClass -> Int -> IO (Vector4) -cLGetCustomParameter a1 a2 = +{-# LINE 280 ".\\HGamer3D\\Bindings\\Ogre\\ClassLight.chs" #-} + +-- | Get the far clip plane distance to be used by the shadow camera, if this light casts texture shadows. May be zero if the light doesn't have it's own far distance set; use _deriveShadowfarDistance for a version guaranteed to give a result. +getShadowFarClipDistance :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getShadowFarClipDistance a1 = 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" #-} -; + alloca $ \a2' -> + getShadowFarClipDistance'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 285 ".\\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 ogre_lgt_construct" + new'_ :: ((Ptr CChar) -> ((HG3DClassPtr) -> (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 ogre_lgt_destruct" + delete'_ :: ((HG3DClassPtr) -> (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 ogre_lgt_setType" + setType'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_lgt_getType" + getType'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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 ogre_lgt_setDiffuseColour" + setDiffuseColour'_ :: ((HG3DClassPtr) -> (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 ogre_lgt_setDiffuseColour2" + setDiffuseColour2'_ :: ((HG3DClassPtr) -> ((ColourPtr) -> (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 ogre_lgt_getDiffuseColour" + getDiffuseColour'_ :: ((HG3DClassPtr) -> ((ColourPtr) -> (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 ogre_lgt_setSpecularColour" + setSpecularColour'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (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 ogre_lgt_setSpecularColour2" + setSpecularColour2'_ :: ((HG3DClassPtr) -> ((ColourPtr) -> (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 ogre_lgt_getSpecularColour" + getSpecularColour'_ :: ((HG3DClassPtr) -> ((ColourPtr) -> (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 ogre_lgt_setAttenuation" + setAttenuation'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (CFloat -> (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 ogre_lgt_getAttenuationRange" + getAttenuationRange'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (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 ogre_lgt_getAttenuationConstant" + getAttenuationConstant'_ :: ((HG3DClassPtr) -> ((Ptr 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 ogre_lgt_getAttenuationLinear" + getAttenuationLinear'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (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 ogre_lgt_getAttenuationQuadric" + getAttenuationQuadric'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (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 ogre_lgt_setPosition" + setPosition'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (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 ogre_lgt_setPosition2" + setPosition2'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (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 ogre_lgt_getPosition" + getPosition'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (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 ogre_lgt_setDirection" + setDirection'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (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 ogre_lgt_setDirection2" + setDirection2'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (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 ogre_lgt_getDirection" + getDirection'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (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 ogre_lgt_setSpotlightRange" + setSpotlightRange'_ :: ((HG3DClassPtr) -> ((RadiansPtr) -> ((RadiansPtr) -> (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 ogre_lgt_getSpotlightInnerAngle" + getSpotlightInnerAngle'_ :: ((HG3DClassPtr) -> ((RadiansPtr) -> (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 ogre_lgt_getSpotlightOuterAngle" + getSpotlightOuterAngle'_ :: ((HG3DClassPtr) -> ((RadiansPtr) -> (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 ogre_lgt_getSpotlightFalloff" + getSpotlightFalloff'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (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 ogre_lgt_setSpotlightInnerAngle" + setSpotlightInnerAngle'_ :: ((HG3DClassPtr) -> ((RadiansPtr) -> (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 ogre_lgt_setSpotlightOuterAngle" + setSpotlightOuterAngle'_ :: ((HG3DClassPtr) -> ((RadiansPtr) -> (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 ogre_lgt_setSpotlightFalloff" + setSpotlightFalloff'_ :: ((HG3DClassPtr) -> (CFloat -> (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 ogre_lgt_setPowerScale" + setPowerScale'_ :: ((HG3DClassPtr) -> (CFloat -> (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 ogre_lgt_getPowerScale" + getPowerScale'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (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 ogre_lgt_getMovableType" + getMovableType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (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 ogre_lgt_getDerivedPosition" + getDerivedPosition'_ :: ((HG3DClassPtr) -> (CInt -> ((Vec3Ptr) -> (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 ogre_lgt_getDerivedDirection" + getDerivedDirection'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (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 ogre_lgt_setVisible" + setVisible'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_lgt_getBoundingRadius" + getBoundingRadius'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (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 ogre_lgt_getTypeFlags" + getTypeFlags'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (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 ogre_lgt_resetCustomShadowCameraSetup" + resetCustomShadowCameraSetup'_ :: ((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 ogre_lgt_setShadowFarDistance" + setShadowFarDistance'_ :: ((HG3DClassPtr) -> (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 ogre_lgt_resetShadowFarDistance" + resetShadowFarDistance'_ :: ((HG3DClassPtr) -> (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 ogre_lgt_getShadowFarDistance" + getShadowFarDistance'_ :: ((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 ogre_lgt_getShadowFarDistanceSquared" + getShadowFarDistanceSquared'_ :: ((HG3DClassPtr) -> ((Ptr 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 ogre_lgt_setShadowNearClipDistance" + setShadowNearClipDistance'_ :: ((HG3DClassPtr) -> (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 ogre_lgt_getShadowNearClipDistance" + getShadowNearClipDistance'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (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 ogre_lgt_setShadowFarClipDistance" + setShadowFarClipDistance'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h cL_getCustomParameter_c" - cLGetCustomParameter'_ :: ((HG3DClassPtr) -> (CUShort -> ((Vector4Ptr) -> (IO ())))) +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLight.chs.h ogre_lgt_getShadowFarClipDistance" + getShadowFarClipDistance'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ())))
HGamer3D/Bindings/Ogre/ClassLightFactory.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassLightFactory.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,17 +39,70 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassLightFactory.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassLightFactory.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassLightFactory.chs" #-} +-- | +new :: IO (HG3DClass) + -- ^ +new = + alloca $ \a1' -> + new'_ a1' >>= \res -> + peek a1'>>= \a1'' -> + return (a1'') +{-# LINE 49 ".\\HGamer3D\\Bindings\\Ogre\\ClassLightFactory.chs" #-} +-- | +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = + withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 53 ".\\HGamer3D\\Bindings\\Ogre\\ClassLightFactory.chs" #-} + +-- | Get the type of the object to be created. +getType :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getType a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + getType'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 58 ".\\HGamer3D\\Bindings\\Ogre\\ClassLightFactory.chs" #-} + +-- | Destroy an instance of the object +destroyInstance :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ obj + -> IO () + -- ^ +destroyInstance a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + destroyInstance'_ a1' a2' >>= \res -> + return () +{-# LINE 63 ".\\HGamer3D\\Bindings\\Ogre\\ClassLightFactory.chs" #-} + + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLightFactory.chs.h ogre_lgtf_construct" + new'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLightFactory.chs.h ogre_lgtf_destruct" + delete'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLightFactory.chs.h ogre_lgtf_getType" + getType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLightFactory.chs.h ogre_lgtf_destroyInstance" + destroyInstance'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
+ HGamer3D/Bindings/Ogre/ClassLog.hs view
@@ -0,0 +1,208 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 ".\\HGamer3D\\Bindings\\Ogre\\ClassLog.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- + +-- (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. +-- + + +-- ClassLog.chs + +-- + +module HGamer3D.Bindings.Ogre.ClassLog where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassLog.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassLog.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassLog.chs" #-} +import HGamer3D.Bindings.Ogre.EnumLogMessageLevel +{-# LINE 45 ".\\HGamer3D\\Bindings\\Ogre\\ClassLog.chs" #-} +import HGamer3D.Bindings.Ogre.EnumLoggingLevel +{-# LINE 46 ".\\HGamer3D\\Bindings\\Ogre\\ClassLog.chs" #-} + +-- | Default destructor. +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = + withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 51 ".\\HGamer3D\\Bindings\\Ogre\\ClassLog.chs" #-} + +-- | Return the name of the log. +getName :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + getName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 56 ".\\HGamer3D\\Bindings\\Ogre\\ClassLog.chs" #-} + +-- | Get whether debug output is enabled for this log. +isDebugOutputEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isDebugOutputEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + isDebugOutputEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 61 ".\\HGamer3D\\Bindings\\Ogre\\ClassLog.chs" #-} + +-- | Get whether file output is suppressed for this log. +isFileOutputSuppressed :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isFileOutputSuppressed a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + isFileOutputSuppressed'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 66 ".\\HGamer3D\\Bindings\\Ogre\\ClassLog.chs" #-} + +-- | Get whether time stamps are printed for this log. +isTimeStampEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isTimeStampEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + isTimeStampEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 71 ".\\HGamer3D\\Bindings\\Ogre\\ClassLog.chs" #-} + +-- | Log +logMessage :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ message + -> EnumLogMessageLevel -- ^ lml + -> Bool -- ^ maskDebug + -> IO () + -- ^ +logMessage a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = cIntFromEnum a3} in + let {a4' = fromBool a4} in + logMessage'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 78 ".\\HGamer3D\\Bindings\\Ogre\\ClassLog.chs" #-} + +-- | Enable or disable outputting log messages to the debugger. +setDebugOutputEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ debugOutput + -> IO () + -- ^ +setDebugOutputEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setDebugOutputEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 83 ".\\HGamer3D\\Bindings\\Ogre\\ClassLog.chs" #-} + +-- | Sets the level of the log detail. +setLogDetail :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> EnumLoggingLevel -- ^ ll + -> IO () + -- ^ +setLogDetail a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + setLogDetail'_ a1' a2' >>= \res -> + return () +{-# LINE 88 ".\\HGamer3D\\Bindings\\Ogre\\ClassLog.chs" #-} + +-- | Enable or disable time stamps. +setTimeStampEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ timeStamp + -> IO () + -- ^ +setTimeStampEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setTimeStampEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 93 ".\\HGamer3D\\Bindings\\Ogre\\ClassLog.chs" #-} + +-- | Gets the level of the log detail. +getLogDetail :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (EnumLoggingLevel) + -- ^ +getLogDetail a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getLogDetail'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 98 ".\\HGamer3D\\Bindings\\Ogre\\ClassLog.chs" #-} + + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLog.chs.h ogre_lg_destruct" + delete'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLog.chs.h ogre_lg_getName" + getName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLog.chs.h ogre_lg_isDebugOutputEnabled" + isDebugOutputEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLog.chs.h ogre_lg_isFileOutputSuppressed" + isFileOutputSuppressed'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLog.chs.h ogre_lg_isTimeStampEnabled" + isTimeStampEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLog.chs.h ogre_lg_logMessage" + logMessage'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> (CInt -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLog.chs.h ogre_lg_setDebugOutputEnabled" + setDebugOutputEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLog.chs.h ogre_lg_setLogDetail" + setLogDetail'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLog.chs.h ogre_lg_setTimeStampEnabled" + setTimeStampEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLog.chs.h ogre_lg_getLogDetail" + getLogDetail'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
HGamer3D/Bindings/Ogre/ClassLogManager.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,69 +39,199 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-} import HGamer3D.Bindings.Ogre.EnumLogMessageLevel -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-} +{-# LINE 45 ".\\HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-} import HGamer3D.Bindings.Ogre.EnumLoggingLevel -{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-} +{-# LINE 46 ".\\HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-} +-- | +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = + withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 51 ".\\HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-} -cLmDestroyLog :: HG3DClass -> String -> IO () -cLmDestroyLog a1 a2 = +-- | Creates a new log with the given name. +createLog :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name - The name to give the log e.g. 'Ogre.log' + -> Bool -- ^ defaultLog - If true, this is the default log output will be sent to if the generic logging methods on this class are used. The first log created is always the default log unless this parameter is set. + -> Bool -- ^ debuggerOutput - If true, output to this log will also be routed to the debugger's output window. + -> Bool -- ^ suppressFileOutput - If true, this is a logical rather than a physical log and no file output will be written. If you do this you should register a LogListener so log output is not lost. + -> IO (HG3DClass) + -- ^ +createLog a1 a2 a3 a4 a5 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> - cLmDestroyLog'_ a1' a2' >>= \res -> + let {a3' = fromBool a3} in + let {a4' = fromBool a4} in + let {a5' = fromBool a5} in + alloca $ \a6' -> + createLog'_ a1' a2' a3' a4' a5' a6' >>= \res -> + peek a6'>>= \a6'' -> + return (a6'') +{-# LINE 60 ".\\HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-} + +-- | Retrieves a log managed by this class. +getLog :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (HG3DClass) + -- ^ +getLog a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + getLog'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 66 ".\\HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-} + +-- | Returns a pointer to the default log. +getDefaultLog :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (HG3DClass) + -- ^ +getDefaultLog a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getDefaultLog'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 71 ".\\HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-} + +-- | Closes and removes a named log. +destroyLog :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO () + -- ^ +destroyLog a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + destroyLog'_ a1' a2' >>= \res -> return () -{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-} -; -cLmLogMessage :: HG3DClass -> String -> EnumLogMessageLevel -> Bool -> IO () -cLmLogMessage a1 a2 a3 a4 = +{-# LINE 76 ".\\HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-} + +-- | Closes and removes a log. +destroyLog2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ log + -> IO () + -- ^ +destroyLog2 a1 a2 = withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + destroyLog2'_ a1' a2' >>= \res -> + return () +{-# LINE 81 ".\\HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-} + +-- | Sets the passed in log as the default log. +setDefaultLog :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ newLog + -> IO (HG3DClass) + -- ^ return value - The previous default log. +setDefaultLog a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + alloca $ \a3' -> + setDefaultLog'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 87 ".\\HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-} + +-- | Log +logMessage :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ message + -> EnumLogMessageLevel -- ^ lml + -> Bool -- ^ maskDebug + -> IO () + -- ^ +logMessage 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 -> + logMessage'_ a1' a2' a3' a4' >>= \res -> return () -{-# LINE 68 "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-} -; -cLmLogMessage2 :: HG3DClass -> EnumLogMessageLevel -> String -> Bool -> IO () -cLmLogMessage2 a1 a2 a3 a4 = +{-# LINE 94 ".\\HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-} + +-- | Log +logMessage2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> EnumLogMessageLevel -- ^ lml + -> String -- ^ message + -> Bool -- ^ maskDebug + -> IO () + -- ^ +logMessage2 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 -> + logMessage2'_ a1' a2' a3' a4' >>= \res -> return () -{-# LINE 74 "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-} -; -cLmSetLogDetail :: HG3DClass -> EnumLoggingLevel -> IO () -cLmSetLogDetail a1 a2 = +{-# LINE 101 ".\\HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-} + +-- | Sets the level of detail of the default log. +setLogDetail :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> EnumLoggingLevel -- ^ ll + -> IO () + -- ^ +setLogDetail a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = cIntFromEnum a2} in - cLmSetLogDetail'_ a1' a2' >>= \res -> + setLogDetail'_ a1' a2' >>= \res -> return () -{-# LINE 78 "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-} -; +{-# LINE 106 ".\\HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-} -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs.h cLm_destroyLog_c" - cLmDestroyLog'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) +-- | Override standard Singleton retrieval. Why do we do this? Well, it's because the Singleton implementation is in a .h file, which means it gets compiled into anybody who includes it. This is needed for the Singleton template to work, but we actually only want it compiled into the implementation of the class based on the Singleton, not all of them. If we don't change this, we get link errors when trying to use the Singleton-based class from an outside dll. This method just delegates to the template version anyway, but the implementation stays in this single compilation unit, preventing link errors. +getSingletonPtr :: IO (HG3DClass) + -- ^ +getSingletonPtr = + alloca $ \a1' -> + getSingletonPtr'_ a1' >>= \res -> + peek a1'>>= \a1'' -> + return (a1'') +{-# LINE 110 ".\\HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs" #-} -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 ogre_lmgr_destruct" + delete'_ :: ((HG3DClassPtr) -> (IO ())) -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs.h cLm_setLogDetail_c" - cLmSetLogDetail'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs.h ogre_lmgr_createLog" + createLog'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> (CInt -> (CInt -> ((HG3DClassPtr) -> (IO ()))))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs.h ogre_lmgr_getLog" + getLog'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs.h ogre_lmgr_getDefaultLog" + getDefaultLog'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs.h ogre_lmgr_destroyLog" + destroyLog'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs.h ogre_lmgr_destroyLog2" + destroyLog2'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs.h ogre_lmgr_setDefaultLog" + setDefaultLog'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs.h ogre_lmgr_logMessage" + logMessage'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> (CInt -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs.h ogre_lmgr_logMessage2" + logMessage2'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CChar) -> (CInt -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs.h ogre_lmgr_setLogDetail" + setLogDetail'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassLogManager.chs.h ogre_lmgr_getSingletonPtr" + getSingletonPtr'_ :: ((HG3DClassPtr) -> (IO ()))
HGamer3D/Bindings/Ogre/ClassManualObject.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,495 +39,674 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +import HGamer3D.Bindings.Ogre.EnumRenderOperationOperationType +{-# LINE 45 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +import HGamer3D.Bindings.Ogre.StructVec3 +{-# LINE 46 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +import HGamer3D.Bindings.Ogre.StructVec2 +{-# LINE 47 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +import HGamer3D.Bindings.Ogre.StructColour +{-# LINE 48 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +import HGamer3D.Bindings.Ogre.StructSharedPtr +{-# LINE 49 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} +-- | +new :: String -- ^ name + -> IO (HG3DClass) + -- ^ +new a1 = + withCString a1 $ \a1' -> + alloca $ \a2' -> + new'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 55 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -cMnoClear :: HG3DClass -> IO () -cMnoClear a1 = +-- | +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = withHG3DClass a1 $ \a1' -> - cMnoClear'_ a1' >>= \res -> + delete'_ a1' >>= \res -> return () -{-# LINE 65 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoEstimateVertexCount :: HG3DClass -> Int -> IO () -cMnoEstimateVertexCount a1 a2 = +{-# LINE 59 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | Completely clear the contents of the object. Clearing the contents of this object and rebuilding from scratch is not the optimal way to manage dynamic vertex data, since the buffers are recreated. If you want to keep the same structure but update the content within that structure, use beginUpdate()clear()begin() +clear :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +clear a1 = withHG3DClass a1 $ \a1' -> + clear'_ a1' >>= \res -> + return () +{-# LINE 63 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | Estimate the number of vertices ahead of time. Calling this helps to avoid memory reallocation when you define vertices. Also very handy when using beginUpdate() +estimateVertexCount :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ vcount + -> IO () + -- ^ +estimateVertexCount a1 a2 = + withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in - cMnoEstimateVertexCount'_ a1' a2' >>= \res -> + estimateVertexCount'_ a1' a2' >>= \res -> return () -{-# LINE 69 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoEstimateIndexCount :: HG3DClass -> Int -> IO () -cMnoEstimateIndexCount a1 a2 = +{-# LINE 68 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | Estimate the number of indices ahead of time. Calling this helps to avoid memory reallocation when you define indices. Also very handy when using beginUpdate() +estimateIndexCount :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ icount + -> IO () + -- ^ +estimateIndexCount a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in - cMnoEstimateIndexCount'_ a1' a2' >>= \res -> + estimateIndexCount'_ a1' a2' >>= \res -> return () -{-# LINE 73 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoBegin :: HG3DClass -> String -> EnumOperationType -> String -> IO () -cMnoBegin a1 a2 a3 a4 = +{-# LINE 73 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | Start defining a part of the object. Each time you call this method, you start a new section of the object with its own material and potentially its own type of rendering operation (triangles, points or lines for example). +begin :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ materialName - The name of the material to render this part of the object with. + -> EnumRenderOperationOperationType -- ^ opType - The type of operation to use to render. + -> String -- ^ groupName + -> IO () + -- ^ +begin a1 a2 a3 a4 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> let {a3' = cIntFromEnum a3} in withCString a4 $ \a4' -> - cMnoBegin'_ a1' a2' a3' a4' >>= \res -> + begin'_ a1' a2' a3' a4' >>= \res -> return () -{-# LINE 79 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoSetDynamic :: HG3DClass -> Bool -> IO () -cMnoSetDynamic a1 a2 = +{-# LINE 80 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | Use before defining geometry to indicate that you intend to update the geometry regularly and want the internal structure to reflect that. +setDynamic :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ dyn + -> IO () + -- ^ +setDynamic a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cMnoSetDynamic'_ a1' a2' >>= \res -> + setDynamic'_ a1' a2' >>= \res -> return () -{-# LINE 83 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoGetDynamic :: HG3DClass -> IO (Bool) -cMnoGetDynamic a1 = +{-# LINE 85 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | Gets whether this object is marked as dynamic +getDynamic :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getDynamic a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMnoGetDynamic'_ a1' a2' >>= \res -> + getDynamic'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 87 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoBeginUpdate :: HG3DClass -> Int -> IO () -cMnoBeginUpdate a1 a2 = +{-# LINE 90 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | Start the definition of an update to a part of the object. Using this method, you can update an existing section of the object efficiently. You do not have the option of changing the operation type obviously, since it must match the one that was used before. If your sections are changing size, particularly growing, use estimateVertexCount and estimateIndexCount to pre-size the buffers a little larger than the initial needs to avoid buffer reconstruction. +beginUpdate :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ sectionIndex - The index of the section you want to update. The first call to begin() would have created section 0, the second section 1, etc. + -> IO () + -- ^ +beginUpdate a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in - cMnoBeginUpdate'_ a1' a2' >>= \res -> + beginUpdate'_ a1' a2' >>= \res -> return () -{-# LINE 91 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoPosition :: HG3DClass -> Vector3 -> IO () -cMnoPosition a1 a2 = +{-# LINE 95 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | Add a vertex position, starting a new vertex at the same time. A vertex position is slightly special among the other vertex data methods like normal()textureCoord()position() +position :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Vec3 -- ^ pos + -> IO () + -- ^ +position a1 a2 = withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> - cMnoPosition'_ a1' a2' >>= \res -> + withVec3 a2 $ \a2' -> + position'_ a1' a2' >>= \res -> return () -{-# LINE 95 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoPosition2 :: HG3DClass -> Float -> Float -> Float -> IO () -cMnoPosition2 a1 a2 a3 a4 = +{-# LINE 100 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | Add a vertex position, starting a new vertex at the same time. A vertex position is slightly special among the other vertex data methods like normal()textureCoord()position() +position2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ x + -> Float -- ^ y + -> Float -- ^ z + -> IO () + -- ^ +position2 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 -> + position2'_ a1' a2' a3' a4' >>= \res -> return () -{-# LINE 101 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoNormal :: HG3DClass -> Vector3 -> IO () -cMnoNormal a1 a2 = +{-# LINE 107 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | Add a vertex normal to the current vertex. Vertex normals are most often used for dynamic lighting, and their components should be normalised. +normal :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Vec3 -- ^ norm + -> IO () + -- ^ +normal a1 a2 = withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> - cMnoNormal'_ a1' a2' >>= \res -> + withVec3 a2 $ \a2' -> + normal'_ a1' a2' >>= \res -> return () -{-# LINE 105 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoNormal2 :: HG3DClass -> Float -> Float -> Float -> IO () -cMnoNormal2 a1 a2 a3 a4 = +{-# LINE 112 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | Add a vertex normal to the current vertex. Vertex normals are most often used for dynamic lighting, and their components should be normalised. +normal2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ x + -> Float -- ^ y + -> Float -- ^ z + -> IO () + -- ^ +normal2 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 -> + normal2'_ a1' a2' a3' a4' >>= \res -> return () -{-# LINE 111 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoTangent :: HG3DClass -> Vector3 -> IO () -cMnoTangent a1 a2 = +{-# LINE 119 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | Add a vertex tangent to the current vertex. Vertex tangents are most often used for dynamic lighting, and their components should be normalised. Also, using tangent() +tangent :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Vec3 -- ^ tan + -> IO () + -- ^ +tangent a1 a2 = withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> - cMnoTangent'_ a1' a2' >>= \res -> + withVec3 a2 $ \a2' -> + tangent'_ a1' a2' >>= \res -> return () -{-# LINE 115 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoTangent2 :: HG3DClass -> Float -> Float -> Float -> IO () -cMnoTangent2 a1 a2 a3 a4 = +{-# LINE 124 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | Add a vertex tangent to the current vertex. Vertex tangents are most often used for dynamic lighting, and their components should be normalised. Also, using tangent() +tangent2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ x + -> Float -- ^ y + -> Float -- ^ z + -> IO () + -- ^ +tangent2 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 -> + tangent2'_ a1' a2' a3' a4' >>= \res -> return () -{-# LINE 121 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoTextureCoord :: HG3DClass -> Float -> IO () -cMnoTextureCoord a1 a2 = +{-# LINE 131 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | Add a texture coordinate to the current vertex. You can call this method multiple times between position() +textureCoord :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ u + -> IO () + -- ^ +textureCoord a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in - cMnoTextureCoord'_ a1' a2' >>= \res -> + textureCoord'_ a1' a2' >>= \res -> return () -{-# LINE 125 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoTextureCoord2 :: HG3DClass -> Float -> Float -> IO () -cMnoTextureCoord2 a1 a2 a3 = +{-# LINE 136 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | Add a texture coordinate to the current vertex. You can call this method multiple times between position() +textureCoord2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ u + -> Float -- ^ v + -> IO () + -- ^ +textureCoord2 a1 a2 a3 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in let {a3' = realToFrac a3} in - cMnoTextureCoord2'_ a1' a2' a3' >>= \res -> + textureCoord2'_ a1' a2' a3' >>= \res -> return () -{-# LINE 130 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoTextureCoord3 :: HG3DClass -> Float -> Float -> Float -> IO () -cMnoTextureCoord3 a1 a2 a3 a4 = +{-# LINE 142 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | Add a texture coordinate to the current vertex. You can call this method multiple times between position() +textureCoord3 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ u + -> Float -- ^ v + -> Float -- ^ w + -> IO () + -- ^ +textureCoord3 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 -> + textureCoord3'_ 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 = +{-# LINE 149 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | Add a texture coordinate to the current vertex. You can call this method multiple times between position() +textureCoord4 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ x + -> Float -- ^ y + -> Float -- ^ z + -> Float -- ^ w + -> IO () + -- ^ +textureCoord4 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 -> + textureCoord4'_ a1' a2' a3' a4' a5' >>= \res -> return () -{-# LINE 147 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoTextureCoord6 :: HG3DClass -> Vector3 -> IO () -cMnoTextureCoord6 a1 a2 = +{-# LINE 157 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | Add a texture coordinate to the current vertex. You can call this method multiple times between position() +textureCoord5 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Vec2 -- ^ uv + -> IO () + -- ^ +textureCoord5 a1 a2 = withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> - cMnoTextureCoord6'_ a1' a2' >>= \res -> + withVec2 a2 $ \a2' -> + textureCoord5'_ a1' a2' >>= \res -> return () -{-# LINE 151 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoTextureCoord7 :: HG3DClass -> Vector4 -> IO () -cMnoTextureCoord7 a1 a2 = +{-# LINE 162 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | Add a texture coordinate to the current vertex. You can call this method multiple times between position() +textureCoord6 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Vec3 -- ^ uvw + -> IO () + -- ^ +textureCoord6 a1 a2 = withHG3DClass a1 $ \a1' -> - withVector4 a2 $ \a2' -> - cMnoTextureCoord7'_ a1' a2' >>= \res -> + withVec3 a2 $ \a2' -> + textureCoord6'_ a1' a2' >>= \res -> return () -{-# LINE 155 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoColour :: HG3DClass -> Colour -> IO () -cMnoColour a1 a2 = +{-# LINE 167 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | Add a vertex colour to a vertex. +colour :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Colour -- ^ col + -> IO () + -- ^ +colour a1 a2 = withHG3DClass a1 $ \a1' -> withColour a2 $ \a2' -> - cMnoColour'_ a1' a2' >>= \res -> + colour'_ a1' a2' >>= \res -> return () -{-# LINE 159 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoColour2 :: HG3DClass -> Float -> Float -> Float -> Float -> IO () -cMnoColour2 a1 a2 a3 a4 a5 = +{-# LINE 172 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | Add a vertex colour to a vertex. +colour2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ r - Colour components expressed as floating point numbers from 0-1 + -> Float -- ^ g + -> Float -- ^ b + -> Float -- ^ a + -> IO () + -- ^ +colour2 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 -> + colour2'_ a1' a2' a3' a4' a5' >>= \res -> return () -{-# LINE 166 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoIndex :: HG3DClass -> Int -> IO () -cMnoIndex a1 a2 = +{-# LINE 180 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | Add a vertex index to construct faces / lines / points via indexing rather than just by a simple list of vertices. You will have to call this 3 times for each face for a triangle list, or use the alternative 3-parameter version. Other operation types require different numbers of indexes, RenderOperation::OperationType32-bit indexes are not supported on all cards and will only be used when required, if an index is > 65535. +index :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ idx - A vertex index from 0 to 4294967295. + -> IO () + -- ^ +index a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in - cMnoIndex'_ a1' a2' >>= \res -> + index'_ a1' a2' >>= \res -> return () -{-# LINE 170 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoTriangle :: HG3DClass -> Int -> Int -> Int -> IO () -cMnoTriangle a1 a2 a3 a4 = +{-# LINE 185 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | Add a set of 3 vertex indices to construct a triangle; this is a shortcut to calling index()32-bit indexes are not supported on all cards and will only be used when required, if an index is > 65535. +triangle :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ i1 - 3 vertex indices from 0 to 4294967295 defining a face. + -> Int -- ^ i2 + -> Int -- ^ i3 + -> IO () + -- ^ +triangle 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 -> + triangle'_ 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 = +{-# LINE 192 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | Add a set of 4 vertex indices to construct a quad (out of 2 triangles); this is a shortcut to calling index()triangle()32-bit indexes are not supported on all cards and will only be used when required, if an index is > 65535. +quad :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ i1 - 3 vertex indices from 0 to 4294967295 defining a face. + -> Int -- ^ i2 + -> Int -- ^ i3 + -> Int -- ^ i4 + -> IO () + -- ^ +quad 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 -> + quad'_ a1' a2' a3' a4' a5' >>= \res -> return () -{-# LINE 183 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoEnd :: HG3DClass -> IO (HG3DClass) -cMnoEnd a1 = +{-# LINE 200 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | Finish defining the object and compile the final renderable version. Will return a pointer to the finished section or NULL if the section was discarded (i.e. has zero vertices/indices). +end :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (HG3DClass) + -- ^ +end a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMnoEnd'_ a1' a2' >>= \res -> + end'_ 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 = +{-# LINE 205 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | Alter the material for a subsection of this object after it has been specified. You specify the material to use on a section of this object during the call to begin() +setMaterialName :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ subindex + -> String -- ^ name - The name of the new material to use + -> String -- ^ group + -> IO () + -- ^ +setMaterialName a1 a2 a3 a4 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in withCString a3 $ \a3' -> withCString a4 $ \a4' -> - cMnoSetMaterialName'_ a1' a2' a3' a4' >>= \res -> + setMaterialName'_ a1' a2' a3' a4' >>= \res -> return () -{-# LINE 193 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoConvertToMesh :: HG3DClass -> String -> String -> IO (SharedPtr) -cMnoConvertToMesh a1 a2 a3 = +{-# LINE 212 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | Convert this object to a MeshAfter you've finished building this object, you may convert it to a MeshEntitySceneNodeOnly objects which use indexed geometry may be converted to a mesh. +convertToMesh :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ meshName - The name to give the mesh + -> String -- ^ groupName - The resource group to create the mesh in + -> IO (SharedPtr) + -- ^ +convertToMesh a1 a2 a3 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> withCString a3 $ \a3' -> alloca $ \a4' -> - cMnoConvertToMesh'_ a1' a2' a3' a4' >>= \res -> - peek a4'>>= \a4'' -> + convertToMesh'_ a1' a2' a3' a4' >>= \res -> + peekSharedPtr a4'>>= \a4'' -> return (a4'') -{-# LINE 199 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoSetUseIdentityProjection :: HG3DClass -> Bool -> IO () -cMnoSetUseIdentityProjection a1 a2 = +{-# LINE 219 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | Sets whether or not to use an 'identity' projection. Usually ManualObjects will use a projection matrix as determined by the active camera. However, if they want they can cancel this out and use an identity projection, which effectively projects in 2D using a {-1, 1} view space. Useful for overlay rendering. Normally you don't need to change this. The default is false. ManualObject::getUseIdentityProjection +setUseIdentityProjection :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ useIdentityProjection + -> IO () + -- ^ +setUseIdentityProjection a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cMnoSetUseIdentityProjection'_ a1' a2' >>= \res -> + setUseIdentityProjection'_ a1' a2' >>= \res -> return () -{-# LINE 203 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoGetUseIdentityProjection :: HG3DClass -> IO (Bool) -cMnoGetUseIdentityProjection a1 = +{-# LINE 224 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | Returns whether or not to use an 'identity' projection. Usually ManualObjects will use a projection matrix as determined by the active camera. However, if they want they can cancel this out and use an identity projection, which effectively projects in 2D using a {-1, 1} view space. Useful for overlay rendering. Normally you don't need to change this. ManualObject::setUseIdentityProjection +getUseIdentityProjection :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getUseIdentityProjection a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMnoGetUseIdentityProjection'_ a1' a2' >>= \res -> + getUseIdentityProjection'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 207 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoSetUseIdentityView :: HG3DClass -> Bool -> IO () -cMnoSetUseIdentityView a1 a2 = +{-# LINE 229 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | Sets whether or not to use an 'identity' view. Usually ManualObjects will use a view matrix as determined by the active camera. However, if they want they can cancel this out and use an identity matrix, which means all geometry is assumed to be relative to camera space already. Useful for overlay rendering. Normally you don't need to change this. The default is false. ManualObject::getUseIdentityView +setUseIdentityView :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ useIdentityView + -> IO () + -- ^ +setUseIdentityView a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cMnoSetUseIdentityView'_ a1' a2' >>= \res -> + setUseIdentityView'_ a1' a2' >>= \res -> return () -{-# LINE 211 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoGetUseIdentityView :: HG3DClass -> IO (Bool) -cMnoGetUseIdentityView a1 = +{-# LINE 234 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | Returns whether or not to use an 'identity' view. Usually ManualObjects will use a view matrix as determined by the active camera. However, if they want they can cancel this out and use an identity matrix, which means all geometry is assumed to be relative to camera space already. Useful for overlay rendering. Normally you don't need to change this. ManualObject::setUseIdentityView +getUseIdentityView :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getUseIdentityView a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMnoGetUseIdentityView'_ a1' a2' >>= \res -> + getUseIdentityView'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 215 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoGetSection :: HG3DClass -> Int -> IO (HG3DClass) -cMnoGetSection a1 a2 = +{-# LINE 239 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | Gets a pointer to a ManualObjectSectionManualObject +getSection :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ index + -> IO (HG3DClass) + -- ^ +getSection a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in alloca $ \a3' -> - cMnoGetSection'_ a1' a2' a3' >>= \res -> + getSection'_ a1' a2' a3' >>= \res -> peek a3'>>= \a3'' -> return (a3'') -{-# LINE 220 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoGetNumSections :: HG3DClass -> IO (Int) -cMnoGetNumSections a1 = +{-# LINE 245 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | Retrieves the number of ManualObjectSectionManualObject +getNumSections :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getNumSections a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMnoGetNumSections'_ a1' a2' >>= \res -> + getNumSections'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 224 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoSetKeepDeclarationOrder :: HG3DClass -> Bool -> IO () -cMnoSetKeepDeclarationOrder a1 a2 = +{-# LINE 250 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | Sets whether or not to keep the original declaration order when queuing the renderables. This overrides the default behavior of the rendering queue, specifically stating the desired order of rendering. Might result in a performance loss, but lets the user to have more direct control when creating geometry through this class. +setKeepDeclarationOrder :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ keepOrder - Whether to keep the declaration order or not. + -> IO () + -- ^ +setKeepDeclarationOrder a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cMnoSetKeepDeclarationOrder'_ a1' a2' >>= \res -> + setKeepDeclarationOrder'_ a1' a2' >>= \res -> return () -{-# LINE 228 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoGetKeepDeclarationOrder :: HG3DClass -> IO (Bool) -cMnoGetKeepDeclarationOrder a1 = +{-# LINE 255 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | Gets whether or not the declaration order is to be kept or not. +getKeepDeclarationOrder :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ return value - A flag indication if the declaration order will be kept when queuing the renderables. +getKeepDeclarationOrder a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMnoGetKeepDeclarationOrder'_ a1' a2' >>= \res -> + getKeepDeclarationOrder'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 232 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoGetMovableType :: HG3DClass -> IO (String) -cMnoGetMovableType a1 = +{-# LINE 260 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | . - Details: Returns the type name of this object. +getMovableType :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getMovableType a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> - cMnoGetMovableType'_ a1' a2' >>= \res -> + getMovableType'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') -{-# LINE 236 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoGetBoundingRadius :: HG3DClass -> IO (Float) -cMnoGetBoundingRadius a1 = +{-# LINE 265 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | . - Details: Retrieves the radius of the origin-centered bounding sphere for this object. +getBoundingRadius :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getBoundingRadius a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMnoGetBoundingRadius'_ a1' a2' >>= \res -> + getBoundingRadius'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') -{-# LINE 240 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; -cMnoHasEdgeList :: HG3DClass -> IO (Bool) -cMnoHasEdgeList a1 = +{-# LINE 270 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} + +-- | Overridden member from ShadowCaster. +hasEdgeList :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +hasEdgeList a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMnoHasEdgeList'_ a1' a2' >>= \res -> + hasEdgeList'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 244 "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs" #-} -; +{-# LINE 275 ".\\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 ogre_mno_construct" + new'_ :: ((Ptr CChar) -> ((HG3DClassPtr) -> (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 ogre_mno_destruct" + delete'_ :: ((HG3DClassPtr) -> (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 ogre_mno_clear" + clear'_ :: ((HG3DClassPtr) -> (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 ogre_mno_estimateVertexCount" + estimateVertexCount'_ :: ((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 ogre_mno_estimateIndexCount" + estimateIndexCount'_ :: ((HG3DClassPtr) -> (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 ogre_mno_begin" + begin'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> ((Ptr CChar) -> (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 ogre_mno_setDynamic" + setDynamic'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_mno_getDynamic" + getDynamic'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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 ogre_mno_beginUpdate" + beginUpdate'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_mno_position" + position'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (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 ogre_mno_position2" + position2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (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 ogre_mno_normal" + normal'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (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 ogre_mno_normal2" + normal2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (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 ogre_mno_tangent" + tangent'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (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 ogre_mno_tangent2" + tangent2'_ :: ((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 ogre_mno_textureCoord" + textureCoord'_ :: ((HG3DClassPtr) -> (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 ogre_mno_textureCoord2" + textureCoord2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (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 ogre_mno_textureCoord3" + textureCoord3'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (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 ogre_mno_textureCoord4" + textureCoord4'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (CFloat -> (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 ogre_mno_textureCoord5" + textureCoord5'_ :: ((HG3DClassPtr) -> ((Vec2Ptr) -> (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 ogre_mno_textureCoord6" + textureCoord6'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (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 ogre_mno_colour" + colour'_ :: ((HG3DClassPtr) -> ((ColourPtr) -> (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 ogre_mno_colour2" + colour2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (CFloat -> (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 ogre_mno_index" + index'_ :: ((HG3DClassPtr) -> (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 ogre_mno_triangle" + triangle'_ :: ((HG3DClassPtr) -> (CUInt -> (CUInt -> (CUInt -> (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 ogre_mno_quad" + quad'_ :: ((HG3DClassPtr) -> (CUInt -> (CUInt -> (CUInt -> (CUInt -> (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 ogre_mno_end" + end'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (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 ogre_mno_setMaterialName" + setMaterialName'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CChar) -> ((Ptr CChar) -> (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 ogre_mno_convertToMesh" + convertToMesh'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((SharedPtrPtr) -> (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 ogre_mno_setUseIdentityProjection" + setUseIdentityProjection'_ :: ((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 ogre_mno_getUseIdentityProjection" + getUseIdentityProjection'_ :: ((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 ogre_mno_setUseIdentityView" + setUseIdentityView'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_mno_getUseIdentityView" + getUseIdentityView'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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 ogre_mno_getSection" + getSection'_ :: ((HG3DClassPtr) -> (CUInt -> ((HG3DClassPtr) -> (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 ogre_mno_getNumSections" + getNumSections'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (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 ogre_mno_setKeepDeclarationOrder" + setKeepDeclarationOrder'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_mno_getKeepDeclarationOrder" + getKeepDeclarationOrder'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h cMno_hasEdgeList_c" - cMnoHasEdgeList'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h ogre_mno_getMovableType" + getMovableType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h ogre_mno_getBoundingRadius" + getBoundingRadius'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObject.chs.h ogre_mno_hasEdgeList" + hasEdgeList'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
HGamer3D/Bindings/Ogre/ClassManualObjectFactory.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassManualObjectFactory.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,17 +39,70 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObjectFactory.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObjectFactory.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObjectFactory.chs" #-} +-- | +new :: IO (HG3DClass) + -- ^ +new = + alloca $ \a1' -> + new'_ a1' >>= \res -> + peek a1'>>= \a1'' -> + return (a1'') +{-# LINE 49 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObjectFactory.chs" #-} +-- | +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = + withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 53 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObjectFactory.chs" #-} + +-- | Get the type of the object to be created. +getType :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getType a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + getType'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 58 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObjectFactory.chs" #-} + +-- | Destroy an instance of the object +destroyInstance :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ obj + -> IO () + -- ^ +destroyInstance a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + destroyInstance'_ a1' a2' >>= \res -> + return () +{-# LINE 63 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObjectFactory.chs" #-} + + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObjectFactory.chs.h ogre_mnof_construct" + new'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObjectFactory.chs.h ogre_mnof_destruct" + delete'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObjectFactory.chs.h ogre_mnof_getType" + getType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObjectFactory.chs.h ogre_mnof_destroyInstance" + destroyInstance'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
HGamer3D/Bindings/Ogre/ClassManualObjectSection.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,90 +39,161 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs" #-} +import HGamer3D.Bindings.Ogre.EnumRenderOperationOperationType +{-# LINE 45 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs" #-} +import HGamer3D.Bindings.Ogre.StructSharedPtr +{-# LINE 46 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs" #-} +-- | +new :: HG3DClass -- ^ parent + -> String -- ^ materialName + -> EnumRenderOperationOperationType -- ^ opType + -> String -- ^ groupName + -> IO (HG3DClass) + -- ^ +new a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = cIntFromEnum a3} in + withCString a4 $ \a4' -> + alloca $ \a5' -> + new'_ a1' a2' a3' a4' a5' >>= \res -> + peek a5'>>= \a5'' -> + return (a5'') +{-# LINE 55 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs" #-} -cMosGetMaterialName :: HG3DClass -> IO (String) -cMosGetMaterialName a1 = +-- | +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 59 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs" #-} + +-- | Retrieve the material name in use. +getMaterialName :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getMaterialName a1 = + withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> - cMosGetMaterialName'_ a1' a2' >>= \res -> + getMaterialName'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') -{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs" #-} -; -cMosGetMaterialGroup :: HG3DClass -> IO (String) -cMosGetMaterialGroup a1 = +{-# LINE 64 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs" #-} + +-- | Retrieve the material group in use. +getMaterialGroup :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getMaterialGroup a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> - cMosGetMaterialGroup'_ a1' a2' >>= \res -> + getMaterialGroup'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') -{-# LINE 65 "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs" #-} -; -cMosSetMaterialName :: HG3DClass -> String -> String -> IO () -cMosSetMaterialName a1 a2 a3 = +{-# LINE 69 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs" #-} + +-- | update the material name in use +setMaterialName :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> String -- ^ groupName + -> IO () + -- ^ +setMaterialName a1 a2 a3 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> withCString a3 $ \a3' -> - cMosSetMaterialName'_ a1' a2' a3' >>= \res -> + setMaterialName'_ a1' a2' a3' >>= \res -> return () -{-# LINE 70 "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs" #-} -; -cMosSet32BitIndices :: HG3DClass -> Bool -> IO () -cMosSet32BitIndices a1 a2 = +{-# LINE 75 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs" #-} + +-- | Set whether we need 32-bit indices. +set32BitIndices :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ n32 + -> IO () + -- ^ +set32BitIndices a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cMosSet32BitIndices'_ a1' a2' >>= \res -> + set32BitIndices'_ a1' a2' >>= \res -> return () -{-# LINE 74 "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs" #-} -; -cMosGet32BitIndices :: HG3DClass -> IO (Bool) -cMosGet32BitIndices a1 = +{-# LINE 80 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs" #-} + +-- | Get whether we need 32-bit indices. +get32BitIndices :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +get32BitIndices a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMosGet32BitIndices'_ a1' a2' >>= \res -> + get32BitIndices'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 78 "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs" #-} -; -cMosGetMaterial :: HG3DClass -> IO (SharedPtr) -cMosGetMaterial a1 = +{-# LINE 85 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs" #-} + +-- | . - Details: Retrieves a weak reference to the material this renderable object uses. Note that the Renderable +getMaterial :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (SharedPtr) + -- ^ +getMaterial a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMosGetMaterial'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> + getMaterial'_ a1' a2' >>= \res -> + peekSharedPtr a2'>>= \a2'' -> return (a2'') -{-# LINE 82 "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs" #-} -; +{-# LINE 90 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs" #-} -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs.h cMos_getMaterialName_c" - cMosGetMaterialName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) +-- | . - Details: Returns the camera-relative squared depth of this renderable. Used to sort transparent objects. Squared depth is used rather than actual depth to avoid having to perform a square root on the result. +getSquaredViewDepth :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ + -> IO (Float) + -- ^ +getSquaredViewDepth a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + alloca $ \a3' -> + getSquaredViewDepth'_ a1' a2' a3' >>= \res -> + peekFloatConv a3'>>= \a3'' -> + return (a3'') +{-# LINE 96 ".\\HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs" #-} -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 ogre_mnos_construct" + new'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> ((Ptr CChar) -> ((HG3DClassPtr) -> (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 ogre_mnos_destruct" + delete'_ :: ((HG3DClassPtr) -> (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 ogre_mnos_getMaterialName" + getMaterialName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs.h cMos_getMaterial_c" - cMosGetMaterial'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (IO ()))) +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs.h ogre_mnos_getMaterialGroup" + getMaterialGroup'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs.h ogre_mnos_setMaterialName" + setMaterialName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs.h ogre_mnos_set32BitIndices" + set32BitIndices'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs.h ogre_mnos_get32BitIndices" + get32BitIndices'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs.h ogre_mnos_getMaterial" + getMaterial'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassManualObjectSection.chs.h ogre_mnos_getSquaredViewDepth" + getSquaredViewDepth'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((Ptr CFloat) -> (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.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,553 +39,554 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +import HGamer3D.Bindings.Ogre.StructSharedPtr +{-# LINE 45 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +import HGamer3D.Bindings.Ogre.StructColour +{-# LINE 46 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} +-- | +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = + withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 51 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -cMtIsTransparent :: HG3DClass -> IO (Bool) -cMtIsTransparent a1 = +-- | Determines if the material has any transparency with the rest of the scene (derived from whether any Techniques say they involve transparency). +isTransparent :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isTransparent a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMtIsTransparent'_ a1' a2' >>= \res -> + isTransparent'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 68 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtSetReceiveShadows :: HG3DClass -> Bool -> IO () -cMtSetReceiveShadows a1 a2 = +{-# LINE 56 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} + +-- | Sets whether objects using this material will receive shadows. This method allows a material to opt out of receiving shadows, if it would otherwise do so. Shadows will not be cast on any objects unless the scene is set up to support shadows (SceneManager::setShadowTechniqueTransparent materials never receive shadows despite this setting. The default is to receive shadows. +setReceiveShadows :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ enabled + -> IO () + -- ^ +setReceiveShadows a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cMtSetReceiveShadows'_ a1' a2' >>= \res -> + setReceiveShadows'_ a1' a2' >>= \res -> return () -{-# LINE 72 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtGetReceiveShadows :: HG3DClass -> IO (Bool) -cMtGetReceiveShadows a1 = +{-# LINE 61 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} + +-- | Returns whether or not objects using this material will receive shadows. +getReceiveShadows :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getReceiveShadows a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMtGetReceiveShadows'_ a1' a2' >>= \res -> + getReceiveShadows'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 76 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtSetTransparencyCastsShadows :: HG3DClass -> Bool -> IO () -cMtSetTransparencyCastsShadows a1 a2 = +{-# LINE 66 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} + +-- | Sets whether objects using this material be classified as opaque to the shadow caster system. This method allows a material to cast a shadow, even if it is transparent. By default, transparent materials neither cast nor receive shadows. Shadows will not be cast on any objects unless the scene is set up to support shadows (SceneManager::setShadowTechnique +setTransparencyCastsShadows :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ enabled + -> IO () + -- ^ +setTransparencyCastsShadows a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cMtSetTransparencyCastsShadows'_ a1' a2' >>= \res -> + setTransparencyCastsShadows'_ a1' a2' >>= \res -> return () -{-# LINE 80 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtGetTransparencyCastsShadows :: HG3DClass -> IO (Bool) -cMtGetTransparencyCastsShadows a1 = +{-# LINE 71 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} + +-- | Returns whether or not objects using this material be classified as opaque to the shadow caster system. +getTransparencyCastsShadows :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getTransparencyCastsShadows a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMtGetTransparencyCastsShadows'_ a1' a2' >>= \res -> + getTransparencyCastsShadows'_ 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 = +{-# LINE 76 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} + +-- | Retrieves the number of techniques. +getNumTechniques :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getNumTechniques a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMtGetNumTechniques'_ a1' a2' >>= \res -> + getNumTechniques'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 102 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtRemoveTechnique :: HG3DClass -> Int -> IO () -cMtRemoveTechnique a1 a2 = +{-# LINE 81 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} + +-- | Removes the technique at the given index. +removeTechnique :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ index + -> IO () + -- ^ +removeTechnique a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in - cMtRemoveTechnique'_ a1' a2' >>= \res -> + removeTechnique'_ a1' a2' >>= \res -> return () -{-# LINE 106 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtRemoveAllTechniques :: HG3DClass -> IO () -cMtRemoveAllTechniques a1 = +{-# LINE 86 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} + +-- | Removes all the techniques in this Material +removeAllTechniques :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +removeAllTechniques a1 = withHG3DClass a1 $ \a1' -> - cMtRemoveAllTechniques'_ a1' >>= \res -> + removeAllTechniques'_ 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 = +{-# LINE 90 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} + +-- | Retrieves the number of supported techniques. +getNumSupportedTechniques :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getNumSupportedTechniques a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMtGetNumSupportedTechniques'_ a1' a2' >>= \res -> + getNumSupportedTechniques'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 118 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtGetUnsupportedTechniquesExplanation :: HG3DClass -> IO (String) -cMtGetUnsupportedTechniquesExplanation a1 = +{-# LINE 95 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} + +-- | Gets a string explaining why any techniques are not supported. +getUnsupportedTechniquesExplanation :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getUnsupportedTechniquesExplanation a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> - cMtGetUnsupportedTechniquesExplanation'_ a1' a2' >>= \res -> + getUnsupportedTechniquesExplanation'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') -{-# LINE 122 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtGetNumLodLevels :: HG3DClass -> Int -> IO (Int) -cMtGetNumLodLevels a1 a2 = +{-# LINE 100 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} + +-- | Gets the number of levels-of-detail this material has in the given scheme, based on Technique::setLodIndex. Note that this will not be up to date until the material has been compiled. +getNumLodLevels :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ schemeIndex + -> IO (Int) + -- ^ +getNumLodLevels a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in alloca $ \a3' -> - cMtGetNumLodLevels'_ a1' a2' a3' >>= \res -> + getNumLodLevels'_ a1' a2' a3' >>= \res -> peekIntConv a3'>>= \a3'' -> return (a3'') -{-# LINE 127 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtGetNumLodLevels2 :: HG3DClass -> String -> IO (Int) -cMtGetNumLodLevels2 a1 a2 = +{-# LINE 106 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} + +-- | Gets the number of levels-of-detail this material has in the given scheme, based on Technique::setLodIndex. Note that this will not be up to date until the material has been compiled. +getNumLodLevels2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ schemeName + -> IO (Int) + -- ^ +getNumLodLevels2 a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> alloca $ \a3' -> - cMtGetNumLodLevels2'_ a1' a2' a3' >>= \res -> + getNumLodLevels2'_ 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 = +{-# LINE 112 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} + +-- | Creates a new copy of this material with the same settings but a new name. +clone :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ newName - The name for the cloned material + -> Bool -- ^ changeGroup - If true, the resource group of the clone is changed + -> String -- ^ newGroup - Only required if changeGroup is true; the new group to assign + -> IO (SharedPtr) + -- ^ +clone 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'' -> + clone'_ a1' a2' a3' a4' a5' >>= \res -> + peekSharedPtr a5'>>= \a5'' -> return (a5'') -{-# LINE 139 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtCopyDetailsTo :: HG3DClass -> IO (SharedPtr) -cMtCopyDetailsTo a1 = +{-# LINE 120 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} + +-- | Copies the details of this material into another, preserving the target's handle and name (unlike operator=) but copying everything else. +copyDetailsTo :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (SharedPtr) + -- ^ mat - Weak reference to material which will receive this material's settings. +copyDetailsTo a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMtCopyDetailsTo'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> + copyDetailsTo'_ a1' a2' >>= \res -> + peekSharedPtr a2'>>= \a2'' -> return (a2'') -{-# LINE 143 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtCompile :: HG3DClass -> Bool -> IO () -cMtCompile a1 a2 = +{-# LINE 125 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} + +-- | 'Compiles' this MaterialCompiling a material involves determining which Techniques are supported on the card on which OGRE is currently running, and for fixed-function Passes within those Techniques, splitting the passes down where they contain more TextureUnitState instances than the current card has texture units. This process is automatically done when the Material +compile :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ autoManageTextureUnits - If true, when a fixed function pass has too many TextureUnitState entries than the card has texture units, the Pass in question will be split into more than one Pass in order to emulate the Pass. If you set this to false and this situation arises, an Exception will be thrown. + -> IO () + -- ^ +compile a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cMtCompile'_ a1' a2' >>= \res -> + compile'_ a1' a2' >>= \res -> return () -{-# LINE 147 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtSetPointSize :: HG3DClass -> Float -> IO () -cMtSetPointSize a1 a2 = +{-# LINE 130 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} + +-- | Sets the point size properties for every Pass in every Technique. This property has been moved to the Pass class, which is accessible via the Technique. For simplicity, this method allows you to set these properties for every current Technique, and for every current Pass within those Techniques. If you need more precision, retrieve the Technique and Pass instances and set the property there. Pass::setPointSize +setPointSize :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ ps + -> IO () + -- ^ +setPointSize a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in - cMtSetPointSize'_ a1' a2' >>= \res -> + setPointSize'_ a1' a2' >>= \res -> return () -{-# LINE 151 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtSetAmbient :: HG3DClass -> Float -> Float -> Float -> IO () -cMtSetAmbient a1 a2 a3 a4 = +{-# LINE 135 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} + +-- | Sets the ambient colour reflectance properties for every Pass in every Technique. This property has been moved to the Pass class, which is accessible via the Technique. For simplicity, this method allows you to set these properties for every current Technique, and for every current Pass within those Techniques. If you need more precision, retrieve the Technique and Pass instances and set the property there. Pass::setAmbient +setAmbient :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ red + -> Float -- ^ green + -> Float -- ^ blue + -> IO () + -- ^ +setAmbient 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 -> + setAmbient'_ a1' a2' a3' a4' >>= \res -> return () -{-# LINE 157 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtSetAmbient2 :: HG3DClass -> Colour -> IO () -cMtSetAmbient2 a1 a2 = +{-# LINE 142 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} + +-- | Sets the ambient colour reflectance properties for every Pass in every Technique. This property has been moved to the Pass class, which is accessible via the Technique. For simplicity, this method allows you to set these properties for every current Technique, and for every current Pass within those Techniques. If you need more precision, retrieve the Technique and Pass instances and set the property there. Pass::setAmbient +setAmbient2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Colour -- ^ ambient + -> IO () + -- ^ +setAmbient2 a1 a2 = withHG3DClass a1 $ \a1' -> withColour a2 $ \a2' -> - cMtSetAmbient2'_ a1' a2' >>= \res -> + setAmbient2'_ a1' a2' >>= \res -> return () -{-# LINE 161 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtSetDiffuse :: HG3DClass -> Float -> Float -> Float -> Float -> IO () -cMtSetDiffuse a1 a2 a3 a4 a5 = +{-# LINE 147 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} + +-- | Sets the diffuse colour reflectance properties of every Pass in every Technique. This property has been moved to the Pass class, which is accessible via the Technique. For simplicity, this method allows you to set these properties for every current Technique, and for every current Pass within those Techniques. If you need more precision, retrieve the Technique and Pass instances and set the property there. Pass::setDiffuse +setDiffuse :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ red + -> Float -- ^ green + -> Float -- ^ blue + -> Float -- ^ alpha + -> IO () + -- ^ +setDiffuse 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 -> + setDiffuse'_ a1' a2' a3' a4' a5' >>= \res -> return () -{-# LINE 168 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtSetDiffuse2 :: HG3DClass -> Colour -> IO () -cMtSetDiffuse2 a1 a2 = +{-# LINE 155 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} + +-- | Sets the diffuse colour reflectance properties of every Pass in every Technique. This property has been moved to the Pass class, which is accessible via the Technique. For simplicity, this method allows you to set these properties for every current Technique, and for every current Pass within those Techniques. If you need more precision, retrieve the Technique and Pass instances and set the property there. Pass::setDiffuse +setDiffuse2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Colour -- ^ diffuse + -> IO () + -- ^ +setDiffuse2 a1 a2 = withHG3DClass a1 $ \a1' -> withColour a2 $ \a2' -> - cMtSetDiffuse2'_ a1' a2' >>= \res -> + setDiffuse2'_ a1' a2' >>= \res -> return () -{-# LINE 172 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtSetSpecular :: HG3DClass -> Float -> Float -> Float -> Float -> IO () -cMtSetSpecular a1 a2 a3 a4 a5 = +{-# LINE 160 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} + +-- | Sets the specular colour reflectance properties of every Pass in every Technique. This property has been moved to the Pass class, which is accessible via the Technique. For simplicity, this method allows you to set these properties for every current Technique, and for every current Pass within those Techniques. If you need more precision, retrieve the Technique and Pass instances and set the property there. Pass::setSpecular +setSpecular :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ red + -> Float -- ^ green + -> Float -- ^ blue + -> Float -- ^ alpha + -> IO () + -- ^ +setSpecular 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 -> + setSpecular'_ a1' a2' a3' a4' a5' >>= \res -> return () -{-# LINE 179 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtSetSpecular2 :: HG3DClass -> Colour -> IO () -cMtSetSpecular2 a1 a2 = +{-# LINE 168 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} + +-- | Sets the specular colour reflectance properties of every Pass in every Technique. This property has been moved to the Pass class, which is accessible via the Technique. For simplicity, this method allows you to set these properties for every current Technique, and for every current Pass within those Techniques. If you need more precision, retrieve the Technique and Pass instances and set the property there. Pass::setSpecular +setSpecular2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Colour -- ^ specular + -> IO () + -- ^ +setSpecular2 a1 a2 = withHG3DClass a1 $ \a1' -> withColour a2 $ \a2' -> - cMtSetSpecular2'_ a1' a2' >>= \res -> + setSpecular2'_ a1' a2' >>= \res -> return () -{-# LINE 183 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtSetShininess :: HG3DClass -> Float -> IO () -cMtSetShininess a1 a2 = +{-# LINE 173 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} + +-- | Sets the shininess properties of every Pass in every Technique. This property has been moved to the Pass class, which is accessible via the Technique. For simplicity, this method allows you to set these properties for every current Technique, and for every current Pass within those Techniques. If you need more precision, retrieve the Technique and Pass instances and set the property there. Pass::setShininess +setShininess :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ val + -> IO () + -- ^ +setShininess a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in - cMtSetShininess'_ a1' a2' >>= \res -> + setShininess'_ a1' a2' >>= \res -> return () -{-# LINE 187 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtSetSelfIllumination :: HG3DClass -> Float -> Float -> Float -> IO () -cMtSetSelfIllumination a1 a2 a3 a4 = +{-# LINE 178 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} + +-- | Sets the amount of self-illumination of every Pass in every Technique. This property has been moved to the Pass class, which is accessible via the Technique. For simplicity, this method allows you to set these properties for every current Technique, and for every current Pass within those Techniques. If you need more precision, retrieve the Technique and Pass instances and set the property there. Pass::setSelfIllumination +setSelfIllumination :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ red + -> Float -- ^ green + -> Float -- ^ blue + -> IO () + -- ^ +setSelfIllumination 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 -> + setSelfIllumination'_ a1' a2' a3' a4' >>= \res -> return () -{-# LINE 193 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtSetSelfIllumination2 :: HG3DClass -> Colour -> IO () -cMtSetSelfIllumination2 a1 a2 = +{-# LINE 185 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} + +-- | Sets the amount of self-illumination of every Pass in every Technique. This property has been moved to the Pass class, which is accessible via the Technique. For simplicity, this method allows you to set these properties for every current Technique, and for every current Pass within those Techniques. If you need more precision, retrieve the Technique and Pass instances and set the property there. Pass::setSelfIllumination +setSelfIllumination2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Colour -- ^ selfIllum + -> IO () + -- ^ +setSelfIllumination2 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 -> + setSelfIllumination2'_ a1' a2' >>= \res -> return () -{-# LINE 201 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtSetDepthWriteEnabled :: HG3DClass -> Bool -> IO () -cMtSetDepthWriteEnabled a1 a2 = +{-# LINE 190 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} + +-- | Sets whether or not each Pass renders with depth-buffer checking on or not. This property has been moved to the Pass class, which is accessible via the Technique. For simplicity, this method allows you to set these properties for every current Technique, and for every current Pass within those Techniques. If you need more precision, retrieve the Technique and Pass instances and set the property there. Pass::setDepthCheckEnabled +setDepthCheckEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ enabled + -> IO () + -- ^ +setDepthCheckEnabled 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 -> + setDepthCheckEnabled'_ a1' a2' >>= \res -> return () -{-# LINE 209 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtSetColourWriteEnabled :: HG3DClass -> Bool -> IO () -cMtSetColourWriteEnabled a1 a2 = +{-# LINE 195 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} + +-- | Sets whether or not each Pass renders with depth-buffer writing on or not. This property has been moved to the Pass class, which is accessible via the Technique. For simplicity, this method allows you to set these properties for every current Technique, and for every current Pass within those Techniques. If you need more precision, retrieve the Technique and Pass instances and set the property there. Pass::setDepthWriteEnabled +setDepthWriteEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ enabled + -> IO () + -- ^ +setDepthWriteEnabled 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 -> + setDepthWriteEnabled'_ a1' a2' >>= \res -> return () -{-# LINE 221 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtSetLightingEnabled :: HG3DClass -> Bool -> IO () -cMtSetLightingEnabled a1 a2 = +{-# LINE 200 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} + +-- | Sets whether or not colour buffer writing is enabled for each Pass. This property has been moved to the Pass class, which is accessible via the Technique. For simplicity, this method allows you to set these properties for every current Technique, and for every current Pass within those Techniques. If you need more precision, retrieve the Technique and Pass instances and set the property there. Pass::setColourWriteEnabled +setColourWriteEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ enabled + -> IO () + -- ^ +setColourWriteEnabled 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 -> + setColourWriteEnabled'_ 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 = +{-# LINE 205 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} + +-- | Sets whether or not dynamic lighting is enabled for every Pass. This property has been moved to the Pass class, which is accessible via the Technique. For simplicity, this method allows you to set these properties for every current Technique, and for every current Pass within those Techniques. If you need more precision, retrieve the Technique and Pass instances and set the property there. Pass::setLightingEnabled +setLightingEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ enabled + -> IO () + -- ^ +setLightingEnabled a1 a2 = 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 -> + setLightingEnabled'_ a1' a2' >>= \res -> return () -{-# LINE 238 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtSetDepthBias :: HG3DClass -> Float -> Float -> IO () -cMtSetDepthBias a1 a2 a3 = +{-# LINE 210 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} + +-- | Sets the depth bias to be used for each Pass. This property has been moved to the Pass class, which is accessible via the Technique. For simplicity, this method allows you to set these properties for every current Technique, and for every current Pass within those Techniques. If you need more precision, retrieve the Technique and Pass instances and set the property there. Pass::setDepthBias +setDepthBias :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ constantBias + -> Float -- ^ slopeScaleBias + -> IO () + -- ^ +setDepthBias 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 -> + setDepthBias'_ a1' a2' a3' >>= \res -> return () -{-# LINE 247 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtSetTextureAnisotropy :: HG3DClass -> Int -> IO () -cMtSetTextureAnisotropy a1 a2 = +{-# LINE 216 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} + +-- | Sets the anisotropy level to be used for all textures. This property has been moved to the TextureUnitState class, which is accessible via the Technique and Pass. For simplicity, this method allows you to set these properties for every current TeextureUnitState, If you need more precision, retrieve the Technique, Pass and TextureUnitState instances and set the property there. TextureUnitState::setTextureAnisotropy +setTextureAnisotropy :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ maxAniso + -> IO () + -- ^ +setTextureAnisotropy 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 -> + setTextureAnisotropy'_ a1' a2' >>= \res -> return () -{-# LINE 254 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtTouch :: HG3DClass -> IO () -cMtTouch a1 = +{-# LINE 221 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} + +-- | 'Touches' the resource to indicate it has been used. +touch :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +touch a1 = withHG3DClass a1 $ \a1' -> - cMtTouch'_ a1' >>= \res -> + touch'_ a1' >>= \res -> return () -{-# LINE 257 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; -cMtGetCompilationRequired :: HG3DClass -> IO (Bool) -cMtGetCompilationRequired a1 = +{-# LINE 225 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} + +-- | Gets the compilation status of the material. +getCompilationRequired :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ return value - True if the material needs recompilation. +getCompilationRequired a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMtGetCompilationRequired'_ a1' a2' >>= \res -> + getCompilationRequired'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 261 "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs" #-} -; +{-# LINE 230 ".\\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 ogre_mtrl_destruct" + delete'_ :: ((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 ogre_mtrl_isTransparent" + isTransparent'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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 ogre_mtrl_setReceiveShadows" + setReceiveShadows'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_mtrl_getReceiveShadows" + getReceiveShadows'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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 ogre_mtrl_setTransparencyCastsShadows" + setTransparencyCastsShadows'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_mtrl_getTransparencyCastsShadows" + getTransparencyCastsShadows'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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 ogre_mtrl_getNumTechniques" + getNumTechniques'_ :: ((HG3DClassPtr) -> ((Ptr CUShort) -> (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 ogre_mtrl_removeTechnique" + removeTechnique'_ :: ((HG3DClassPtr) -> (CUShort -> (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 ogre_mtrl_removeAllTechniques" + removeAllTechniques'_ :: ((HG3DClassPtr) -> (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 ogre_mtrl_getNumSupportedTechniques" + getNumSupportedTechniques'_ :: ((HG3DClassPtr) -> ((Ptr CUShort) -> (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 ogre_mtrl_getUnsupportedTechniquesExplanation" + getUnsupportedTechniquesExplanation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (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 ogre_mtrl_getNumLodLevels" + getNumLodLevels'_ :: ((HG3DClassPtr) -> (CUShort -> ((Ptr CUShort) -> (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 ogre_mtrl_getNumLodLevels2" + getNumLodLevels2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CUShort) -> (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 ogre_mtrl_clone" + clone'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> ((Ptr CChar) -> ((SharedPtrPtr) -> (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 ogre_mtrl_copyDetailsTo" + copyDetailsTo'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (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 ogre_mtrl_compile" + compile'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_mtrl_setPointSize" + setPointSize'_ :: ((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 ogre_mtrl_setAmbient" + setAmbient'_ :: ((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 ogre_mtrl_setAmbient2" + setAmbient2'_ :: ((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 ogre_mtrl_setDiffuse" + setDiffuse'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (CFloat -> (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 ogre_mtrl_setDiffuse2" + setDiffuse2'_ :: ((HG3DClassPtr) -> ((ColourPtr) -> (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 ogre_mtrl_setSpecular" + setSpecular'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (CFloat -> (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 ogre_mtrl_setSpecular2" + setSpecular2'_ :: ((HG3DClassPtr) -> ((ColourPtr) -> (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 ogre_mtrl_setShininess" + setShininess'_ :: ((HG3DClassPtr) -> (CFloat -> (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 ogre_mtrl_setSelfIllumination" + setSelfIllumination'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (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 ogre_mtrl_setSelfIllumination2" + setSelfIllumination2'_ :: ((HG3DClassPtr) -> ((ColourPtr) -> (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 ogre_mtrl_setDepthCheckEnabled" + setDepthCheckEnabled'_ :: ((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 ogre_mtrl_setDepthWriteEnabled" + setDepthWriteEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_mtrl_setColourWriteEnabled" + setColourWriteEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_mtrl_setLightingEnabled" + setLightingEnabled'_ :: ((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 ogre_mtrl_setDepthBias" + setDepthBias'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (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 ogre_mtrl_setTextureAnisotropy" + setTextureAnisotropy'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_mtrl_touch" + touch'_ :: ((HG3DClassPtr) -> (IO ())) -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h cMt_getCompilationRequired_c" - cMtGetCompilationRequired'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterial.chs.h ogre_mtrl_getCompilationRequired" + getCompilationRequired'_ :: ((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.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,193 +39,178 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} +import HGamer3D.Bindings.Ogre.StructSharedPtr +{-# LINE 45 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} +-- | Default constructor. +new :: IO (HG3DClass) + -- ^ +new = + alloca $ \a1' -> + new'_ a1' >>= \res -> + peek a1'>>= \a1'' -> + return (a1'') +{-# LINE 50 ".\\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 = +-- | Default destructor. +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = withHG3DClass a1 $ \a1' -> - let {a2' = cIntFromEnum a2} in - let {a3' = cIntFromEnum a3} in - cMtmSetDefaultTextureFiltering2'_ a1' a2' a3' >>= \res -> + delete'_ a1' >>= \res -> return () -{-# LINE 77 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} -; -cMtmSetDefaultTextureFiltering3 :: HG3DClass -> EnumFilterOptions -> EnumFilterOptions -> EnumFilterOptions -> IO () -cMtmSetDefaultTextureFiltering3 a1 a2 a3 a4 = +{-# LINE 54 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} + +-- | Initialises the material manager, which also triggers it to parse all available .program and .material scripts. +initialise :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +initialise a1 = withHG3DClass a1 $ \a1' -> - let {a2' = cIntFromEnum a2} in - let {a3' = cIntFromEnum a3} in - let {a4' = cIntFromEnum a4} in - cMtmSetDefaultTextureFiltering3'_ a1' a2' a3' a4' >>= \res -> + initialise'_ a1' >>= \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 = +{-# LINE 58 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} + +-- | Sets the default anisotropy level to be used for loaded textures, for when textures are loaded automatically (e.g. by MaterialThe default value is 1 (no anisotropy). +setDefaultAnisotropy :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ maxAniso + -> IO () + -- ^ +setDefaultAnisotropy a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in - cMtmSetDefaultAnisotropy'_ a1' a2' >>= \res -> + setDefaultAnisotropy'_ a1' a2' >>= \res -> return () -{-# LINE 92 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} -; -cMtmGetDefaultAnisotropy :: HG3DClass -> IO (Int) -cMtmGetDefaultAnisotropy a1 = +{-# LINE 63 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} + +-- | get the default maxAnisotropy +getDefaultAnisotropy :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getDefaultAnisotropy a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMtmGetDefaultAnisotropy'_ a1' a2' >>= \res -> + getDefaultAnisotropy'_ 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 = +{-# LINE 68 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} + +-- | Returns a pointer to the default MaterialOgreMaterialThe default settings begin as a single Technique with a single, non-programmable Pass: +-- +-- +-- +-- +-- +-- +-- +-- +-- +-- +-- +-- +-- +-- +-- +-- +-- +-- +-- +-- +-- +-- +-- +-- +-- +-- +-- +-- +-- +-- +-- +-- +-- +-- +-- +getDefaultSettings :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (SharedPtr) + -- ^ +getDefaultSettings a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMtmGetActiveSchemeIndex'_ a1' a2' >>= \res -> - peekIntConv a2'>>= \a2'' -> + getDefaultSettings'_ a1' a2' >>= \res -> + peekSharedPtr a2'>>= \a2'' -> return (a2'') -{-# LINE 114 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} -; -cMtmGetActiveScheme :: HG3DClass -> IO (String) -cMtmGetActiveScheme a1 = +{-# LINE 73 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} + +-- | Returns the name of the active material scheme. Technique::setSchemeName +getActiveScheme :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getActiveScheme a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> - cMtmGetActiveScheme'_ a1' a2' >>= \res -> + getActiveScheme'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') -{-# LINE 118 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} -; -cMtmSetActiveScheme :: HG3DClass -> String -> IO () -cMtmSetActiveScheme a1 a2 = +{-# LINE 78 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} + +-- | Sets the name of the active material scheme. Technique::setSchemeName +setActiveScheme :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ schemeName + -> IO () + -- ^ +setActiveScheme a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> - cMtmSetActiveScheme'_ a1' a2' >>= \res -> + setActiveScheme'_ a1' a2' >>= \res -> return () -{-# LINE 122 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} -; +{-# LINE 83 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs.h cMtm_initialise_c" - cMtmInitialise'_ :: ((HG3DClassPtr) -> (IO ())) +-- | Override standard Singleton retrieval. Why do we do this? Well, it's because the Singleton implementation is in a .h file, which means it gets compiled into anybody who includes it. This is needed for the Singleton template to work, but we actually only want it compiled into the implementation of the class based on the Singleton, not all of them. If we don't change this, we get link errors when trying to use the Singleton-based class from an outside dll. This method just delegates to the template version anyway, but the implementation stays in this single compilation unit, preventing link errors. +getSingletonPtr :: IO (HG3DClass) + -- ^ +getSingletonPtr = + alloca $ \a1' -> + getSingletonPtr'_ a1' >>= \res -> + peek a1'>>= \a1'' -> + return (a1'') +{-# LINE 87 ".\\HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-} -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 ogre_mtrlmgr_construct" + new'_ :: ((HG3DClassPtr) -> (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 ogre_mtrlmgr_destruct" + delete'_ :: ((HG3DClassPtr) -> (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 ogre_mtrlmgr_initialise" + initialise'_ :: ((HG3DClassPtr) -> (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 ogre_mtrlmgr_setDefaultAnisotropy" + setDefaultAnisotropy'_ :: ((HG3DClassPtr) -> (CUInt -> (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 ogre_mtrlmgr_getDefaultAnisotropy" + getDefaultAnisotropy'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (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 ogre_mtrlmgr_getDefaultSettings" + getDefaultSettings'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (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 ogre_mtrlmgr_getActiveScheme" + getActiveScheme'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (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 ogre_mtrlmgr_setActiveScheme" + setActiveScheme'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs.h cMtm_setActiveScheme_c" - cMtmSetActiveScheme'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs.h ogre_mtrlmgr_getSingletonPtr" + getSingletonPtr'_ :: ((HG3DClassPtr) -> (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.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,597 +39,573 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} +import HGamer3D.Bindings.Ogre.StructSharedPtr +{-# LINE 45 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} import HGamer3D.Bindings.Ogre.EnumVertexAnimationType -{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} - +{-# LINE 46 ".\\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 = +-- | +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = 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 = + delete'_ a1' >>= \res -> + return () +{-# LINE 51 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} + +-- | Removes a name from a SubMesh +unnameSubMesh :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO () + -- ^ +unnameSubMesh a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> - cMUnnameSubMesh'_ a1' a2' >>= \res -> + unnameSubMesh'_ a1' a2' >>= \res -> return () -{-# LINE 72 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMGetNumSubMeshes :: HG3DClass -> IO (Int) -cMGetNumSubMeshes a1 = +{-# LINE 56 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} + +-- | Gets the number of sub meshes which comprise this mesh. +getNumSubMeshes :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getNumSubMeshes a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMGetNumSubMeshes'_ a1' a2' >>= \res -> + getNumSubMeshes'_ 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 = +{-# LINE 61 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} + +-- | Destroy a SubMesh with the given index. This will invalidate the contents of any existing EntityEntity +destroySubMesh :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ index + -> IO () + -- ^ +destroySubMesh a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in - cMDestroySubMesh'_ a1' a2' >>= \res -> + destroySubMesh'_ a1' a2' >>= \res -> return () -{-# LINE 90 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMDestroySubMesh2 :: HG3DClass -> String -> IO () -cMDestroySubMesh2 a1 a2 = +{-# LINE 66 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} + +-- | Destroy a SubMesh with the given name. This will invalidate the contents of any existing EntityEntity +destroySubMesh2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO () + -- ^ +destroySubMesh2 a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> - cMDestroySubMesh2'_ a1' a2' >>= \res -> + destroySubMesh2'_ a1' a2' >>= \res -> return () -{-# LINE 94 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMClone :: HG3DClass -> String -> String -> IO (SharedPtr) -cMClone a1 a2 a3 = +{-# LINE 71 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} + +-- | Makes a copy of this mesh object and gives it a new name. This is useful if you want to tweak an existing mesh without affecting the original one. The newly cloned mesh is registered with the MeshManager +clone :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ newName - The name to give the clone + -> String -- ^ newGroup - Optional name of the new group to assign the clone to; if you leave this blank, the clone will be assigned to the same group as this Mesh. + -> IO (SharedPtr) + -- ^ +clone a1 a2 a3 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> withCString a3 $ \a3' -> alloca $ \a4' -> - cMClone'_ a1' a2' a3' a4' >>= \res -> - peek a4'>>= \a4'' -> + clone'_ a1' a2' a3' a4' >>= \res -> + peekSharedPtr a4'>>= \a4'' -> return (a4'') -{-# LINE 100 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMGetBoundingSphereRadius :: HG3DClass -> IO (Float) -cMGetBoundingSphereRadius a1 = +{-# LINE 78 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} + +-- | Gets the radius of the bounding sphere surrounding this mesh. +getBoundingSphereRadius :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getBoundingSphereRadius a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMGetBoundingSphereRadius'_ a1' a2' >>= \res -> + getBoundingSphereRadius'_ 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 = +{-# LINE 83 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} + +-- | Sets the name of the skeleton this MeshMeshes can optionally be assigned a skeleton which can be used to animate the mesh through bone assignments. The default is for the MeshMesh +setSkeletonName :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ skelName - The name of the .skeleton file to use, or an empty string to use no skeleton + -> IO () + -- ^ +setSkeletonName a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> - cMSetSkeletonName'_ a1' a2' >>= \res -> + setSkeletonName'_ a1' a2' >>= \res -> return () -{-# LINE 112 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMHasSkeleton :: HG3DClass -> IO (Bool) -cMHasSkeleton a1 = +{-# LINE 88 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} + +-- | Returns true if this MeshSkeleton +hasSkeleton :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +hasSkeleton a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMHasSkeleton'_ a1' a2' >>= \res -> + hasSkeleton'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 116 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMHasVertexAnimation :: HG3DClass -> IO (Bool) -cMHasVertexAnimation a1 = +{-# LINE 93 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} + +-- | Returns whether or not this mesh has some kind of vertex animation. +hasVertexAnimation :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +hasVertexAnimation a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMHasVertexAnimation'_ a1' a2' >>= \res -> + hasVertexAnimation'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 120 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMGetSkeleton :: HG3DClass -> IO (SharedPtr) -cMGetSkeleton a1 = +{-# LINE 98 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} + +-- | Gets a pointer to any linked Skeleton +getSkeleton :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (SharedPtr) + -- ^ return value - Weak reference to the skeleton - copy this if you want to hold a strong pointer. +getSkeleton a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMGetSkeleton'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> + getSkeleton'_ a1' a2' >>= \res -> + peekSharedPtr a2'>>= \a2'' -> return (a2'') -{-# LINE 124 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMGetSkeletonName :: HG3DClass -> IO (String) -cMGetSkeletonName a1 = +{-# LINE 103 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} + +-- | Gets the name of any linked Skeleton +getSkeletonName :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getSkeletonName a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> - cMGetSkeletonName'_ a1' a2' >>= \res -> + getSkeletonName'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') -{-# LINE 128 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMClearBoneAssignments :: HG3DClass -> IO () -cMClearBoneAssignments a1 = +{-# LINE 108 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} + +-- | Removes all bone assignments for this mesh. This method is for modifying weights to the shared geometry of the Mesh +clearBoneAssignments :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +clearBoneAssignments a1 = withHG3DClass a1 $ \a1' -> - cMClearBoneAssignments'_ a1' >>= \res -> + clearBoneAssignments'_ 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 = +{-# LINE 112 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} + +-- | Adds a new manual level-of-detail entry to this MeshAs an alternative to generating lower level of detail versions of a mesh, you can use your own manually modelled meshes as lower level versions. This lets you have complete control over the LOD, and in addition lets you scale down other aspects of the model which cannot be done using the generated method; for example, you could use less detailed materials and / or use less bones in the skeleton if this is an animated mesh. Therefore for complex models you are likely to be better off modelling your LODs yourself and using this method, whilst for models with fairly simple materials and no animation you can just use the generateLodLevels method. +createManualLodLevel :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ value - The value from which this Lod will apply. + -> String -- ^ meshName - The name of the mesh which will be the lower level detail version. + -> String -- ^ groupName + -> IO () + -- ^ +createManualLodLevel a1 a2 a3 a4 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in withCString a3 $ \a3' -> withCString a4 $ \a4' -> - cMCreateManualLodLevel'_ a1' a2' a3' a4' >>= \res -> + createManualLodLevel'_ a1' a2' a3' a4' >>= \res -> return () -{-# LINE 141 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMIsLodManual :: HG3DClass -> IO (Bool) -cMIsLodManual a1 = +{-# LINE 119 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} + +-- | Returns true if this mesh is using manual LOD. A mesh can either use automatically generated LOD, or it can use alternative meshes as provided by an artist. A mesh can only use either all manual LODs or all generated LODs, not a mixture of both. +isLodManual :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isLodManual a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMIsLodManual'_ a1' a2' >>= \res -> + isLodManual'_ 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 = +{-# LINE 124 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} + +-- | Removes all LOD data from this Mesh +removeLodLevels :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +removeLodLevels a1 = withHG3DClass a1 $ \a1' -> - cMRemoveLodLevels'_ a1' >>= \res -> + removeLodLevels'_ a1' >>= \res -> return () -{-# LINE 153 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMIsVertexBufferShadowed :: HG3DClass -> IO (Bool) -cMIsVertexBufferShadowed a1 = +{-# LINE 128 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} + +-- | Gets whether or not this meshes vertex buffers are shadowed. +isVertexBufferShadowed :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isVertexBufferShadowed a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMIsVertexBufferShadowed'_ a1' a2' >>= \res -> + isVertexBufferShadowed'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 157 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMIsIndexBufferShadowed :: HG3DClass -> IO (Bool) -cMIsIndexBufferShadowed a1 = +{-# LINE 133 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} + +-- | Gets whether or not this meshes index buffers are shadowed. +isIndexBufferShadowed :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isIndexBufferShadowed a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMIsIndexBufferShadowed'_ a1' a2' >>= \res -> + isIndexBufferShadowed'_ 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 = +{-# LINE 138 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} + +-- | Builds an edge list for this mesh, which can be used for generating a shadow volume among other things. +buildEdgeList :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +buildEdgeList a1 = withHG3DClass a1 $ \a1' -> - cMBuildEdgeList'_ a1' >>= \res -> + buildEdgeList'_ a1' >>= \res -> return () -{-# LINE 179 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMFreeEdgeList :: HG3DClass -> IO () -cMFreeEdgeList a1 = +{-# LINE 142 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} + +-- | Destroys and frees the edge lists this mesh has built. +freeEdgeList :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +freeEdgeList a1 = withHG3DClass a1 $ \a1' -> - cMFreeEdgeList'_ a1' >>= \res -> + freeEdgeList'_ a1' >>= \res -> return () -{-# LINE 182 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMPrepareForShadowVolume :: HG3DClass -> IO () -cMPrepareForShadowVolume a1 = +{-# LINE 146 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} + +-- | This method prepares the mesh for generating a renderable shadow volume. Preparing a mesh to generate a shadow volume involves firstly ensuring that the vertex buffer containing the positions for the mesh is a standalone vertex buffer, with no other components in it. This method will therefore break apart any existing vertex buffers this mesh holds if position is sharing a vertex buffer. Secondly, it will double the size of this vertex buffer so that there are 2 copies of the position data for the mesh. The first half is used for the original, and the second half is used for the 'extruded' version of the mesh. The vertex count of the main VertexData used to render the mesh will remain the same though, so as not to add any overhead to regular rendering of the object. Both copies of the position are required in one buffer because shadow volumes stretch from the original mesh to the extruded version. Because shadow volumes are rendered in turn, no additional index buffer space is allocated by this method, a shared index buffer allocated by the shadow rendering algorithm is used for addressing this extended vertex buffer. +prepareForShadowVolume :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +prepareForShadowVolume a1 = withHG3DClass a1 $ \a1' -> - cMPrepareForShadowVolume'_ a1' >>= \res -> + prepareForShadowVolume'_ a1' >>= \res -> return () -{-# LINE 185 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMIsPreparedForShadowVolumes :: HG3DClass -> IO (Bool) -cMIsPreparedForShadowVolumes a1 = +{-# LINE 150 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} + +-- | Returns whether this mesh has already had it's geometry prepared for use in rendering shadow volumes. +isPreparedForShadowVolumes :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isPreparedForShadowVolumes a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMIsPreparedForShadowVolumes'_ a1' a2' >>= \res -> + isPreparedForShadowVolumes'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 189 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMIsEdgeListBuilt :: HG3DClass -> IO (Bool) -cMIsEdgeListBuilt a1 = +{-# LINE 155 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} + +-- | Returns whether this mesh has an attached edge list. +isEdgeListBuilt :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isEdgeListBuilt a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMIsEdgeListBuilt'_ a1' a2' >>= \res -> + isEdgeListBuilt'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 193 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMSetAutoBuildEdgeLists :: HG3DClass -> Bool -> IO () -cMSetAutoBuildEdgeLists a1 a2 = +{-# LINE 160 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} + +-- | Sets whether or not this MeshThis allows you to create meshes which do not have edge lists calculated, because you never want to use them. This value defaults to 'true' for mesh formats which did not include edge data, and 'false' for newer formats, where edge lists are expected to have been generated in advance. +setAutoBuildEdgeLists :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ autobuild + -> IO () + -- ^ +setAutoBuildEdgeLists a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cMSetAutoBuildEdgeLists'_ a1' a2' >>= \res -> + setAutoBuildEdgeLists'_ a1' a2' >>= \res -> return () -{-# LINE 197 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMGetAutoBuildEdgeLists :: HG3DClass -> IO (Bool) -cMGetAutoBuildEdgeLists a1 = +{-# LINE 165 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} + +-- | Sets whether or not this Mesh +getAutoBuildEdgeLists :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getAutoBuildEdgeLists a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMGetAutoBuildEdgeLists'_ a1' a2' >>= \res -> + getAutoBuildEdgeLists'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 201 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMGetSharedVertexDataAnimationType :: HG3DClass -> IO (EnumVertexAnimationType) -cMGetSharedVertexDataAnimationType a1 = +{-# LINE 170 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} + +-- | Gets the type of vertex animation the shared vertex data of this mesh supports. +getSharedVertexDataAnimationType :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (EnumVertexAnimationType) + -- ^ +getSharedVertexDataAnimationType a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMGetSharedVertexDataAnimationType'_ a1' a2' >>= \res -> + getSharedVertexDataAnimationType'_ 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 = +{-# LINE 175 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} + +-- | Creates a new Animation +createAnimation :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name - The name of this animation + -> Float -- ^ length - The length of the animation in seconds + -> IO (HG3DClass) + -- ^ +createAnimation a1 a2 a3 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> let {a3' = realToFrac a3} in alloca $ \a4' -> - cMCreateAnimation'_ a1' a2' a3' a4' >>= \res -> + createAnimation'_ 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 = +{-# LINE 182 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} + +-- | Returns the named vertex Animation +getAnimation :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name - The name of the animation + -> IO (HG3DClass) + -- ^ +getAnimation a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> alloca $ \a3' -> - cMGetAnimationImpl'_ a1' a2' a3' >>= \res -> + getAnimation'_ a1' a2' a3' >>= \res -> peek a3'>>= \a3'' -> return (a3'') -{-# LINE 221 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMHasAnimation :: HG3DClass -> String -> IO (Bool) -cMHasAnimation a1 a2 = +{-# LINE 188 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} + +-- | Returns whether this mesh contains the named vertex animation. +hasAnimation :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (Bool) + -- ^ +hasAnimation a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> alloca $ \a3' -> - cMHasAnimation'_ a1' a2' a3' >>= \res -> + hasAnimation'_ a1' a2' a3' >>= \res -> peekBoolUtil a3'>>= \a3'' -> return (a3'') -{-# LINE 226 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMRemoveAnimation :: HG3DClass -> String -> IO () -cMRemoveAnimation a1 a2 = +{-# LINE 194 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} + +-- | Removes vertex Animation +removeAnimation :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO () + -- ^ +removeAnimation a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> - cMRemoveAnimation'_ a1' a2' >>= \res -> + removeAnimation'_ a1' a2' >>= \res -> return () -{-# LINE 230 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMGetNumAnimations :: HG3DClass -> IO (Int) -cMGetNumAnimations a1 = +{-# LINE 199 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} + +-- | Gets the number of morph animations in this mesh. +getNumAnimations :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getNumAnimations a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMGetNumAnimations'_ a1' a2' >>= \res -> + getNumAnimations'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 234 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMGetAnimation2 :: HG3DClass -> Int -> IO (HG3DClass) -cMGetAnimation2 a1 a2 = +{-# LINE 204 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} + +-- | Gets a single morph animation by index. +getAnimation2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ index + -> IO (HG3DClass) + -- ^ +getAnimation2 a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in alloca $ \a3' -> - cMGetAnimation2'_ a1' a2' a3' >>= \res -> + getAnimation2'_ 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 = +{-# LINE 210 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} + +-- | Removes all morph Animations from this mesh. +removeAllAnimations :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +removeAllAnimations a1 = withHG3DClass a1 $ \a1' -> - cMUpdateMaterialForAllSubMeshes'_ a1' >>= \res -> + removeAllAnimations'_ a1' >>= \res -> return () -{-# LINE 245 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMDetermineAnimationTypes :: HG3DClass -> IO () -cMDetermineAnimationTypes a1 = +{-# LINE 214 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} + +-- | Iterates through all submeshes and requests them to apply their texture aliases to the material they use. The submesh will only apply texture aliases to the material if matching texture alias names are found in the material. If a match is found, the submesh will automatically clone the original material and then apply its texture to the new material. This method is normally called by the protected method loadImpl when a mesh if first loaded. +updateMaterialForAllSubMeshes :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +updateMaterialForAllSubMeshes a1 = withHG3DClass a1 $ \a1' -> - cMDetermineAnimationTypes'_ a1' >>= \res -> + updateMaterialForAllSubMeshes'_ 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 = +{-# LINE 218 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} + +-- | Get the number of poses. +getPoseCount :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getPoseCount a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMGetPoseCount'_ a1' a2' >>= \res -> + getPoseCount'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 256 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMRemovePose2 :: HG3DClass -> String -> IO () -cMRemovePose2 a1 a2 = +{-# LINE 223 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} + +-- | Destroy a pose by name. This will invalidate any animation tracks referring to this pose or those after it. +removePose2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO () + -- ^ +removePose2 a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> - cMRemovePose2'_ a1' a2' >>= \res -> + removePose2'_ a1' a2' >>= \res -> return () -{-# LINE 260 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; -cMRemoveAllPoses :: HG3DClass -> IO () -cMRemoveAllPoses a1 = +{-# LINE 228 ".\\HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} + +-- | Destroy all poses +removeAllPoses :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +removeAllPoses a1 = withHG3DClass a1 $ \a1' -> - cMRemoveAllPoses'_ a1' >>= \res -> + removeAllPoses'_ a1' >>= \res -> return () -{-# LINE 263 "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs" #-} -; +{-# LINE 232 ".\\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 ogre_msh_destruct" + delete'_ :: ((HG3DClassPtr) -> (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 ogre_msh_unnameSubMesh" + unnameSubMesh'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (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 ogre_msh_getNumSubMeshes" + getNumSubMeshes'_ :: ((HG3DClassPtr) -> ((Ptr CUShort) -> (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 ogre_msh_destroySubMesh" + destroySubMesh'_ :: ((HG3DClassPtr) -> (CUShort -> (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 ogre_msh_destroySubMesh2" + destroySubMesh2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (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 ogre_msh_clone" + clone'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((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 ogre_msh_getBoundingSphereRadius" + getBoundingSphereRadius'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (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 ogre_msh_setSkeletonName" + setSkeletonName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (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 ogre_msh_hasSkeleton" + hasSkeleton'_ :: ((HG3DClassPtr) -> ((Ptr 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 ogre_msh_hasVertexAnimation" + hasVertexAnimation'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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 ogre_msh_getSkeleton" + getSkeleton'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (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 ogre_msh_getSkeletonName" + getSkeletonName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (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 ogre_msh_clearBoneAssignments" + clearBoneAssignments'_ :: ((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 ogre_msh_createManualLodLevel" + createManualLodLevel'_ :: ((HG3DClassPtr) -> (CFloat -> ((Ptr CChar) -> ((Ptr CChar) -> (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 ogre_msh_isLodManual" + isLodManual'_ :: ((HG3DClassPtr) -> ((Ptr 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 ogre_msh_removeLodLevels" + removeLodLevels'_ :: ((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 ogre_msh_isVertexBufferShadowed" + isVertexBufferShadowed'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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 ogre_msh_isIndexBufferShadowed" + isIndexBufferShadowed'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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 ogre_msh_buildEdgeList" + buildEdgeList'_ :: ((HG3DClassPtr) -> (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 ogre_msh_freeEdgeList" + freeEdgeList'_ :: ((HG3DClassPtr) -> (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 ogre_msh_prepareForShadowVolume" + prepareForShadowVolume'_ :: ((HG3DClassPtr) -> (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 ogre_msh_isPreparedForShadowVolumes" + isPreparedForShadowVolumes'_ :: ((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 ogre_msh_isEdgeListBuilt" + isEdgeListBuilt'_ :: ((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 ogre_msh_setAutoBuildEdgeLists" + setAutoBuildEdgeLists'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_msh_getAutoBuildEdgeLists" + getAutoBuildEdgeLists'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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 ogre_msh_getSharedVertexDataAnimationType" + getSharedVertexDataAnimationType'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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 ogre_msh_createAnimation" + createAnimation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CFloat -> ((HG3DClassPtr) -> (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 ogre_msh_getAnimation" + getAnimation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (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 ogre_msh_hasAnimation" + hasAnimation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (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 ogre_msh_removeAnimation" + removeAnimation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (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 ogre_msh_getNumAnimations" + getNumAnimations'_ :: ((HG3DClassPtr) -> ((Ptr CUShort) -> (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 ogre_msh_getAnimation2" + getAnimation2'_ :: ((HG3DClassPtr) -> (CUShort -> ((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 ogre_msh_removeAllAnimations" + removeAllAnimations'_ :: ((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 ogre_msh_updateMaterialForAllSubMeshes" + updateMaterialForAllSubMeshes'_ :: ((HG3DClassPtr) -> (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 ogre_msh_getPoseCount" + getPoseCount'_ :: ((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 ogre_msh_removePose2" + removePose2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h cM_removeAllPoses_c" - cMRemoveAllPoses'_ :: ((HG3DClassPtr) -> (IO ())) +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMesh.chs.h ogre_msh_removeAllPoses" + removeAllPoses'_ :: ((HG3DClassPtr) -> (IO ()))
+ HGamer3D/Bindings/Ogre/ClassMeshManager.hs view
@@ -0,0 +1,166 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 ".\\HGamer3D\\Bindings\\Ogre\\ClassMeshManager.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- + +-- (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. +-- + + +-- ClassMeshManager.chs + +-- + +module HGamer3D.Bindings.Ogre.ClassMeshManager where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassMeshManager.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassMeshManager.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassMeshManager.chs" #-} + +-- | +new :: IO (HG3DClass) + -- ^ +new = + alloca $ \a1' -> + new'_ a1' >>= \res -> + peek a1'>>= \a1'' -> + return (a1'') +{-# LINE 49 ".\\HGamer3D\\Bindings\\Ogre\\ClassMeshManager.chs" #-} + +-- | +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = + withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 53 ".\\HGamer3D\\Bindings\\Ogre\\ClassMeshManager.chs" #-} + +-- | Tells the mesh manager that all future meshes should prepare themselves for shadow volumes on loading. +setPrepareAllMeshesForShadowVolumes :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ enable + -> IO () + -- ^ +setPrepareAllMeshesForShadowVolumes a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setPrepareAllMeshesForShadowVolumes'_ a1' a2' >>= \res -> + return () +{-# LINE 58 ".\\HGamer3D\\Bindings\\Ogre\\ClassMeshManager.chs" #-} + +-- | Retrieves whether all Meshes should prepare themselves for shadow volumes. +getPrepareAllMeshesForShadowVolumes :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getPrepareAllMeshesForShadowVolumes a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getPrepareAllMeshesForShadowVolumes'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 63 ".\\HGamer3D\\Bindings\\Ogre\\ClassMeshManager.chs" #-} + +-- | Gets the factor by which the bounding box of an entity is padded. Default is 0.01 +getBoundsPaddingFactor :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getBoundsPaddingFactor a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getBoundsPaddingFactor'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 68 ".\\HGamer3D\\Bindings\\Ogre\\ClassMeshManager.chs" #-} + +-- | Sets the factor by which the bounding box of an entity is padded +setBoundsPaddingFactor :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ paddingFactor + -> IO () + -- ^ +setBoundsPaddingFactor a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + setBoundsPaddingFactor'_ a1' a2' >>= \res -> + return () +{-# LINE 73 ".\\HGamer3D\\Bindings\\Ogre\\ClassMeshManager.chs" #-} + +-- | ManualResourceLoader::loadResource +loadResource :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ res + -> IO () + -- ^ +loadResource a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + loadResource'_ a1' a2' >>= \res -> + return () +{-# LINE 78 ".\\HGamer3D\\Bindings\\Ogre\\ClassMeshManager.chs" #-} + +-- | Override standard Singleton retrieval. Why do we do this? Well, it's because the Singleton implementation is in a .h file, which means it gets compiled into anybody who includes it. This is needed for the Singleton template to work, but we actually only want it compiled into the implementation of the class based on the Singleton, not all of them. If we don't change this, we get link errors when trying to use the Singleton-based class from an outside dll. This method just delegates to the template version anyway, but the implementation stays in this single compilation unit, preventing link errors. +getSingletonPtr :: IO (HG3DClass) + -- ^ +getSingletonPtr = + alloca $ \a1' -> + getSingletonPtr'_ a1' >>= \res -> + peek a1'>>= \a1'' -> + return (a1'') +{-# LINE 82 ".\\HGamer3D\\Bindings\\Ogre\\ClassMeshManager.chs" #-} + + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMeshManager.chs.h ogre_mshmgr_construct" + new'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMeshManager.chs.h ogre_mshmgr_destruct" + delete'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMeshManager.chs.h ogre_mshmgr_setPrepareAllMeshesForShadowVolumes" + setPrepareAllMeshesForShadowVolumes'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMeshManager.chs.h ogre_mshmgr_getPrepareAllMeshesForShadowVolumes" + getPrepareAllMeshesForShadowVolumes'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMeshManager.chs.h ogre_mshmgr_getBoundsPaddingFactor" + getBoundsPaddingFactor'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMeshManager.chs.h ogre_mshmgr_setBoundsPaddingFactor" + setBoundsPaddingFactor'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMeshManager.chs.h ogre_mshmgr_loadResource" + loadResource'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMeshManager.chs.h ogre_mshmgr_getSingletonPtr" + getSingletonPtr'_ :: ((HG3DClassPtr) -> (IO ()))
− 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.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,455 +39,559 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\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 = +-- | Virtual destructor - read Scott Meyers if you don't know why this is needed. +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cMoNotifyManager'_ a1' a2' >>= \res -> + delete'_ a1' >>= \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 = +{-# LINE 49 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} + +-- | Returns the name of this object. +getName :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getName a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> - cMoGetName'_ a1' a2' >>= \res -> + getName'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') -{-# LINE 76 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -; -cMoGetMovableType :: HG3DClass -> IO (String) -cMoGetMovableType a1 = +{-# LINE 54 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} + +-- | Returns the type name of this object. +getMovableType :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getMovableType a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> - cMoGetMovableType'_ a1' a2' >>= \res -> + getMovableType'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') -{-# LINE 80 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -; -cMoGetParentNode :: HG3DClass -> IO (HG3DClass) -cMoGetParentNode a1 = +{-# LINE 59 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} + +-- | Returns the node to which this object is attached. A MovableObjectSceneNodeNode +getParentNode :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (HG3DClass) + -- ^ +getParentNode a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMoGetParentNode'_ a1' a2' >>= \res -> + getParentNode'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') -{-# LINE 84 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -; -cMoGetParentSceneNode :: HG3DClass -> IO (HG3DClass) -cMoGetParentSceneNode a1 = +{-# LINE 64 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} + +-- | Returns the scene node to which this object is attached. A MovableObjectSceneNode +getParentSceneNode :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (HG3DClass) + -- ^ +getParentSceneNode a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMoGetParentSceneNode'_ a1' a2' >>= \res -> + getParentSceneNode'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') -{-# LINE 88 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -; -cMoIsParentTagPoint :: HG3DClass -> IO (Bool) -cMoIsParentTagPoint a1 = +{-# LINE 69 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} + +-- | Gets whether the parent node is a TagPoint (or a SceneNode +isParentTagPoint :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isParentTagPoint a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMoIsParentTagPoint'_ a1' a2' >>= \res -> + isParentTagPoint'_ 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 = +{-# LINE 74 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} + +-- | Returns true if this object is attached to a SceneNode +isAttached :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isAttached a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMoIsAttached'_ a1' a2' >>= \res -> + isAttached'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 101 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -; -cMoDetachFromParent :: HG3DClass -> IO () -cMoDetachFromParent a1 = +{-# LINE 79 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} + +-- | Detaches an object from a parent SceneNode +detachFromParent :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +detachFromParent a1 = withHG3DClass a1 $ \a1' -> - cMoDetachFromParent'_ a1' >>= \res -> + detachFromParent'_ a1' >>= \res -> return () -{-# LINE 104 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -; -cMoIsInScene :: HG3DClass -> IO (Bool) -cMoIsInScene a1 = +{-# LINE 83 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} + +-- | Returns true if this object is attached to a SceneNodeSceneNode +isInScene :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isInScene a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMoIsInScene'_ a1' a2' >>= \res -> + isInScene'_ 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 = +{-# LINE 88 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} + +-- | Retrieves the radius of the origin-centered bounding sphere for this object. +getBoundingRadius :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getBoundingRadius a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMoGetBoundingRadius'_ a1' a2' >>= \res -> + getBoundingRadius'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') -{-# LINE 119 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -; -cMoSetVisible :: HG3DClass -> Bool -> IO () -cMoSetVisible a1 a2 = +{-# LINE 93 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} + +-- | Tells this object whether to be visible or not, if it has a renderable component. An alternative approach of making an object invisible is to detach it from it's SceneNodeSceneNode +setVisible :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ visible + -> IO () + -- ^ +setVisible a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cMoSetVisible'_ a1' a2' >>= \res -> + setVisible'_ a1' a2' >>= \res -> return () -{-# LINE 123 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -; -cMoGetVisible :: HG3DClass -> IO (Bool) -cMoGetVisible a1 = +{-# LINE 98 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} + +-- | Gets this object whether to be visible or not, if it has a renderable component. Returns the value set by MovableObject::setVisible +getVisible :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getVisible a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMoGetVisible'_ a1' a2' >>= \res -> + getVisible'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 127 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -; -cMoIsVisible :: HG3DClass -> IO (Bool) -cMoIsVisible a1 = +{-# LINE 103 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} + +-- | Returns whether or not this object is supposed to be visible or not. Takes into account both upper rendering distance and visible flag. +isVisible :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isVisible a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMoIsVisible'_ a1' a2' >>= \res -> + isVisible'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 131 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -; -cMoSetRenderingDistance :: HG3DClass -> Float -> IO () -cMoSetRenderingDistance a1 a2 = +{-# LINE 108 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} + +-- | Sets the distance at which the object is no longer rendered. +setRenderingDistance :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ dist - Distance beyond which the object will not be rendered (the default is 0, which means objects are always rendered). + -> IO () + -- ^ +setRenderingDistance a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in - cMoSetRenderingDistance'_ a1' a2' >>= \res -> + setRenderingDistance'_ a1' a2' >>= \res -> return () -{-# LINE 135 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -; -cMoGetRenderingDistance :: HG3DClass -> IO (Float) -cMoGetRenderingDistance a1 = +{-# LINE 113 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} + +-- | Gets the distance at which batches are no longer rendered. +getRenderingDistance :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getRenderingDistance a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMoGetRenderingDistance'_ a1' a2' >>= \res -> + getRenderingDistance'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') -{-# LINE 139 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -; -cMoSetQueryFlags :: HG3DClass -> Int -> IO () -cMoSetQueryFlags a1 a2 = +{-# LINE 118 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} + +-- | Sets the query flags for this object. When performing a scene query, this object will be included or excluded according to flags on the object and flags on the query. This is a bitwise value, so only when a bit on these flags is set, will it be included in a query asking for that flag. The meaning of the bits is application-specific. +setQueryFlags :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ flags + -> IO () + -- ^ +setQueryFlags a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in - cMoSetQueryFlags'_ a1' a2' >>= \res -> + setQueryFlags'_ a1' a2' >>= \res -> return () -{-# LINE 143 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -; -cMoAddQueryFlags :: HG3DClass -> Int -> IO () -cMoAddQueryFlags a1 a2 = +{-# LINE 123 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} + +-- | As setQueryFlags, except the flags passed as parameters are appended to the existing flags on this object. +addQueryFlags :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ flags + -> IO () + -- ^ +addQueryFlags a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in - cMoAddQueryFlags'_ a1' a2' >>= \res -> + addQueryFlags'_ a1' a2' >>= \res -> return () -{-# LINE 147 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -; -cMoRemoveQueryFlags :: HG3DClass -> Int -> IO () -cMoRemoveQueryFlags a1 a2 = +{-# LINE 128 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} + +-- | As setQueryFlags, except the flags passed as parameters are removed from the existing flags on this object. +removeQueryFlags :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ flags + -> IO () + -- ^ +removeQueryFlags a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in - cMoRemoveQueryFlags'_ a1' a2' >>= \res -> + removeQueryFlags'_ a1' a2' >>= \res -> return () -{-# LINE 151 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -; -cMoGetQueryFlags :: HG3DClass -> IO (Int) -cMoGetQueryFlags a1 = +{-# LINE 133 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} + +-- | Returns the query flags relevant for this object. +getQueryFlags :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getQueryFlags a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMoGetQueryFlags'_ a1' a2' >>= \res -> + getQueryFlags'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 155 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -; -cMoSetVisibilityFlags :: HG3DClass -> Int -> IO () -cMoSetVisibilityFlags a1 a2 = +{-# LINE 138 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} + +-- | Sets the visiblity flags for this object. As well as a simple true/false value for visibility (as seen in setVisible), you can also set visiblity flags which when 'and'ed with the SceneManager +setVisibilityFlags :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ flags + -> IO () + -- ^ +setVisibilityFlags a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in - cMoSetVisibilityFlags'_ a1' a2' >>= \res -> + setVisibilityFlags'_ a1' a2' >>= \res -> return () -{-# LINE 159 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -; -cMoAddVisibilityFlags :: HG3DClass -> Int -> IO () -cMoAddVisibilityFlags a1 a2 = +{-# LINE 143 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} + +-- | As setVisibilityFlags, except the flags passed as parameters are appended to the existing flags on this object. +addVisibilityFlags :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ flags + -> IO () + -- ^ +addVisibilityFlags a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in - cMoAddVisibilityFlags'_ a1' a2' >>= \res -> + addVisibilityFlags'_ a1' a2' >>= \res -> return () -{-# LINE 163 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -; -cMoRemoveVisibilityFlags :: HG3DClass -> Int -> IO () -cMoRemoveVisibilityFlags a1 a2 = +{-# LINE 148 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} + +-- | As setVisibilityFlags, except the flags passed as parameters are removed from the existing flags on this object. +removeVisibilityFlags :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ flags + -> IO () + -- ^ +removeVisibilityFlags a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in - cMoRemoveVisibilityFlags'_ a1' a2' >>= \res -> + removeVisibilityFlags'_ a1' a2' >>= \res -> return () -{-# LINE 167 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -; -cMoGetVisibilityFlags :: HG3DClass -> IO (Int) -cMoGetVisibilityFlags a1 = +{-# LINE 153 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} + +-- | Returns the visibility flags relevant for this object. +getVisibilityFlags :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getVisibilityFlags a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMoGetVisibilityFlags'_ a1' a2' >>= \res -> + getVisibilityFlags'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 171 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -; -cMoGetLightMask :: HG3DClass -> IO (Int) -cMoGetLightMask a1 = +{-# LINE 158 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} + +-- | Get a bitwise mask which will filter the lights affecting this object By default, this mask is fully set meaning all lights will affect this object +getLightMask :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getLightMask a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMoGetLightMask'_ a1' a2' >>= \res -> + getLightMask'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 175 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -; -cMoSetLightMask :: HG3DClass -> Int -> IO () -cMoSetLightMask a1 a2 = +{-# LINE 163 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} + +-- | Set a bitwise mask which will filter the lights affecting this object This mask will be compared against the mask held against Light +setLightMask :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ lightMask + -> IO () + -- ^ +setLightMask a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in - cMoSetLightMask'_ a1' a2' >>= \res -> + setLightMask'_ a1' a2' >>= \res -> return () -{-# LINE 179 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -; -cMoHasEdgeList :: HG3DClass -> IO (Bool) -cMoHasEdgeList a1 = +{-# LINE 168 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} + +-- | Define a default implementation of method from ShadowCaster which implements no shadows. +hasEdgeList :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +hasEdgeList a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMoHasEdgeList'_ a1' a2' >>= \res -> + hasEdgeList'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 183 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -; -cMoSetCastShadows :: HG3DClass -> Bool -> IO () -cMoSetCastShadows a1 a2 = +{-# LINE 173 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} + +-- | Sets whether or not this object will cast shadows. This setting simply allows you to turn on/off shadows for a given object. An object will not cast shadows unless the scene supports it in any case (see SceneManager::setShadowTechniqueThis method normally refers to objects which block the light, but since LightMovableObject +setCastShadows :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ enabled + -> IO () + -- ^ +setCastShadows a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cMoSetCastShadows'_ a1' a2' >>= \res -> + setCastShadows'_ a1' a2' >>= \res -> return () -{-# LINE 187 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -; -cMoGetCastShadows :: HG3DClass -> IO (Bool) -cMoGetCastShadows a1 = +{-# LINE 178 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} + +-- | Returns whether shadow casting is enabled for this object. +getCastShadows :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getCastShadows a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMoGetCastShadows'_ a1' a2' >>= \res -> + getCastShadows'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 191 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -; -cMoGetReceivesShadows :: HG3DClass -> IO (Bool) -cMoGetReceivesShadows a1 = +{-# LINE 183 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} + +-- | Returns whether the MaterialRenderableMovableObject +getReceivesShadows :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getReceivesShadows a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMoGetReceivesShadows'_ a1' a2' >>= \res -> + getReceivesShadows'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 195 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -; -cMoGetTypeFlags :: HG3DClass -> IO (Int) -cMoGetTypeFlags a1 = +{-# LINE 188 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} + +-- | Get the distance to extrude for a point/spot light +getPointExtrusionDistance :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ l + -> IO (Float) + -- ^ +getPointExtrusionDistance a1 a2 = withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + alloca $ \a3' -> + getPointExtrusionDistance'_ a1' a2' a3' >>= \res -> + peekFloatConv a3'>>= \a3'' -> + return (a3'') +{-# LINE 194 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} + +-- | Get the 'type flags' for this MovableObjectA type flag identifies the type of the MovableObjectMovableObjectFactoryMovableObjectFactoryMovableObjectFactory +getTypeFlags :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getTypeFlags a1 = + withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMoGetTypeFlags'_ a1' a2' >>= \res -> + getTypeFlags'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 199 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -; -cMoSetDebugDisplayEnabled :: HG3DClass -> Bool -> IO () -cMoSetDebugDisplayEnabled a1 a2 = +{-# LINE 199 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} + +-- | Sets whether or not the debug display of this object is enabled. Some objects aren't visible themselves but it can be useful to display a debug representation of them. Or, objects may have an additional debug display on top of their regular display. This option enables / disables that debug display. Objects that are not visible never display debug geometry regardless of this setting. +setDebugDisplayEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ enabled + -> IO () + -- ^ +setDebugDisplayEnabled a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cMoSetDebugDisplayEnabled'_ a1' a2' >>= \res -> + setDebugDisplayEnabled'_ a1' a2' >>= \res -> return () -{-# LINE 203 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -; -cMoIsDebugDisplayEnabled :: HG3DClass -> IO (Bool) -cMoIsDebugDisplayEnabled a1 = +{-# LINE 204 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} + +-- | Gets whether debug display of this object is enabled. +isDebugDisplayEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isDebugDisplayEnabled a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMoIsDebugDisplayEnabled'_ a1' a2' >>= \res -> + isDebugDisplayEnabled'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 207 "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -; +{-# LINE 209 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo__notifyCreator_c" - cMoNotifyCreator'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) +-- | Set the default query flags for all future MovableObject +setDefaultQueryFlags :: Int -- ^ flags + -> IO () + -- ^ +setDefaultQueryFlags a1 = + let {a1' = fromIntegral a1} in + setDefaultQueryFlags'_ a1' >>= \res -> + return () +{-# LINE 213 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo__getCreator_c" - cMoGetCreator'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) +-- | Get the default query flags for all future MovableObject +getDefaultQueryFlags :: IO (Int) + -- ^ +getDefaultQueryFlags = + alloca $ \a1' -> + getDefaultQueryFlags'_ a1' >>= \res -> + peekIntConv a1'>>= \a1'' -> + return (a1'') +{-# LINE 217 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo__notifyManager_c" - cMoNotifyManager'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) +-- | Set the default visibility flags for all future MovableObject +setDefaultVisibilityFlags :: Int -- ^ flags + -> IO () + -- ^ +setDefaultVisibilityFlags a1 = + let {a1' = fromIntegral a1} in + setDefaultVisibilityFlags'_ a1' >>= \res -> + return () +{-# LINE 221 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo__getManager_c" - cMoGetManager'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) +-- | Get the default visibility flags for all future MovableObject +getDefaultVisibilityFlags :: IO (Int) + -- ^ +getDefaultVisibilityFlags = + alloca $ \a1' -> + getDefaultVisibilityFlags'_ a1' >>= \res -> + peekIntConv a1'>>= \a1'' -> + return (a1'') +{-# LINE 225 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs" #-} -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 ogre_mvo_destruct" + delete'_ :: ((HG3DClassPtr) -> (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 ogre_mvo_getName" + getName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (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 ogre_mvo_getMovableType" + getMovableType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (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 ogre_mvo_getParentNode" + getParentNode'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (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 ogre_mvo_getParentSceneNode" + getParentSceneNode'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (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 ogre_mvo_isParentTagPoint" + isParentTagPoint'_ :: ((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 ogre_mvo_isAttached" + isAttached'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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 ogre_mvo_detachFromParent" + detachFromParent'_ :: ((HG3DClassPtr) -> (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 ogre_mvo_isInScene" + isInScene'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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 ogre_mvo_getBoundingRadius" + getBoundingRadius'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (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 ogre_mvo_setVisible" + setVisible'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_mvo_getVisible" + getVisible'_ :: ((HG3DClassPtr) -> ((Ptr 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 ogre_mvo_isVisible" + isVisible'_ :: ((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 ogre_mvo_setRenderingDistance" + setRenderingDistance'_ :: ((HG3DClassPtr) -> (CFloat -> (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 ogre_mvo_getRenderingDistance" + getRenderingDistance'_ :: ((HG3DClassPtr) -> ((Ptr 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 ogre_mvo_setQueryFlags" + setQueryFlags'_ :: ((HG3DClassPtr) -> (CUInt -> (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 ogre_mvo_addQueryFlags" + addQueryFlags'_ :: ((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 ogre_mvo_removeQueryFlags" + removeQueryFlags'_ :: ((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 ogre_mvo_getQueryFlags" + getQueryFlags'_ :: ((HG3DClassPtr) -> ((Ptr 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 ogre_mvo_setVisibilityFlags" + setVisibilityFlags'_ :: ((HG3DClassPtr) -> (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 ogre_mvo_addVisibilityFlags" + addVisibilityFlags'_ :: ((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 ogre_mvo_removeVisibilityFlags" + removeVisibilityFlags'_ :: ((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 ogre_mvo_getVisibilityFlags" + getVisibilityFlags'_ :: ((HG3DClassPtr) -> ((Ptr 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 ogre_mvo_getLightMask" + getLightMask'_ :: ((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 ogre_mvo_setLightMask" + setLightMask'_ :: ((HG3DClassPtr) -> (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 ogre_mvo_hasEdgeList" + hasEdgeList'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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 ogre_mvo_setCastShadows" + setCastShadows'_ :: ((HG3DClassPtr) -> (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 ogre_mvo_getCastShadows" + getCastShadows'_ :: ((HG3DClassPtr) -> ((Ptr 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 ogre_mvo_getReceivesShadows" + getReceivesShadows'_ :: ((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 ogre_mvo_getPointExtrusionDistance" + getPointExtrusionDistance'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((Ptr CFloat) -> (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 ogre_mvo_getTypeFlags" + getTypeFlags'_ :: ((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 ogre_mvo_setDebugDisplayEnabled" + setDebugDisplayEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h cMo_isDebugDisplayEnabled_c" - cMoIsDebugDisplayEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h ogre_mvo_isDebugDisplayEnabled" + isDebugDisplayEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h ogre_mvo_setDefaultQueryFlags" + setDefaultQueryFlags'_ :: (CUInt -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h ogre_mvo_getDefaultQueryFlags" + getDefaultQueryFlags'_ :: ((Ptr CUInt) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h ogre_mvo_setDefaultVisibilityFlags" + setDefaultVisibilityFlags'_ :: (CUInt -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObject.chs.h ogre_mvo_getDefaultVisibilityFlags" + getDefaultVisibilityFlags'_ :: ((Ptr CUInt) -> (IO ()))
HGamer3D/Bindings/Ogre/ClassMovableObjectFactory.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassMovableObjectFactory.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,64 +39,87 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObjectFactory.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObjectFactory.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObjectFactory.chs" #-} +-- | +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = + withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 49 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObjectFactory.chs" #-} -cMofGetType :: HG3DClass -> IO (String) -cMofGetType a1 = +-- | Get the type of the object to be created. +getType :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getType a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> - cMofGetType'_ a1' a2' >>= \res -> + getType'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') -{-# LINE 60 "HGamer3D\\Bindings\\Ogre\\ClassMovableObjectFactory.chs" #-} -; -cMofDestroyInstance :: HG3DClass -> HG3DClass -> IO () -cMofDestroyInstance a1 a2 = +{-# LINE 54 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObjectFactory.chs" #-} + +-- | Destroy an instance of the object +destroyInstance :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ obj + -> IO () + -- ^ +destroyInstance a1 a2 = withHG3DClass a1 $ \a1' -> withHG3DClass a2 $ \a2' -> - cMofDestroyInstance'_ a1' a2' >>= \res -> + destroyInstance'_ a1' a2' >>= \res -> return () -{-# LINE 64 "HGamer3D\\Bindings\\Ogre\\ClassMovableObjectFactory.chs" #-} -; -cMofRequestTypeFlags :: HG3DClass -> IO (Bool) -cMofRequestTypeFlags a1 = +{-# LINE 59 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObjectFactory.chs" #-} + +-- | Does this factory require the allocation of a 'type flag', used to selectively include / exclude this type from scene queries? The default implementation here is to return 'false', ie not to request a unique type mask from RootMovableObject::getTypeFlagsMovableObjectRoot +requestTypeFlags :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +requestTypeFlags a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMofRequestTypeFlags'_ a1' a2' >>= \res -> + requestTypeFlags'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 68 "HGamer3D\\Bindings\\Ogre\\ClassMovableObjectFactory.chs" #-} -; -cMofGetTypeFlags :: HG3DClass -> IO (Int) -cMofGetTypeFlags a1 = +{-# LINE 64 ".\\HGamer3D\\Bindings\\Ogre\\ClassMovableObjectFactory.chs" #-} + +-- | Gets the type flag for this factory. A type flag is like a query flag, except that it applies to all instances of a certain type of object. +getTypeFlags :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getTypeFlags a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cMofGetTypeFlags'_ a1' a2' >>= \res -> + getTypeFlags'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 72 "HGamer3D\\Bindings\\Ogre\\ClassMovableObjectFactory.chs" #-} -; +{-# LINE 69 ".\\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 ogre_mvof_destruct" + delete'_ :: ((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 ogre_mvof_getType" + getType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObjectFactory.chs.h cMof_getTypeFlags_c" - cMofGetTypeFlags'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObjectFactory.chs.h ogre_mvof_destroyInstance" + destroyInstance'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObjectFactory.chs.h ogre_mvof_requestTypeFlags" + requestTypeFlags'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMovableObjectFactory.chs.h ogre_mvof_getTypeFlags" + getTypeFlags'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ())))
HGamer3D/Bindings/Ogre/ClassMultiRenderTarget.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassMultiRenderTarget.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,54 +39,64 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassMultiRenderTarget.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassMultiRenderTarget.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassMultiRenderTarget.chs" #-} -cMrtBindSurface :: HG3DClass -> Int -> HG3DClass -> IO () -cMrtBindSurface a1 a2 a3 = +-- | Bind a surface to a certain attachment point. +-- +bindSurface :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ attachment - 0 .. mCapabilities->getNumMultiRenderTargets()-1 + -> HG3DClass -- ^ target - RenderTexture to bind. + -> IO () + -- ^ +bindSurface a1 a2 a3 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in withHG3DClass a3 $ \a3' -> - cMrtBindSurface'_ a1' a2' a3' >>= \res -> + bindSurface'_ a1' a2' a3' >>= \res -> return () -{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassMultiRenderTarget.chs" #-} -; -cMrtUnbindSurface :: HG3DClass -> Int -> IO () -cMrtUnbindSurface a1 a2 = +{-# LINE 51 ".\\HGamer3D\\Bindings\\Ogre\\ClassMultiRenderTarget.chs" #-} + +-- | Unbind attachment. +unbindSurface :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ attachment + -> IO () + -- ^ +unbindSurface a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in - cMrtUnbindSurface'_ a1' a2' >>= \res -> + unbindSurface'_ a1' a2' >>= \res -> return () -{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassMultiRenderTarget.chs" #-} -; -cMrtSuggestPixelFormat :: HG3DClass -> IO (EnumPixelFormat) -cMrtSuggestPixelFormat a1 = +{-# LINE 56 ".\\HGamer3D\\Bindings\\Ogre\\ClassMultiRenderTarget.chs" #-} + +-- | Get a pointer to a bound surface +getBoundSurface :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ index + -> IO (HG3DClass) + -- ^ +getBoundSurface a1 a2 = withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cMrtSuggestPixelFormat'_ a1' a2' >>= \res -> - peekEnumUtil a2'>>= \a2'' -> - return (a2'') -{-# LINE 70 "HGamer3D\\Bindings\\Ogre\\ClassMultiRenderTarget.chs" #-} -; + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + getBoundSurface'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 62 ".\\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 ogre_mrt_bindSurface" + bindSurface'_ :: ((HG3DClassPtr) -> (CInt -> ((HG3DClassPtr) -> (IO ())))) -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMultiRenderTarget.chs.h cMrt_suggestPixelFormat_c" - cMrtSuggestPixelFormat'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMultiRenderTarget.chs.h ogre_mrt_unbindSurface" + unbindSurface'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMultiRenderTarget.chs.h ogre_mrt_getBoundSurface" + getBoundSurface'_ :: ((HG3DClassPtr) -> (CInt -> ((HG3DClassPtr) -> (IO ()))))
HGamer3D/Bindings/Ogre/ClassNode.hs view
@@ -2,709 +2,879 @@ -- 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 ()))) +{-# 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, 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. +-- + + +-- ClassNode.chs + +-- + +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.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +import HGamer3D.Bindings.Ogre.StructQuaternion +{-# LINE 45 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +import HGamer3D.Bindings.Ogre.StructVec3 +{-# LINE 46 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +import HGamer3D.Bindings.Ogre.EnumNodeTransformSpace +{-# LINE 47 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} +import HGamer3D.Bindings.Ogre.StructRadians +{-# LINE 48 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = + withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 53 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Returns the name of the node. +getName :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + getName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 58 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Gets this node's parent (NULL if this is the root). +getParent :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (HG3DClass) + -- ^ +getParent a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getParent'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 63 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Returns a quaternion representing the nodes orientation. +getOrientation :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Quaternion) + -- ^ +getOrientation a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getOrientation'_ a1' a2' >>= \res -> + peekQuaternion a2'>>= \a2'' -> + return (a2'') +{-# LINE 68 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Sets the orientation of this node via a quaternion. Orientations, unlike other transforms, are not always inherited by child nodes. Whether or not orientations affect the orientation of the child nodes depends on the setInheritOrientation option of the child. In some cases you want a orientating of a parent node to apply to a child node (e.g. where the child node is a part of the same object, so you want it to be the same relative orientation based on the parent's orientation), but not in other cases (e.g. where the child node is just for positioning another object, you want it to maintain it's own orientation). The default is to inherit as with other transforms. Note that rotations are oriented around the node's origin. +setOrientation :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Quaternion -- ^ q + -> IO () + -- ^ +setOrientation a1 a2 = + withHG3DClass a1 $ \a1' -> + withQuaternion a2 $ \a2' -> + setOrientation'_ a1' a2' >>= \res -> + return () +{-# LINE 73 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Sets the orientation of this node via quaternion parameters. Orientations, unlike other transforms, are not always inherited by child nodes. Whether or not orientations affect the orientation of the child nodes depends on the setInheritOrientation option of the child. In some cases you want a orientating of a parent node to apply to a child node (e.g. where the child node is a part of the same object, so you want it to be the same relative orientation based on the parent's orientation), but not in other cases (e.g. where the child node is just for positioning another object, you want it to maintain it's own orientation). The default is to inherit as with other transforms. Note that rotations are oriented around the node's origin. +setOrientation2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ w + -> Float -- ^ x + -> Float -- ^ y + -> Float -- ^ z + -> IO () + -- ^ +setOrientation2 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 + setOrientation2'_ a1' a2' a3' a4' a5' >>= \res -> + return () +{-# LINE 81 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Resets the nodes orientation (local axes as world axes, no rotation). Orientations, unlike other transforms, are not always inherited by child nodes. Whether or not orientations affect the orientation of the child nodes depends on the setInheritOrientation option of the child. In some cases you want a orientating of a parent node to apply to a child node (e.g. where the child node is a part of the same object, so you want it to be the same relative orientation based on the parent's orientation), but not in other cases (e.g. where the child node is just for positioning another object, you want it to maintain it's own orientation). The default is to inherit as with other transforms. Note that rotations are oriented around the node's origin. +resetOrientation :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +resetOrientation a1 = + withHG3DClass a1 $ \a1' -> + resetOrientation'_ a1' >>= \res -> + return () +{-# LINE 85 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Sets the position of the node relative to it's parent. +setPosition :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Vec3 -- ^ pos + -> IO () + -- ^ +setPosition a1 a2 = + withHG3DClass a1 $ \a1' -> + withVec3 a2 $ \a2' -> + setPosition'_ a1' a2' >>= \res -> + return () +{-# LINE 90 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Sets the position of the node relative to it's parent. +setPosition2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ x + -> Float -- ^ y + -> Float -- ^ z + -> IO () + -- ^ +setPosition2 a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + setPosition2'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 97 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Gets the position of the node relative to it's parent. +getPosition :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Vec3) + -- ^ +getPosition a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getPosition'_ a1' a2' >>= \res -> + peekVec3 a2'>>= \a2'' -> + return (a2'') +{-# LINE 102 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Sets the scaling factor applied to this node. Scaling factors, unlike other transforms, are not always inherited by child nodes. Whether or not scalings affect the size of the child nodes depends on the setInheritScale option of the child. In some cases you want a scaling factor of a parent node to apply to a child node (e.g. where the child node is a part of the same object, so you want it to be the same relative size based on the parent's size), but not in other cases (e.g. where the child node is just for positioning another object, you want it to maintain it's own size). The default is to inherit as with other transforms. Note that like rotations, scalings are oriented around the node's origin. +setScale :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Vec3 -- ^ scale + -> IO () + -- ^ +setScale a1 a2 = + withHG3DClass a1 $ \a1' -> + withVec3 a2 $ \a2' -> + setScale'_ a1' a2' >>= \res -> + return () +{-# LINE 107 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Sets the scaling factor applied to this node. Scaling factors, unlike other transforms, are not always inherited by child nodes. Whether or not scalings affect the size of the child nodes depends on the setInheritScale option of the child. In some cases you want a scaling factor of a parent node to apply to a child node (e.g. where the child node is a part of the same object, so you want it to be the same relative size based on the parent's size), but not in other cases (e.g. where the child node is just for positioning another object, you want it to maintain it's own size). The default is to inherit as with other transforms. Note that like rotations, scalings are oriented around the node's origin. +setScale2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ x + -> Float -- ^ y + -> Float -- ^ z + -> IO () + -- ^ +setScale2 a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + setScale2'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 114 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Gets the scaling factor of this node. +getScale :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Vec3) + -- ^ +getScale a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getScale'_ a1' a2' >>= \res -> + peekVec3 a2'>>= \a2'' -> + return (a2'') +{-# LINE 119 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Tells the node whether it should inherit orientation from it's parent node. Orientations, unlike other transforms, are not always inherited by child nodes. Whether or not orientations affect the orientation of the child nodes depends on the setInheritOrientation option of the child. In some cases you want a orientating of a parent node to apply to a child node (e.g. where the child node is a part of the same object, so you want it to be the same relative orientation based on the parent's orientation), but not in other cases (e.g. where the child node is just for positioning another object, you want it to maintain it's own orientation). The default is to inherit as with other transforms. +setInheritOrientation :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ inherit - If true, this node's orientation will be affected by its parent's orientation. If false, it will not be affected. + -> IO () + -- ^ +setInheritOrientation a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setInheritOrientation'_ a1' a2' >>= \res -> + return () +{-# LINE 124 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Returns true if this node is affected by orientation applied to the parent node. Orientations, unlike other transforms, are not always inherited by child nodes. Whether or not orientations affect the orientation of the child nodes depends on the setInheritOrientation option of the child. In some cases you want a orientating of a parent node to apply to a child node (e.g. where the child node is a part of the same object, so you want it to be the same relative orientation based on the parent's orientation), but not in other cases (e.g. where the child node is just for positioning another object, you want it to maintain it's own orientation). The default is to inherit as with other transforms. +--See setInheritOrientation for more info. +getInheritOrientation :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getInheritOrientation a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getInheritOrientation'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 129 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Tells the node whether it should inherit scaling factors from it's parent node. Scaling factors, unlike other transforms, are not always inherited by child nodes. Whether or not scalings affect the size of the child nodes depends on the setInheritScale option of the child. In some cases you want a scaling factor of a parent node to apply to a child node (e.g. where the child node is a part of the same object, so you want it to be the same relative size based on the parent's size), but not in other cases (e.g. where the child node is just for positioning another object, you want it to maintain it's own size). The default is to inherit as with other transforms. +setInheritScale :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ inherit - If true, this node's scale will be affected by its parent's scale. If false, it will not be affected. + -> IO () + -- ^ +setInheritScale a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setInheritScale'_ a1' a2' >>= \res -> + return () +{-# LINE 134 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Returns true if this node is affected by scaling factors applied to the parent node. See setInheritScale for more info. +getInheritScale :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getInheritScale a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getInheritScale'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 139 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Scales the node, combining it's current scale with the passed in scaling factor. This method applies an extra scaling factor to the node's existing scale, (unlike setScale which overwrites it) combining it's current scale with the new one. E.g. calling this method twice with Vector3(2,2,2) would have the same effect as setScale(Vector3(4,4,4)) if the existing scale was 1. Note that like rotations, scalings are oriented around the node's origin. +scale :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Vec3 -- ^ scale + -> IO () + -- ^ +scale a1 a2 = + withHG3DClass a1 $ \a1' -> + withVec3 a2 $ \a2' -> + scale'_ a1' a2' >>= \res -> + return () +{-# LINE 144 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Scales the node, combining it's current scale with the passed in scaling factor. This method applies an extra scaling factor to the node's existing scale, (unlike setScale which overwrites it) combining it's current scale with the new one. E.g. calling this method twice with Vector3(2,2,2) would have the same effect as setScale(Vector3(4,4,4)) if the existing scale was 1. Note that like rotations, scalings are oriented around the node's origin. +scale2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ x + -> Float -- ^ y + -> Float -- ^ z + -> IO () + -- ^ +scale2 a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + scale2'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 151 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Moves the node along the Cartesian axes. This method moves the node by the supplied vector along the world Cartesian axes, i.e. along world x,y,z +translate :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Vec3 -- ^ d - Vector with x,y,z values representing the translation. + -> EnumNodeTransformSpace -- ^ relativeTo - The space which this transform is relative to. + -> IO () + -- ^ +translate a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withVec3 a2 $ \a2' -> + let {a3' = cIntFromEnum a3} in + translate'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 157 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Moves the node along the Cartesian axes. This method moves the node by the supplied vector along the world Cartesian axes, i.e. along world x,y,z +translate2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ x + -> Float -- ^ y + -> Float -- ^ z - Real x, y and z values representing the translation. + -> EnumNodeTransformSpace -- ^ relativeTo - The space which this transform is relative to. + -> IO () + -- ^ +translate2 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 + translate2'_ a1' a2' a3' a4' a5' >>= \res -> + return () +{-# LINE 165 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Rotate the node around the Z-axis. +roll :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Radians -- ^ angle + -> EnumNodeTransformSpace -- ^ relativeTo + -> IO () + -- ^ +roll a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withRadians a2 $ \a2' -> + let {a3' = cIntFromEnum a3} in + roll'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 171 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Rotate the node around the X-axis. +pitch :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Radians -- ^ angle + -> EnumNodeTransformSpace -- ^ relativeTo + -> IO () + -- ^ +pitch a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withRadians a2 $ \a2' -> + let {a3' = cIntFromEnum a3} in + pitch'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 177 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Rotate the node around the Y-axis. +yaw :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Radians -- ^ angle + -> EnumNodeTransformSpace -- ^ relativeTo + -> IO () + -- ^ +yaw a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withRadians a2 $ \a2' -> + let {a3' = cIntFromEnum a3} in + yaw'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 183 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Rotate the node around an arbitrary axis. +rotate :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Vec3 -- ^ axis + -> Radians -- ^ angle + -> EnumNodeTransformSpace -- ^ relativeTo + -> IO () + -- ^ +rotate a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + withVec3 a2 $ \a2' -> + withRadians a3 $ \a3' -> + let {a4' = cIntFromEnum a4} in + rotate'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 190 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Rotate the node around an aritrary axis using a Quarternion. +rotate2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Quaternion -- ^ q + -> EnumNodeTransformSpace -- ^ relativeTo + -> IO () + -- ^ +rotate2 a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withQuaternion a2 $ \a2' -> + let {a3' = cIntFromEnum a3} in + rotate2'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 196 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Creates an unnamed new Node +createChild :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Vec3 -- ^ translate - Initial translation offset of child relative to parent + -> Quaternion -- ^ rotate - Initial rotation relative to parent + -> IO (HG3DClass) + -- ^ +createChild a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withVec3 a2 $ \a2' -> + withQuaternion a3 $ \a3' -> + alloca $ \a4' -> + createChild'_ a1' a2' a3' a4' >>= \res -> + peek a4'>>= \a4'' -> + return (a4'') +{-# LINE 203 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Creates a new named NodeThis creates a child node with a given name, which allows you to look the node up from the parent which holds this collection of nodes. +createChild2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> Vec3 -- ^ translate - Initial translation offset of child relative to parent + -> Quaternion -- ^ rotate - Initial rotation relative to parent + -> IO (HG3DClass) + -- ^ +createChild2 a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withVec3 a3 $ \a3' -> + withQuaternion a4 $ \a4' -> + alloca $ \a5' -> + createChild2'_ a1' a2' a3' a4' a5' >>= \res -> + peek a5'>>= \a5'' -> + return (a5'') +{-# LINE 211 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Adds a (precreated) child scene node to this node. If it is attached to another node, it must be detached first. +addChild :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ child - The Node which is to become a child node of this one + -> IO () + -- ^ +addChild a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + addChild'_ a1' a2' >>= \res -> + return () +{-# LINE 216 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Reports the number of child nodes under this one. +numChildren :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +numChildren a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + numChildren'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 221 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Gets a pointer to a child node. There is an alternate getChild method which returns a named child. +getChild :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ index + -> IO (HG3DClass) + -- ^ +getChild a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + getChild'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 227 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Gets a pointer to a named child node. +getChild2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (HG3DClass) + -- ^ +getChild2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + getChild2'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 233 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Drops the specified child from this node. Does not delete the node, just detaches it from this parent, potentially to be reattached elsewhere. There is also an alternate version which drops a named child from this node. +removeChild :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ index + -> IO (HG3DClass) + -- ^ +removeChild a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + removeChild'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 239 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Drops the specified child from this node. Does not delete the node, just detaches it from this parent, potentially to be reattached elsewhere. There is also an alternate version which drops a named child from this node. +removeChild2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ child + -> IO (HG3DClass) + -- ^ +removeChild2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + alloca $ \a3' -> + removeChild2'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 245 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Drops the named child from this node. Does not delete the node, just detaches it from this parent, potentially to be reattached elsewhere. +removeChild3 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (HG3DClass) + -- ^ +removeChild3 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + removeChild3'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 251 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Removes all child Nodes attached to this node. Does not delete the nodes, just detaches them from this parent, potentially to be reattached elsewhere. +removeAllChildren :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +removeAllChildren a1 = + withHG3DClass a1 $ \a1' -> + removeAllChildren'_ a1' >>= \res -> + return () +{-# LINE 255 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Sets the current transform of this node to be the 'initial state' ie that position / orientation / scale to be used as a basis for delta values used in keyframe animation. You never need to call this method unless you plan to animate this node. If you do plan to animate it, call this method once you've loaded the node with it's base state, ie the state on which all keyframes are based. If you never call this method, the initial state is the identity transform, ie do nothing. +setInitialState :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +setInitialState a1 = + withHG3DClass a1 $ \a1' -> + setInitialState'_ a1' >>= \res -> + return () +{-# LINE 259 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Resets the position / orientation / scale of this node to it's initial state, see setInitialState for more info. +resetToInitialState :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +resetToInitialState a1 = + withHG3DClass a1 $ \a1' -> + resetToInitialState'_ a1' >>= \res -> + return () +{-# LINE 263 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Gets the initial position of this node, see setInitialState for more info. Also resets the cumulative animation weight used for blending. +getInitialPosition :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Vec3) + -- ^ +getInitialPosition a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getInitialPosition'_ a1' a2' >>= \res -> + peekVec3 a2'>>= \a2'' -> + return (a2'') +{-# LINE 268 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Gets the local position, relative to this node, of the given world-space position +convertWorldToLocalPosition :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Vec3 -- ^ worldPos + -> IO (Vec3) + -- ^ +convertWorldToLocalPosition a1 a2 = + withHG3DClass a1 $ \a1' -> + withVec3 a2 $ \a2' -> + alloca $ \a3' -> + convertWorldToLocalPosition'_ a1' a2' a3' >>= \res -> + peekVec3 a3'>>= \a3'' -> + return (a3'') +{-# LINE 274 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Gets the world position of a point in the node local space useful for simple transforms that don't require a child node. +convertLocalToWorldPosition :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Vec3 -- ^ localPos + -> IO (Vec3) + -- ^ +convertLocalToWorldPosition a1 a2 = + withHG3DClass a1 $ \a1' -> + withVec3 a2 $ \a2' -> + alloca $ \a3' -> + convertLocalToWorldPosition'_ a1' a2' a3' >>= \res -> + peekVec3 a3'>>= \a3'' -> + return (a3'') +{-# LINE 280 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Gets the local orientation, relative to this node, of the given world-space orientation +convertWorldToLocalOrientation :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Quaternion -- ^ worldOrientation + -> IO (Quaternion) + -- ^ +convertWorldToLocalOrientation a1 a2 = + withHG3DClass a1 $ \a1' -> + withQuaternion a2 $ \a2' -> + alloca $ \a3' -> + convertWorldToLocalOrientation'_ a1' a2' a3' >>= \res -> + peekQuaternion a3'>>= \a3'' -> + return (a3'') +{-# LINE 286 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Gets the world orientation of an orientation in the node local space useful for simple transforms that don't require a child node. +convertLocalToWorldOrientation :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Quaternion -- ^ localOrientation + -> IO (Quaternion) + -- ^ +convertLocalToWorldOrientation a1 a2 = + withHG3DClass a1 $ \a1' -> + withQuaternion a2 $ \a2' -> + alloca $ \a3' -> + convertLocalToWorldOrientation'_ a1' a2' a3' >>= \res -> + peekQuaternion a3'>>= \a3'' -> + return (a3'') +{-# LINE 292 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Gets the initial orientation of this node, see setInitialState for more info. +getInitialOrientation :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Quaternion) + -- ^ +getInitialOrientation a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getInitialOrientation'_ a1' a2' >>= \res -> + peekQuaternion a2'>>= \a2'' -> + return (a2'') +{-# LINE 297 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Gets the initial position of this node, see setInitialState for more info. +getInitialScale :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Vec3) + -- ^ +getInitialScale a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getInitialScale'_ a1' a2' >>= \res -> + peekVec3 a2'>>= \a2'' -> + return (a2'') +{-# LINE 302 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Helper function, get the squared view depth. +getSquaredViewDepth :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ cam + -> IO (Float) + -- ^ +getSquaredViewDepth a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + alloca $ \a3' -> + getSquaredViewDepth'_ a1' a2' a3' >>= \res -> + peekFloatConv a3'>>= \a3'' -> + return (a3'') +{-# LINE 308 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | To be called in the event of transform changes to this node that require it's recalculation. This not only tags the node state as being 'dirty', it also requests it's parent to know about it's dirtiness so it will get an update next time. +needUpdate :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ forceParentUpdate - Even if the node thinks it has already told it's parent, tell it anyway + -> IO () + -- ^ +needUpdate a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + needUpdate'_ a1' a2' >>= \res -> + return () +{-# LINE 313 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Called by children to notify their parent that they need an update. +requestUpdate :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ child + -> Bool -- ^ forceParentUpdate - Even if the node thinks it has already told it's parent, tell it anyway + -> IO () + -- ^ +requestUpdate a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + let {a3' = fromBool a3} in + requestUpdate'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 319 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Called by children to notify their parent that they no longer need an update. +cancelUpdate :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ child + -> IO () + -- ^ +cancelUpdate a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cancelUpdate'_ a1' a2' >>= \res -> + return () +{-# LINE 324 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Queue a 'needUpdate' call to a node safely. You can't call needUpdate()Node::Listener +queueNeedUpdate :: HG3DClass -- ^ n + -> IO () + -- ^ +queueNeedUpdate a1 = + withHG3DClass a1 $ \a1' -> + queueNeedUpdate'_ a1' >>= \res -> + return () +{-# LINE 328 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + +-- | Process queued 'needUpdate' calls. +processQueuedUpdates :: IO () + -- ^ +processQueuedUpdates = + processQueuedUpdates'_ >>= \res -> + return () +{-# LINE 332 ".\\HGamer3D\\Bindings\\Ogre\\ClassNode.chs" #-} + + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_destruct" + delete'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_getName" + getName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_getParent" + getParent'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_getOrientation" + getOrientation'_ :: ((HG3DClassPtr) -> ((QuaternionPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_setOrientation" + setOrientation'_ :: ((HG3DClassPtr) -> ((QuaternionPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_setOrientation2" + setOrientation2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (CFloat -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_resetOrientation" + resetOrientation'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_setPosition" + setPosition'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_setPosition2" + setPosition2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_getPosition" + getPosition'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_setScale" + setScale'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_setScale2" + setScale2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_getScale" + getScale'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_setInheritOrientation" + setInheritOrientation'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_getInheritOrientation" + getInheritOrientation'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_setInheritScale" + setInheritScale'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_getInheritScale" + getInheritScale'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_scale" + scale'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_scale2" + scale2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_translate" + translate'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_translate2" + translate2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (CInt -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_roll" + roll'_ :: ((HG3DClassPtr) -> ((RadiansPtr) -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_pitch" + pitch'_ :: ((HG3DClassPtr) -> ((RadiansPtr) -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_yaw" + yaw'_ :: ((HG3DClassPtr) -> ((RadiansPtr) -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_rotate" + rotate'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> ((RadiansPtr) -> (CInt -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_rotate2" + rotate2'_ :: ((HG3DClassPtr) -> ((QuaternionPtr) -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_createChild" + createChild'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> ((QuaternionPtr) -> ((HG3DClassPtr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_createChild2" + createChild2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Vec3Ptr) -> ((QuaternionPtr) -> ((HG3DClassPtr) -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_addChild" + addChild'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_numChildren" + numChildren'_ :: ((HG3DClassPtr) -> ((Ptr CUShort) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_getChild" + getChild'_ :: ((HG3DClassPtr) -> (CUShort -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_getChild2" + getChild2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_removeChild" + removeChild'_ :: ((HG3DClassPtr) -> (CUShort -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_removeChild2" + removeChild2'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_removeChild3" + removeChild3'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_removeAllChildren" + removeAllChildren'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_setInitialState" + setInitialState'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_resetToInitialState" + resetToInitialState'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_getInitialPosition" + getInitialPosition'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_convertWorldToLocalPosition" + convertWorldToLocalPosition'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> ((Vec3Ptr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_convertLocalToWorldPosition" + convertLocalToWorldPosition'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> ((Vec3Ptr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_convertWorldToLocalOrientation" + convertWorldToLocalOrientation'_ :: ((HG3DClassPtr) -> ((QuaternionPtr) -> ((QuaternionPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_convertLocalToWorldOrientation" + convertLocalToWorldOrientation'_ :: ((HG3DClassPtr) -> ((QuaternionPtr) -> ((QuaternionPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_getInitialOrientation" + getInitialOrientation'_ :: ((HG3DClassPtr) -> ((QuaternionPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_getInitialScale" + getInitialScale'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_getSquaredViewDepth" + getSquaredViewDepth'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_needUpdate" + needUpdate'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_requestUpdate" + requestUpdate'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_cancelUpdate" + cancelUpdate'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_queueNeedUpdate" + queueNeedUpdate'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNode.chs.h ogre_nd_processQueuedUpdates" + processQueuedUpdates'_ :: (IO ())
HGamer3D/Bindings/Ogre/ClassNodeAnimationTrack.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,121 +39,172 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-} -cNoantCreateNodeKeyFrame :: HG3DClass -> Float -> IO (HG3DClass) -cNoantCreateNodeKeyFrame a1 a2 = +-- | Constructor. +new :: HG3DClass -- ^ parent + -> Int -- ^ handle + -> IO (HG3DClass) + -- ^ +new a1 a2 = withHG3DClass a1 $ \a1' -> - let {a2' = realToFrac a2} in + let {a2' = fromIntegral a2} in alloca $ \a3' -> - cNoantCreateNodeKeyFrame'_ a1' a2' a3' >>= \res -> + new'_ a1' a2' a3' >>= \res -> peek a3'>>= \a3'' -> return (a3'') -{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-} -; -cNoantGetAssociatedNode :: HG3DClass -> IO (HG3DClass) -cNoantGetAssociatedNode a1 = +{-# LINE 51 ".\\HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-} + +-- | Destructor. +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 55 ".\\HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-} + +-- | Returns a pointer to the associated Node +getAssociatedNode :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (HG3DClass) + -- ^ +getAssociatedNode a1 = + withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cNoantGetAssociatedNode'_ a1' a2' >>= \res -> + getAssociatedNode'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') -{-# LINE 65 "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-} -; -cNoantSetAssociatedNode :: HG3DClass -> HG3DClass -> IO () -cNoantSetAssociatedNode a1 a2 = +{-# LINE 60 ".\\HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-} + +-- | Sets the associated Node +setAssociatedNode :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ node + -> IO () + -- ^ +setAssociatedNode a1 a2 = withHG3DClass a1 $ \a1' -> withHG3DClass a2 $ \a2' -> - cNoantSetAssociatedNode'_ a1' a2' >>= \res -> + setAssociatedNode'_ a1' a2' >>= \res -> return () -{-# LINE 69 "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-} -; -cNoantSetUseShortestRotationPath :: HG3DClass -> Bool -> IO () -cNoantSetUseShortestRotationPath a1 a2 = +{-# LINE 65 ".\\HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-} + +-- | As the 'apply' method but applies to a specified Node +applyToNode :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ node + -> HG3DClass -- ^ timeIndex + -> Float -- ^ weight + -> Float -- ^ scale + -> IO () + -- ^ +applyToNode a1 a2 a3 a4 a5 = withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + withHG3DClass a3 $ \a3' -> + let {a4' = realToFrac a4} in + let {a5' = realToFrac a5} in + applyToNode'_ a1' a2' a3' a4' a5' >>= \res -> + return () +{-# LINE 73 ".\\HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-} + +-- | Sets the method of rotation calculation +setUseShortestRotationPath :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ useShortestPath + -> IO () + -- ^ +setUseShortestRotationPath a1 a2 = + withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cNoantSetUseShortestRotationPath'_ a1' a2' >>= \res -> + setUseShortestRotationPath'_ a1' a2' >>= \res -> return () -{-# LINE 73 "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-} -; -cNoantGetUseShortestRotationPath :: HG3DClass -> IO (Bool) -cNoantGetUseShortestRotationPath a1 = +{-# LINE 78 ".\\HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-} + +-- | Gets the method of rotation calculation +getUseShortestRotationPath :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getUseShortestRotationPath a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cNoantGetUseShortestRotationPath'_ a1' a2' >>= \res -> + getUseShortestRotationPath'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 77 "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-} -; -cNoantKeyFrameDataChanged :: HG3DClass -> IO () -cNoantKeyFrameDataChanged a1 = +{-# LINE 83 ".\\HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-} + +-- | Applies an animation track to the designated target. +apply :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ timeIndex + -> Float -- ^ weight + -> Float -- ^ scale + -> IO () + -- ^ +apply a1 a2 a3 a4 = withHG3DClass a1 $ \a1' -> - cNoantKeyFrameDataChanged'_ a1' >>= \res -> + withHG3DClass a2 $ \a2' -> + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + apply'_ a1' a2' a3' a4' >>= \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 = +{-# LINE 90 ".\\HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-} + +-- | Method to determine if this track has any KeyFrames which are doing anything useful - can be used to determine if this track can be optimised out. +hasNonZeroKeyFrames :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +hasNonZeroKeyFrames a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cNoantHasNonZeroKeyFrames'_ a1' a2' >>= \res -> + hasNonZeroKeyFrames'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 89 "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-} -; -cNoantOptimise :: HG3DClass -> IO () -cNoantOptimise a1 = +{-# LINE 95 ".\\HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-} + +-- | Optimise the current track by removing any duplicate keyframes. +optimise :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +optimise a1 = withHG3DClass a1 $ \a1' -> - cNoantOptimise'_ a1' >>= \res -> + optimise'_ a1' >>= \res -> return () -{-# LINE 92 "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs" #-} -; +{-# LINE 99 ".\\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 ogre_noat_construct" + new'_ :: ((HG3DClassPtr) -> (CUShort -> ((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 ogre_noat_destruct" + delete'_ :: ((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 ogre_noat_getAssociatedNode" + getAssociatedNode'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (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 ogre_noat_setAssociatedNode" + setAssociatedNode'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (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 ogre_noat_applyToNode" + applyToNode'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((HG3DClassPtr) -> (CFloat -> (CFloat -> (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 ogre_noat_setUseShortestRotationPath" + setUseShortestRotationPath'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_noat_getUseShortestRotationPath" + getUseShortestRotationPath'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs.h cNoant_optimise_c" - cNoantOptimise'_ :: ((HG3DClassPtr) -> (IO ())) +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs.h ogre_noat_apply" + apply'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (CFloat -> (CFloat -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs.h ogre_noat_hasNonZeroKeyFrames" + hasNonZeroKeyFrames'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNodeAnimationTrack.chs.h ogre_noat_optimise" + optimise'_ :: ((HG3DClassPtr) -> (IO ()))
HGamer3D/Bindings/Ogre/ClassNumericAnimationTrack.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassNumericAnimationTrack.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,43 +39,50 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassNumericAnimationTrack.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassNumericAnimationTrack.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\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 = +-- | Constructor. +new :: HG3DClass -- ^ parent + -> Int -- ^ handle + -> IO (HG3DClass) + -- ^ +new a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in alloca $ \a3' -> - cNuantGetNumericKeyFrame'_ a1' a2' a3' >>= \res -> + new'_ a1' a2' a3' >>= \res -> peek a3'>>= \a3'' -> return (a3'') -{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassNumericAnimationTrack.chs" #-} -; +{-# LINE 51 ".\\HGamer3D\\Bindings\\Ogre\\ClassNumericAnimationTrack.chs" #-} -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNumericAnimationTrack.chs.h cNuant_createNumericKeyFrame_c" - cNuantCreateNumericKeyFrame'_ :: ((HG3DClassPtr) -> (CFloat -> ((HG3DClassPtr) -> (IO ())))) +-- | Applies an animation track to the designated target. +apply :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ timeIndex + -> Float -- ^ weight + -> Float -- ^ scale + -> IO () + -- ^ +apply a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + apply'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 58 ".\\HGamer3D\\Bindings\\Ogre\\ClassNumericAnimationTrack.chs" #-} -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNumericAnimationTrack.chs.h cNuant_getNumericKeyFrame_c" - cNuantGetNumericKeyFrame'_ :: ((HG3DClassPtr) -> (CUShort -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNumericAnimationTrack.chs.h ogre_nuat_construct" + new'_ :: ((HG3DClassPtr) -> (CUShort -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassNumericAnimationTrack.chs.h ogre_nuat_apply" + apply'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (CFloat -> (CFloat -> (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.hs view
@@ -2,29 +2,34 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 --- +-- + +-- (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. +-- + -- ClassPtr.chs +-- Class Ptr Utilities + module HGamer3D.Bindings.Ogre.ClassPtr where import C2HS @@ -33,406 +38,174 @@ import Foreign.C import Monad (liftM, liftM2) +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle -{- 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 ClassAnimation -} +type ClassAnimation = Ptr (()) +{-# LINE 45 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassAnimationState -} +type ClassAnimationState = Ptr (()) +{-# LINE 47 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassAnimationStateSet -} +type ClassAnimationStateSet = Ptr (()) +{-# LINE 49 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassAnimationTrack -} +type ClassAnimationTrack = Ptr (()) +{-# LINE 51 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassArchive -} +type ClassArchive = Ptr (()) +{-# LINE 53 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassArchiveManager -} +type ClassArchiveManager = Ptr (()) +{-# LINE 55 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassBillboard -} +type ClassBillboard = Ptr (()) +{-# LINE 57 ".\\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" #-} +{-# LINE 59 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassBillboardChainFactory -} +type ClassBillboardChainFactory = Ptr (()) +{-# LINE 61 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassBillboardSet -} +type ClassBillboardSet = Ptr (()) +{-# LINE 63 ".\\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" #-} +{-# LINE 65 ".\\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" #-} +{-# LINE 67 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassCamera -} +type ClassCamera = Ptr (()) +{-# LINE 69 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassConfigFile -} +type ClassConfigFile = Ptr (()) +{-# LINE 71 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassControllerManager -} +type ClassControllerManager = Ptr (()) +{-# LINE 73 ".\\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" #-} +{-# LINE 75 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassEntityFactory -} +type ClassEntityFactory = Ptr (()) +{-# LINE 77 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassException -} +type ClassException = Ptr (()) +{-# LINE 79 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassFrustum -} +type ClassFrustum = Ptr (()) +{-# LINE 81 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassLight -} +type ClassLight = Ptr (()) +{-# LINE 83 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassLightFactory -} +type ClassLightFactory = Ptr (()) +{-# LINE 85 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassLog -} +type ClassLog = Ptr (()) +{-# LINE 87 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassLogManager -} +type ClassLogManager = Ptr (()) +{-# LINE 89 ".\\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" #-} +{-# LINE 91 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassManualObjectFactory -} +type ClassManualObjectFactory = Ptr (()) +{-# LINE 93 ".\\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" #-} +{-# LINE 95 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassMaterial -} +type ClassMaterial = Ptr (()) +{-# LINE 97 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassMaterialManager -} +type ClassMaterialManager = Ptr (()) +{-# LINE 99 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassMesh -} +type ClassMesh = Ptr (()) +{-# LINE 101 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassMeshManager -} +type ClassMeshManager = Ptr (()) +{-# LINE 103 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassMovableObject -} +type ClassMovableObject = Ptr (()) +{-# LINE 105 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassMovableObjectFactory -} +type ClassMovableObjectFactory = Ptr (()) +{-# LINE 107 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassMultiRenderTarget -} +type ClassMultiRenderTarget = Ptr (()) +{-# LINE 109 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassNode -} +type ClassNode = Ptr (()) +{-# LINE 111 ".\\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" #-} +{-# LINE 113 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassNumericAnimationTrack -} +type ClassNumericAnimationTrack = Ptr (()) +{-# LINE 115 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassRenderable -} +type ClassRenderable = Ptr (()) +{-# LINE 117 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassRenderSystem -} +type ClassRenderSystem = Ptr (()) +{-# LINE 119 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassRenderTarget -} +type ClassRenderTarget = Ptr (()) +{-# LINE 121 ".\\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" #-} +{-# LINE 123 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassRenderWindow -} +type ClassRenderWindow = Ptr (()) +{-# LINE 125 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassResource -} +type ClassResource = Ptr (()) +{-# LINE 127 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassResourceGroupManager -} +type ClassResourceGroupManager = Ptr (()) +{-# LINE 129 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassResourceManager -} +type ClassResourceManager = Ptr (()) +{-# LINE 131 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassRoot -} +type ClassRoot = Ptr (()) +{-# LINE 133 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassSceneManager -} +type ClassSceneManager = Ptr (()) +{-# LINE 135 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassSceneManagerFactory -} +type ClassSceneManagerFactory = Ptr (()) +{-# LINE 137 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassSceneNode -} +type ClassSceneNode = Ptr (()) +{-# LINE 139 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassSkeleton -} +type ClassSkeleton = Ptr (()) +{-# LINE 141 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassSkeletonManager -} +type ClassSkeletonManager = Ptr (()) +{-# LINE 143 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassTextureManager -} +type ClassTextureManager = Ptr (()) +{-# LINE 145 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassTimeIndex -} +type ClassTimeIndex = Ptr (()) +{-# LINE 147 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassVertexAnimationTrack -} +type ClassVertexAnimationTrack = Ptr (()) +{-# LINE 149 ".\\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" #-} +{-# LINE 151 ".\\HGamer3D\\Bindings\\Ogre\\ClassPtr.chs" #-} +{- class ClassWindowEventUtilities -} +type ClassWindowEventUtilities = Ptr (()) +{-# LINE 153 ".\\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.hs view
@@ -0,0 +1,738 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- + +-- (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. +-- + + +-- ClassRenderSystem.chs + +-- + +module HGamer3D.Bindings.Ogre.ClassRenderSystem where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} +import HGamer3D.Bindings.Ogre.StructColour +{-# LINE 45 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} +import HGamer3D.Bindings.Ogre.EnumGpuProgramType +{-# LINE 46 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Destructor. +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = + withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 51 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Returns the name of the rendering system. +getName :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + getName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 56 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Sets an option for this API Used to confirm the settings (normally chosen by the user) in order to make the renderer able to initialise with the settings as required. This may be video mode, D3D driver, full screen / windowed etc. Called automatically by the default configuration dialog, and by the restoration of saved settings. These settings are stored and only activated when RenderSystem::initialise or RenderSystem::reinitialiseIf using a custom configuration dialog, it is advised that the caller calls RenderSystem::getConfigOptions +setConfigOption :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name - The name of the option to alter. + -> String -- ^ value - The value to set the option to. + -> IO () + -- ^ +setConfigOption a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + setConfigOption'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 62 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Validates the options set for the rendering system, returning a message if there are problems. If the returned string is empty, there are no problems. +validateConfigOptions :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +validateConfigOptions a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + validateConfigOptions'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 67 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Restart the renderer (normally following a change in settings). +reinitialise :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +reinitialise a1 = + withHG3DClass a1 $ \a1' -> + reinitialise'_ a1' >>= \res -> + return () +{-# LINE 71 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Shutdown the renderer and cleanup resources. +shutdown :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +shutdown a1 = + withHG3DClass a1 $ \a1' -> + shutdown'_ a1' >>= \res -> + return () +{-# LINE 75 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Sets the colour & strength of the ambient (global directionless) light in the world. +setAmbientLight :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ r + -> Float -- ^ g + -> Float -- ^ b + -> IO () + -- ^ +setAmbientLight a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + setAmbientLight'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 82 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Sets whether or not dynamic lighting is enabled. +setLightingEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ enabled - If true, dynamic lighting is performed on geometry with normals supplied, geometry without normals will not be displayed. If false, no lighting is applied and all geometry will be full brightness. + -> IO () + -- ^ +setLightingEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setLightingEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 87 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Sets whether or not W-buffers are enabled if they are available for this renderer. +setWBufferEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ enabled - If true and the renderer supports them W-buffers will be used. If false W-buffers will not be used even if available. W-buffers are enabled by default for 16bit depth buffers and disabled for all other depths. + -> IO () + -- ^ +setWBufferEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setWBufferEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 92 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Returns true if the renderer will try to use W-buffers when avalible. +getWBufferEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getWBufferEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getWBufferEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 97 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Create a MultiRenderTarget +createMultiRenderTarget :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (HG3DClass) + -- ^ +createMultiRenderTarget a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + createMultiRenderTarget'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 103 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Destroys a render window +destroyRenderWindow :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO () + -- ^ +destroyRenderWindow a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + destroyRenderWindow'_ a1' a2' >>= \res -> + return () +{-# LINE 108 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Destroys a render texture +destroyRenderTexture :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO () + -- ^ +destroyRenderTexture a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + destroyRenderTexture'_ a1' a2' >>= \res -> + return () +{-# LINE 113 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Destroys a render target of any sort +destroyRenderTarget :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO () + -- ^ +destroyRenderTarget a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + destroyRenderTarget'_ a1' a2' >>= \res -> + return () +{-# LINE 118 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Returns a pointer to the render target with the passed name, or NULL if that render target cannot be found. +getRenderTarget :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (HG3DClass) + -- ^ +getRenderTarget a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + getRenderTarget'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 124 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Detaches the render target with the passed name from the render system and returns a pointer to it. If the render target cannot be found, NULL is returned. +detachRenderTarget :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (HG3DClass) + -- ^ +detachRenderTarget a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + detachRenderTarget'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 130 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Returns a description of an error code. +getErrorDescription :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ errorNumber + -> IO (String) + -- ^ +getErrorDescription a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloc64k $ \a3' -> + getErrorDescription'_ a1' a2' a3' >>= \res -> + peekCString a3'>>= \a3'' -> + return (a3'') +{-# LINE 136 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Defines whether or now fullscreen render windows wait for the vertical blank before flipping buffers. By default, all rendering windows wait for a vertical blank (when the CRT beam turns off briefly to move from the bottom right of the screen back to the top left) before flipping the screen buffers. This ensures that the image you see on the screen is steady. However it restricts the frame rate to the refresh rate of the monitor, and can slow the frame rate down. You can speed this up by not waiting for the blank, but this has the downside of introducing 'tearing' artefacts where part of the previous frame is still displayed as the buffers are switched. Speed vs quality, you choose. Has NO effect on windowed mode render targets. Only affects fullscreen mode. +setWaitForVerticalBlank :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ enabled - If true, the system waits for vertical blanks - quality over speed. If false it doesn't - speed over quality. + -> IO () + -- ^ +setWaitForVerticalBlank a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setWaitForVerticalBlank'_ a1' a2' >>= \res -> + return () +{-# LINE 141 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Returns true if the system is synchronising frames with the monitor vertical blank. +getWaitForVerticalBlank :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getWaitForVerticalBlank a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getWaitForVerticalBlank'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 146 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Are fixed-function lights provided in view space? Affects optimisation. +areFixedFunctionLightsInViewSpace :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +areFixedFunctionLightsInViewSpace a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + areFixedFunctionLightsInViewSpace'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 151 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Generates a packed data version of the passed in ColourValue suitable for use as with this RenderSystemSince different render systems have different colour data formats (eg RGBA for GL, ARGB for D3D) this method allows you to use 1 method for all. +convertColourValue :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Colour -- ^ colour - The colour to convert + -> IO (Int) + -- ^ pDest - Pointer to location to put the result. +convertColourValue a1 a2 = + withHG3DClass a1 $ \a1' -> + withColour a2 $ \a2' -> + alloca $ \a3' -> + convertColourValue'_ a1' a2' a3' >>= \res -> + peekIntConv a3'>>= \a3'' -> + return (a3'') +{-# LINE 157 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Turns stencil buffer checking on or off. Stencilling (masking off areas of the rendering target based on the stencil buffer) can be turned on or off using this method. By default, stencilling is disabled. +setStencilCheckEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ enabled + -> IO () + -- ^ +setStencilCheckEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setStencilCheckEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 162 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Sets whether or not normals are to be automatically normalised. This is useful when, for example, you are scaling SceneNodes such that normals may not be unit-length anymore. Note though that this has an overhead so should not be turn on unless you really need it. You should not normally call this direct unless you are rendering world geometry; set it on the Renderable +setNormaliseNormals :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ normalise + -> IO () + -- ^ +setNormaliseNormals a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setNormaliseNormals'_ a1' a2' >>= \res -> + return () +{-# LINE 167 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Only binds Gpu program parameters used for passes that have more than one iteration rendering +bindGpuProgramPassIterationParameters :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> EnumGpuProgramType -- ^ gptype + -> IO () + -- ^ +bindGpuProgramPassIterationParameters a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + bindGpuProgramPassIterationParameters'_ a1' a2' >>= \res -> + return () +{-# LINE 172 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Unbinds GpuPrograms of a given GpuProgramType. This returns the pipeline to fixed-function processing for this type. +unbindGpuProgram :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> EnumGpuProgramType -- ^ gptype + -> IO () + -- ^ +unbindGpuProgram a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + unbindGpuProgram'_ a1' a2' >>= \res -> + return () +{-# LINE 177 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Returns whether or not a Gpu program of the given type is currently bound. +isGpuProgramBound :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> EnumGpuProgramType -- ^ gptype + -> IO (Bool) + -- ^ +isGpuProgramBound a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + alloca $ \a3' -> + isGpuProgramBound'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 183 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Add a user clipping plane. +addClipPlane2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ A + -> Float -- ^ B + -> Float -- ^ C + -> Float -- ^ D + -> IO () + -- ^ +addClipPlane2 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 + addClipPlane2'_ a1' a2' a3' a4' a5' >>= \res -> + return () +{-# LINE 191 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Clears the user clipping region. +resetClipPlanes :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +resetClipPlanes a1 = + withHG3DClass a1 $ \a1' -> + resetClipPlanes'_ a1' >>= \res -> + return () +{-# LINE 195 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Sets whether or not vertex windings set should be inverted; this can be important for rendering reflections. +setInvertVertexWinding :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ invert + -> IO () + -- ^ +setInvertVertexWinding a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setInvertVertexWinding'_ a1' a2' >>= \res -> + return () +{-# LINE 200 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Indicates whether or not the vertex windings set will be inverted for the current render (e.g. reflections) RenderSystem::setInvertVertexWinding +getInvertVertexWinding :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getInvertVertexWinding a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getInvertVertexWinding'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 205 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Sets the 'scissor region' ie the region of the target in which rendering can take place. This method allows you to 'mask off' rendering in all but a given rectangular area as identified by the parameters to this method. Not all systems support this method. Check the RenderSystemCapabilities for the RSC_SCISSOR_TEST capability to see if it is supported. +setScissorTest :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ enabled - True to enable the scissor test, false to disable it. + -> Int -- ^ left - The location of the corners of the rectangle, expressed in pixels. + -> Int -- ^ top + -> Int -- ^ right + -> Int -- ^ bottom + -> IO () + -- ^ +setScissorTest a1 a2 a3 a4 a5 a6 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + let {a3' = fromIntegral a3} in + let {a4' = fromIntegral a4} in + let {a5' = fromIntegral a5} in + let {a6' = fromIntegral a6} in + setScissorTest'_ a1' a2' a3' a4' a5' a6' >>= \res -> + return () +{-# LINE 214 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Clears one or more frame buffers on the active render target. +clearFrameBuffer :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ buffers - Combination of one or more elements of FrameBufferType denoting which buffers are to be cleared + -> Colour -- ^ colour - The colour to clear the colour buffer with, if enabled + -> Float -- ^ depth - The value to initialise the depth buffer with, if enabled + -> Int -- ^ stencil - The value to initialise the stencil buffer with, if enabled. + -> IO () + -- ^ +clearFrameBuffer 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 + clearFrameBuffer'_ a1' a2' a3' a4' a5' >>= \res -> + return () +{-# LINE 222 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Returns the horizontal texel offset value required for mapping texel origins to pixel origins in this rendersystem. Since rendersystems sometimes disagree on the origin of a texel, mapping from texels to pixels can sometimes be problematic to implement generically. This method allows you to retrieve the offset required to map the origin of a texel to the origin of a pixel in the horizontal direction. +getHorizontalTexelOffset :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getHorizontalTexelOffset a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getHorizontalTexelOffset'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 227 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Returns the vertical texel offset value required for mapping texel origins to pixel origins in this rendersystem. Since rendersystems sometimes disagree on the origin of a texel, mapping from texels to pixels can sometimes be problematic to implement generically. This method allows you to retrieve the offset required to map the origin of a texel to the origin of a pixel in the vertical direction. +getVerticalTexelOffset :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getVerticalTexelOffset a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getVerticalTexelOffset'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 232 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Gets the minimum (closest) depth value to be used when rendering using identity transforms. When using identity transforms you can manually set the depth of a vertex; however the input values required differ per rendersystem. This method lets you retrieve the correct value. Renderable::getUseIdentityViewRenderable::getUseIdentityProjection +getMinimumDepthInputValue :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getMinimumDepthInputValue a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getMinimumDepthInputValue'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 237 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Gets the maximum (farthest) depth value to be used when rendering using identity transforms. When using identity transforms you can manually set the depth of a vertex; however the input values required differ per rendersystem. This method lets you retrieve the correct value. Renderable::getUseIdentityViewRenderable::getUseIdentityProjection +getMaximumDepthInputValue :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getMaximumDepthInputValue a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getMaximumDepthInputValue'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 242 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | set the current multi pass count value. This must be set prior to calling _render() +setCurrentPassIterationCount :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ count - Number of times to render the current state. + -> IO () + -- ^ +setCurrentPassIterationCount a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + setCurrentPassIterationCount'_ a1' a2' >>= \res -> + return () +{-# LINE 247 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Tell the render system whether to derive a depth bias on its own based on the values passed to it in setCurrentPassIterationCount. The depth bias set will be baseValue + iteration * multiplier +setDeriveDepthBias :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ derive - True to tell the RS to derive this automatically + -> Float -- ^ baseValue - The base value to which the multiplier should be added + -> Float -- ^ multiplier - The amount of depth bias to apply per iteration + -> Float -- ^ slopeScale - The constant slope scale bias for completeness + -> IO () + -- ^ +setDeriveDepthBias 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 + setDeriveDepthBias'_ a1' a2' a3' a4' a5' >>= \res -> + return () +{-# LINE 255 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Tell the rendersystem to perform any prep tasks it needs to directly before other threads which might access the rendering API are registered. Call this from your main thread before starting your other threads (which themselves should call registerThread() +-- +-- +-- +-- +-- +-- +-- +-- +-- +preExtraThreadsStarted :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +preExtraThreadsStarted a1 = + withHG3DClass a1 $ \a1' -> + preExtraThreadsStarted'_ a1' >>= \res -> + return () +{-# LINE 259 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | +postExtraThreadsStarted :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +postExtraThreadsStarted a1 = + withHG3DClass a1 $ \a1' -> + postExtraThreadsStarted'_ a1' >>= \res -> + return () +{-# LINE 263 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Register the an additional thread which may make calls to rendersystem-related objects. This method should only be called by additional threads during their initialisation. If they intend to use hardware rendering system resources they should call this method before doing anything related to the render system. Some rendering APIs require a per-thread setup and this method will sort that out. It is also necessary to call unregisterThread before the thread shuts down. This method takes no parameters - it must be called from the thread being registered and that context is enough. +registerThread :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +registerThread a1 = + withHG3DClass a1 $ \a1' -> + registerThread'_ a1' >>= \res -> + return () +{-# LINE 267 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Unregister an additional thread which may make calls to rendersystem-related objects. RenderSystem::registerThread +unregisterThread :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +unregisterThread a1 = + withHG3DClass a1 $ \a1' -> + unregisterThread'_ a1' >>= \res -> + return () +{-# LINE 271 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + +-- | Gets the number of display monitors. Root::getDisplayMonitorCount +getDisplayMonitorCount :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getDisplayMonitorCount a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getDisplayMonitorCount'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 276 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs" #-} + + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_destruct" + delete'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_getName" + getName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_setConfigOption" + setConfigOption'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_validateConfigOptions" + validateConfigOptions'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_reinitialise" + reinitialise'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_shutdown" + shutdown'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_setAmbientLight" + setAmbientLight'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_setLightingEnabled" + setLightingEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_setWBufferEnabled" + setWBufferEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_getWBufferEnabled" + getWBufferEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_createMultiRenderTarget" + createMultiRenderTarget'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_destroyRenderWindow" + destroyRenderWindow'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_destroyRenderTexture" + destroyRenderTexture'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_destroyRenderTarget" + destroyRenderTarget'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_getRenderTarget" + getRenderTarget'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_detachRenderTarget" + detachRenderTarget'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_getErrorDescription" + getErrorDescription'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CChar) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_setWaitForVerticalBlank" + setWaitForVerticalBlank'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_getWaitForVerticalBlank" + getWaitForVerticalBlank'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_areFixedFunctionLightsInViewSpace" + areFixedFunctionLightsInViewSpace'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_convertColourValue" + convertColourValue'_ :: ((HG3DClassPtr) -> ((ColourPtr) -> ((Ptr CUInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_setStencilCheckEnabled" + setStencilCheckEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_setNormaliseNormals" + setNormaliseNormals'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_bindGpuProgramPassIterationParameters" + bindGpuProgramPassIterationParameters'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_unbindGpuProgram" + unbindGpuProgram'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_isGpuProgramBound" + isGpuProgramBound'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_addClipPlane2" + addClipPlane2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (CFloat -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_resetClipPlanes" + resetClipPlanes'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_setInvertVertexWinding" + setInvertVertexWinding'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_getInvertVertexWinding" + getInvertVertexWinding'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_setScissorTest" + setScissorTest'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (CInt -> (CInt -> (CInt -> (IO ()))))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_clearFrameBuffer" + clearFrameBuffer'_ :: ((HG3DClassPtr) -> (CUInt -> ((ColourPtr) -> (CFloat -> (CUShort -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_getHorizontalTexelOffset" + getHorizontalTexelOffset'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_getVerticalTexelOffset" + getVerticalTexelOffset'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_getMinimumDepthInputValue" + getMinimumDepthInputValue'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_getMaximumDepthInputValue" + getMaximumDepthInputValue'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_setCurrentPassIterationCount" + setCurrentPassIterationCount'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_setDeriveDepthBias" + setDeriveDepthBias'_ :: ((HG3DClassPtr) -> (CInt -> (CFloat -> (CFloat -> (CFloat -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_preExtraThreadsStarted" + preExtraThreadsStarted'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_postExtraThreadsStarted" + postExtraThreadsStarted'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_registerThread" + registerThread'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_unregisterThread" + unregisterThread'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderSystem.chs.h ogre_rds_getDisplayMonitorCount" + getDisplayMonitorCount'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ())))
− 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.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,49 +39,126 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} +-- | +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = + withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 49 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} -cRtGetName :: HG3DClass -> IO (String) -cRtGetName a1 = +-- | Retrieve target's name. +getName :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getName a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> - cRtGetName'_ a1' a2' >>= \res -> + getName'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') -{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} -; -cRtUpdate :: HG3DClass -> Bool -> IO () -cRtUpdate a1 a2 = +{-# LINE 54 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} + +-- | Retrieve information about the render target. +getMetrics :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int, Int, Int) + -- ^ width +getMetrics a1 = withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + alloca $ \a3' -> + alloca $ \a4' -> + getMetrics'_ a1' a2' a3' a4' >>= \res -> + peekIntConv a2'>>= \a2'' -> + peekIntConv a3'>>= \a3'' -> + peekIntConv a4'>>= \a4'' -> + return (a2'', a3'', a4'') +{-# LINE 61 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} + +-- | +getWidth :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getWidth a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getWidth'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 66 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} + +-- | +getHeight :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getHeight a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getHeight'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 71 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} + +-- | +getColourDepth :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getColourDepth a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getColourDepth'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 76 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} + +-- | Tells the target to update it's contents. If OGRE is not running in an automatic rendering loop (started using Root::startRenderingThis allows OGRE to be used in multi-windowed utilities and for contents to be refreshed only when required, rather than constantly as with the automatic rendering loop. +update :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ swapBuffers - For targets that support double-buffering, if set to true, the target will immediately swap it's buffers after update. Otherwise, the buffers are not swapped, and you have to call swapBuffers yourself sometime later. You might want to do this on some rendersystems which pause for queued rendering commands to complete before accepting swap buffers calls - so you could do other CPU tasks whilst the queued commands complete. Or, you might do this if you want custom control over your windows, such as for externally created windows. + -> IO () + -- ^ +update a1 a2 = + withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cRtUpdate'_ a1' a2' >>= \res -> + update'_ a1' a2' >>= \res -> return () -{-# LINE 65 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} -; -cRtSwapBuffers :: HG3DClass -> Bool -> IO () -cRtSwapBuffers a1 a2 = +{-# LINE 81 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} + +-- | Swaps the frame buffers to display the next frame. For targets that are double-buffered so that no 'in-progress' versions of the scene are displayed during rendering. Once rendering has completed (to an off-screen version of the window) the buffers are swapped to display the new frame. +swapBuffers :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ waitForVSync - If true, the system waits for the next vertical blank period (when the CRT beam turns off as it travels from bottom-right to top-left at the end of the pass) before flipping. If false, flipping occurs no matter what the beam position. Waiting for a vertical blank can be slower (and limits the framerate to the monitor refresh rate) but results in a steadier image with no 'tearing' (a flicker resulting from flipping buffers when the beam is in the progress of drawing the last frame). + -> IO () + -- ^ +swapBuffers a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cRtSwapBuffers'_ a1' a2' >>= \res -> + swapBuffers'_ 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 = +{-# LINE 86 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} + +-- | Adds a viewport to the rendering target. A viewport is the rectangle into which rendering output is sent. This method adds a viewport to the render target, rendering from the supplied camera. The rest of the parameters are only required if you wish to add more than one viewport to a single rendering target. Note that size information passed to this method is passed as a parametric, i.e. it is relative rather than absolute. This is to allow viewports to automatically resize along with the target. +addViewport :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ cam - The camera from which the viewport contents will be rendered (mandatory) + -> Int -- ^ ZOrder - The relative order of the viewport with others on the target (allows overlapping viewports i.e. picture-in-picture). Higher ZOrders are on top of lower ones. The actual number is irrelevant, only the relative ZOrder matters (you can leave gaps in the numbering) + -> Float -- ^ left - The relative position of the left of the viewport on the target, as a value between 0 and 1. + -> Float -- ^ top - The relative position of the top of the viewport on the target, as a value between 0 and 1. + -> Float -- ^ width - The relative width of the viewport on the target, as a value between 0 and 1. + -> Float -- ^ height - The relative height of the viewport on the target, as a value between 0 and 1. + -> IO (HG3DClass) + -- ^ +addViewport a1 a2 a3 a4 a5 a6 a7 = withHG3DClass a1 $ \a1' -> withHG3DClass a2 $ \a2' -> let {a3' = fromIntegral a3} in @@ -98,358 +167,431 @@ let {a6' = realToFrac a6} in let {a7' = realToFrac a7} in alloca $ \a8' -> - cRtAddViewport'_ a1' a2' a3' a4' a5' a6' a7' a8' >>= \res -> + addViewport'_ 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 = +{-# LINE 97 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} + +-- | Returns the number of viewports attached to this target. +getNumViewports :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getNumViewports a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cRtGetNumViewports'_ a1' a2' >>= \res -> + getNumViewports'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 83 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} -; -cRtGetViewport :: HG3DClass -> Int -> IO (HG3DClass) -cRtGetViewport a1 a2 = +{-# LINE 102 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} + +-- | Retrieves a pointer to the viewport with the given index. +getViewport :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ index + -> IO (HG3DClass) + -- ^ +getViewport a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in alloca $ \a3' -> - cRtGetViewport'_ a1' a2' a3' >>= \res -> + getViewport'_ a1' a2' a3' >>= \res -> peek a3'>>= \a3'' -> return (a3'') -{-# LINE 88 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} -; -cRtRemoveViewport :: HG3DClass -> Int -> IO () -cRtRemoveViewport a1 a2 = +{-# LINE 108 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} + +-- | Removes a viewport at a given ZOrder. +removeViewport :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ ZOrder + -> IO () + -- ^ +removeViewport a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in - cRtRemoveViewport'_ a1' a2' >>= \res -> + removeViewport'_ a1' a2' >>= \res -> return () -{-# LINE 92 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} -; -cRtRemoveAllViewports :: HG3DClass -> IO () -cRtRemoveAllViewports a1 = +{-# LINE 113 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} + +-- | Removes all viewports on this target. +removeAllViewports :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +removeAllViewports a1 = withHG3DClass a1 $ \a1' -> - cRtRemoveAllViewports'_ a1' >>= \res -> + removeAllViewports'_ a1' >>= \res -> return () -{-# LINE 95 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} -; -cRtGetLastFPS :: HG3DClass -> IO (Float) -cRtGetLastFPS a1 = +{-# LINE 117 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} + +-- | Retieves details of current rendering performance. If the user application wishes to do it's own performance display, or use performance for some other means, this method allows it to retrieve the statistics. +getStatistics :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float, Float, Float, Float) + -- ^ lastFPS - Pointer to a float to receive the number of frames per second (FPS) based on the last frame rendered. +getStatistics a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cRtGetLastFPS'_ a1' a2' >>= \res -> + alloca $ \a3' -> + alloca $ \a4' -> + alloca $ \a5' -> + getStatistics'_ a1' a2' a3' a4' a5' >>= \res -> peekFloatConv a2'>>= \a2'' -> + peekFloatConv a3'>>= \a3'' -> + peekFloatConv a4'>>= \a4'' -> + peekFloatConv a5'>>= \a5'' -> + return (a2'', a3'', a4'', a5'') +{-# LINE 125 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} + +-- | Individual stats access - gets the number of frames per second (FPS) based on the last frame rendered. +getLastFPS :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getLastFPS a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getLastFPS'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> return (a2'') -{-# LINE 99 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} -; -cRtGetAverageFPS :: HG3DClass -> IO (Float) -cRtGetAverageFPS a1 = +{-# LINE 130 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} + +-- | Individual stats access - gets the average frames per second (FPS) since call to Root::startRendering +getAverageFPS :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getAverageFPS a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cRtGetAverageFPS'_ a1' a2' >>= \res -> + getAverageFPS'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') -{-# LINE 103 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} -; -cRtGetBestFPS :: HG3DClass -> IO (Float) -cRtGetBestFPS a1 = +{-# LINE 135 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} + +-- | Individual stats access - gets the best frames per second (FPS) since call to Root::startRendering +getBestFPS :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getBestFPS a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cRtGetBestFPS'_ a1' a2' >>= \res -> + getBestFPS'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') -{-# LINE 107 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} -; -cRtGetWorstFPS :: HG3DClass -> IO (Float) -cRtGetWorstFPS a1 = +{-# LINE 140 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} + +-- | Individual stats access - gets the worst frames per second (FPS) since call to Root::startRendering +getWorstFPS :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getWorstFPS a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cRtGetWorstFPS'_ a1' a2' >>= \res -> + getWorstFPS'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') -{-# LINE 111 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} -; -cRtGetBestFrameTime :: HG3DClass -> IO (Float) -cRtGetBestFrameTime a1 = +{-# LINE 145 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} + +-- | Individual stats access - gets the best frame time +getBestFrameTime :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getBestFrameTime a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cRtGetBestFrameTime'_ a1' a2' >>= \res -> + getBestFrameTime'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') -{-# LINE 115 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} -; -cRtGetWorstFrameTime :: HG3DClass -> IO (Float) -cRtGetWorstFrameTime a1 = +{-# LINE 150 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} + +-- | Individual stats access - gets the worst frame time +getWorstFrameTime :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getWorstFrameTime a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cRtGetWorstFrameTime'_ a1' a2' >>= \res -> + getWorstFrameTime'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') -{-# LINE 119 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} -; -cRtResetStatistics :: HG3DClass -> IO () -cRtResetStatistics a1 = +{-# LINE 155 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} + +-- | Resets saved frame-rate statistices. +resetStatistics :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +resetStatistics a1 = withHG3DClass a1 $ \a1' -> - cRtResetStatistics'_ a1' >>= \res -> + resetStatistics'_ a1' >>= \res -> return () -{-# LINE 122 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} -; -cRtRemoveAllListeners :: HG3DClass -> IO () -cRtRemoveAllListeners a1 = +{-# LINE 159 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} + +-- | Removes all listeners from this instance. +removeAllListeners :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +removeAllListeners a1 = withHG3DClass a1 $ \a1' -> - cRtRemoveAllListeners'_ a1' >>= \res -> + removeAllListeners'_ a1' >>= \res -> return () -{-# LINE 125 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} -; -cRtIsActive :: HG3DClass -> IO (Bool) -cRtIsActive a1 = +{-# LINE 163 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} + +-- | Used to retrieve or set the active state of the render target. +isActive :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isActive a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cRtIsActive'_ a1' a2' >>= \res -> + isActive'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 129 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} -; -cRtSetActive :: HG3DClass -> Bool -> IO () -cRtSetActive a1 a2 = +{-# LINE 168 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} + +-- | Used to set the active state of the render target. +setActive :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ state + -> IO () + -- ^ +setActive a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cRtSetActive'_ a1' a2' >>= \res -> + setActive'_ a1' a2' >>= \res -> return () -{-# LINE 133 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} -; -cRtSetAutoUpdated :: HG3DClass -> Bool -> IO () -cRtSetAutoUpdated a1 a2 = +{-# LINE 173 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} + +-- | Sets whether this target should be automatically updated if OgreRoot::_updateAllRenderTargetsBy default, if you use OgreRoot::startRenderingRoot::_updateAllRenderTargets +setAutoUpdated :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ autoupdate - If true, the render target is updated during the automatic render loop or when Root::_updateAllRenderTargets is called. If false, the target is only updated when its update() method is called explicitly. + -> IO () + -- ^ +setAutoUpdated a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cRtSetAutoUpdated'_ a1' a2' >>= \res -> + setAutoUpdated'_ a1' a2' >>= \res -> return () -{-# LINE 137 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} -; -cRtIsAutoUpdated :: HG3DClass -> IO (Bool) -cRtIsAutoUpdated a1 = +{-# LINE 178 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} + +-- | Gets whether this target is automatically updated if OgreRoot::_updateAllRenderTargets +isAutoUpdated :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isAutoUpdated a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cRtIsAutoUpdated'_ a1' a2' >>= \res -> + isAutoUpdated'_ 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 = +{-# LINE 183 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} + +-- | Writes the current contents of the render target to the named file. +writeContentsToFile :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ filename + -> IO () + -- ^ +writeContentsToFile a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> - cRtWriteContentsToFile'_ a1' a2' >>= \res -> + writeContentsToFile'_ a1' a2' >>= \res -> return () -{-# LINE 149 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} -; -cRtWriteContentsToTimestampedFile :: HG3DClass -> String -> String -> IO (String) -cRtWriteContentsToTimestampedFile a1 a2 a3 = +{-# LINE 188 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} + +-- | Writes the current contents of the render target to the (PREFIX)(time-stamp)(SUFFIX) file. +writeContentsToTimestampedFile :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ filenamePrefix + -> String -- ^ filenameSuffix + -> IO (String) + -- ^ return value - the name of the file used. +writeContentsToTimestampedFile a1 a2 a3 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> withCString a3 $ \a3' -> alloc64k $ \a4' -> - cRtWriteContentsToTimestampedFile'_ a1' a2' a3' a4' >>= \res -> + writeContentsToTimestampedFile'_ a1' a2' a3' a4' >>= \res -> peekCString a4'>>= \a4'' -> return (a4'') -{-# LINE 155 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} -; -cRtGetTriangleCount :: HG3DClass -> IO (Int) -cRtGetTriangleCount a1 = +{-# LINE 195 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} + +-- | +requiresTextureFlipping :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +requiresTextureFlipping a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cRtGetTriangleCount'_ a1' a2' >>= \res -> + requiresTextureFlipping'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 200 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} + +-- | Gets the number of triangles rendered in the last update() +getTriangleCount :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getTriangleCount a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getTriangleCount'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 159 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} -; -cRtGetBatchCount :: HG3DClass -> IO (Int) -cRtGetBatchCount a1 = +{-# LINE 205 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} + +-- | Gets the number of batches rendered in the last update() +getBatchCount :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getBatchCount a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cRtGetBatchCount'_ a1' a2' >>= \res -> + getBatchCount'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 163 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} -; -cRtIsPrimary :: HG3DClass -> IO (Bool) -cRtIsPrimary a1 = +{-# LINE 210 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} + +-- | Indicates whether this target is the primary window. The primary window is special in that it is destroyed when ogre is shut down, and cannot be destroyed directly. This is the case because it holds the context for vertex, index buffers and textures. +isPrimary :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isPrimary a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cRtIsPrimary'_ a1' a2' >>= \res -> + isPrimary'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 167 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} -; -cRtIsHardwareGammaEnabled :: HG3DClass -> IO (Bool) -cRtIsHardwareGammaEnabled a1 = +{-# LINE 215 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} + +-- | Indicates whether on rendering, linear colour space is converted to sRGB gamma colour space. This is the exact opposite conversion of what is indicated by Texture::isHardwareGammaEnabled, and can only be enabled on creation of the render target. For render windows, it's enabled through the 'gamma' creation misc parameter. For textures, it is enabled through the hwGamma parameter to the create call. +isHardwareGammaEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isHardwareGammaEnabled a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cRtIsHardwareGammaEnabled'_ a1' a2' >>= \res -> + isHardwareGammaEnabled'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 171 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} -; -cRtGetFSAA :: HG3DClass -> IO (Int) -cRtGetFSAA a1 = +{-# LINE 220 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} + +-- | Indicates whether multisampling is performed on rendering and at what level. +getFSAA :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getFSAA a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cRtGetFSAA'_ a1' a2' >>= \res -> + getFSAA'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 175 "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} -; -cRtGetFSAAHint :: HG3DClass -> IO (String) -cRtGetFSAAHint a1 = +{-# LINE 225 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs" #-} + +-- | Gets the FSAA hint (Root::createRenderWindow +getFSAAHint :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getFSAAHint a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> - cRtGetFSAAHint'_ a1' a2' >>= \res -> + getFSAAHint'_ 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" #-} -; +{-# LINE 230 ".\\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 ogre_rtgt_destruct" + delete'_ :: ((HG3DClassPtr) -> (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 ogre_rtgt_getName" + getName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (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 ogre_rtgt_getMetrics" + getMetrics'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> ((Ptr CUInt) -> ((Ptr CUInt) -> (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 ogre_rtgt_getWidth" + getWidth'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (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 ogre_rtgt_getHeight" + getHeight'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (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 ogre_rtgt_getColourDepth" + getColourDepth'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (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 ogre_rtgt_update" + update'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_rtgt_swapBuffers" + swapBuffers'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_rtgt_addViewport" + addViewport'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (CInt -> (CFloat -> (CFloat -> (CFloat -> (CFloat -> ((HG3DClassPtr) -> (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 ogre_rtgt_getNumViewports" + getNumViewports'_ :: ((HG3DClassPtr) -> ((Ptr CUShort) -> (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 ogre_rtgt_getViewport" + getViewport'_ :: ((HG3DClassPtr) -> (CUShort -> ((HG3DClassPtr) -> (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 ogre_rtgt_removeViewport" + removeViewport'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_rtgt_removeAllViewports" + removeAllViewports'_ :: ((HG3DClassPtr) -> (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 ogre_rtgt_getStatistics" + getStatistics'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> ((Ptr CFloat) -> ((Ptr CFloat) -> ((Ptr CFloat) -> (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 ogre_rtgt_getLastFPS" + getLastFPS'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (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 ogre_rtgt_getAverageFPS" + getAverageFPS'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (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 ogre_rtgt_getBestFPS" + getBestFPS'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (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 ogre_rtgt_getWorstFPS" + getWorstFPS'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (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 ogre_rtgt_getBestFrameTime" + getBestFrameTime'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (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 ogre_rtgt_getWorstFrameTime" + getWorstFrameTime'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (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 ogre_rtgt_resetStatistics" + resetStatistics'_ :: ((HG3DClassPtr) -> (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 ogre_rtgt_removeAllListeners" + removeAllListeners'_ :: ((HG3DClassPtr) -> (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 ogre_rtgt_isActive" + isActive'_ :: ((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 ogre_rtgt_setActive" + setActive'_ :: ((HG3DClassPtr) -> (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 ogre_rtgt_setAutoUpdated" + setAutoUpdated'_ :: ((HG3DClassPtr) -> (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 ogre_rtgt_isAutoUpdated" + isAutoUpdated'_ :: ((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 ogre_rtgt_writeContentsToFile" + writeContentsToFile'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (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 ogre_rtgt_writeContentsToTimestampedFile" + writeContentsToTimestampedFile'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((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 ogre_rtgt_requiresTextureFlipping" + requiresTextureFlipping'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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 ogre_rtgt_getTriangleCount" + getTriangleCount'_ :: ((HG3DClassPtr) -> ((Ptr 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 ogre_rtgt_getBatchCount" + getBatchCount'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h cRt__updateAutoUpdatedViewports_c" - cRtUpdateAutoUpdatedViewports'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h ogre_rtgt_isPrimary" + isPrimary'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h ogre_rtgt_isHardwareGammaEnabled" + isHardwareGammaEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h ogre_rtgt_getFSAA" + getFSAA'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTarget.chs.h ogre_rtgt_getFSAAHint" + getFSAAHint'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ())))
HGamer3D/Bindings/Ogre/ClassRenderTexture.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassRenderTexture.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,17 +39,27 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTexture.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTexture.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTexture.chs" #-} +-- | +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = + withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 49 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderTexture.chs" #-} + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderTexture.chs.h ogre_rtx_destruct" + delete'_ :: ((HG3DClassPtr) -> (IO ()))
HGamer3D/Bindings/Ogre/ClassRenderWindow.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,171 +39,236 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} -cRwSetFullscreen :: HG3DClass -> Bool -> Int -> Int -> IO () -cRwSetFullscreen a1 a2 a3 a4 = +-- | Alter fullscreen mode options. Nothing will happen unless the settings here are different from the current settings. +setFullscreen :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ fullScreen - Whether to use fullscreen mode or not. + -> Int -- ^ width - The new width to use + -> Int -- ^ height - The new height to use + -> IO () + -- ^ +setFullscreen 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 -> + setFullscreen'_ a1' a2' a3' a4' >>= \res -> return () -{-# LINE 63 "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} -; -cRwDestroy :: HG3DClass -> IO () -cRwDestroy a1 = +{-# LINE 52 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} + +-- | Destroys the window. +destroy :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +destroy a1 = withHG3DClass a1 $ \a1' -> - cRwDestroy'_ a1' >>= \res -> + destroy'_ a1' >>= \res -> return () -{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} -; -cRwResize :: HG3DClass -> Int -> Int -> IO () -cRwResize a1 a2 a3 = +{-# LINE 56 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} + +-- | Alter the size of the window. +resize :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ width + -> Int -- ^ height + -> IO () + -- ^ +resize a1 a2 a3 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in let {a3' = fromIntegral a3} in - cRwResize'_ a1' a2' a3' >>= \res -> + resize'_ a1' a2' a3' >>= \res -> return () -{-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} -; -cRwWindowMovedOrResized :: HG3DClass -> IO () -cRwWindowMovedOrResized a1 = +{-# LINE 62 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} + +-- | Notify that the window has been resized You don't need to call this unless you created the window externally. +windowMovedOrResized :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +windowMovedOrResized a1 = withHG3DClass a1 $ \a1' -> - cRwWindowMovedOrResized'_ a1' >>= \res -> + windowMovedOrResized'_ a1' >>= \res -> return () -{-# LINE 74 "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} -; -cRwReposition :: HG3DClass -> Int -> Int -> IO () -cRwReposition a1 a2 a3 = +{-# LINE 66 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} + +-- | Reposition the window. +reposition :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ left + -> Int -- ^ top + -> IO () + -- ^ +reposition a1 a2 a3 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in let {a3' = fromIntegral a3} in - cRwReposition'_ a1' a2' a3' >>= \res -> + reposition'_ a1' a2' a3' >>= \res -> return () -{-# LINE 79 "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} -; -cRwIsVisible :: HG3DClass -> IO (Bool) -cRwIsVisible a1 = +{-# LINE 72 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} + +-- | Indicates whether the window is visible (not minimized or obscured) +isVisible :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isVisible a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cRwIsVisible'_ a1' a2' >>= \res -> + isVisible'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 83 "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} -; -cRwSetVisible :: HG3DClass -> Bool -> IO () -cRwSetVisible a1 a2 = +{-# LINE 77 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} + +-- | Set the visibility state +setVisible :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ visible + -> IO () + -- ^ +setVisible a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cRwSetVisible'_ a1' a2' >>= \res -> + setVisible'_ a1' a2' >>= \res -> return () -{-# LINE 87 "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} -; -cRwIsActive :: HG3DClass -> IO (Bool) -cRwIsActive a1 = +{-# LINE 82 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} + +-- | Overridden from RenderTarget +isActive :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isActive a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cRwIsActive'_ a1' a2' >>= \res -> + isActive'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 91 "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} -; -cRwIsClosed :: HG3DClass -> IO (Bool) -cRwIsClosed a1 = +{-# LINE 87 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} + +-- | Indicates whether the window has been closed by the user. +isClosed :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isClosed a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cRwIsClosed'_ a1' a2' >>= \res -> + isClosed'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 95 "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} -; -cRwIsPrimary :: HG3DClass -> IO (Bool) -cRwIsPrimary a1 = +{-# LINE 92 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} + +-- | Indicates whether the window is the primary window. The primary window is special in that it is destroyed when ogre is shut down, and cannot be destroyed directly. This is the case because it holds the context for vertex, index buffers and textures. +isPrimary :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isPrimary a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cRwIsPrimary'_ a1' a2' >>= \res -> + isPrimary'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 99 "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} -; -cRwIsFullScreen :: HG3DClass -> IO (Bool) -cRwIsFullScreen a1 = +{-# LINE 97 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} + +-- | Returns true if window is running in fullscreen mode. +isFullScreen :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isFullScreen a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cRwIsFullScreen'_ a1' a2' >>= \res -> + isFullScreen'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 103 "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} -; -cRwSuggestPixelFormat :: HG3DClass -> IO (EnumPixelFormat) -cRwSuggestPixelFormat a1 = +{-# LINE 102 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} + +-- | Overloaded version of getMetrics from RenderTarget +getMetrics :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int, Int, Int, Int, Int) + -- ^ width +getMetrics 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 = + alloca $ \a3' -> + alloca $ \a4' -> + alloca $ \a5' -> + alloca $ \a6' -> + getMetrics'_ a1' a2' a3' a4' a5' a6' >>= \res -> + peekIntConv a2'>>= \a2'' -> + peekIntConv a3'>>= \a3'' -> + peekIntConv a4'>>= \a4'' -> + peekIntConv a5'>>= \a5'' -> + peekIntConv a6'>>= \a6'' -> + return (a2'', a3'', a4'', a5'', a6'') +{-# LINE 111 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} + +-- | Returns true if the window will automatically de-activate itself when it loses focus. +isDeactivatedOnFocusChange :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isDeactivatedOnFocusChange a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cRwIsDeactivatedOnFocusChange'_ a1' a2' >>= \res -> + isDeactivatedOnFocusChange'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 111 "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} -; +{-# LINE 116 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs.h cRw_setFullscreen_c" - cRwSetFullscreen'_ :: ((HG3DClassPtr) -> (CInt -> (CUInt -> (CUInt -> (IO ()))))) +-- | Indicates whether the window will automatically deactivate itself when it loses focus. 'true' is the default behavior. +setDeactivateOnFocusChange :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ deactivate - a value of 'true' will cause the window to deactivate itself when it loses focus. 'false' will allow it to continue to render even when window focus is lost. + -> IO () + -- ^ +setDeactivateOnFocusChange a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setDeactivateOnFocusChange'_ a1' a2' >>= \res -> + return () +{-# LINE 121 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs" #-} -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 ogre_rw_setFullscreen" + setFullscreen'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_rw_destroy" + destroy'_ :: ((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 ogre_rw_resize" + resize'_ :: ((HG3DClassPtr) -> (CUInt -> (CUInt -> (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 ogre_rw_windowMovedOrResized" + windowMovedOrResized'_ :: ((HG3DClassPtr) -> (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 ogre_rw_reposition" + reposition'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_rw_isVisible" + isVisible'_ :: ((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 ogre_rw_setVisible" + setVisible'_ :: ((HG3DClassPtr) -> (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 ogre_rw_isActive" + isActive'_ :: ((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 ogre_rw_isClosed" + isClosed'_ :: ((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 ogre_rw_isPrimary" + isPrimary'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs.h cRw_isDeactivatedOnFocusChange_c" - cRwIsDeactivatedOnFocusChange'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs.h ogre_rw_isFullScreen" + isFullScreen'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs.h ogre_rw_getMetrics" + getMetrics'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> ((Ptr CUInt) -> ((Ptr CUInt) -> ((Ptr CInt) -> ((Ptr CInt) -> (IO ()))))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs.h ogre_rw_isDeactivatedOnFocusChange" + isDeactivatedOnFocusChange'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderWindow.chs.h ogre_rw_setDeactivateOnFocusChange" + setDeactivateOnFocusChange'_ :: ((HG3DClassPtr) -> (CInt -> (IO ())))
+ HGamer3D/Bindings/Ogre/ClassRenderable.hs view
@@ -0,0 +1,255 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderable.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- + +-- (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. +-- + + +-- ClassRenderable.chs + +-- + +module HGamer3D.Bindings.Ogre.ClassRenderable where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderable.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderable.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderable.chs" #-} +import HGamer3D.Bindings.Ogre.StructSharedPtr +{-# LINE 45 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderable.chs" #-} + +-- | Virtual destructor needed as class has virtual methods. +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = + withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 50 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderable.chs" #-} + +-- | Retrieves a weak reference to the material this renderable object uses. Note that the Renderable +getMaterial :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (SharedPtr) + -- ^ +getMaterial a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getMaterial'_ a1' a2' >>= \res -> + peekSharedPtr a2'>>= \a2'' -> + return (a2'') +{-# LINE 55 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderable.chs" #-} + +-- | Called just prior to the RenderableOGRE is a queued renderer, so the actual render commands are executed at a later time than the point at which an object is discovered to be visible. This allows ordering & grouping of renders without the discovery process having to be aware of it. It also means OGRE uses declarative render information rather than immediate mode rendering - this is very useful in that certain effects and processes can automatically be applied to a wide range of scenes, but the downside is that special cases are more difficult to handle, because there is not the declared state to cope with it. This method allows a RenderableRenderableRenderable +preRender :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ sm + -> HG3DClass -- ^ rsys + -> IO (Bool) + -- ^ return value - true if the automatic render should proceed, false to skip it on the assumption that the +preRender a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + withHG3DClass a3 $ \a3' -> + alloca $ \a4' -> + preRender'_ a1' a2' a3' a4' >>= \res -> + peekBoolUtil a4'>>= \a4'' -> + return (a4'') +{-# LINE 62 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderable.chs" #-} + +-- | Called immediately after the Renderable +postRender :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ sm + -> HG3DClass -- ^ rsys + -> IO () + -- ^ +postRender a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + withHG3DClass a3 $ \a3' -> + postRender'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 68 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderable.chs" #-} + +-- | Returns the number of world transform matrices this renderable requires. When a renderable uses vertex blending, it uses multiple world matrices instead of a single one. Each vertex sent to the pipeline can reference one or more matrices in this list with given weights. If a renderable does not use vertex blending this method returns 1, which is the default for simplicity. +getNumWorldTransforms :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getNumWorldTransforms a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getNumWorldTransforms'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 73 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderable.chs" #-} + +-- | Sets whether or not to use an 'identity' projection. Usually RenderableRenderable::getUseIdentityProjection +setUseIdentityProjection :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ useIdentityProjection + -> IO () + -- ^ +setUseIdentityProjection a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setUseIdentityProjection'_ a1' a2' >>= \res -> + return () +{-# LINE 78 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderable.chs" #-} + +-- | Returns whether or not to use an 'identity' projection. Usually RenderableRenderable::setUseIdentityProjection +getUseIdentityProjection :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getUseIdentityProjection a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getUseIdentityProjection'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 83 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderable.chs" #-} + +-- | Sets whether or not to use an 'identity' view. Usually RenderableRenderable::getUseIdentityView +setUseIdentityView :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ useIdentityView + -> IO () + -- ^ +setUseIdentityView a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setUseIdentityView'_ a1' a2' >>= \res -> + return () +{-# LINE 88 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderable.chs" #-} + +-- | Returns whether or not to use an 'identity' view. Usually RenderableRenderable::setUseIdentityView +getUseIdentityView :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getUseIdentityView a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getUseIdentityView'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 93 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderable.chs" #-} + +-- | Returns the camera-relative squared depth of this renderable. Used to sort transparent objects. Squared depth is used rather than actual depth to avoid having to perform a square root on the result. +getSquaredViewDepth :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ cam + -> IO (Float) + -- ^ +getSquaredViewDepth a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + alloca $ \a3' -> + getSquaredViewDepth'_ a1' a2' a3' >>= \res -> + peekFloatConv a3'>>= \a3'' -> + return (a3'') +{-# LINE 99 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderable.chs" #-} + +-- | Method which reports whether this renderable would normally cast a shadow. Subclasses should override this if they could have been used to generate a shadow. +getCastsShadows :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getCastsShadows a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getCastsShadows'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 104 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderable.chs" #-} + +-- | Sets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting. +setPolygonModeOverrideable :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ override - true means that a lower camera detail will override this renderables detail level, false means it won't. + -> IO () + -- ^ +setPolygonModeOverrideable a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setPolygonModeOverrideable'_ a1' a2' >>= \res -> + return () +{-# LINE 109 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderable.chs" #-} + +-- | Gets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting. +getPolygonModeOverrideable :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getPolygonModeOverrideable a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getPolygonModeOverrideable'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 114 ".\\HGamer3D\\Bindings\\Ogre\\ClassRenderable.chs" #-} + + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderable.chs.h ogre_rndl_destruct" + delete'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderable.chs.h ogre_rndl_getMaterial" + getMaterial'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderable.chs.h ogre_rndl_preRender" + preRender'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderable.chs.h ogre_rndl_postRender" + postRender'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderable.chs.h ogre_rndl_getNumWorldTransforms" + getNumWorldTransforms'_ :: ((HG3DClassPtr) -> ((Ptr CUShort) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderable.chs.h ogre_rndl_setUseIdentityProjection" + setUseIdentityProjection'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderable.chs.h ogre_rndl_getUseIdentityProjection" + getUseIdentityProjection'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderable.chs.h ogre_rndl_setUseIdentityView" + setUseIdentityView'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderable.chs.h ogre_rndl_getUseIdentityView" + getUseIdentityView'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderable.chs.h ogre_rndl_getSquaredViewDepth" + getSquaredViewDepth'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderable.chs.h ogre_rndl_getCastsShadows" + getCastsShadows'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderable.chs.h ogre_rndl_setPolygonModeOverrideable" + setPolygonModeOverrideable'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRenderable.chs.h ogre_rndl_getPolygonModeOverrideable" + getPolygonModeOverrideable'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
− 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.hs view
@@ -0,0 +1,357 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 ".\\HGamer3D\\Bindings\\Ogre\\ClassResource.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- + +-- (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. +-- + + +-- ClassResource.chs + +-- + +module HGamer3D.Bindings.Ogre.ClassResource where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassResource.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassResource.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassResource.chs" #-} + +-- | Virtual destructor. Shouldn't need to be overloaded, as the resource deallocation code should reside in unload()Resource::unload() +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = + withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 49 ".\\HGamer3D\\Bindings\\Ogre\\ClassResource.chs" #-} + +-- | Prepares the resource for load, if it is not already. One can call prepare()load()load()prepare()load()prepare()prepare()prepare()load()prepare()load()prepare()prepare() +prepare :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ backgroundThread - Whether this is occurring in a background thread + -> IO () + -- ^ +prepare a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + prepare'_ a1' a2' >>= \res -> + return () +{-# LINE 54 ".\\HGamer3D\\Bindings\\Ogre\\ClassResource.chs" #-} + +-- | Loads the resource, if it is not already. If the resource is loaded from a file, loading is automatic. If not, if for example this resource gained it's data from procedural calls rather than loading from a file, then this resource will not reload on it's own. +load :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ backgroundThread - Indicates whether the caller of this method is the background resource loading thread. + -> IO () + -- ^ +load a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + load'_ a1' a2' >>= \res -> + return () +{-# LINE 59 ".\\HGamer3D\\Bindings\\Ogre\\ClassResource.chs" #-} + +-- | Reloads the resource, if it is already loaded. Calls unload()load() +reload :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +reload a1 = + withHG3DClass a1 $ \a1' -> + reload'_ a1' >>= \res -> + return () +{-# LINE 63 ".\\HGamer3D\\Bindings\\Ogre\\ClassResource.chs" #-} + +-- | Returns true if the Resource +isReloadable :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isReloadable a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + isReloadable'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 68 ".\\HGamer3D\\Bindings\\Ogre\\ClassResource.chs" #-} + +-- | Is this resource manually loaded? +isManuallyLoaded :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isManuallyLoaded a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + isManuallyLoaded'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 73 ".\\HGamer3D\\Bindings\\Ogre\\ClassResource.chs" #-} + +-- | Unloads the resource; this is not permanent, the resource can be reloaded later if required. +unload :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +unload a1 = + withHG3DClass a1 $ \a1' -> + unload'_ a1' >>= \res -> + return () +{-# LINE 77 ".\\HGamer3D\\Bindings\\Ogre\\ClassResource.chs" #-} + +-- | Retrieves info about the size of the resource. +getSize :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getSize a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getSize'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 82 ".\\HGamer3D\\Bindings\\Ogre\\ClassResource.chs" #-} + +-- | 'Touches' the resource to indicate it has been used. +touch :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +touch a1 = + withHG3DClass a1 $ \a1' -> + touch'_ a1' >>= \res -> + return () +{-# LINE 86 ".\\HGamer3D\\Bindings\\Ogre\\ClassResource.chs" #-} + +-- | Gets resource name. +getName :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + getName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 91 ".\\HGamer3D\\Bindings\\Ogre\\ClassResource.chs" #-} + +-- | Returns true if the Resource +isPrepared :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isPrepared a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + isPrepared'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 96 ".\\HGamer3D\\Bindings\\Ogre\\ClassResource.chs" #-} + +-- | Returns true if the Resource +isLoaded :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isLoaded a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + isLoaded'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 101 ".\\HGamer3D\\Bindings\\Ogre\\ClassResource.chs" #-} + +-- | Returns whether the resource is currently in the process of background loading. +isLoading :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isLoading a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + isLoading'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 106 ".\\HGamer3D\\Bindings\\Ogre\\ClassResource.chs" #-} + +-- | Returns whether this ResourceThis option only makes sense when you have built Ogreload()load()isLoaded() +isBackgroundLoaded :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isBackgroundLoaded a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + isBackgroundLoaded'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 111 ".\\HGamer3D\\Bindings\\Ogre\\ClassResource.chs" #-} + +-- | Tells the resource whether it is background loaded or not. Resource::isBackgroundLoaded +setBackgroundLoaded :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ bl + -> IO () + -- ^ +setBackgroundLoaded a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setBackgroundLoaded'_ a1' a2' >>= \res -> + return () +{-# LINE 116 ".\\HGamer3D\\Bindings\\Ogre\\ClassResource.chs" #-} + +-- | Escalates the loading of a background loaded resource. If a resource is set to load in the background, but something needs it before it's been loaded, there could be a problem. If the user of this resource really can't wait, they can escalate the loading which basically pulls the loading into the current thread immediately. If the resource is already being loaded but just hasn't quite finished then this method will simply wait until the background load is complete. +escalateLoading :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +escalateLoading a1 = + withHG3DClass a1 $ \a1' -> + escalateLoading'_ a1' >>= \res -> + return () +{-# LINE 120 ".\\HGamer3D\\Bindings\\Ogre\\ClassResource.chs" #-} + +-- | Gets the group which this resource is a member of. +getGroup :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getGroup a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + getGroup'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 125 ".\\HGamer3D\\Bindings\\Ogre\\ClassResource.chs" #-} + +-- | Change the resource group ownership of a ResourceThis method is generally reserved for internal use, although if you really know what you're doing you can use it to move this resource from one group to another. +changeGroupOwnership :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ newGroup - Name of the new group + -> IO () + -- ^ +changeGroupOwnership a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + changeGroupOwnership'_ a1' a2' >>= \res -> + return () +{-# LINE 130 ".\\HGamer3D\\Bindings\\Ogre\\ClassResource.chs" #-} + +-- | Gets the manager which created this resource. +getCreator :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (HG3DClass) + -- ^ +getCreator a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getCreator'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 135 ".\\HGamer3D\\Bindings\\Ogre\\ClassResource.chs" #-} + +-- | Get the origin of this resource, e.g. a script file name. This property will only contain something if the creator of this resource chose to populate it. Script loaders are advised to populate it. +getOrigin :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getOrigin a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + getOrigin'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 140 ".\\HGamer3D\\Bindings\\Ogre\\ClassResource.chs" #-} + +-- | Returns the number of times this resource has changed state, which generally means the number of times it has been loaded. Objects that build derived data based on the resource can check this value against a copy they kept last time they built this derived data, in order to know whether it needs rebuilding. This is a nice way of monitoring changes without having a tightly-bound callback. +getStateCount :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getStateCount a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getStateCount'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 145 ".\\HGamer3D\\Bindings\\Ogre\\ClassResource.chs" #-} + + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResource.chs.h ogre_rsrc_destruct" + delete'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResource.chs.h ogre_rsrc_prepare" + prepare'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResource.chs.h ogre_rsrc_load" + load'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResource.chs.h ogre_rsrc_reload" + reload'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResource.chs.h ogre_rsrc_isReloadable" + isReloadable'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResource.chs.h ogre_rsrc_isManuallyLoaded" + isManuallyLoaded'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResource.chs.h ogre_rsrc_unload" + unload'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResource.chs.h ogre_rsrc_getSize" + getSize'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResource.chs.h ogre_rsrc_touch" + touch'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResource.chs.h ogre_rsrc_getName" + getName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResource.chs.h ogre_rsrc_isPrepared" + isPrepared'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResource.chs.h ogre_rsrc_isLoaded" + isLoaded'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResource.chs.h ogre_rsrc_isLoading" + isLoading'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResource.chs.h ogre_rsrc_isBackgroundLoaded" + isBackgroundLoaded'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResource.chs.h ogre_rsrc_setBackgroundLoaded" + setBackgroundLoaded'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResource.chs.h ogre_rsrc_escalateLoading" + escalateLoading'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResource.chs.h ogre_rsrc_getGroup" + getGroup'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResource.chs.h ogre_rsrc_changeGroupOwnership" + changeGroupOwnership'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResource.chs.h ogre_rsrc_getCreator" + getCreator'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResource.chs.h ogre_rsrc_getOrigin" + getOrigin'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResource.chs.h ogre_rsrc_getStateCount" + getStateCount'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
− 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.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,592 +39,522 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} +-- | +new :: IO (HG3DClass) + -- ^ +new = + alloca $ \a1' -> + new'_ a1' >>= \res -> + peek a1'>>= \a1'' -> + return (a1'') +{-# LINE 49 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -cRgmCreateResourceGroup :: HG3DClass -> String -> Bool -> IO () -cRgmCreateResourceGroup a1 a2 a3 = +-- | +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 53 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} + +-- | Create a resource group. A resource group allows you to define a set of resources that can be loaded / unloaded as a unit. For example, it might be all the resources used for the level of a game. There is always one predefined resource group called ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAMEResourceGroupManager::INTERNAL_RESOURCE_GROUP_NAMEResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAMEOnce you have defined a resource group, resources which will be loaded as part of it are defined in one of 3 ways: +-- +-- +-- +-- +-- +-- +-- +createResourceGroup :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name - The name to give the resource group. + -> Bool -- ^ inGlobalPool - if true the resource will be loaded even a different group was requested in the load method as a parameter. + -> IO () + -- ^ +createResourceGroup a1 a2 a3 = + withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> let {a3' = fromBool a3} in - cRgmCreateResourceGroup'_ a1' a2' a3' >>= \res -> + createResourceGroup'_ a1' a2' a3' >>= \res -> return () -{-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmInitialiseResourceGroup :: HG3DClass -> String -> IO () -cRgmInitialiseResourceGroup a1 a2 = +{-# LINE 59 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} + +-- | Initialises a resource group. After creating a resource group, adding some resource locations, and perhaps pre-declaring some resources using declareResource() +-- +-- +-- +-- +--ResourceFailure to call this method means that loadResourceGroup will do nothing, and any resources you define in scripts will not be found. Similarly, once you have called this method you won't be able to pick up any new scripts or pre-declared resources, unless you call clearResourceGroup, set up declared resources, and call this method again. When you call Root::initialiseRoot::initialise +initialiseResourceGroup :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name - The name of the resource group to initialise + -> IO () + -- ^ +initialiseResourceGroup a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> - cRgmInitialiseResourceGroup'_ a1' a2' >>= \res -> + initialiseResourceGroup'_ a1' a2' >>= \res -> return () -{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmInitialiseAllResourceGroups :: HG3DClass -> IO () -cRgmInitialiseAllResourceGroups a1 = +{-# LINE 64 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} + +-- | Initialise all resource groups which are yet to be initialised. ResourceGroupManager::intialiseResourceGroup +initialiseAllResourceGroups :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +initialiseAllResourceGroups a1 = withHG3DClass a1 $ \a1' -> - cRgmInitialiseAllResourceGroups'_ a1' >>= \res -> + initialiseAllResourceGroups'_ a1' >>= \res -> return () -{-# LINE 69 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmPrepareResourceGroup :: HG3DClass -> String -> Bool -> Bool -> IO () -cRgmPrepareResourceGroup a1 a2 a3 a4 = +{-# LINE 68 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} + +-- | Prepares a resource group. Prepares any created resources which are part of the named group. Note that resources must have already been created by calling ResourceManager::createdeclareResource()ResourceGroupManager::linkWorldGeometryToResourceGroup +prepareResourceGroup :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name - The name of the resource group to prepare. + -> Bool -- ^ prepareMainResources - If true, prepares normal resources associated with the group (you might want to set this to false if you wanted to just prepare world geometry in bulk) + -> Bool -- ^ prepareWorldGeom - If true, prepares any linked world geometry + -> IO () + -- ^ +prepareResourceGroup 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 -> + prepareResourceGroup'_ a1' a2' a3' a4' >>= \res -> return () -{-# LINE 75 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmLoadResourceGroup :: HG3DClass -> String -> Bool -> Bool -> IO () -cRgmLoadResourceGroup a1 a2 a3 a4 = +{-# LINE 75 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} + +-- | Loads a resource group. Loads any created resources which are part of the named group. Note that resources must have already been created by calling ResourceManager::createdeclareResource()ResourceGroupManager::linkWorldGeometryToResourceGroup +loadResourceGroup :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name - The name of the resource group to load. + -> Bool -- ^ loadMainResources - If true, loads normal resources associated with the group (you might want to set this to false if you wanted to just load world geometry in bulk) + -> Bool -- ^ loadWorldGeom - If true, loads any linked world geometry + -> IO () + -- ^ +loadResourceGroup 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 -> + loadResourceGroup'_ a1' a2' a3' a4' >>= \res -> return () -{-# LINE 81 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmUnloadResourceGroup :: HG3DClass -> String -> Bool -> IO () -cRgmUnloadResourceGroup a1 a2 a3 = +{-# LINE 82 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} + +-- | Unloads a resource group. This method unloads all the resources that have been declared as being part of the named resource group. Note that these resources will still exist in their respective ResourceManagerResource::isReloadable +unloadResourceGroup :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name - The name to of the resource group to unload. + -> Bool -- ^ reloadableOnly - If set to true, only unload the resource that is reloadable. Because some resources isn't reloadable, they will be unloaded but can't load them later. Thus, you might not want to them unloaded. Or, you might unload all of them, and then populate them manually later. + -> IO () + -- ^ +unloadResourceGroup a1 a2 a3 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> let {a3' = fromBool a3} in - cRgmUnloadResourceGroup'_ a1' a2' a3' >>= \res -> + unloadResourceGroup'_ a1' a2' a3' >>= \res -> return () -{-# LINE 86 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmUnloadUnreferencedResourcesInGroup :: HG3DClass -> String -> Bool -> IO () -cRgmUnloadUnreferencedResourcesInGroup a1 a2 a3 = +{-# LINE 88 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} + +-- | Unload all resources which are not referenced by any other object. This method behaves like unloadResourceGroup, except that it only unloads resources in the group which are not in use, ie not referenced by other objects. This allows you to free up some memory selectively whilst still keeping the group around (and the resources present, just not using much memory). +unloadUnreferencedResourcesInGroup :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name - The name of the group to check for unreferenced resources + -> Bool -- ^ reloadableOnly - If true (the default), only unloads resources which can be subsequently automatically reloaded + -> IO () + -- ^ +unloadUnreferencedResourcesInGroup a1 a2 a3 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> let {a3' = fromBool a3} in - cRgmUnloadUnreferencedResourcesInGroup'_ a1' a2' a3' >>= \res -> + unloadUnreferencedResourcesInGroup'_ a1' a2' a3' >>= \res -> return () -{-# LINE 91 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmClearResourceGroup :: HG3DClass -> String -> IO () -cRgmClearResourceGroup a1 a2 = +{-# LINE 94 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} + +-- | Clears a resource group. This method unloads all resources in the group, but in addition it removes all those resources from their ResourceManagers, and then clears all the members from the list. That means after calling this method, there are no resources declared as part of the named group any more. Resource +clearResourceGroup :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name - The name to of the resource group to clear. + -> IO () + -- ^ +clearResourceGroup a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> - cRgmClearResourceGroup'_ a1' a2' >>= \res -> + clearResourceGroup'_ a1' a2' >>= \res -> return () -{-# LINE 95 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmDestroyResourceGroup :: HG3DClass -> String -> IO () -cRgmDestroyResourceGroup a1 a2 = +{-# LINE 99 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} + +-- | Destroys a resource group, clearing it first, destroying the resources which are part of it, and then removing it from the list of resource groups. +destroyResourceGroup :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name - The name of the resource group to destroy. + -> IO () + -- ^ +destroyResourceGroup a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> - cRgmDestroyResourceGroup'_ a1' a2' >>= \res -> + destroyResourceGroup'_ a1' a2' >>= \res -> return () -{-# LINE 99 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmIsResourceGroupInitialised :: HG3DClass -> String -> IO (Bool) -cRgmIsResourceGroupInitialised a1 a2 = +{-# LINE 104 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} + +-- | Checks the status of a resource group. Looks at the state of a resource group. If initialiseResourceGroup has been called for the resource group return true, otherwise return false. +isResourceGroupInitialised :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name - The name to of the resource group to access. + -> IO (Bool) + -- ^ +isResourceGroupInitialised a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> alloca $ \a3' -> - cRgmIsResourceGroupInitialised'_ a1' a2' a3' >>= \res -> + isResourceGroupInitialised'_ a1' a2' a3' >>= \res -> peekBoolUtil a3'>>= \a3'' -> return (a3'') -{-# LINE 104 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmIsResourceGroupLoaded :: HG3DClass -> String -> IO (Bool) -cRgmIsResourceGroupLoaded a1 a2 = +{-# LINE 110 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} + +-- | Checks the status of a resource group. Looks at the state of a resource group. If loadResourceGroup has been called for the resource group return true, otherwise return false. +isResourceGroupLoaded :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name - The name to of the resource group to access. + -> IO (Bool) + -- ^ +isResourceGroupLoaded a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> alloca $ \a3' -> - cRgmIsResourceGroupLoaded'_ a1' a2' a3' >>= \res -> + isResourceGroupLoaded'_ a1' a2' a3' >>= \res -> peekBoolUtil a3'>>= \a3'' -> return (a3'') -{-# LINE 109 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmResourceGroupExists :: HG3DClass -> String -> IO (Bool) -cRgmResourceGroupExists a1 a2 = +{-# LINE 116 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} + +-- | +resourceGroupExists :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (Bool) + -- ^ +resourceGroupExists a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> alloca $ \a3' -> - cRgmResourceGroupExists'_ a1' a2' a3' >>= \res -> + resourceGroupExists'_ 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 = +{-# LINE 122 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} + +-- | Method to add a resource location to for a given resource group. Resource +addResourceLocation :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name - The name of the resource location; probably a directory, zip file, URL etc. + -> String -- ^ locType - The codename for the resource type, which must correspond to the Archive factory which is providing the implementation. + -> String -- ^ resGroup - The name of the resource group for which this location is to apply. ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME is the default group which always exists, and can be used for resources which are unlikely to be unloaded until application shutdown. Otherwise it must be the name of a group; if it has not already been created with createResourceGroup then it is created automatically. + -> Bool -- ^ recursive - Whether subdirectories will be searched for files when using a pattern match (such as *.material), and whether subdirectories will be indexed. This can slow down initial loading of the archive and searches. When opening a resource you still need to use the fully qualified name, this allows duplicate names in alternate paths. + -> IO () + -- ^ +addResourceLocation 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 -> + addResourceLocation'_ a1' a2' a3' a4' a5' >>= \res -> return () -{-# LINE 121 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmRemoveResourceLocation :: HG3DClass -> String -> String -> IO () -cRgmRemoveResourceLocation a1 a2 a3 = +{-# LINE 130 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} + +-- | Removes a resource location from the search path. +removeResourceLocation :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> String -- ^ resGroup + -> IO () + -- ^ +removeResourceLocation a1 a2 a3 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> withCString a3 $ \a3' -> - cRgmRemoveResourceLocation'_ a1' a2' a3' >>= \res -> + removeResourceLocation'_ a1' a2' a3' >>= \res -> return () -{-# LINE 126 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmResourceLocationExists :: HG3DClass -> String -> String -> IO (Bool) -cRgmResourceLocationExists a1 a2 a3 = +{-# LINE 136 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} + +-- | Verify if a resource location exists for the given group. +resourceLocationExists :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> String -- ^ resGroup + -> IO (Bool) + -- ^ +resourceLocationExists a1 a2 a3 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> withCString a3 $ \a3' -> alloca $ \a4' -> - cRgmResourceLocationExists'_ a1' a2' a3' a4' >>= \res -> + resourceLocationExists'_ 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 = +{-# LINE 143 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} + +-- | Undeclare a resource. Note that this will not cause it to be unloaded if it is already loaded, nor will it destroy a resource which has already been created if initialiseResourceGroup has been called already. Only unloadResourceGroup / clearResourceGroup / destroyResourceGroup will do that. +undeclareResource :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name - The name of the resource. + -> String -- ^ groupName - The name of the group this resource was declared in. + -> IO () + -- ^ +undeclareResource a1 a2 a3 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> withCString a3 $ \a3' -> - cRgmUndeclareResource'_ a1' a2' a3' >>= \res -> + undeclareResource'_ 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 = +{-# LINE 149 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} + +-- | Find out if the named file exists in a group. +resourceExists :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ group - The name of the resource group + -> String -- ^ filename - Fully qualified name of the file to test for + -> IO (Bool) + -- ^ +resourceExists a1 a2 a3 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> withCString a3 $ \a3' -> alloca $ \a4' -> - cRgmResourceExists'_ a1' a2' a3' a4' >>= \res -> + resourceExists'_ 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 = +{-# LINE 156 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} + +-- | Find out if the named file exists in any group. +resourceExistsInAnyGroup :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ filename - Fully qualified name of the file to test for + -> IO (Bool) + -- ^ +resourceExistsInAnyGroup a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> alloca $ \a3' -> - cRgmResourceExistsInAnyGroup'_ a1' a2' a3' >>= \res -> + resourceExistsInAnyGroup'_ a1' a2' a3' >>= \res -> peekBoolUtil a3'>>= \a3'' -> return (a3'') -{-# LINE 173 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmFindGroupContainingResource :: HG3DClass -> String -> IO (String) -cRgmFindGroupContainingResource a1 a2 = +{-# LINE 162 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} + +-- | Find the group in which a resource exists. +findGroupContainingResource :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ filename - Fully qualified name of the file the resource should be found as + -> IO (String) + -- ^ return value - Name of the resource group the resource was found in. An exception is thrown if the group could not be determined. +findGroupContainingResource a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> alloc64k $ \a3' -> - cRgmFindGroupContainingResource'_ a1' a2' a3' >>= \res -> + findGroupContainingResource'_ 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 = +{-# LINE 168 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} + +-- | Delete a single resource file. +deleteResource :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ filename - The name of the file to delete. + -> String -- ^ groupName - The name of the group in which to search + -> String -- ^ locationPattern - If the resource group contains multiple locations, then usually first matching file found in any location will be deleted. If you want to be more specific, you can include a location pattern here and only locations which match that pattern (as determined by StringUtil::match) will be considered candidates for deletion. + -> IO () + -- ^ +deleteResource a1 a2 a3 a4 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> withCString a3 $ \a3' -> withCString a4 $ \a4' -> - cRgmDeleteResource'_ a1' a2' a3' a4' >>= \res -> + deleteResource'_ a1' a2' a3' a4' >>= \res -> return () -{-# LINE 210 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmDeleteMatchingResources :: HG3DClass -> String -> String -> String -> IO () -cRgmDeleteMatchingResources a1 a2 a3 a4 = +{-# LINE 175 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} + +-- | Delete all matching resource files. +deleteMatchingResources :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ filePattern - The pattern (see StringUtil::match) of the files to delete. + -> String -- ^ groupName - The name of the group in which to search + -> String -- ^ locationPattern - If the resource group contains multiple locations, then usually all matching files in any location will be deleted. If you want to be more specific, you can include a location pattern here and only locations which match that pattern (as determined by StringUtil::match) will be considered candidates for deletion. + -> IO () + -- ^ +deleteMatchingResources 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 -> + deleteMatchingResources'_ a1' a2' a3' a4' >>= \res -> return () -{-# LINE 224 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmSetWorldResourceGroupName :: HG3DClass -> String -> IO () -cRgmSetWorldResourceGroupName a1 a2 = +{-# LINE 182 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} + +-- | Sets the resource group that 'world' resources will use. This is the group which should be used by SceneManagers implementing world geometry when looking for their resources. Defaults to the DEFAULT_RESOURCE_GROUP_NAME but this can be altered. +setWorldResourceGroupName :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ groupName + -> IO () + -- ^ +setWorldResourceGroupName a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> - cRgmSetWorldResourceGroupName'_ a1' a2' >>= \res -> + setWorldResourceGroupName'_ a1' a2' >>= \res -> return () -{-# LINE 228 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmGetWorldResourceGroupName :: HG3DClass -> IO (String) -cRgmGetWorldResourceGroupName a1 = +{-# LINE 187 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} + +-- | Gets the resource group that 'world' resources will use. +getWorldResourceGroupName :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getWorldResourceGroupName a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> - cRgmGetWorldResourceGroupName'_ a1' a2' >>= \res -> + getWorldResourceGroupName'_ 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 = +{-# LINE 192 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} + +-- | Associates some world geometry with a resource group, causing it to be loaded / unloaded with the resource group. You would use this method to essentially defer a call to SceneManager::setWorldGeometry +linkWorldGeometryToResourceGroup :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ group - The name of the resource group + -> String -- ^ worldGeometry - The parameter which should be passed to setWorldGeometry + -> HG3DClass -- ^ sceneManager - The SceneManager which should be called + -> IO () + -- ^ +linkWorldGeometryToResourceGroup a1 a2 a3 a4 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> withCString a3 $ \a3' -> withHG3DClass a4 $ \a4' -> - cRgmLinkWorldGeometryToResourceGroup'_ a1' a2' a3' a4' >>= \res -> + linkWorldGeometryToResourceGroup'_ a1' a2' a3' a4' >>= \res -> return () -{-# LINE 238 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmUnlinkWorldGeometryFromResourceGroup :: HG3DClass -> String -> IO () -cRgmUnlinkWorldGeometryFromResourceGroup a1 a2 = +{-# LINE 199 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} + +-- | Clear any link to world geometry from a resource group. Basically undoes a previous call to linkWorldGeometryToResourceGroup. +unlinkWorldGeometryFromResourceGroup :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ group + -> IO () + -- ^ +unlinkWorldGeometryFromResourceGroup a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> - cRgmUnlinkWorldGeometryFromResourceGroup'_ a1' a2' >>= \res -> + unlinkWorldGeometryFromResourceGroup'_ a1' a2' >>= \res -> return () -{-# LINE 242 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; -cRgmIsResourceGroupInGlobalPool :: HG3DClass -> String -> IO (Bool) -cRgmIsResourceGroupInGlobalPool a1 a2 = +{-# LINE 204 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} + +-- | Checks the status of a resource group. Looks at the state of a resource group. If loadResourceGroup has been called for the resource group return true, otherwise return false. +isResourceGroupInGlobalPool :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name - The name to of the resource group to access. + -> IO (Bool) + -- ^ +isResourceGroupInGlobalPool a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> alloca $ \a3' -> - cRgmIsResourceGroupInGlobalPool'_ a1' a2' a3' >>= \res -> + isResourceGroupInGlobalPool'_ 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 = +{-# LINE 210 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} + +-- | Shutdown all ResourceManagers, performed as part of clean-up. +shutdownAll :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +shutdownAll a1 = withHG3DClass a1 $ \a1' -> - cRgmNotifyWorldGeometryStageEnded'_ a1' >>= \res -> + shutdownAll'_ a1' >>= \res -> return () -{-# LINE 283 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; --- created constructor function from default constructor -cRgmGetSingletonPtr :: IO (HG3DClass) -cRgmGetSingletonPtr = +{-# LINE 214 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} + +-- | Override standard Singleton retrieval. Why do we do this? Well, it's because the Singleton implementation is in a .h file, which means it gets compiled into anybody who includes it. This is needed for the Singleton template to work, but we actually only want it compiled into the implementation of the class based on the Singleton, not all of them. If we don't change this, we get link errors when trying to use the Singleton-based class from an outside dll. This method just delegates to the template version anyway, but the implementation stays in this single compilation unit, preventing link errors. +getSingletonPtr :: IO (HG3DClass) + -- ^ +getSingletonPtr = alloca $ \a1' -> - cRgmGetSingletonPtr'_ a1' >>= \res -> + getSingletonPtr'_ a1' >>= \res -> peek a1'>>= \a1'' -> return (a1'') -{-# LINE 287 "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs" #-} -; +{-# LINE 218 ".\\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 ogre_rgmgr_construct" + new'_ :: ((HG3DClassPtr) -> (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 ogre_rgmgr_destruct" + delete'_ :: ((HG3DClassPtr) -> (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 ogre_rgmgr_createResourceGroup" + createResourceGroup'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> (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 ogre_rgmgr_initialiseResourceGroup" + initialiseResourceGroup'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_resourceExists_c" - cRgmResourceExists'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ()))))) +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h ogre_rgmgr_initialiseAllResourceGroups" + initialiseAllResourceGroups'_ :: ((HG3DClassPtr) -> (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 ogre_rgmgr_prepareResourceGroup" + prepareResourceGroup'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> (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 ogre_rgmgr_loadResourceGroup" + loadResourceGroup'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> (CInt -> (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 ogre_rgmgr_unloadResourceGroup" + unloadResourceGroup'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> (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 ogre_rgmgr_unloadUnreferencedResourcesInGroup" + unloadUnreferencedResourcesInGroup'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> (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 ogre_rgmgr_clearResourceGroup" + clearResourceGroup'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (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 ogre_rgmgr_destroyResourceGroup" + destroyResourceGroup'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_deleteResource_c" - cRgmDeleteResource'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO ()))))) +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h ogre_rgmgr_isResourceGroupInitialised" + isResourceGroupInitialised'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (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 ogre_rgmgr_isResourceGroupLoaded" + isResourceGroupLoaded'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (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 ogre_rgmgr_resourceGroupExists" + resourceGroupExists'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (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 ogre_rgmgr_addResourceLocation" + addResourceLocation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CChar) -> (CInt -> (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 ogre_rgmgr_removeResourceLocation" + removeResourceLocation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((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 ogre_rgmgr_resourceLocationExists" + resourceLocationExists'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CInt) -> (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 ogre_rgmgr_undeclareResource" + undeclareResource'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (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 ogre_rgmgr_resourceExists" + resourceExists'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CInt) -> (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 ogre_rgmgr_resourceExistsInAnyGroup" + resourceExistsInAnyGroup'_ :: ((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 ogre_rgmgr_findGroupContainingResource" + findGroupContainingResource'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (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 ogre_rgmgr_deleteResource" + deleteResource'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CChar) -> (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 ogre_rgmgr_deleteMatchingResources" + deleteMatchingResources'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((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 ogre_rgmgr_setWorldResourceGroupName" + setWorldResourceGroupName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (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 ogre_rgmgr_getWorldResourceGroupName" + getWorldResourceGroupName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (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 ogre_rgmgr_linkWorldGeometryToResourceGroup" + linkWorldGeometryToResourceGroup'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (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 ogre_rgmgr_unlinkWorldGeometryFromResourceGroup" + unlinkWorldGeometryFromResourceGroup'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm__notifyWorldGeometryStageStarted_c" - cRgmNotifyWorldGeometryStageStarted'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h ogre_rgmgr_isResourceGroupInGlobalPool" + isResourceGroupInGlobalPool'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (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 ogre_rgmgr_shutdownAll" + shutdownAll'_ :: ((HG3DClassPtr) -> (IO ())) -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h cRgm_getSingletonPtr_c" - cRgmGetSingletonPtr'_ :: ((HG3DClassPtr) -> (IO ())) +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceGroupManager.chs.h ogre_rgmgr_getSingletonPtr" + getSingletonPtr'_ :: ((HG3DClassPtr) -> (IO ()))
HGamer3D/Bindings/Ogre/ClassResourceManager.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,251 +39,297 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} +-- | +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = + withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 49 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -cRmSetMemoryBudget :: HG3DClass -> Int -> IO () -cRmSetMemoryBudget a1 a2 = +-- | Set a limit on the amount of memory this resource handler may use. If, when asked to load a new resource, the manager believes it will exceed this memory budget, it will temporarily unload a resource to make room for the new one. This unloading is not permanent and the Resource +setMemoryBudget :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ bytes + -> IO () + -- ^ +setMemoryBudget a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in - cRmSetMemoryBudget'_ a1' a2' >>= \res -> + setMemoryBudget'_ a1' a2' >>= \res -> return () -{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -; -cRmGetMemoryBudget :: HG3DClass -> IO (Int) -cRmGetMemoryBudget a1 = +{-# LINE 54 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} + +-- | Get the limit on the amount of memory this resource handler may use. +getMemoryBudget :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getMemoryBudget a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cRmGetMemoryBudget'_ a1' a2' >>= \res -> + getMemoryBudget'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 65 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -; -cRmGetMemoryUsage :: HG3DClass -> IO (Int) -cRmGetMemoryUsage a1 = +{-# LINE 59 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} + +-- | Gets the current memory usage, in bytes. +getMemoryUsage :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getMemoryUsage a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cRmGetMemoryUsage'_ a1' a2' >>= \res -> + getMemoryUsage'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 69 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -; -cRmUnload :: HG3DClass -> String -> IO () -cRmUnload a1 a2 = +{-# LINE 64 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} + +-- | Unloads a single resource by name. Unloaded resources are not removed, they simply free up their memory as much as they can and wait to be reloaded. ResourceGroupManager +unload :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO () + -- ^ +unload a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> - cRmUnload'_ a1' a2' >>= \res -> + unload'_ a1' a2' >>= \res -> return () -{-# LINE 73 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -; -cRmUnloadAll :: HG3DClass -> Bool -> IO () -cRmUnloadAll a1 a2 = +{-# LINE 69 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} + +-- | Unloads all resources. Unloaded resources are not removed, they simply free up their memory as much as they can and wait to be reloaded. ResourceGroupManagerResource::isReloadable +unloadAll :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ reloadableOnly - If true (the default), only unload the resource that is reloadable. Because some resources isn't reloadable, they will be unloaded but can't load them later. Thus, you might not want to them unloaded. Or, you might unload all of them, and then populate them manually later. + -> IO () + -- ^ +unloadAll a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cRmUnloadAll'_ a1' a2' >>= \res -> + unloadAll'_ a1' a2' >>= \res -> return () -{-# LINE 77 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -; -cRmReloadAll :: HG3DClass -> Bool -> IO () -cRmReloadAll a1 a2 = +{-# LINE 74 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} + +-- | Caused all currently loaded resources to be reloaded. All resources currently being held in this manager which are also marked as currently loaded will be unloaded, then loaded again. Resource::isReloadable +reloadAll :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ reloadableOnly - If true (the default), only reload the resource that is reloadable. Because some resources isn't reloadable, they will be unloaded but can't loaded again. Thus, you might not want to them unloaded. Or, you might unload all of them, and then populate them manually later. + -> IO () + -- ^ +reloadAll a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cRmReloadAll'_ a1' a2' >>= \res -> + reloadAll'_ a1' a2' >>= \res -> return () -{-# LINE 81 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -; -cRmUnloadUnreferencedResources :: HG3DClass -> Bool -> IO () -cRmUnloadUnreferencedResources a1 a2 = +{-# LINE 79 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} + +-- | Unload all resources which are not referenced by any other object. This method behaves like unloadAll, except that it only unloads resources which are not in use, ie not referenced by other objects. This allows you to free up some memory selectively whilst still keeping the group around (and the resources present, just not using much memory). Some referenced resource may exists 'weak' pointer to their sub-components (e.g. Entity +unloadUnreferencedResources :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ reloadableOnly - If true (the default), only unloads resources which can be subsequently automatically reloaded. + -> IO () + -- ^ +unloadUnreferencedResources a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cRmUnloadUnreferencedResources'_ a1' a2' >>= \res -> + unloadUnreferencedResources'_ a1' a2' >>= \res -> return () -{-# LINE 85 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -; -cRmReloadUnreferencedResources :: HG3DClass -> Bool -> IO () -cRmReloadUnreferencedResources a1 a2 = +{-# LINE 84 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} + +-- | Caused all currently loaded but not referenced by any other object resources to be reloaded. This method behaves like reloadAll, except that it only reloads resources which are not in use, i.e. not referenced by other objects. Some referenced resource may exists 'weak' pointer to their sub-components (e.g. Entity +reloadUnreferencedResources :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ reloadableOnly - If true (the default), only reloads resources which can be subsequently automatically reloaded. + -> IO () + -- ^ +reloadUnreferencedResources a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cRmReloadUnreferencedResources'_ a1' a2' >>= \res -> + reloadUnreferencedResources'_ 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 = +{-# LINE 89 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} + +-- | Remove a single resource by name. Removes a single resource, meaning it will be removed from the list of valid resources in this manager, also causing it to be unloaded. The word 'Destroy' is not used here, since if any other pointers are referring to this resource, it will persist until they have finished with it; however to all intents and purposes it no longer exists and will likely get destroyed imminently. +--If you do have shared pointers to resources hanging around after the ResourceManager +remove2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO () + -- ^ +remove2 a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> - cRmRemove2'_ a1' a2' >>= \res -> + remove2'_ a1' a2' >>= \res -> return () -{-# LINE 97 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -; -cRmRemoveAll :: HG3DClass -> IO () -cRmRemoveAll a1 = +{-# LINE 94 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} + +-- | Removes all resources. The word 'Destroy' is not used here, since if any other pointers are referring to these resources, they will persist until they have been finished with; however to all intents and purposes the resources no longer exist and will get destroyed imminently. +--If you do have shared pointers to resources hanging around after the ResourceManager +removeAll :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +removeAll a1 = withHG3DClass a1 $ \a1' -> - cRmRemoveAll'_ a1' >>= \res -> + removeAll'_ a1' >>= \res -> return () -{-# LINE 100 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -; -cRmRemoveUnreferencedResources :: HG3DClass -> Bool -> IO () -cRmRemoveUnreferencedResources a1 a2 = +{-# LINE 98 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} + +-- | Remove all resources which are not referenced by any other object. This method behaves like removeAll, except that it only removes resources which are not in use, ie not referenced by other objects. This allows you to free up some memory selectively whilst still keeping the group around (and the resources present, just not using much memory). Some referenced resource may exists 'weak' pointer to their sub-components (e.g. Entity +removeUnreferencedResources :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ reloadableOnly - If true (the default), only removes resources which can be subsequently automatically reloaded. + -> IO () + -- ^ +removeUnreferencedResources a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cRmRemoveUnreferencedResources'_ a1' a2' >>= \res -> + removeUnreferencedResources'_ 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 = +{-# LINE 103 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} + +-- | Returns whether the named resource exists in this manager. +resourceExists :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (Bool) + -- ^ +resourceExists a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> alloca $ \a3' -> - cRmResourceExists'_ a1' a2' a3' >>= \res -> + resourceExists'_ 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 = +{-# LINE 109 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} + +-- | Gets the relative loading order of resources of this type. There are dependencies between some kinds of resource in terms of loading order, and this value enumerates that. Higher values load later during bulk loading tasks. +getLoadingOrder :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getLoadingOrder a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cRmGetLoadingOrder'_ a1' a2' >>= \res -> + getLoadingOrder'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') -{-# LINE 124 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -; -cRmGetResourceType :: HG3DClass -> IO (String) -cRmGetResourceType a1 = +{-# LINE 114 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} + +-- | Gets a string identifying the type of resource this manager handles. +getResourceType :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getResourceType a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> - cRmGetResourceType'_ a1' a2' >>= \res -> + getResourceType'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') -{-# LINE 128 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -; -cRmSetVerbose :: HG3DClass -> Bool -> IO () -cRmSetVerbose a1 a2 = +{-# LINE 119 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} + +-- | Sets whether this manager and its resources habitually produce log output +setVerbose :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ v + -> IO () + -- ^ +setVerbose a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cRmSetVerbose'_ a1' a2' >>= \res -> + setVerbose'_ a1' a2' >>= \res -> return () -{-# LINE 132 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -; -cRmGetVerbose :: HG3DClass -> IO (Bool) -cRmGetVerbose a1 = +{-# LINE 124 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} + +-- | Gets whether this manager and its resources habitually produce log output +getVerbose :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getVerbose a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cRmGetVerbose'_ a1' a2' >>= \res -> + getVerbose'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 136 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -; -cRmDestroyResourcePool2 :: HG3DClass -> String -> IO () -cRmDestroyResourcePool2 a1 a2 = +{-# LINE 129 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} + +-- | Destroy a resource pool. +destroyResourcePool2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO () + -- ^ +destroyResourcePool2 a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> - cRmDestroyResourcePool2'_ a1' a2' >>= \res -> + destroyResourcePool2'_ a1' a2' >>= \res -> return () -{-# LINE 140 "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -; +{-# LINE 134 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs.h cRm_setMemoryBudget_c" - cRmSetMemoryBudget'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) +-- | destroy all pools +destroyAllResourcePools :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +destroyAllResourcePools a1 = + withHG3DClass a1 $ \a1' -> + destroyAllResourcePools'_ a1' >>= \res -> + return () +{-# LINE 138 ".\\HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs" #-} -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 ogre_rsrcmgr_destruct" + delete'_ :: ((HG3DClassPtr) -> (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 ogre_rsrcmgr_setMemoryBudget" + setMemoryBudget'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_rsrcmgr_getMemoryBudget" + getMemoryBudget'_ :: ((HG3DClassPtr) -> ((Ptr 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 ogre_rsrcmgr_getMemoryUsage" + getMemoryUsage'_ :: ((HG3DClassPtr) -> ((Ptr 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 ogre_rsrcmgr_unload" + unload'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (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 ogre_rsrcmgr_unloadAll" + unloadAll'_ :: ((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 ogre_rsrcmgr_reloadAll" + reloadAll'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_rsrcmgr_unloadUnreferencedResources" + unloadUnreferencedResources'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_rsrcmgr_reloadUnreferencedResources" + reloadUnreferencedResources'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_rsrcmgr_remove2" + remove2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (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 ogre_rsrcmgr_removeAll" + removeAll'_ :: ((HG3DClassPtr) -> (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 ogre_rsrcmgr_removeUnreferencedResources" + removeUnreferencedResources'_ :: ((HG3DClassPtr) -> (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 ogre_rsrcmgr_resourceExists" + resourceExists'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (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 ogre_rsrcmgr_getLoadingOrder" + getLoadingOrder'_ :: ((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 ogre_rsrcmgr_getResourceType" + getResourceType'_ :: ((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 ogre_rsrcmgr_setVerbose" + setVerbose'_ :: ((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 ogre_rsrcmgr_getVerbose" + getVerbose'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs.h cRm_destroyResourcePool2_c" - cRmDestroyResourcePool2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs.h ogre_rsrcmgr_destroyResourcePool2" + destroyResourcePool2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassResourceManager.chs.h ogre_rsrcmgr_destroyAllResourcePools" + destroyAllResourcePools'_ :: ((HG3DClassPtr) -> (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.hs view
@@ -2,725 +2,818 @@ -- 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 ())) +{-# 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, 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. +-- + + +-- ClassRoot.chs + +-- + +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.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} +import HGamer3D.Bindings.Ogre.StructColour +{-# LINE 45 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Constructor +new :: String -- ^ pluginFileName - The file that contains plugins information. Defaults to "plugins.cfg", may be left blank to ignore. + -> String -- ^ configFileName - The file that contains the configuration to be loaded. Defaults to "ogre.cfg", may be left blank to load nothing. + -> String -- ^ logFileName - The logfile to create, defaults to Ogre.log, may be left blank if you've already set up LogManager & Log yourself + -> IO (HG3DClass) + -- ^ +new a1 a2 a3 = + withCString a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + alloca $ \a4' -> + new'_ a1' a2' a3' a4' >>= \res -> + peek a4'>>= \a4'' -> + return (a4'') +{-# LINE 53 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = + withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 57 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Saves the details of the current configuration Stores details of the current configuration so it may be restored later on. +saveConfig :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +saveConfig a1 = + withHG3DClass a1 $ \a1' -> + saveConfig'_ a1' >>= \res -> + return () +{-# LINE 61 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Checks for saved video/sound/etc settings This method checks to see if there is a valid saved configuration from a previous run. If there is, the state of the system will be restored to that configuration.If there is no saved configuration, or if the system failed with the last config settings, false +restoreConfig :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ return value - If a valid configuration was found, +restoreConfig a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + restoreConfig'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 66 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Displays a dialog asking the user to choose system settings. This method displays the default dialog allowing the user to choose the rendering system, video mode etc. If there is are any settings saved already, they will be restored automatically before displaying the dialogue. When the user accepts a group of settings, this will automatically call Root::setRenderSystemRenderSystem::setConfigOptionRoot::saveConfigIf they clicked 'Cancel' (in which case the app should strongly consider terminating), false +showConfigDialog :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ return value - If the user clicked 'Ok', +showConfigDialog a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + showConfigDialog'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 71 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Adds a new rendering subsystem to the list of available renderers. Intended for use by advanced users and plugin writers only! Calling this method with a pointer to a valid RenderSystem +-- +addRenderSystem :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ newRend + -> IO () + -- ^ +addRenderSystem a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + addRenderSystem'_ a1' a2' >>= \res -> + return () +{-# LINE 76 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Retrieve a pointer to the render system by the given name +getRenderSystemByName :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name - Name of the render system intend to retrieve. + -> IO (HG3DClass) + -- ^ return value - A pointer to the render system, +getRenderSystemByName a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + getRenderSystemByName'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 82 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Sets the rendering subsystem to be used. This method indicates to OGRE which rendering system is to be used (e.g. Direct3D, OpenGL etc). This is called automatically by the default config dialog, and when settings are restored from a previous configuraion. If used manually it could be used to set the renderer from a custom settings dialog. Once this has been done, the renderer can be initialised using Root::initialiseThis method is also called by render systems if they are initialised directly. RenderSystem +setRenderSystem :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ system - Pointer to the render system to use. + -> IO () + -- ^ +setRenderSystem a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + setRenderSystem'_ a1' a2' >>= \res -> + return () +{-# LINE 87 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Retrieve a pointer to the currently selected render system. +getRenderSystem :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (HG3DClass) + -- ^ +getRenderSystem a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getRenderSystem'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 92 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Initialises the renderer. This method can only be called after a renderer has been selected with Root::setRenderSystem +initialise :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ autoCreateWindow - If true, a rendering window will automatically be created (saving a call to Root::createRenderWindow). The window will be created based on the options currently set on the render system. + -> String -- ^ windowTitle + -> String -- ^ customCapabilitiesConfig + -> IO (HG3DClass) + -- ^ return value - A pointer to the automatically created window, if requested, otherwise +initialise a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + withCString a3 $ \a3' -> + withCString a4 $ \a4' -> + alloca $ \a5' -> + initialise'_ a1' a2' a3' a4' a5' >>= \res -> + peek a5'>>= \a5'' -> + return (a5'') +{-# LINE 100 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Returns whether the system is initialised or not. +isInitialised :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isInitialised a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + isInitialised'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 105 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Get whether the entire render queue structure should be emptied on clearing, or whether just the objects themselves should be cleared. +getRemoveRenderQueueStructuresOnClear :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getRemoveRenderQueueStructuresOnClear a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getRemoveRenderQueueStructuresOnClear'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 110 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Set whether the entire render queue structure should be emptied on clearing, or whether just the objects themselves should be cleared. +setRemoveRenderQueueStructuresOnClear :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ r + -> IO () + -- ^ +setRemoveRenderQueueStructuresOnClear a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setRemoveRenderQueueStructuresOnClear'_ a1' a2' >>= \res -> + return () +{-# LINE 115 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Register a new SceneManagerFactoryPlugins should call this to register as new SceneManager +addSceneManagerFactory :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ fact + -> IO () + -- ^ +addSceneManagerFactory a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + addSceneManagerFactory'_ a1' a2' >>= \res -> + return () +{-# LINE 120 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Unregister a SceneManagerFactory +removeSceneManagerFactory :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ fact + -> IO () + -- ^ +removeSceneManagerFactory a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + removeSceneManagerFactory'_ a1' a2' >>= \res -> + return () +{-# LINE 125 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Create a SceneManagerYou can use this method to create a SceneManagerThis method throws an exception if the named type is not found. +createSceneManager :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ typeName - String identifying a unique SceneManager type + -> String -- ^ instanceName - Optional name to given the new instance that is created. If you leave this blank, an auto name will be assigned. + -> IO (HG3DClass) + -- ^ +createSceneManager a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + alloca $ \a4' -> + createSceneManager'_ a1' a2' a3' a4' >>= \res -> + peek a4'>>= \a4'' -> + return (a4'') +{-# LINE 132 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Destroy an instance of a SceneManager +destroySceneManager :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ sm + -> IO () + -- ^ +destroySceneManager a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + destroySceneManager'_ a1' a2' >>= \res -> + return () +{-# LINE 137 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Get an existing SceneManager +getSceneManager :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ instanceName - The name of the instance to retrieve. + -> IO (HG3DClass) + -- ^ +getSceneManager a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + getSceneManager'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 143 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Determines if a given SceneManager +hasSceneManager :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ instanceName - The name of the instance to retrieve. + -> IO (Bool) + -- ^ +hasSceneManager a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + hasSceneManager'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 149 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Retrieves a reference to the current TextureManagerThis performs the same function as TextureManager::getSingletonNote that a TextureManagerOgreRenderSystemRoot::initialise +getTextureManager :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (HG3DClass) + -- ^ +getTextureManager a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getTextureManager'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 154 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Retrieves a reference to the current MeshManagerThis performs the same function as MeshManager::getSingleton +getMeshManager :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (HG3DClass) + -- ^ +getMeshManager a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getMeshManager'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 159 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Utility function for getting a better description of an error code. +getErrorDescription :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ errorNumber + -> IO (String) + -- ^ +getErrorDescription a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloc64k $ \a3' -> + getErrorDescription'_ a1' a2' a3' >>= \res -> + peekCString a3'>>= \a3'' -> + return (a3'') +{-# LINE 165 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Queues the end of rendering. This method will do nothing unless startRendering()RootRoot::startRendering +queueEndRendering :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +queueEndRendering a1 = + withHG3DClass a1 $ \a1' -> + queueEndRendering'_ a1' >>= \res -> + return () +{-# LINE 169 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Starts / restarts the automatic rendering cycle. This method begins the automatic rendering of the scene. It will NOTDuring rendering, any FrameListener classes registered using addFrameListener will be called back for each frame that is to be rendered, These classes can tell OGRE to halt the rendering if required, which will cause this method to return. +--RenderTarget::updateRoot::renderOneFrame +--This frees up the CPU to do other things in between refreshes, since in this case frame rate is less important. +--This method can only be called after Root::initialise +startRendering :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +startRendering a1 = + withHG3DClass a1 $ \a1' -> + startRendering'_ a1' >>= \res -> + return () +{-# LINE 173 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Render one frame. Updates all the render targets automatically and then returns, raising frame events before and after. +renderOneFrame :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +renderOneFrame a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + renderOneFrame'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 178 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Render one frame, with custom frame time information. Updates all the render targets automatically and then returns, raising frame events before and after - all per-frame times are based on the time value you pass in. +renderOneFrame2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ timeSinceLastFrame + -> IO (Bool) + -- ^ +renderOneFrame2 a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + alloca $ \a3' -> + renderOneFrame2'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 184 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Shuts down the system manually. This is normally done by OgreOgre +shutdown :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +shutdown a1 = + withHG3DClass a1 $ \a1' -> + shutdown'_ a1' >>= \res -> + return () +{-# LINE 188 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Adds a location to the list of searchable locations for a ResourceResourceLocations can be folders, compressed archives, even perhaps remote locations. Facilities for loading from different locations are provided by plugins which provide implementations of the ArchiveOgreYou can also supply the name of a resource group which should have this location applied to it. The ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAMEArchive +addResourceLocation :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name - The name of the location, e.g. './data' or '/compressed/gamedata.zip' + -> String -- ^ locType - A string identifying the location type, e.g. 'FileSystem' (for folders), 'Zip' etc. Must map to a registered plugin which deals with this type (FileSystem and Zip should always be available) + -> String -- ^ groupName - Type of name of the resource group which this location should apply to; defaults to the General group which applies to all non-specific resources. + -> Bool -- ^ recursive - If the resource location has a concept of recursive directory traversal, enabling this option will mean you can load resources in subdirectories using only their unqualified name. The default is to disable this so that resources in subdirectories with the same name are still unique. + -> IO () + -- ^ +addResourceLocation a1 a2 a3 a4 a5 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + withCString a4 $ \a4' -> + let {a5' = fromBool a5} in + addResourceLocation'_ a1' a2' a3' a4' a5' >>= \res -> + return () +{-# LINE 196 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Removes a resource location from the list. addResourceLocation +removeResourceLocation :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name - The name of the resource location as specified in addResourceLocation + -> String -- ^ groupName - The name of the resource group to which this location was assigned. + -> IO () + -- ^ +removeResourceLocation a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + removeResourceLocation'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 202 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Generates a packed data version of the passed in ColourValue suitable for use with the current RenderSystemSince different render systems have different colour data formats (eg RGBA for GL, ARGB for D3D) this method allows you to use 1 method for all. +convertColourValue :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Colour -- ^ colour - The colour to convert + -> IO (Int) + -- ^ pDest - Pointer to location to put the result. +convertColourValue a1 a2 = + withHG3DClass a1 $ \a1' -> + withColour a2 $ \a2' -> + alloca $ \a3' -> + convertColourValue'_ a1' a2' a3' >>= \res -> + peekIntConv a3'>>= \a3'' -> + return (a3'') +{-# LINE 208 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Retrieves a pointer to the window that was created automatically When Rootreturns a null pointer when Root +getAutoCreatedWindow :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (HG3DClass) + -- ^ +getAutoCreatedWindow a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getAutoCreatedWindow'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 213 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Detaches a RenderTarget +detachRenderTarget :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ pWin + -> IO () + -- ^ +detachRenderTarget a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + detachRenderTarget'_ a1' a2' >>= \res -> + return () +{-# LINE 218 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Detaches a named RenderTarget +detachRenderTarget2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO () + -- ^ +detachRenderTarget2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + detachRenderTarget2'_ a1' a2' >>= \res -> + return () +{-# LINE 223 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Destroys the given RenderTarget +destroyRenderTarget :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ target + -> IO () + -- ^ +destroyRenderTarget a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + destroyRenderTarget'_ a1' a2' >>= \res -> + return () +{-# LINE 228 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Destroys the given named RenderTarget +destroyRenderTarget2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO () + -- ^ +destroyRenderTarget2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + destroyRenderTarget2'_ a1' a2' >>= \res -> + return () +{-# LINE 233 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Retrieves a pointer to the a named render window. +getRenderTarget :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (HG3DClass) + -- ^ +getRenderTarget a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + getRenderTarget'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 239 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Manually load a Plugin contained in a DLL / DSO. Plugins embedded in DLLs can be loaded at startup using the plugin configuration file specified when you create RootRoot::installPluginRoot::unloadPlugin +loadPlugin :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ pluginName - Name of the plugin library to load + -> IO () + -- ^ +loadPlugin a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + loadPlugin'_ a1' a2' >>= \res -> + return () +{-# LINE 244 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Manually unloads a Plugin contained in a DLL / DSO. Plugin DLLs are unloaded at shutdown automatically. This method allows you to unload plugins in code, but make sure their dependencies are decoupled first. This method will call the dllStopPlugin method defined in the DLL, which in turn should call Root::uninstallPlugin +unloadPlugin :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ pluginName - Name of the plugin library to unload + -> IO () + -- ^ +unloadPlugin a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + unloadPlugin'_ a1' a2' >>= \res -> + return () +{-# LINE 249 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Destroy a RenderQueueInvocationSequence. You must ensure that no Viewports are using this sequence. +destroyRenderQueueInvocationSequence :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name - The name to identify the sequence + -> IO () + -- ^ +destroyRenderQueueInvocationSequence a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + destroyRenderQueueInvocationSequence'_ a1' a2' >>= \res -> + return () +{-# LINE 254 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Destroy all RenderQueueInvocationSequences. You must ensure that no Viewports are using custom sequences. +destroyAllRenderQueueInvocationSequences :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +destroyAllRenderQueueInvocationSequences a1 = + withHG3DClass a1 $ \a1' -> + destroyAllRenderQueueInvocationSequences'_ a1' >>= \res -> + return () +{-# LINE 258 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Clears the history of all event times. OGRE stores a history of the last few event times in order to smooth out any inaccuracies and temporary fluctuations. However, if you pause or don't render for a little while this can cause a lurch, so if you're resuming rendering after a break, call this method to reset the stored times +clearEventTimes :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +clearEventTimes a1 = + withHG3DClass a1 $ \a1' -> + clearEventTimes'_ a1' >>= \res -> + return () +{-# LINE 262 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Sets the period over which OGRE smooths out fluctuations in frame times. OGRE by default gives you the raw frame time, but can optionally smooths it out over several frames, in order to reduce the noticeable effect of occasional hiccups in framerate. These smoothed values are passed back as parameters to FrameListener calls. This method allow you to tweak the smoothing period, and is expressed in seconds. Setting it to 0 will result in completely unsmoothed frame times (the default). +setFrameSmoothingPeriod :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ period + -> IO () + -- ^ +setFrameSmoothingPeriod a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + setFrameSmoothingPeriod'_ a1' a2' >>= \res -> + return () +{-# LINE 267 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Gets the period over which OGRE smooths out fluctuations in frame times. +getFrameSmoothingPeriod :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getFrameSmoothingPeriod a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getFrameSmoothingPeriod'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 272 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Register a new MovableObjectFactoryMovableObjectPlugin creators can create subclasses of MovableObjectFactoryMovableObject +addMovableObjectFactory :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ fact - Pointer to the factory instance + -> Bool -- ^ overrideExisting - Set this to true to override any existing factories which are registered for the same type. You should only change this if you are very sure you know what you're doing. + -> IO () + -- ^ +addMovableObjectFactory a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + let {a3' = fromBool a3} in + addMovableObjectFactory'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 278 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Removes a previously registered MovableObjectFactoryAll instances of objects created by this factory will be destroyed before removing the factory (by calling back the factories 'destroyInstance' method). The plugin writer is responsible for actually destroying the factory. +removeMovableObjectFactory :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ fact + -> IO () + -- ^ +removeMovableObjectFactory a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + removeMovableObjectFactory'_ a1' a2' >>= \res -> + return () +{-# LINE 283 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Checks whether a factory is registered for a given MovableObject +hasMovableObjectFactory :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ typeName + -> IO (Bool) + -- ^ +hasMovableObjectFactory a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + hasMovableObjectFactory'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 289 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Get a MovableObjectFactory +getMovableObjectFactory :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ typeName + -> IO (HG3DClass) + -- ^ +getMovableObjectFactory a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + getMovableObjectFactory'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 295 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Gets the number of display monitors. +getDisplayMonitorCount :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getDisplayMonitorCount a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getDisplayMonitorCount'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 300 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + +-- | Override standard Singleton retrieval. Why do we do this? Well, it's because the Singleton implementation is in a .h file, which means it gets compiled into anybody who includes it. This is needed for the Singleton template to work, but we actually only want it compiled into the implementation of the class based on the Singleton, not all of them. If we don't change this, we get link errors when trying to use the Singleton-based class from an outside dll. This method just delegates to the template version anyway, but the implementation stays in this single compilation unit, preventing link errors. +getSingletonPtr :: IO (HG3DClass) + -- ^ +getSingletonPtr = + alloca $ \a1' -> + getSingletonPtr'_ a1' >>= \res -> + peek a1'>>= \a1'' -> + return (a1'') +{-# LINE 304 ".\\HGamer3D\\Bindings\\Ogre\\ClassRoot.chs" #-} + + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_construct" + new'_ :: ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_destruct" + delete'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_saveConfig" + saveConfig'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_restoreConfig" + restoreConfig'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_showConfigDialog" + showConfigDialog'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_addRenderSystem" + addRenderSystem'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_getRenderSystemByName" + getRenderSystemByName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_setRenderSystem" + setRenderSystem'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_getRenderSystem" + getRenderSystem'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_initialise" + initialise'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CChar) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_isInitialised" + isInitialised'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_getRemoveRenderQueueStructuresOnClear" + getRemoveRenderQueueStructuresOnClear'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_setRemoveRenderQueueStructuresOnClear" + setRemoveRenderQueueStructuresOnClear'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_addSceneManagerFactory" + addSceneManagerFactory'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_removeSceneManagerFactory" + removeSceneManagerFactory'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_createSceneManager" + createSceneManager'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_destroySceneManager" + destroySceneManager'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_getSceneManager" + getSceneManager'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_hasSceneManager" + hasSceneManager'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_getTextureManager" + getTextureManager'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_getMeshManager" + getMeshManager'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_getErrorDescription" + getErrorDescription'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CChar) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_queueEndRendering" + queueEndRendering'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_startRendering" + startRendering'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_renderOneFrame" + renderOneFrame'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_renderOneFrame2" + renderOneFrame2'_ :: ((HG3DClassPtr) -> (CFloat -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_shutdown" + shutdown'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_addResourceLocation" + addResourceLocation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CChar) -> (CInt -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_removeResourceLocation" + removeResourceLocation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_convertColourValue" + convertColourValue'_ :: ((HG3DClassPtr) -> ((ColourPtr) -> ((Ptr CUInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_getAutoCreatedWindow" + getAutoCreatedWindow'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_detachRenderTarget" + detachRenderTarget'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_detachRenderTarget2" + detachRenderTarget2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_destroyRenderTarget" + destroyRenderTarget'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_destroyRenderTarget2" + destroyRenderTarget2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_getRenderTarget" + getRenderTarget'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_loadPlugin" + loadPlugin'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_unloadPlugin" + unloadPlugin'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_destroyRenderQueueInvocationSequence" + destroyRenderQueueInvocationSequence'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_destroyAllRenderQueueInvocationSequences" + destroyAllRenderQueueInvocationSequences'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_clearEventTimes" + clearEventTimes'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_setFrameSmoothingPeriod" + setFrameSmoothingPeriod'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_getFrameSmoothingPeriod" + getFrameSmoothingPeriod'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_addMovableObjectFactory" + addMovableObjectFactory'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_removeMovableObjectFactory" + removeMovableObjectFactory'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_hasMovableObjectFactory" + hasMovableObjectFactory'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_getMovableObjectFactory" + getMovableObjectFactory'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_getDisplayMonitorCount" + getDisplayMonitorCount'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassRoot.chs.h ogre_rt_getSingletonPtr" + getSingletonPtr'_ :: ((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.hs view
@@ -2,2413 +2,2618 @@ -- 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 ())) +{-# 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, 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. +-- + + +-- ClassSceneManager.chs + +-- + +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.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +import HGamer3D.Bindings.Ogre.EnumSceneManagerPrefabType +{-# LINE 45 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +import HGamer3D.Bindings.Ogre.StructColour +{-# LINE 46 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +import HGamer3D.Bindings.Ogre.StructQuaternion +{-# LINE 47 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +import HGamer3D.Bindings.Ogre.EnumSceneManagerSpecialCaseRenderQueueMode +{-# LINE 48 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +import HGamer3D.Bindings.Ogre.EnumLightType +{-# LINE 49 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} +import HGamer3D.Bindings.Ogre.StructSharedPtr +{-# LINE 50 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Default destructor. +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = + withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 55 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Mutex to protect the scene graph from simultaneous access from multiple threads. If you are updating the scene in a separate thread from the rendering thread, then you should lock this mutex before making any changes to the scene graph - that means creating, modifying or deleting a scene node, or attaching / detaching objects. It is yourNote that locking this mutex will prevent the scene being rendered until it is unlocked again. Therefore you should do this sparingly. Try to create any objects you need separately and fully prepare them before doing all your scene graph work in one go, thus keeping this lock for the shortest time possible. A single global lock is used rather than a per-node lock since it keeps the number of locks required during rendering down to a minimum. Obtaining a lock, even if there is no contention, is not free so for performance it is good to do it as little as possible. Since modifying the scene in a separate thread is a fairly rare occurrence (relative to rendering), it is better to keep the locking required during rendering lower than to make update locks more granular. Return the instance name of this SceneManager +getName :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + getName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 60 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Retrieve the type name of this scene manager. This method has to be implemented by subclasses. It should return the type name of this SceneManagerSceneManagerFactory +getTypeName :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getTypeName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + getTypeName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 65 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Creates a camera to be managed by this scene manager. This camera must be added to the scene at a later time using the attachObject method of the SceneNode +createCamera :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name - Name to give the new camera. + -> IO (HG3DClass) + -- ^ +createCamera a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + createCamera'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 71 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Retrieves a pointer to the named camera. Throws an exception if the named instance does not exist +getCamera :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (HG3DClass) + -- ^ +getCamera a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + getCamera'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 77 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Returns whether a camera with the given name exists. +hasCamera :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (Bool) + -- ^ +hasCamera a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + hasCamera'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 83 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Removes a camera from the scene. This method removes a previously added camera from the scene. The camera is deleted so the caller must ensure no references to it's previous instance (e.g. in a SceneNode +destroyCamera :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ cam - Pointer to the camera to remove + -> IO () + -- ^ +destroyCamera a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + destroyCamera'_ a1' a2' >>= \res -> + return () +{-# LINE 88 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Removes a camera from the scene. This method removes an camera from the scene based on the camera's name rather than a pointer. +destroyCamera2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO () + -- ^ +destroyCamera2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + destroyCamera2'_ a1' a2' >>= \res -> + return () +{-# LINE 93 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Removes (and destroys) all cameras from the scene. Some cameras are internal created to dealing with texture shadow, their aren't supposed to destroy outside. So, while you are using texture shadow, don't call this method, or you can set the shadow technique other than texture-based, which will destroy all internal created shadow cameras and textures. +destroyAllCameras :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +destroyAllCameras a1 = + withHG3DClass a1 $ \a1' -> + destroyAllCameras'_ a1' >>= \res -> + return () +{-# LINE 97 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Creates a light for use in the scene. Lights can either be in a fixed position and independent of the scene graph, or they can be attached to SceneNodes so they derive their position from the parent node. Either way, they are created using this method so that the SceneManager +createLight :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name - The name of the new light, to identify it later. + -> IO (HG3DClass) + -- ^ +createLight a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + createLight'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 103 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Creates a light with a generated name. +createLight2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (HG3DClass) + -- ^ +createLight2 a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + createLight2'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 108 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Returns a pointer to the named LightThrows an exception if the named instance does not exist +getLight :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (HG3DClass) + -- ^ +getLight a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + getLight'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 114 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Returns whether a light with the given name exists. +hasLight :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (Bool) + -- ^ +hasLight a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + hasLight'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 120 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Removes the named light from the scene and destroys it. Any pointers held to this light after calling this method will be invalid. +destroyLight :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO () + -- ^ +destroyLight a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + destroyLight'_ a1' a2' >>= \res -> + return () +{-# LINE 125 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Removes the light from the scene and destroys it based on a pointer. Any pointers held to this light after calling this method will be invalid. +destroyLight2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ light + -> IO () + -- ^ +destroyLight2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + destroyLight2'_ a1' a2' >>= \res -> + return () +{-# LINE 130 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Removes and destroys all lights in the scene. +destroyAllLights :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +destroyAllLights a1 = + withHG3DClass a1 $ \a1' -> + destroyAllLights'_ a1' >>= \res -> + return () +{-# LINE 134 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Creates an instance of a SceneNodeNote that this does not add the SceneNodeSceneManagerTo include the returned SceneNodeSceneNodeNote that this method takes no parameters, and the node created is unnamed (it is actually given a generated name, which you can retrieve if you want). If you wish to create a node with a specific name, call the alternative method which takes a name parameter. +createSceneNode :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (HG3DClass) + -- ^ +createSceneNode a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + createSceneNode'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 139 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Creates an instance of a SceneNodeNote that this does not add the SceneNodeSceneManagerTo include the returned SceneNodeSceneNodeNote that this method takes a name parameter, which makes the node easier to retrieve directly again later. +createSceneNode2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (HG3DClass) + -- ^ +createSceneNode2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + createSceneNode2'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 145 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Destroys a SceneNodeThis allows you to physically delete an individual SceneNodeSceneManager +destroySceneNode :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO () + -- ^ +destroySceneNode a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + destroySceneNode'_ a1' a2' >>= \res -> + return () +{-# LINE 150 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Destroys a SceneNodeThis allows you to physically delete an individual SceneNodeSceneManager +destroySceneNode2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ sn + -> IO () + -- ^ +destroySceneNode2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + destroySceneNode2'_ a1' a2' >>= \res -> + return () +{-# LINE 155 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Gets the SceneNodeThe entire scene is held as a hierarchy of nodes, which allows things like relative transforms, general changes in rendering state etc (See the SceneNodeSceneManagerOgreHowever, in all cases there is only ever one root node of the hierarchy, and this method returns a pointer to it. +getRootSceneNode :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (HG3DClass) + -- ^ +getRootSceneNode a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getRootSceneNode'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 160 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Retrieves a named SceneNodeIf you chose to name a SceneNodeThrows an exception if the named instance does not exist +getSceneNode :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (HG3DClass) + -- ^ +getSceneNode a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + getSceneNode'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 166 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Returns whether a scene node with the given name exists. +hasSceneNode :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (Bool) + -- ^ +hasSceneNode a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + hasSceneNode'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 172 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Create an Entity +createEntity :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ entityName - The name to be given to the entity (must be unique). + -> String -- ^ meshName - The name of the Mesh it is to be based on (e.g. 'knot.oof'). The mesh will be loaded if it is not already. + -> String -- ^ groupName + -> IO (HG3DClass) + -- ^ +createEntity a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + withCString a4 $ \a4' -> + alloca $ \a5' -> + createEntity'_ a1' a2' a3' a4' a5' >>= \res -> + peek a5'>>= \a5'' -> + return (a5'') +{-# LINE 180 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Create an Entity +createEntity2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ meshName - The name of the Mesh it is to be based on (e.g. 'knot.oof'). The mesh will be loaded if it is not already. + -> IO (HG3DClass) + -- ^ +createEntity2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + createEntity2'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 186 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Create an Entity +createEntity3 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ entityName - The name to be given to the entity (must be unique). + -> EnumSceneManagerPrefabType -- ^ ptype - The prefab type. + -> IO (HG3DClass) + -- ^ +createEntity3 a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = cIntFromEnum a3} in + alloca $ \a4' -> + createEntity3'_ a1' a2' a3' a4' >>= \res -> + peek a4'>>= \a4'' -> + return (a4'') +{-# LINE 193 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Create an Entity +createEntity4 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> EnumSceneManagerPrefabType -- ^ ptype - The prefab type. + -> IO (HG3DClass) + -- ^ +createEntity4 a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + alloca $ \a3' -> + createEntity4'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 199 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Retrieves a pointer to the named EntityThrows an exception if the named instance does not exist +getEntity :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (HG3DClass) + -- ^ +getEntity a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + getEntity'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 205 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Returns whether an entity with the given name exists. +hasEntity :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (Bool) + -- ^ +hasEntity a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + hasEntity'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 211 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Removes & destroys an EntitySceneManagerMust only be done if the EntitySceneNodeSceneManager::clearScene +destroyEntity :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ ent + -> IO () + -- ^ +destroyEntity a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + destroyEntity'_ a1' a2' >>= \res -> + return () +{-# LINE 216 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Removes & destroys an EntitySceneManagerMust only be done if the EntitySceneNodeSceneManager::clearScene +destroyEntity2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO () + -- ^ +destroyEntity2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + destroyEntity2'_ a1' a2' >>= \res -> + return () +{-# LINE 221 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Removes & destroys all Entities. Again, use caution since no EntitySceneNodeSceneNodeSceneManager::clearScene +destroyAllEntities :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +destroyAllEntities a1 = + withHG3DClass a1 $ \a1' -> + destroyAllEntities'_ a1' >>= \res -> + return () +{-# LINE 225 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Create a ManualObject +createManualObject :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name - The name to be given to the object (must be unique). + -> IO (HG3DClass) + -- ^ +createManualObject a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + createManualObject'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 231 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Create a ManualObject +createManualObject2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (HG3DClass) + -- ^ +createManualObject2 a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + createManualObject2'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 236 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Retrieves a pointer to the named ManualObjectThrows an exception if the named instance does not exist +getManualObject :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (HG3DClass) + -- ^ +getManualObject a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + getManualObject'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 242 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Returns whether a manual object with the given name exists. +hasManualObject :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (Bool) + -- ^ +hasManualObject a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + hasManualObject'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 248 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Removes & destroys a ManualObjectSceneManager +destroyManualObject :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ obj + -> IO () + -- ^ +destroyManualObject a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + destroyManualObject'_ a1' a2' >>= \res -> + return () +{-# LINE 253 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Removes & destroys a ManualObjectSceneManager +destroyManualObject2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO () + -- ^ +destroyManualObject2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + destroyManualObject2'_ a1' a2' >>= \res -> + return () +{-# LINE 258 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Removes & destroys all ManualObjects from the SceneManager +destroyAllManualObjects :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +destroyAllManualObjects a1 = + withHG3DClass a1 $ \a1' -> + destroyAllManualObjects'_ a1' >>= \res -> + return () +{-# LINE 262 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Create a BillboardChain +createBillboardChain :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name - The name to be given to the object (must be unique). + -> IO (HG3DClass) + -- ^ +createBillboardChain a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + createBillboardChain'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 268 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Create a BillboardChain +createBillboardChain2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (HG3DClass) + -- ^ +createBillboardChain2 a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + createBillboardChain2'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 273 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Retrieves a pointer to the named BillboardChainThrows an exception if the named instance does not exist +getBillboardChain :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (HG3DClass) + -- ^ +getBillboardChain a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + getBillboardChain'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 279 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Returns whether a billboard chain with the given name exists. +hasBillboardChain :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (Bool) + -- ^ +hasBillboardChain a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + hasBillboardChain'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 285 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Removes & destroys a BillboardChainSceneManager +destroyBillboardChain :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ obj + -> IO () + -- ^ +destroyBillboardChain a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + destroyBillboardChain'_ a1' a2' >>= \res -> + return () +{-# LINE 290 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Removes & destroys a BillboardChainSceneManager +destroyBillboardChain2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO () + -- ^ +destroyBillboardChain2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + destroyBillboardChain2'_ a1' a2' >>= \res -> + return () +{-# LINE 295 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Removes & destroys all BillboardChains from the SceneManager +destroyAllBillboardChains :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +destroyAllBillboardChains a1 = + withHG3DClass a1 $ \a1' -> + destroyAllBillboardChains'_ a1' >>= \res -> + return () +{-# LINE 299 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Returns whether a ribbon trail with the given name exists. +hasRibbonTrail :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (Bool) + -- ^ +hasRibbonTrail a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + hasRibbonTrail'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 305 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Removes & destroys a RibbonTrail from the SceneManager +destroyRibbonTrail2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO () + -- ^ +destroyRibbonTrail2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + destroyRibbonTrail2'_ a1' a2' >>= \res -> + return () +{-# LINE 310 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Removes & destroys all RibbonTrails from the SceneManager +destroyAllRibbonTrails :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +destroyAllRibbonTrails a1 = + withHG3DClass a1 $ \a1' -> + destroyAllRibbonTrails'_ a1' >>= \res -> + return () +{-# LINE 314 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Returns whether a particle system with the given name exists. +hasParticleSystem :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (Bool) + -- ^ +hasParticleSystem a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + hasParticleSystem'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 320 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Removes & destroys a ParticleSystem from the SceneManager +destroyParticleSystem2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO () + -- ^ +destroyParticleSystem2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + destroyParticleSystem2'_ a1' a2' >>= \res -> + return () +{-# LINE 325 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Removes & destroys all ParticleSystems from the SceneManager +destroyAllParticleSystems :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +destroyAllParticleSystems a1 = + withHG3DClass a1 $ \a1' -> + destroyAllParticleSystems'_ a1' >>= \res -> + return () +{-# LINE 329 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Empties the entire scene, inluding all SceneNodes, Entities, Lights, BillboardSets etc. Cameras are not deleted at this stage since they are still referenced by viewports, which are not destroyed during this process. +clearScene :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +clearScene a1 = + withHG3DClass a1 $ \a1' -> + clearScene'_ a1' >>= \res -> + return () +{-# LINE 333 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Sets the ambient light level to be used for the scene. This sets the colour and intensity of the ambient light in the scene, i.e. the light which is 'sourceless' and illuminates all objects equally. The colour of an object is affected by a combination of the light in the scene, and the amount of light that object reflects (in this case based on the Material::ambient property). +--By default the ambient light in the scene is ColourValue::Black, i.e. no ambient light. This means that any objects rendered with a MaterialMaterial::setLightingEnabled +setAmbientLight :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Colour -- ^ colour + -> IO () + -- ^ +setAmbientLight a1 a2 = + withHG3DClass a1 $ \a1' -> + withColour a2 $ \a2' -> + setAmbientLight'_ a1' a2' >>= \res -> + return () +{-# LINE 338 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Returns the ambient light level to be used for the scene. +getAmbientLight :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Colour) + -- ^ +getAmbientLight a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getAmbientLight'_ a1' a2' >>= \res -> + peekColour a2'>>= \a2'' -> + return (a2'') +{-# LINE 343 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Sets the source of the 'world' geometry, i.e. the large, mainly static geometry making up the world e.g. rooms, landscape etc. This function can be called before setWorldGeometry in a background thread, do to some slow tasks (e.g. IO) that do not involve the backend render system. Depending on the type of SceneManagerRootSceneManager +prepareWorldGeometry :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ filename + -> IO () + -- ^ +prepareWorldGeometry a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + prepareWorldGeometry'_ a1' a2' >>= \res -> + return () +{-# LINE 348 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Sets the source of the 'world' geometry, i.e. the large, mainly static geometry making up the world e.g. rooms, landscape etc. Depending on the type of SceneManagerRootSceneManager +setWorldGeometry :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ filename + -> IO () + -- ^ +setWorldGeometry a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + setWorldGeometry'_ a1' a2' >>= \res -> + return () +{-# LINE 353 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Estimate the number of loading stages required to load the named world geometry. This method should be overridden by SceneManagers that provide custom world geometry that can take some time to load. They should return from this method a count of the number of stages of progress they can report on whilst loading. During real loading (setWorldGeometry), they should call ResourceGroupManager::_notifyWorldGeometryProgress exactly that number of times when loading the geometry for real. The default is to return 0, ie to not report progress. +estimateWorldGeometry :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ filename + -> IO (Int) + -- ^ +estimateWorldGeometry a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + estimateWorldGeometry'_ a1' a2' a3' >>= \res -> + peekIntConv a3'>>= \a3'' -> + return (a3'') +{-# LINE 359 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Method for verifying wether the scene manager has an implementation-specific option. If it does not, false is returned. +hasOption :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ strKey - The name of the option to check for. + -> IO (Bool) + -- ^ return value - If the scene manager contains the given option, true is returned. +hasOption a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + hasOption'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 365 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Enables / disables a 'sky plane' +setSkyPlaneEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ enable + -> IO () + -- ^ +setSkyPlaneEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setSkyPlaneEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 370 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Return whether a key plane is enabled +isSkyPlaneEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isSkyPlaneEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + isSkyPlaneEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 375 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Get the sky plane node, if enabled. +getSkyPlaneNode :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (HG3DClass) + -- ^ +getSkyPlaneNode a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getSkyPlaneNode'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 380 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Enables / disables a 'sky box' i.e. a 6-sided box at constant distance from the camera representing the sky. You could create a sky box yourself using the standard mesh and entity methods, but this creates a plane which the camera can never get closer or further away from - it moves with the camera. (NB you could create this effect by creating a world box which was attached to the same SceneNodeCameraThe material you use for the skybox can either contain layers which are single textures, or they can be cubic textures, i.e. made up of 6 images, one for each plane of the cube. See the TextureUnitState class for more information. +setSkyBox :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ enable - True to enable the skybox, false to disable it + -> String -- ^ materialName - The name of the material the box will use + -> Float -- ^ distance - Distance in world coorinates from the camera to each plane of the box. The default is normally OK. + -> Bool -- ^ drawFirst - If true, the box is drawn before all other geometry in the scene, without updating the depth buffer. This is the safest rendering method since all other objects will always appear in front of the sky. However this is not the most efficient way if most of the sky is often occluded by other objects. If this is the case, you can set this parameter to false meaning it draws after all other geometry which can be an optimisation - however you must ensure that the distance value is large enough that no objects will 'poke through' the sky box when it is rendered. + -> Quaternion -- ^ orientation - Optional parameter to specify the orientation of the box. By default the 'top' of the box is deemed to be in the +y direction, and the 'front' at the -z direction. You can use this parameter to rotate the sky if you want. + -> String -- ^ groupName - The name of the resource group to which to assign the plane mesh. + -> IO () + -- ^ +setSkyBox 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' -> + setSkyBox'_ a1' a2' a3' a4' a5' a6' a7' >>= \res -> + return () +{-# LINE 390 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Enables / disables a 'sky box' +setSkyBoxEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ enable + -> IO () + -- ^ +setSkyBoxEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setSkyBoxEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 395 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Return whether a skybox is enabled +isSkyBoxEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isSkyBoxEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + isSkyBoxEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 400 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Get the skybox node, if enabled. +getSkyBoxNode :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (HG3DClass) + -- ^ +getSkyBoxNode a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getSkyBoxNode'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 405 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Enables / disables a 'sky dome' i.e. an illusion of a curved sky. A sky dome is actually formed by 5 sides of a cube, but with texture coordinates generated such that the surface appears curved like a dome. Sky domes are appropriate where you need a realistic looking sky where the scene is not going to be 'fogged', and there is always a 'floor' of some sort to prevent the viewer looking below the horizon (the distortion effect below the horizon can be pretty horrible, and there is never anyhting directly below the viewer). If you need a complete wrap-around background, use the setSkyBox method instead. You can actually combine a sky box and a sky dome if you want, to give a positional backdrop with an overlayed curved cloud layer. Sky domes work well with 2D repeating textures like clouds. You can change the apparant 'curvature' of the sky depending on how your scene is viewed - lower curvatures are better for 'open' scenes like landscapes, whilst higher curvatures are better for say FPS levels where you don't see a lot of the sky at once and the exaggerated curve looks good. +setSkyDome :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ enable - True to enable the skydome, false to disable it + -> String -- ^ materialName - The name of the material the dome will use + -> Float -- ^ curvature - The curvature of the dome. Good values are between 2 and 65. Higher values are more curved leading to a smoother effect, lower values are less curved meaning more distortion at the horizons but a better distance effect. + -> Float -- ^ tiling - How many times to tile the texture(s) across the dome. + -> Float -- ^ distance - Distance in world coorinates from the camera to each plane of the box the dome is rendered on. The default is normally OK. + -> Bool -- ^ drawFirst - If true, the dome is drawn before all other geometry in the scene, without updating the depth buffer. This is the safest rendering method since all other objects will always appear in front of the sky. However this is not the most efficient way if most of the sky is often occluded by other objects. If this is the case, you can set this parameter to false meaning it draws after all other geometry which can be an optimisation - however you must ensure that the distance value is large enough that no objects will 'poke through' the sky when it is rendered. + -> Quaternion -- ^ orientation - Optional parameter to specify the orientation of the dome. By default the 'top' of the dome is deemed to be in the +y direction, and the 'front' at the -z direction. You can use this parameter to rotate the sky if you want. + -> Int -- ^ xsegments + -> Int -- ^ ysegments + -> Int -- ^ ysegments_keep + -> String -- ^ groupName - The name of the resource group to which to assign the plane mesh. + -> IO () + -- ^ +setSkyDome 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' -> + setSkyDome'_ a1' a2' a3' a4' a5' a6' a7' a8' a9' a10' a11' a12' >>= \res -> + return () +{-# LINE 420 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Enables / disables a 'sky dome' +setSkyDomeEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ enable + -> IO () + -- ^ +setSkyDomeEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setSkyDomeEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 425 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Return whether a skydome is enabled +isSkyDomeEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isSkyDomeEnabled a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + isSkyDomeEnabled'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 430 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Get the sky dome node, if enabled. +getSkyDomeNode :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (HG3DClass) + -- ^ +getSkyDomeNode a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getSkyDomeNode'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 435 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Returns the fog colour for the scene. +getFogColour :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Colour) + -- ^ +getFogColour a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getFogColour'_ a1' a2' >>= \res -> + peekColour a2'>>= \a2'' -> + return (a2'') +{-# LINE 440 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Returns the fog start distance for the scene. +getFogStart :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getFogStart a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getFogStart'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 445 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Returns the fog end distance for the scene. +getFogEnd :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getFogEnd a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getFogEnd'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 450 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Returns the fog density for the scene. +getFogDensity :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getFogDensity a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getFogDensity'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 455 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Creates a new BillboardSetThis method creates a new BillboardSetSceneManagerSceneManagerSceneManager::clearSceneSee the BillboardSetBillboardSet +createBillboardSet :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name - The name to give to this billboard set. Must be unique. + -> Int -- ^ poolSize - The initial size of the pool of billboards (see BillboardSet for more information) + -> IO (HG3DClass) + -- ^ +createBillboardSet a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = fromIntegral a3} in + alloca $ \a4' -> + createBillboardSet'_ a1' a2' a3' a4' >>= \res -> + peek a4'>>= \a4'' -> + return (a4'') +{-# LINE 462 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Creates a new BillboardSetBillboardSet +createBillboardSet2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ poolSize - The initial size of the pool of billboards (see BillboardSet for more information) + -> IO (HG3DClass) + -- ^ +createBillboardSet2 a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + createBillboardSet2'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 468 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Retrieves a pointer to the named BillboardSetThrows an exception if the named instance does not exist +getBillboardSet :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (HG3DClass) + -- ^ +getBillboardSet a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + getBillboardSet'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 474 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Returns whether a billboardset with the given name exists. +hasBillboardSet :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (Bool) + -- ^ +hasBillboardSet a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + hasBillboardSet'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 480 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Removes & destroys an BillboardSetSceneManagerMust only be done if the BillboardSetSceneNode +destroyBillboardSet :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ set + -> IO () + -- ^ +destroyBillboardSet a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + destroyBillboardSet'_ a1' a2' >>= \res -> + return () +{-# LINE 485 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Removes & destroys an BillboardSetSceneManagerMust only be done if the BillboardSetSceneNode +destroyBillboardSet2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO () + -- ^ +destroyBillboardSet2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + destroyBillboardSet2'_ a1' a2' >>= \res -> + return () +{-# LINE 490 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Removes & destroys all BillboardSets. Again, use caution since no BillboardSetSceneNodeSceneNodeSceneManager::clearScene +destroyAllBillboardSets :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +destroyAllBillboardSets a1 = + withHG3DClass a1 $ \a1' -> + destroyAllBillboardSets'_ a1' >>= \res -> + return () +{-# LINE 494 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Tells the SceneManagerThis method is mainly for debugging purposes. If you set this to 'true', each node will be rendered as a set of 3 axes to allow you to easily see the orientation of the nodes. +setDisplaySceneNodes :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ display + -> IO () + -- ^ +setDisplaySceneNodes a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setDisplaySceneNodes'_ a1' a2' >>= \res -> + return () +{-# LINE 499 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Returns true if all scene nodes axis are to be displayed +getDisplaySceneNodes :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getDisplaySceneNodes a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getDisplaySceneNodes'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 504 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Creates an animation which can be used to animate scene nodes. An animation is a collection of 'tracks' which over time change the position / orientation of NodeSceneNodeYou don't need to use an AnimationNodeA single animation can affect multiple NodeAnimationTrackNodeNodeSkeleton::createAnimationNote that whilst it uses the same classes, the animations created here are kept separate from the skeletal animations of meshes (each Skeleton +createAnimation :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name - The name of the animation, must be unique within this SceneManager. + -> Float -- ^ length - The total length of the animation. + -> IO (HG3DClass) + -- ^ +createAnimation a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = realToFrac a3} in + alloca $ \a4' -> + createAnimation'_ a1' a2' a3' a4' >>= \res -> + peek a4'>>= \a4'' -> + return (a4'') +{-# LINE 511 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Looks up an AnimationThrows an exception if the named instance does not exist +getAnimation :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (HG3DClass) + -- ^ +getAnimation a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + getAnimation'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 517 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Returns whether an animation with the given name exists. +hasAnimation :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (Bool) + -- ^ +hasAnimation a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + hasAnimation'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 523 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Destroys an AnimationYou should ensure that none of your code is referencing this animation objects since the memory will be freed. +destroyAnimation :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO () + -- ^ +destroyAnimation a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + destroyAnimation'_ a1' a2' >>= \res -> + return () +{-# LINE 528 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Removes all animations created using this SceneManager +destroyAllAnimations :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +destroyAllAnimations a1 = + withHG3DClass a1 $ \a1' -> + destroyAllAnimations'_ a1' >>= \res -> + return () +{-# LINE 532 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Create an AnimationStateYou can create AnimationSceneNodeNodeAnimationNode::resetToInitialStateAnimation::applyAnimationStateSceneManagerRemember, AnimationStateNote that any SceneNodeNode::setInitialStateNodeSceneNodeIf the target of your animation is to be a generic AnimableValueAnimableValue::setAsBaseValue +createAnimationState :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ animName - The name of an animation created already with createAnimation. + -> IO (HG3DClass) + -- ^ +createAnimationState a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + createAnimationState'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 538 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Retrieves animation state as previously created using createAnimationState. Throws an exception if the named instance does not exist +getAnimationState :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ animName + -> IO (HG3DClass) + -- ^ +getAnimationState a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + getAnimationState'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 544 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Returns whether an animation state with the given name exists. +hasAnimationState :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (Bool) + -- ^ +hasAnimationState a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + hasAnimationState'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 550 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Destroys an AnimationStateYou should ensure that none of your code is referencing this animation state object since the memory will be freed. +destroyAnimationState :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO () + -- ^ +destroyAnimationState a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + destroyAnimationState'_ a1' a2' >>= \res -> + return () +{-# LINE 555 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Removes all animation states created using this SceneManager +destroyAllAnimationStates :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +destroyAllAnimationStates a1 = + withHG3DClass a1 $ \a1' -> + destroyAllAnimationStates'_ a1' >>= \res -> + return () +{-# LINE 559 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Clears the 'special case' render queue list. SceneManager::addSpecialCaseRenderQueue +clearSpecialCaseRenderQueues :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +clearSpecialCaseRenderQueues a1 = + withHG3DClass a1 $ \a1' -> + clearSpecialCaseRenderQueues'_ a1' >>= \res -> + return () +{-# LINE 563 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Sets the way the special case render queue list is processed. SceneManager::addSpecialCaseRenderQueue +setSpecialCaseRenderQueueMode :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> EnumSceneManagerSpecialCaseRenderQueueMode -- ^ mode - The mode of processing + -> IO () + -- ^ +setSpecialCaseRenderQueueMode a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + setSpecialCaseRenderQueueMode'_ a1' a2' >>= \res -> + return () +{-# LINE 568 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Gets the way the special case render queue list is processed. +getSpecialCaseRenderQueueMode :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (EnumSceneManagerSpecialCaseRenderQueueMode) + -- ^ +getSpecialCaseRenderQueueMode a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getSpecialCaseRenderQueueMode'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 573 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Allows all bounding boxes of scene nodes to be displayed. +showBoundingBoxes :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ bShow + -> IO () + -- ^ +showBoundingBoxes a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + showBoundingBoxes'_ a1' a2' >>= \res -> + return () +{-# LINE 578 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Returns if all bounding boxes of scene nodes are to be displayed +getShowBoundingBoxes :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getShowBoundingBoxes a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getShowBoundingBoxes'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 583 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Enables / disables the rendering of debug information for shadows. +setShowDebugShadows :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ debug + -> IO () + -- ^ +setShowDebugShadows a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setShowDebugShadows'_ a1' a2' >>= \res -> + return () +{-# LINE 588 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Are debug shadows shown? +getShowDebugShadows :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getShowDebugShadows a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getShowDebugShadows'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 593 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Set the colour used to modulate areas in shadow. This is only applicable for shadow techniques which involve darkening the area in shadow, as opposed to masking out the light. This colour provided is used as a modulative value to darken the areas. +setShadowColour :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Colour -- ^ colour + -> IO () + -- ^ +setShadowColour a1 a2 = + withHG3DClass a1 $ \a1' -> + withColour a2 $ \a2' -> + setShadowColour'_ a1' a2' >>= \res -> + return () +{-# LINE 598 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Get the colour used to modulate areas in shadow. This is only applicable for shadow techniques which involve darkening the area in shadow, as opposed to masking out the light. This colour provided is used as a modulative value to darken the areas. +getShadowColour :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Colour) + -- ^ +getShadowColour a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getShadowColour'_ a1' a2' >>= \res -> + peekColour a2'>>= \a2'' -> + return (a2'') +{-# LINE 603 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Sets the distance a shadow volume is extruded for a directional light. Although directional lights are essentially infinite, there are many reasons to limit the shadow extrusion distance to a finite number, not least of which is compatibility with older cards (which do not support infinite positions), and shadow caster elimination. The default value is 10,000 world units. This does not apply to point lights or spotlights, since they extrude up to their attenuation range. +setShadowDirectionalLightExtrusionDistance :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ dist + -> IO () + -- ^ +setShadowDirectionalLightExtrusionDistance a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + setShadowDirectionalLightExtrusionDistance'_ a1' a2' >>= \res -> + return () +{-# LINE 608 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Gets the distance a shadow volume is extruded for a directional light. +getShadowDirectionalLightExtrusionDistance :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getShadowDirectionalLightExtrusionDistance a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getShadowDirectionalLightExtrusionDistance'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 613 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Sets the default maximum distance away from the camera that shadows will be visible. You have to call this function before you create lights or the default distance of zero will be used. Shadow techniques can be expensive, therefore it is a good idea to limit them to being rendered close to the camera if possible, and to skip the expense of rendering shadows for distance objects. This method allows you to set the distance at which shadows will no longer be rendered. Each shadow technique can interpret this subtely differently. For example, one technique may use this to eliminate casters, another might use it to attenuate the shadows themselves. You should tweak this value to suit your chosen shadow technique and scene setup. +setShadowFarDistance :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ distance + -> IO () + -- ^ +setShadowFarDistance a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + setShadowFarDistance'_ a1' a2' >>= \res -> + return () +{-# LINE 618 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Gets the default maximum distance away from the camera that shadows will be visible. +getShadowFarDistance :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getShadowFarDistance a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getShadowFarDistance'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 623 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | +getShadowFarDistanceSquared :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getShadowFarDistanceSquared a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getShadowFarDistanceSquared'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 628 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Sets the maximum size of the index buffer used to render shadow primitives. This method allows you to tweak the size of the index buffer used to render shadow primitives (including stencil shadow volumes). The default size is 51,200 entries, which is 100k of GPU memory, or enough to render approximately 17,000 triangles. You can reduce this as long as you do not have any models / world geometry chunks which could require more than the amount you set. The maximum number of triangles required to render a single shadow volume (including light and dark caps when needed) will be 3x the number of edges on the light silhouette, plus the number of light-facing triangles. On average, half the triangles will be facing toward the light, but the number of triangles in the silhouette entirely depends on the mesh - angular meshes will have a higher silhouette tris/mesh tris ratio than a smooth mesh. You can estimate the requirements for your particular mesh by rendering it alone in a scene with shadows enabled and a single light - rotate it or the light and make a note of how high the triangle count goes (remembering to subtract the mesh triangle count) +setShadowIndexBufferSize :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ size - The number of indexes; divide this by 3 to determine the number of triangles. + -> IO () + -- ^ +setShadowIndexBufferSize a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + setShadowIndexBufferSize'_ a1' a2' >>= \res -> + return () +{-# LINE 633 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Get the size of the shadow index buffer. +getShadowIndexBufferSize :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getShadowIndexBufferSize a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getShadowIndexBufferSize'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 638 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Set the size of the texture used for all texture-based shadows. The larger the shadow texture, the better the detail on texture based shadows, but obviously this takes more memory. The default size is 512. Sizes must be a power of 2. This is the simple form, see setShadowTextureConfig for the more complex form. +setShadowTextureSize :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ size + -> IO () + -- ^ +setShadowTextureSize a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + setShadowTextureSize'_ a1' a2' >>= \res -> + return () +{-# LINE 643 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Set the number of textures allocated for texture-based shadows. The default number of textures assigned to deal with texture based shadows is 1; however this means you can only have one light casting shadows at the same time. You can increase this number in order to make this more flexible, but be aware of the texture memory it will use. +setShadowTextureCount :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ count + -> IO () + -- ^ +setShadowTextureCount a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + setShadowTextureCount'_ a1' a2' >>= \res -> + return () +{-# LINE 648 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Get the number of the textures allocated for texture based shadows. +getShadowTextureCount :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getShadowTextureCount a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getShadowTextureCount'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 653 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Set the number of shadow textures a light type uses. The default for all light types is 1. This means that each light uses only 1 shadow texture. Call this if you need more than 1 shadow texture per light, E.G. PSSM. This feature only works with the Integrated shadow technique. Also remember to increase the total number of shadow textures you request appropriately (e.g. via setShadowTextureCount)!! +setShadowTextureCountPerLightType :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> EnumLightType -- ^ type + -> Int -- ^ count + -> IO () + -- ^ +setShadowTextureCountPerLightType a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + let {a3' = fromIntegral a3} in + setShadowTextureCountPerLightType'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 659 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Get the number of shadow textures is assigned for the given light type. +getShadowTextureCountPerLightType :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> EnumLightType -- ^ type + -> IO (Int) + -- ^ +getShadowTextureCountPerLightType a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + alloca $ \a3' -> + getShadowTextureCountPerLightType'_ a1' a2' a3' >>= \res -> + peekIntConv a3'>>= \a3'' -> + return (a3'') +{-# LINE 665 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Get a reference to the shadow texture currently in use at the given index. If you change shadow settings, this reference may no longer be correct, so be sure not to hold the returned reference over texture shadow configuration changes. +getShadowTexture :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ shadowIndex + -> IO (SharedPtr) + -- ^ +getShadowTexture a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + getShadowTexture'_ a1' a2' a3' >>= \res -> + peekSharedPtr a3'>>= \a3'' -> + return (a3'') +{-# LINE 671 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Sets the proportional distance which a texture shadow which is generated from a directional light will be offset into the camera view to make best use of texture space. When generating a shadow texture from a directional light, an approximation is used since it is not possible to render the entire scene to one texture. The texture is projected onto an area centred on the camera, and is the shadow far distance * 2 in length (it is square). This wastes a lot of texture space outside the frustum though, so this offset allows you to move the texture in front of the camera more. However, be aware that this can cause a little shadow 'jittering' during rotation, and that if you move it too far then you'll start to get artefacts close to the camera. The value is represented as a proportion of the shadow far distance, and the default is 0.6. +setShadowDirLightTextureOffset :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ offset + -> IO () + -- ^ +setShadowDirLightTextureOffset a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + setShadowDirLightTextureOffset'_ a1' a2' >>= \res -> + return () +{-# LINE 676 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Gets the proportional distance which a texture shadow which is generated from a directional light will be offset into the camera view to make best use of texture space. +getShadowDirLightTextureOffset :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getShadowDirLightTextureOffset a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getShadowDirLightTextureOffset'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 681 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Sets the proportional distance at which texture shadows begin to fade out. To hide the edges where texture shadows end (in directional lights) Ogre +setShadowTextureFadeStart :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ fadeStart + -> IO () + -- ^ +setShadowTextureFadeStart a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + setShadowTextureFadeStart'_ a1' a2' >>= \res -> + return () +{-# LINE 686 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Sets the proportional distance at which texture shadows finish to fading out. To hide the edges where texture shadows end (in directional lights) Ogre +setShadowTextureFadeEnd :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ fadeEnd + -> IO () + -- ^ +setShadowTextureFadeEnd a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + setShadowTextureFadeEnd'_ a1' a2' >>= \res -> + return () +{-# LINE 691 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Sets whether or not texture shadows should attempt to self-shadow. The default implementation of texture shadows uses a fixed-function colour texture projection approach for maximum compatibility, and as such cannot support self-shadowing. However, if you decide to implement a more complex shadowing technique using the setShadowTextureCasterMaterial and setShadowTextureReceiverMaterial there is a possibility you may be able to support self-shadowing (e.g by implementing a shader-based shadow map). In this case you might want to enable this option. +setShadowTextureSelfShadow :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ selfShadow - Whether to attempt self-shadowing with texture shadows + -> IO () + -- ^ +setShadowTextureSelfShadow a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setShadowTextureSelfShadow'_ a1' a2' >>= \res -> + return () +{-# LINE 696 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Gets whether or not texture shadows attempt to self-shadow. +getShadowTextureSelfShadow :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getShadowTextureSelfShadow a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getShadowTextureSelfShadow'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 701 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Sets the default material to use for rendering shadow casters. By default shadow casters are rendered into the shadow texture using an automatically generated fixed-function pass. This allows basic projective texture shadows, but it's possible to use more advanced shadow techniques by overriding the caster and receiver materials, for example providing vertex and fragment programs to implement shadow maps. You can rely on the ambient light in the scene being set to the requested texture shadow colour, if that's useful. Individual objects may also override the vertex program in your default material if their materials include shadow_caster_vertex_program_ref, shadow_receiver_vertex_program_ref shadow_caster_material entries, so if you use both make sure they are compatible. +--Only a single pass is allowed in your material, although multiple techniques may be used for hardware fallback. +setShadowTextureCasterMaterial :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO () + -- ^ +setShadowTextureCasterMaterial a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + setShadowTextureCasterMaterial'_ a1' a2' >>= \res -> + return () +{-# LINE 706 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Sets the default material to use for rendering shadow receivers. By default shadow receivers are rendered as a post-pass using basic modulation. This allows basic projective texture shadows, but it's possible to use more advanced shadow techniques by overriding the caster and receiver materials, for example providing vertex and fragment programs to implement shadow maps. You can rely on texture unit 0 containing the shadow texture, and for the unit to be set to use projective texturing from the light (only useful if you're using fixed-function, which is unlikely; otherwise you should rely on the texture_viewproj_matrix auto binding) Individual objects may also override the vertex program in your default material if their materials include shadow_caster_vertex_program_ref shadow_receiver_vertex_program_ref shadow_receiver_material entries, so if you use both make sure they are compatible. +--Only a single pass is allowed in your material, although multiple techniques may be used for hardware fallback. +setShadowTextureReceiverMaterial :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO () + -- ^ +setShadowTextureReceiverMaterial a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + setShadowTextureReceiverMaterial'_ a1' a2' >>= \res -> + return () +{-# LINE 711 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Sets whether or not shadow casters should be rendered into shadow textures using their back faces rather than their front faces. Rendering back faces rather than front faces into a shadow texture can help minimise depth comparison issues, if you're using depth shadowmapping. You will probably still need some biasing but you won't need as much. For solid objects the result is the same anyway, if you have objects with holes you may want to turn this option off. The default is to enable this option. +setShadowCasterRenderBackFaces :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ bf + -> IO () + -- ^ +setShadowCasterRenderBackFaces a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setShadowCasterRenderBackFaces'_ a1' a2' >>= \res -> + return () +{-# LINE 716 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Gets whether or not shadow casters should be rendered into shadow textures using their back faces rather than their front faces. +getShadowCasterRenderBackFaces :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getShadowCasterRenderBackFaces a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getShadowCasterRenderBackFaces'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 721 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Sets whether we should use an inifinite camera far plane when rendering stencil shadows. Stencil shadow coherency is very reliant on the shadow volume not being clipped by the far plane. If this clipping happens, you get a kind of 'negative' shadow effect. The best way to achieve coherency is to move the far plane of the camera out to infinity, thus preventing the far plane from clipping the shadow volumes. When combined with vertex program extrusion of the volume to infinity, which OgreOgreIf you disable infinite projection, or it is not available, you need to be far more careful with your light attenuation / directional light extrusion distances to avoid clipping artefacts at the far plane. Recent cards will generally support infinite far plane projection. However, we have found some cases where they do not, especially on Direct3D. There is no standard capability we can check to validate this, so we use some heuristics based on experience: +-- +-- +-- +-- +-- +-- +-- +-- +--RenderSystem +setShadowUseInfiniteFarPlane :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ enable + -> IO () + -- ^ +setShadowUseInfiniteFarPlane a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setShadowUseInfiniteFarPlane'_ a1' a2' >>= \res -> + return () +{-# LINE 726 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Is there a stencil shadow based shadowing technique in use? +isShadowTechniqueStencilBased :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isShadowTechniqueStencilBased a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + isShadowTechniqueStencilBased'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 731 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Is there a texture shadow based shadowing technique in use? +isShadowTechniqueTextureBased :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isShadowTechniqueTextureBased a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + isShadowTechniqueTextureBased'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 736 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Is there a modulative shadowing technique in use? +isShadowTechniqueModulative :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isShadowTechniqueModulative a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + isShadowTechniqueModulative'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 741 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Is there an additive shadowing technique in use? +isShadowTechniqueAdditive :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isShadowTechniqueAdditive a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + isShadowTechniqueAdditive'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 746 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Is the shadow technique integrated into primary materials? +isShadowTechniqueIntegrated :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isShadowTechniqueIntegrated a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + isShadowTechniqueIntegrated'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 751 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Is there any shadowing technique in use? +isShadowTechniqueInUse :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isShadowTechniqueInUse a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + isShadowTechniqueInUse'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 756 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Sets whether when using a built-in additive shadow mode, user clip planes should be used to restrict light rendering. +setShadowUseLightClipPlanes :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ enabled + -> IO () + -- ^ +setShadowUseLightClipPlanes a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setShadowUseLightClipPlanes'_ a1' a2' >>= \res -> + return () +{-# LINE 761 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Gets whether when using a built-in additive shadow mode, user clip planes should be used to restrict light rendering. +getShadowUseLightClipPlanes :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getShadowUseLightClipPlanes a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getShadowUseLightClipPlanes'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 766 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Sets whether to use late material resolving or not. If set, materials will be resolved from the materials at the pass-setting stage and not at the render queue building stage. This is useful when the active material scheme during the render queue building stage is different from the one during the rendering stage. +setLateMaterialResolving :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ isLate + -> IO () + -- ^ +setLateMaterialResolving a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setLateMaterialResolving'_ a1' a2' >>= \res -> + return () +{-# LINE 771 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Gets whether using late material resolving or not. setLateMaterialResolving +isLateMaterialResolving :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isLateMaterialResolving a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + isLateMaterialResolving'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 776 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Returns whether a static geometry instance with the given name exists. +hasStaticGeometry :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (Bool) + -- ^ +hasStaticGeometry a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + hasStaticGeometry'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 782 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Remove & destroy a StaticGeometry instance. +destroyStaticGeometry2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO () + -- ^ +destroyStaticGeometry2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + destroyStaticGeometry2'_ a1' a2' >>= \res -> + return () +{-# LINE 787 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Remove & destroy all StaticGeometry instances. +destroyAllStaticGeometry :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +destroyAllStaticGeometry a1 = + withHG3DClass a1 $ \a1' -> + destroyAllStaticGeometry'_ a1' >>= \res -> + return () +{-# LINE 791 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Remove & destroy a InstancedGeometry instance. +destroyInstancedGeometry2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO () + -- ^ +destroyInstancedGeometry2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + destroyInstancedGeometry2'_ a1' a2' >>= \res -> + return () +{-# LINE 796 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Remove & destroy all InstancedGeometry instances. +destroyAllInstancedGeometry :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +destroyAllInstancedGeometry a1 = + withHG3DClass a1 $ \a1' -> + destroyAllInstancedGeometry'_ a1' >>= \res -> + return () +{-# LINE 800 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Destroys a MovableObjectThe MovableObject +destroyMovableObject :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> String -- ^ typeName + -> IO () + -- ^ +destroyMovableObject a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + destroyMovableObject'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 806 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Destroys a MovableObjectThe MovableObject +destroyMovableObject2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ m + -> IO () + -- ^ +destroyMovableObject2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + destroyMovableObject2'_ a1' a2' >>= \res -> + return () +{-# LINE 811 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Destroy all MovableObjects of a given type. +destroyAllMovableObjectsByType :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ typeName + -> IO () + -- ^ +destroyAllMovableObjectsByType a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + destroyAllMovableObjectsByType'_ a1' a2' >>= \res -> + return () +{-# LINE 816 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Destroy all MovableObjects. +destroyAllMovableObjects :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +destroyAllMovableObjects a1 = + withHG3DClass a1 $ \a1' -> + destroyAllMovableObjects'_ a1' >>= \res -> + return () +{-# LINE 820 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Get a reference to a previously created MovableObjectThrows an exception if the named instance does not exist +getMovableObject :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> String -- ^ typeName + -> IO (HG3DClass) + -- ^ +getMovableObject a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + alloca $ \a4' -> + getMovableObject'_ a1' a2' a3' a4' >>= \res -> + peek a4'>>= \a4'' -> + return (a4'') +{-# LINE 827 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Returns whether a movable object instance with the given name exists. +hasMovableObject :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> String -- ^ typeName + -> IO (Bool) + -- ^ +hasMovableObject a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + alloca $ \a4' -> + hasMovableObject'_ a1' a2' a3' a4' >>= \res -> + peekBoolUtil a4'>>= \a4'' -> + return (a4'') +{-# LINE 834 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Inject a MovableObjectThis method 'injects' a MovableObjectMovableObjectSceneManagerMovableObjectMovableObjectIt is important that the MovableObject +injectMovableObject :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ m + -> IO () + -- ^ +injectMovableObject a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + injectMovableObject'_ a1' a2' >>= \res -> + return () +{-# LINE 839 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Extract a previously injected MovableObjectEssentially this does the same as destroyMovableObject, but only removes the instance from the internal lists, it does not attempt to destroy it. +extractMovableObject :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> String -- ^ typeName + -> IO () + -- ^ +extractMovableObject a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + extractMovableObject'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 845 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Extract a previously injected MovableObjectEssentially this does the same as destroyMovableObject, but only removes the instance from the internal lists, it does not attempt to destroy it. +extractMovableObject2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ m + -> IO () + -- ^ +extractMovableObject2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + extractMovableObject2'_ a1' a2' >>= \res -> + return () +{-# LINE 850 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Extract all injected MovableObjects of a given type. Essentially this does the same as destroyAllMovableObjectsByType, but only removes the instances from the internal lists, it does not attempt to destroy them. +extractAllMovableObjectsByType :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ typeName + -> IO () + -- ^ +extractAllMovableObjectsByType a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + extractAllMovableObjectsByType'_ a1' a2' >>= \res -> + return () +{-# LINE 855 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Sets a mask which is bitwise 'and'ed with objects own visibility masks to determine if the object is visible. Note that this is combined with any per-viewport visibility mask through an 'and' operation. Viewport::setVisibilityMask +setVisibilityMask :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ vmask + -> IO () + -- ^ +setVisibilityMask a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + setVisibilityMask'_ a1' a2' >>= \res -> + return () +{-# LINE 860 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Gets a mask which is bitwise 'and'ed with objects own visibility masks to determine if the object is visible. +getVisibilityMask :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getVisibilityMask a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getVisibilityMask'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 865 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Sets whether the SceneManagerThis is an advanced function, you should not use this unless you know what you are doing. +setFindVisibleObjects :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ find + -> IO () + -- ^ +setFindVisibleObjects a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setFindVisibleObjects'_ a1' a2' >>= \res -> + return () +{-# LINE 870 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Gets whether the SceneManager +getFindVisibleObjects :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getFindVisibleObjects a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getFindVisibleObjects'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 875 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Set whether to automatically normalise normals on objects whenever they are scaled. Scaling can distort normals so the default behaviour is to compensate for this, but it has a cost. If you would prefer to manually manage this, set this option to 'false' and use Pass::setNormaliseNormals only when needed. +setNormaliseNormalsOnScale :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ n + -> IO () + -- ^ +setNormaliseNormalsOnScale a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setNormaliseNormalsOnScale'_ a1' a2' >>= \res -> + return () +{-# LINE 880 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Get whether to automatically normalise normals on objects whenever they are scaled. +getNormaliseNormalsOnScale :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getNormaliseNormalsOnScale a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getNormaliseNormalsOnScale'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 885 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Set whether to automatically flip the culling mode on objects whenever they are negatively scaled. Negativelyl scaling an object has the effect of flipping the triangles, so the culling mode should probably be inverted to deal with this. If you would prefer to manually manage this, set this option to 'false' and use different materials with Pass::setCullingMode set manually as needed. +setFlipCullingOnNegativeScale :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ n + -> IO () + -- ^ +setFlipCullingOnNegativeScale a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setFlipCullingOnNegativeScale'_ a1' a2' >>= \res -> + return () +{-# LINE 890 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Get whether to automatically flip the culling mode on objects whenever they are negatively scaled. +getFlipCullingOnNegativeScale :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getFlipCullingOnNegativeScale a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getFlipCullingOnNegativeScale'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 895 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Get the rendersystem subclass to which the output of this Scene Manager gets sent +getDestinationRenderSystem :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (HG3DClass) + -- ^ +getDestinationRenderSystem a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getDestinationRenderSystem'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 900 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Gets the current viewport being rendered (advanced use only, only valid during viewport update. +getCurrentViewport :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (HG3DClass) + -- ^ +getCurrentViewport a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getCurrentViewport'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 905 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Set whether to use camera-relative co-ordinates when rendering, ie to always place the camera at the origin and move the world around it. This is a technique to alleviate some of the precision issues associated with rendering far from the origin, where single-precision floats as used in most GPUs begin to lose their precision. Instead of including the camera translation in the view matrix, it only includes the rotation, and the world matrices of objects must be expressed relative to this. If you need this option, you will probably also need to enable double-precision mode in Ogre +setCameraRelativeRendering :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ rel + -> IO () + -- ^ +setCameraRelativeRendering a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + setCameraRelativeRendering'_ a1' a2' >>= \res -> + return () +{-# LINE 910 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + +-- | Get whether to use camera-relative co-ordinates when rendering, ie to always place the camera at the origin and move the world around it. +getCameraRelativeRendering :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getCameraRelativeRendering a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getCameraRelativeRendering'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 915 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs" #-} + + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_destruct" + delete'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getName" + getName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getTypeName" + getTypeName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_createCamera" + createCamera'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getCamera" + getCamera'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_hasCamera" + hasCamera'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_destroyCamera" + destroyCamera'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_destroyCamera2" + destroyCamera2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_destroyAllCameras" + destroyAllCameras'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_createLight" + createLight'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_createLight2" + createLight2'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getLight" + getLight'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_hasLight" + hasLight'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_destroyLight" + destroyLight'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_destroyLight2" + destroyLight2'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_destroyAllLights" + destroyAllLights'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_createSceneNode" + createSceneNode'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_createSceneNode2" + createSceneNode2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_destroySceneNode" + destroySceneNode'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_destroySceneNode2" + destroySceneNode2'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getRootSceneNode" + getRootSceneNode'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getSceneNode" + getSceneNode'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_hasSceneNode" + hasSceneNode'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_createEntity" + createEntity'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_createEntity2" + createEntity2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_createEntity3" + createEntity3'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> ((HG3DClassPtr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_createEntity4" + createEntity4'_ :: ((HG3DClassPtr) -> (CInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getEntity" + getEntity'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_hasEntity" + hasEntity'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_destroyEntity" + destroyEntity'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_destroyEntity2" + destroyEntity2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_destroyAllEntities" + destroyAllEntities'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_createManualObject" + createManualObject'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_createManualObject2" + createManualObject2'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getManualObject" + getManualObject'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_hasManualObject" + hasManualObject'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_destroyManualObject" + destroyManualObject'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_destroyManualObject2" + destroyManualObject2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_destroyAllManualObjects" + destroyAllManualObjects'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_createBillboardChain" + createBillboardChain'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_createBillboardChain2" + createBillboardChain2'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getBillboardChain" + getBillboardChain'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_hasBillboardChain" + hasBillboardChain'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_destroyBillboardChain" + destroyBillboardChain'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_destroyBillboardChain2" + destroyBillboardChain2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_destroyAllBillboardChains" + destroyAllBillboardChains'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_hasRibbonTrail" + hasRibbonTrail'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_destroyRibbonTrail2" + destroyRibbonTrail2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_destroyAllRibbonTrails" + destroyAllRibbonTrails'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_hasParticleSystem" + hasParticleSystem'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_destroyParticleSystem2" + destroyParticleSystem2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_destroyAllParticleSystems" + destroyAllParticleSystems'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_clearScene" + clearScene'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_setAmbientLight" + setAmbientLight'_ :: ((HG3DClassPtr) -> ((ColourPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getAmbientLight" + getAmbientLight'_ :: ((HG3DClassPtr) -> ((ColourPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_prepareWorldGeometry" + prepareWorldGeometry'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_setWorldGeometry" + setWorldGeometry'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_estimateWorldGeometry" + estimateWorldGeometry'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_hasOption" + hasOption'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_setSkyPlaneEnabled" + setSkyPlaneEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_isSkyPlaneEnabled" + isSkyPlaneEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getSkyPlaneNode" + getSkyPlaneNode'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_setSkyBox" + setSkyBox'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CChar) -> (CFloat -> (CInt -> ((QuaternionPtr) -> ((Ptr CChar) -> (IO ())))))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_setSkyBoxEnabled" + setSkyBoxEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_isSkyBoxEnabled" + isSkyBoxEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getSkyBoxNode" + getSkyBoxNode'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_setSkyDome" + setSkyDome'_ :: ((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 ogre_scmgr_setSkyDomeEnabled" + setSkyDomeEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_isSkyDomeEnabled" + isSkyDomeEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getSkyDomeNode" + getSkyDomeNode'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getFogColour" + getFogColour'_ :: ((HG3DClassPtr) -> ((ColourPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getFogStart" + getFogStart'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getFogEnd" + getFogEnd'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getFogDensity" + getFogDensity'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_createBillboardSet" + createBillboardSet'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CUInt -> ((HG3DClassPtr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_createBillboardSet2" + createBillboardSet2'_ :: ((HG3DClassPtr) -> (CUInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getBillboardSet" + getBillboardSet'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_hasBillboardSet" + hasBillboardSet'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_destroyBillboardSet" + destroyBillboardSet'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_destroyBillboardSet2" + destroyBillboardSet2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_destroyAllBillboardSets" + destroyAllBillboardSets'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_setDisplaySceneNodes" + setDisplaySceneNodes'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getDisplaySceneNodes" + getDisplaySceneNodes'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_createAnimation" + createAnimation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CFloat -> ((HG3DClassPtr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getAnimation" + getAnimation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_hasAnimation" + hasAnimation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_destroyAnimation" + destroyAnimation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_destroyAllAnimations" + destroyAllAnimations'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_createAnimationState" + createAnimationState'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getAnimationState" + getAnimationState'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_hasAnimationState" + hasAnimationState'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_destroyAnimationState" + destroyAnimationState'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_destroyAllAnimationStates" + destroyAllAnimationStates'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_clearSpecialCaseRenderQueues" + clearSpecialCaseRenderQueues'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_setSpecialCaseRenderQueueMode" + setSpecialCaseRenderQueueMode'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getSpecialCaseRenderQueueMode" + getSpecialCaseRenderQueueMode'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_showBoundingBoxes" + showBoundingBoxes'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getShowBoundingBoxes" + getShowBoundingBoxes'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_setShowDebugShadows" + setShowDebugShadows'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getShowDebugShadows" + getShowDebugShadows'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_setShadowColour" + setShadowColour'_ :: ((HG3DClassPtr) -> ((ColourPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getShadowColour" + getShadowColour'_ :: ((HG3DClassPtr) -> ((ColourPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_setShadowDirectionalLightExtrusionDistance" + setShadowDirectionalLightExtrusionDistance'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getShadowDirectionalLightExtrusionDistance" + getShadowDirectionalLightExtrusionDistance'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_setShadowFarDistance" + setShadowFarDistance'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getShadowFarDistance" + getShadowFarDistance'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getShadowFarDistanceSquared" + getShadowFarDistanceSquared'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_setShadowIndexBufferSize" + setShadowIndexBufferSize'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getShadowIndexBufferSize" + getShadowIndexBufferSize'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_setShadowTextureSize" + setShadowTextureSize'_ :: ((HG3DClassPtr) -> (CUShort -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_setShadowTextureCount" + setShadowTextureCount'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getShadowTextureCount" + getShadowTextureCount'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_setShadowTextureCountPerLightType" + setShadowTextureCountPerLightType'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getShadowTextureCountPerLightType" + getShadowTextureCountPerLightType'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getShadowTexture" + getShadowTexture'_ :: ((HG3DClassPtr) -> (CInt -> ((SharedPtrPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_setShadowDirLightTextureOffset" + setShadowDirLightTextureOffset'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getShadowDirLightTextureOffset" + getShadowDirLightTextureOffset'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_setShadowTextureFadeStart" + setShadowTextureFadeStart'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_setShadowTextureFadeEnd" + setShadowTextureFadeEnd'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_setShadowTextureSelfShadow" + setShadowTextureSelfShadow'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getShadowTextureSelfShadow" + getShadowTextureSelfShadow'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_setShadowTextureCasterMaterial" + setShadowTextureCasterMaterial'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_setShadowTextureReceiverMaterial" + setShadowTextureReceiverMaterial'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_setShadowCasterRenderBackFaces" + setShadowCasterRenderBackFaces'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getShadowCasterRenderBackFaces" + getShadowCasterRenderBackFaces'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_setShadowUseInfiniteFarPlane" + setShadowUseInfiniteFarPlane'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_isShadowTechniqueStencilBased" + isShadowTechniqueStencilBased'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_isShadowTechniqueTextureBased" + isShadowTechniqueTextureBased'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_isShadowTechniqueModulative" + isShadowTechniqueModulative'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_isShadowTechniqueAdditive" + isShadowTechniqueAdditive'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_isShadowTechniqueIntegrated" + isShadowTechniqueIntegrated'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_isShadowTechniqueInUse" + isShadowTechniqueInUse'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_setShadowUseLightClipPlanes" + setShadowUseLightClipPlanes'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getShadowUseLightClipPlanes" + getShadowUseLightClipPlanes'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_setLateMaterialResolving" + setLateMaterialResolving'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_isLateMaterialResolving" + isLateMaterialResolving'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_hasStaticGeometry" + hasStaticGeometry'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_destroyStaticGeometry2" + destroyStaticGeometry2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_destroyAllStaticGeometry" + destroyAllStaticGeometry'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_destroyInstancedGeometry2" + destroyInstancedGeometry2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_destroyAllInstancedGeometry" + destroyAllInstancedGeometry'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_destroyMovableObject" + destroyMovableObject'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_destroyMovableObject2" + destroyMovableObject2'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_destroyAllMovableObjectsByType" + destroyAllMovableObjectsByType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_destroyAllMovableObjects" + destroyAllMovableObjects'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getMovableObject" + getMovableObject'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_hasMovableObject" + hasMovableObject'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_injectMovableObject" + injectMovableObject'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_extractMovableObject" + extractMovableObject'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_extractMovableObject2" + extractMovableObject2'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_extractAllMovableObjectsByType" + extractAllMovableObjectsByType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_setVisibilityMask" + setVisibilityMask'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getVisibilityMask" + getVisibilityMask'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_setFindVisibleObjects" + setFindVisibleObjects'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getFindVisibleObjects" + getFindVisibleObjects'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_setNormaliseNormalsOnScale" + setNormaliseNormalsOnScale'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getNormaliseNormalsOnScale" + getNormaliseNormalsOnScale'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_setFlipCullingOnNegativeScale" + setFlipCullingOnNegativeScale'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getFlipCullingOnNegativeScale" + getFlipCullingOnNegativeScale'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getDestinationRenderSystem" + getDestinationRenderSystem'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getCurrentViewport" + getCurrentViewport'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_setCameraRelativeRendering" + setCameraRelativeRendering'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManager.chs.h ogre_scmgr_getCameraRelativeRendering" + getCameraRelativeRendering'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerFactory.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,41 +39,59 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManagerFactory.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManagerFactory.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManagerFactory.chs" #-} +-- | +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = + withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 49 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManagerFactory.chs" #-} -cSmfCreateInstance :: HG3DClass -> String -> IO (HG3DClass) -cSmfCreateInstance a1 a2 = +-- | Create a new instance of a SceneManagerDon't call directly, use SceneManagerEnumerator::createSceneManager. +createInstance :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ instanceName + -> IO (HG3DClass) + -- ^ +createInstance a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> alloca $ \a3' -> - cSmfCreateInstance'_ a1' a2' a3' >>= \res -> + createInstance'_ a1' a2' a3' >>= \res -> peek a3'>>= \a3'' -> return (a3'') -{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerFactory.chs" #-} -; -cSmfDestroyInstance :: HG3DClass -> HG3DClass -> IO () -cSmfDestroyInstance a1 a2 = +{-# LINE 55 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneManagerFactory.chs" #-} + +-- | Destroy an instance of a SceneManager +destroyInstance :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ instance + -> IO () + -- ^ +destroyInstance a1 a2 = withHG3DClass a1 $ \a1' -> withHG3DClass a2 $ \a2' -> - cSmfDestroyInstance'_ a1' a2' >>= \res -> + destroyInstance'_ a1' a2' >>= \res -> return () -{-# LINE 65 "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerFactory.chs" #-} -; +{-# LINE 60 ".\\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 ()))) +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerFactory.chs.h ogre_smf_destruct" + delete'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerFactory.chs.h ogre_smf_createInstance" + createInstance'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneManagerFactory.chs.h ogre_smf_destroyInstance" + destroyInstance'_ :: ((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.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,444 +39,462 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +import HGamer3D.Bindings.Ogre.StructVec3 +{-# LINE 45 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +import HGamer3D.Bindings.Ogre.StructQuaternion +{-# LINE 46 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} +-- | +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = + withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 51 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} -cSnAttachObject :: HG3DClass -> HG3DClass -> IO () -cSnAttachObject a1 a2 = +-- | Adds an instance of a scene object to this node. Scene objects can include EntityCameraLightMovableObject +attachObject :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ obj + -> IO () + -- ^ +attachObject a1 a2 = withHG3DClass a1 $ \a1' -> withHG3DClass a2 $ \a2' -> - cSnAttachObject'_ a1' a2' >>= \res -> + attachObject'_ a1' a2' >>= \res -> return () -{-# LINE 64 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} -; -cSnNumAttachedObjects :: HG3DClass -> IO (Int) -cSnNumAttachedObjects a1 = +{-# LINE 56 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} + +-- | Reports the number of objects attached to this node. +numAttachedObjects :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +numAttachedObjects a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cSnNumAttachedObjects'_ a1' a2' >>= \res -> + numAttachedObjects'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 68 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} -; -cSnGetAttachedObject :: HG3DClass -> Int -> IO (HG3DClass) -cSnGetAttachedObject a1 a2 = +{-# LINE 61 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} + +-- | Retrieves a pointer to an attached object. Retrieves by index, see alternate version to retrieve by name. The index of an object may change as other objects are added / removed. +getAttachedObject :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ index + -> IO (HG3DClass) + -- ^ +getAttachedObject a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in alloca $ \a3' -> - cSnGetAttachedObject'_ a1' a2' a3' >>= \res -> + getAttachedObject'_ a1' a2' a3' >>= \res -> peek a3'>>= \a3'' -> return (a3'') -{-# LINE 73 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} -; -cSnGetAttachedObject2 :: HG3DClass -> String -> IO (HG3DClass) -cSnGetAttachedObject2 a1 a2 = +{-# LINE 67 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} + +-- | Retrieves a pointer to an attached object. Retrieves by object name, see alternate version to retrieve by index. +getAttachedObject2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (HG3DClass) + -- ^ +getAttachedObject2 a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> alloca $ \a3' -> - cSnGetAttachedObject2'_ a1' a2' a3' >>= \res -> + getAttachedObject2'_ a1' a2' a3' >>= \res -> peek a3'>>= \a3'' -> return (a3'') -{-# LINE 78 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} -; -cSnDetachObject :: HG3DClass -> Int -> IO (HG3DClass) -cSnDetachObject a1 a2 = +{-# LINE 73 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} + +-- | Detaches the indexed object from this scene node. Detaches by index, see the alternate version to detach by name. Object indexes may change as other objects are added / removed. +detachObject :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ index + -> IO (HG3DClass) + -- ^ +detachObject a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in alloca $ \a3' -> - cSnDetachObject'_ a1' a2' a3' >>= \res -> + detachObject'_ a1' a2' a3' >>= \res -> peek a3'>>= \a3'' -> return (a3'') -{-# LINE 83 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} -; -cSnDetachObject2 :: HG3DClass -> HG3DClass -> IO () -cSnDetachObject2 a1 a2 = +{-# LINE 79 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} + +-- | Detaches an object by pointer. +detachObject2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ obj + -> IO () + -- ^ +detachObject2 a1 a2 = withHG3DClass a1 $ \a1' -> withHG3DClass a2 $ \a2' -> - cSnDetachObject2'_ a1' a2' >>= \res -> + detachObject2'_ a1' a2' >>= \res -> return () -{-# LINE 87 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} -; -cSnDetachObject3 :: HG3DClass -> String -> IO (HG3DClass) -cSnDetachObject3 a1 a2 = +{-# LINE 84 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} + +-- | Detaches the named object from this node and returns a pointer to it. +detachObject3 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (HG3DClass) + -- ^ +detachObject3 a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> alloca $ \a3' -> - cSnDetachObject3'_ a1' a2' a3' >>= \res -> + detachObject3'_ a1' a2' a3' >>= \res -> peek a3'>>= \a3'' -> return (a3'') -{-# LINE 92 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} -; -cSnDetachAllObjects :: HG3DClass -> IO () -cSnDetachAllObjects a1 = +{-# LINE 90 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} + +-- | Detaches all objects attached to this node. +detachAllObjects :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +detachAllObjects a1 = withHG3DClass a1 $ \a1' -> - cSnDetachAllObjects'_ a1' >>= \res -> + detachAllObjects'_ a1' >>= \res -> return () -{-# LINE 95 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} -; -cSnIsInSceneGraph :: HG3DClass -> IO (Bool) -cSnIsInSceneGraph a1 = +{-# LINE 94 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} + +-- | Determines whether this node is in the scene graph, i.e. whether it's ultimate ancestor is the root scene node. +isInSceneGraph :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isInSceneGraph a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cSnIsInSceneGraph'_ a1' a2' >>= \res -> + isInSceneGraph'_ 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 = +{-# LINE 99 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} + +-- | Gets the creator of this scene node. This method returns the SceneManager +getCreator :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (HG3DClass) + -- ^ +getCreator a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cSnGetCreator'_ a1' a2' >>= \res -> + getCreator'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') -{-# LINE 114 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} -; -cSnRemoveAndDestroyChild :: HG3DClass -> String -> IO () -cSnRemoveAndDestroyChild a1 a2 = +{-# LINE 104 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} + +-- | This method removes and destroys the named child and all of its children. Unlike removeChild, which removes a single named child from this node but does not destroy it, this method destroys the child and all of it's children. Use this if you wish to recursively destroy a node as well as detaching it from it's parent. Note that any objects attached to the nodes will be detached but will not themselves be destroyed. +removeAndDestroyChild :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO () + -- ^ +removeAndDestroyChild a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> - cSnRemoveAndDestroyChild'_ a1' a2' >>= \res -> + removeAndDestroyChild'_ a1' a2' >>= \res -> return () -{-# LINE 118 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} -; -cSnRemoveAndDestroyChild2 :: HG3DClass -> Int -> IO () -cSnRemoveAndDestroyChild2 a1 a2 = +{-# LINE 109 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} + +-- | This method removes and destroys the child and all of its children. Unlike removeChild, which removes a single named child from this node but does not destroy it, this method destroys the child and all of it's children. Use this if you wish to recursively destroy a node as well as detaching it from it's parent. Note that any objects attached to the nodes will be detached but will not themselves be destroyed. +removeAndDestroyChild2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ index + -> IO () + -- ^ +removeAndDestroyChild2 a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in - cSnRemoveAndDestroyChild2'_ a1' a2' >>= \res -> + removeAndDestroyChild2'_ a1' a2' >>= \res -> return () -{-# LINE 122 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} -; -cSnRemoveAndDestroyAllChildren :: HG3DClass -> IO () -cSnRemoveAndDestroyAllChildren a1 = +{-# LINE 114 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} + +-- | Removes and destroys all children of this node. Use this to destroy all child nodes of this node and remove them from the scene graph. Note that all objects attached to this node will be detached but will not be destroyed. +removeAndDestroyAllChildren :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +removeAndDestroyAllChildren a1 = withHG3DClass a1 $ \a1' -> - cSnRemoveAndDestroyAllChildren'_ a1' >>= \res -> + removeAndDestroyAllChildren'_ a1' >>= \res -> return () -{-# LINE 125 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} -; -cSnShowBoundingBox :: HG3DClass -> Bool -> IO () -cSnShowBoundingBox a1 a2 = +{-# LINE 118 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} + +-- | Allows the showing of the node's bounding box. Use this to show or hide the bounding box of the node. +showBoundingBox :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ bShow + -> IO () + -- ^ +showBoundingBox a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cSnShowBoundingBox'_ a1' a2' >>= \res -> + showBoundingBox'_ a1' a2' >>= \res -> return () -{-# LINE 129 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} -; -cSnHideBoundingBox :: HG3DClass -> Bool -> IO () -cSnHideBoundingBox a1 a2 = +{-# LINE 123 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} + +-- | Allows the overriding of the node's bounding box over the SceneManagerUse this to override the bounding box setting of the node. +hideBoundingBox :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ bHide + -> IO () + -- ^ +hideBoundingBox a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cSnHideBoundingBox'_ a1' a2' >>= \res -> + hideBoundingBox'_ a1' a2' >>= \res -> return () -{-# LINE 133 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} -; -cSnGetShowBoundingBox :: HG3DClass -> IO (Bool) -cSnGetShowBoundingBox a1 = +{-# LINE 128 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} + +-- | This allows scene managers to determine if the node's bounding box should be added to the rendering queue. Scene Managers that implement their own _findVisibleObjects will have to check this flag and then use _addBoundingBoxToQueue to add the bounding box wireframe. +getShowBoundingBox :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getShowBoundingBox a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cSnGetShowBoundingBox'_ a1' a2' >>= \res -> + getShowBoundingBox'_ 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 = +{-# LINE 133 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} + +-- | Creates an unnamed new SceneNode +createChildSceneNode :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Vec3 -- ^ translate - Initial translation offset of child relative to parent + -> Quaternion -- ^ rotate - Initial rotation relative to parent + -> IO (HG3DClass) + -- ^ +createChildSceneNode a1 a2 a3 = withHG3DClass a1 $ \a1' -> - withVector3 a2 $ \a2' -> + withVec3 a2 $ \a2' -> withQuaternion a3 $ \a3' -> alloca $ \a4' -> - cSnCreateChildSceneNode'_ a1' a2' a3' a4' >>= \res -> + createChildSceneNode'_ 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 = +{-# LINE 140 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} + +-- | Creates a new named SceneNodeThis creates a child node with a given name, which allows you to look the node up from the parent which holds this collection of nodes. +createChildSceneNode2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> Vec3 -- ^ translate - Initial translation offset of child relative to parent + -> Quaternion -- ^ rotate - Initial rotation relative to parent + -> IO (HG3DClass) + -- ^ +createChildSceneNode2 a1 a2 a3 a4 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> - withVector3 a3 $ \a3' -> + withVec3 a3 $ \a3' -> withQuaternion a4 $ \a4' -> alloca $ \a5' -> - cSnCreateChildSceneNode2'_ a1' a2' a3' a4' a5' >>= \res -> + createChildSceneNode2'_ 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 = +{-# LINE 148 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} + +-- | Tells the node whether to yaw around it's own local Y axis or a fixed axis of choice. This method allows you to change the yaw behaviour of the node - by default, it yaws around it's own local Y axis when told to yaw with TS_LOCAL, this makes it yaw around a fixed axis. You only really need this when you're using auto tracking (see setAutoTracking, because when you're manually rotating a node you can specify the TransformSpace in which you wish to work anyway. +setFixedYawAxis :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ useFixed - If true, the axis passed in the second parameter will always be the yaw axis no matter what the node orientation. If false, the node returns to it's default behaviour. + -> Vec3 -- ^ fixedAxis - The axis to use if the first parameter is true. + -> IO () + -- ^ +setFixedYawAxis 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 -> + withVec3 a3 $ \a3' -> + setFixedYawAxis'_ a1' a2' a3' >>= \res -> return () -{-# LINE 180 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} -; -cSnSetAutoTracking :: HG3DClass -> Bool -> HG3DClass -> Vector3 -> Vector3 -> IO () -cSnSetAutoTracking a1 a2 a3 a4 a5 = +{-# LINE 154 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} + +-- | Enables / disables automatic tracking of another SceneNodeIf you enable auto-tracking, this SceneNodeSceneNodeSceneNodeSceneNode +setAutoTracking :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ enabled - If true, tracking will be enabled and the next parameter cannot be null. If false tracking will be disabled and the current orientation will be maintained. + -> HG3DClass -- ^ target - Pointer to the SceneNode to track. Make sure you don't delete this SceneNode before turning off tracking (e.g. SceneManager::clearScene will delete it so be careful of this). Can be null if and only if the enabled param is false. + -> Vec3 -- ^ localDirectionVector - The local vector considered to be the usual 'direction' of the node; normally the local -Z but can be another direction. + -> Vec3 -- ^ offset - If supplied, this is the target point in local space of the target node instead of the origin of the target node. Good for fine tuning the look at point. + -> IO () + -- ^ +setAutoTracking 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 -> + withVec3 a4 $ \a4' -> + withVec3 a5 $ \a5' -> + setAutoTracking'_ a1' a2' a3' a4' a5' >>= \res -> return () -{-# LINE 187 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} -; -cSnGetAutoTrackTarget :: HG3DClass -> IO (HG3DClass) -cSnGetAutoTrackTarget a1 = +{-# LINE 162 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} + +-- | Get the auto tracking target for this node, if any. +getAutoTrackTarget :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (HG3DClass) + -- ^ +getAutoTrackTarget a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cSnGetAutoTrackTarget'_ a1' a2' >>= \res -> + getAutoTrackTarget'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') -{-# LINE 191 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} -; -cSnGetAutoTrackOffset :: HG3DClass -> IO (Vector3) -cSnGetAutoTrackOffset a1 = +{-# LINE 167 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} + +-- | Get the auto tracking offset for this node, if the node is auto tracking. +getAutoTrackOffset :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Vec3) + -- ^ +getAutoTrackOffset a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cSnGetAutoTrackOffset'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> + getAutoTrackOffset'_ a1' a2' >>= \res -> + peekVec3 a2'>>= \a2'' -> return (a2'') -{-# LINE 195 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} -; -cSnGetAutoTrackLocalDirection :: HG3DClass -> IO (Vector3) -cSnGetAutoTrackLocalDirection a1 = +{-# LINE 172 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} + +-- | Get the auto tracking local direction for this node, if it is auto tracking. +getAutoTrackLocalDirection :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Vec3) + -- ^ +getAutoTrackLocalDirection a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cSnGetAutoTrackLocalDirection'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> + getAutoTrackLocalDirection'_ a1' a2' >>= \res -> + peekVec3 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 = +{-# LINE 177 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} + +-- | Gets the parent of this SceneNode +getParentSceneNode :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (HG3DClass) + -- ^ +getParentSceneNode a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cSnGetParentSceneNode'_ a1' a2' >>= \res -> + getParentSceneNode'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') -{-# LINE 206 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} -; -cSnSetVisible :: HG3DClass -> Bool -> Bool -> IO () -cSnSetVisible a1 a2 a3 = +{-# LINE 182 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} + +-- | Makes all objects attached to this node become visible / invisible. This is a shortcut to calling setVisible() +setVisible :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ visible - Whether the objects are to be made visible or invisible + -> Bool -- ^ cascade - If true, this setting cascades into child nodes too. + -> IO () + -- ^ +setVisible a1 a2 a3 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in let {a3' = fromBool a3} in - cSnSetVisible'_ a1' a2' a3' >>= \res -> + setVisible'_ a1' a2' a3' >>= \res -> return () -{-# LINE 211 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} -; -cSnFlipVisibility :: HG3DClass -> Bool -> IO () -cSnFlipVisibility a1 a2 = +{-# LINE 188 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} + +-- | Inverts the visibility of all objects attached to this node. This is a shortcut to calling setVisible(!isVisible()) on the objects attached to this node, and optionally to all objects attached to child nodes. +flipVisibility :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ cascade - If true, this setting cascades into child nodes too. + -> IO () + -- ^ +flipVisibility a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cSnFlipVisibility'_ a1' a2' >>= \res -> + flipVisibility'_ a1' a2' >>= \res -> return () -{-# LINE 215 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} -; -cSnSetDebugDisplayEnabled :: HG3DClass -> Bool -> Bool -> IO () -cSnSetDebugDisplayEnabled a1 a2 a3 = +{-# LINE 193 ".\\HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} + +-- | Tells all objects attached to this node whether to display their debug information or not. This is a shortcut to calling setDebugDisplayEnabled() +setDebugDisplayEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ enabled - Whether the objects are to display debug info or not + -> Bool -- ^ cascade - If true, this setting cascades into child nodes too. + -> IO () + -- ^ +setDebugDisplayEnabled a1 a2 a3 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in let {a3' = fromBool a3} in - cSnSetDebugDisplayEnabled'_ a1' a2' a3' >>= \res -> + setDebugDisplayEnabled'_ a1' a2' a3' >>= \res -> return () -{-# LINE 220 "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs" #-} -; +{-# LINE 199 ".\\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 ogre_sn_destruct" + delete'_ :: ((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 ogre_sn_attachObject" + attachObject'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (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 ogre_sn_numAttachedObjects" + numAttachedObjects'_ :: ((HG3DClassPtr) -> ((Ptr CUShort) -> (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 ogre_sn_getAttachedObject" + getAttachedObject'_ :: ((HG3DClassPtr) -> (CUShort -> ((HG3DClassPtr) -> (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 ogre_sn_getAttachedObject2" + getAttachedObject2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((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 ogre_sn_detachObject" + detachObject'_ :: ((HG3DClassPtr) -> (CUShort -> ((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 ogre_sn_detachObject2" + detachObject2'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (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 ogre_sn_detachObject3" + detachObject3'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (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 ogre_sn_detachAllObjects" + detachAllObjects'_ :: ((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 ogre_sn_isInSceneGraph" + isInSceneGraph'_ :: ((HG3DClassPtr) -> ((Ptr 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 ogre_sn_getCreator" + getCreator'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (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 ogre_sn_removeAndDestroyChild" + removeAndDestroyChild'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (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 ogre_sn_removeAndDestroyChild2" + removeAndDestroyChild2'_ :: ((HG3DClassPtr) -> (CUShort -> (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 ogre_sn_removeAndDestroyAllChildren" + removeAndDestroyAllChildren'_ :: ((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 ogre_sn_showBoundingBox" + showBoundingBox'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_sn_hideBoundingBox" + hideBoundingBox'_ :: ((HG3DClassPtr) -> (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 ogre_sn_getShowBoundingBox" + getShowBoundingBox'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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 ogre_sn_createChildSceneNode" + createChildSceneNode'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> ((QuaternionPtr) -> ((HG3DClassPtr) -> (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 ogre_sn_createChildSceneNode2" + createChildSceneNode2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Vec3Ptr) -> ((QuaternionPtr) -> ((HG3DClassPtr) -> (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 ogre_sn_setFixedYawAxis" + setFixedYawAxis'_ :: ((HG3DClassPtr) -> (CInt -> ((Vec3Ptr) -> (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 ogre_sn_setAutoTracking" + setAutoTracking'_ :: ((HG3DClassPtr) -> (CInt -> ((HG3DClassPtr) -> ((Vec3Ptr) -> ((Vec3Ptr) -> (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 ogre_sn_getAutoTrackTarget" + getAutoTrackTarget'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (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 ogre_sn_getAutoTrackOffset" + getAutoTrackOffset'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (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 ogre_sn_getAutoTrackLocalDirection" + getAutoTrackLocalDirection'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (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 ogre_sn_getParentSceneNode" + getParentSceneNode'_ :: ((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 ogre_sn_setVisible" + setVisible'_ :: ((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 ogre_sn_flipVisibility" + flipVisibility'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h cSn_setDebugDisplayEnabled_c" - cSnSetDebugDisplayEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (IO ())))) +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSceneNode.chs.h ogre_sn_setDebugDisplayEnabled" + setDebugDisplayEnabled'_ :: ((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.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,329 +39,409 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} import HGamer3D.Bindings.Ogre.EnumSkeletonAnimationBlendMode -{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} +{-# LINE 45 ".\\HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} +-- | +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = + withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 50 ".\\HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} -cSCreateBone :: HG3DClass -> IO (HG3DClass) -cSCreateBone a1 = +-- | Creates a brand new BoneSkeletonThis method creates an unattached new BoneBoneBone::createChildNote that this method automatically generates a handle for the bone, which you can retrieve using Bone::getHandleBone +createBone :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (HG3DClass) + -- ^ +createBone a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cSCreateBone'_ a1' a2' >>= \res -> + createBone'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') -{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} -; -cSCreateBone2 :: HG3DClass -> Int -> IO (HG3DClass) -cSCreateBone2 a1 a2 = +{-# LINE 55 ".\\HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} + +-- | Creates a brand new BoneSkeletonThis method creates an unattached new BoneBoneBone::createChild +createBone2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ handle - The handle to give to this new bone - must be unique within this skeleton. You should also ensure that all bone handles are eventually contiguous (this is to simplify their compilation into an indexed array of transformation matrices). For this reason it is advised that you use the simpler createBone method which automatically assigns a sequential handle starting from 0. + -> IO (HG3DClass) + -- ^ +createBone2 a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in alloca $ \a3' -> - cSCreateBone2'_ a1' a2' a3' >>= \res -> + createBone2'_ a1' a2' a3' >>= \res -> peek a3'>>= \a3'' -> return (a3'') -{-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} -; -cSCreateBone3 :: HG3DClass -> String -> IO (HG3DClass) -cSCreateBone3 a1 a2 = +{-# LINE 61 ".\\HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} + +-- | Creates a brand new BoneSkeletonThis method creates an unattached new BoneBoneBone::createChild +createBone3 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name - The name to give to this new bone - must be unique within this skeleton. Note that the way OGRE looks up bones is via a numeric handle, so if you name a Bone this way it will be given an automatic sequential handle. The name is just for your convenience, although it is recommended that you only use the handle to retrieve the bone in performance-critical code. + -> IO (HG3DClass) + -- ^ +createBone3 a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> alloca $ \a3' -> - cSCreateBone3'_ a1' a2' a3' >>= \res -> + createBone3'_ 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 = +{-# LINE 67 ".\\HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} + +-- | Creates a brand new BoneSkeletonThis method creates an unattached new BoneBoneBone::createChild +createBone4 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name - The name to give to this new bone - must be unique within this skeleton. + -> Int -- ^ handle - The handle to give to this new bone - must be unique within this skeleton. + -> IO (HG3DClass) + -- ^ +createBone4 a1 a2 a3 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> let {a3' = fromIntegral a3} in alloca $ \a4' -> - cSCreateBone4'_ a1' a2' a3' a4' >>= \res -> + createBone4'_ a1' a2' a3' a4' >>= \res -> peek a4'>>= \a4'' -> return (a4'') -{-# LINE 77 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} -; -cSGetNumBones :: HG3DClass -> IO (Int) -cSGetNumBones a1 = +{-# LINE 74 ".\\HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} + +-- | Returns the number of bones in this skeleton. +getNumBones :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getNumBones a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cSGetNumBones'_ a1' a2' >>= \res -> + getNumBones'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 81 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} -; -cSGetRootBone :: HG3DClass -> IO (HG3DClass) -cSGetRootBone a1 = +{-# LINE 79 ".\\HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} + +-- | Gets the root bone of the skeleton: deprecated in favour of getRootBoneIterator. The system derives the root bone the first time you ask for it. The root bone is the only bone in the skeleton which has no parent. The system locates it by taking the first bone in the list and going up the bone tree until there are no more parents, and saves this top bone as the root. If you are building the skeleton manually using createBone then you must ensure there is only one bone which is not a child of another bone, otherwise your skeleton will not work properly. If you use createBone only once, and then use Bone::createChild +getRootBone :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (HG3DClass) + -- ^ +getRootBone a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cSGetRootBone'_ a1' a2' >>= \res -> + getRootBone'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') -{-# LINE 85 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} -; -cSGetBone :: HG3DClass -> Int -> IO (HG3DClass) -cSGetBone a1 a2 = +{-# LINE 84 ".\\HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} + +-- | Gets a bone by it's handle. +getBone :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ handle + -> IO (HG3DClass) + -- ^ +getBone a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in alloca $ \a3' -> - cSGetBone'_ a1' a2' a3' >>= \res -> + getBone'_ a1' a2' a3' >>= \res -> peek a3'>>= \a3'' -> return (a3'') -{-# LINE 90 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} -; -cSGetBone2 :: HG3DClass -> String -> IO (HG3DClass) -cSGetBone2 a1 a2 = +{-# LINE 90 ".\\HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} + +-- | Gets a bone by it's name. +getBone2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (HG3DClass) + -- ^ +getBone2 a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> alloca $ \a3' -> - cSGetBone2'_ a1' a2' a3' >>= \res -> + getBone2'_ a1' a2' a3' >>= \res -> peek a3'>>= \a3'' -> return (a3'') -{-# LINE 95 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} -; -cSHasBone :: HG3DClass -> String -> IO (Bool) -cSHasBone a1 a2 = +{-# LINE 96 ".\\HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} + +-- | Returns whether this skeleton contains the named bone. +hasBone :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (Bool) + -- ^ +hasBone a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> alloca $ \a3' -> - cSHasBone'_ a1' a2' a3' >>= \res -> + hasBone'_ a1' a2' a3' >>= \res -> peekBoolUtil a3'>>= \a3'' -> return (a3'') -{-# LINE 100 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} -; -cSSetBindingPose :: HG3DClass -> IO () -cSSetBindingPose a1 = +{-# LINE 102 ".\\HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} + +-- | Sets the current position / orientation to be the 'binding pose' i.e. the layout in which bones were originally bound to a mesh. +setBindingPose :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +setBindingPose a1 = withHG3DClass a1 $ \a1' -> - cSSetBindingPose'_ a1' >>= \res -> + setBindingPose'_ a1' >>= \res -> return () -{-# LINE 103 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} -; -cSReset :: HG3DClass -> Bool -> IO () -cSReset a1 a2 = +{-# LINE 106 ".\\HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} + +-- | Resets the position and orientation of all bones in this skeleton to their original binding position. A skeleton is bound to a mesh in a binding pose. Bone +reset :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ resetManualBones - If set to true, causes the state of manual bones to be reset too, which is normally not done to allow the manual state to persist even when keyframe animation is applied. + -> IO () + -- ^ +reset a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cSReset'_ a1' a2' >>= \res -> + reset'_ a1' a2' >>= \res -> return () -{-# LINE 107 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} -; -cSCreateAnimation :: HG3DClass -> String -> Float -> IO (HG3DClass) -cSCreateAnimation a1 a2 a3 = +{-# LINE 111 ".\\HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} + +-- | Creates a new Animation +createAnimation :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name - The name of this animation + -> Float -- ^ length - The length of the animation in seconds + -> IO (HG3DClass) + -- ^ +createAnimation a1 a2 a3 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> let {a3' = realToFrac a3} in alloca $ \a4' -> - cSCreateAnimation'_ a1' a2' a3' a4' >>= \res -> + createAnimation'_ 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 = +{-# LINE 118 ".\\HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} + +-- | Returns whether this skeleton contains the named animation. +hasAnimation :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO (Bool) + -- ^ +hasAnimation a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> alloca $ \a3' -> - cSHasAnimation'_ a1' a2' a3' >>= \res -> + hasAnimation'_ a1' a2' a3' >>= \res -> peekBoolUtil a3'>>= \a3'' -> return (a3'') -{-# LINE 118 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} -; -cSRemoveAnimation :: HG3DClass -> String -> IO () -cSRemoveAnimation a1 a2 = +{-# LINE 124 ".\\HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} + +-- | Removes an Animation +removeAnimation :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ name + -> IO () + -- ^ +removeAnimation a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> - cSRemoveAnimation'_ a1' a2' >>= \res -> + removeAnimation'_ a1' a2' >>= \res -> return () -{-# LINE 122 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} -; -cSGetNumAnimations :: HG3DClass -> IO (Int) -cSGetNumAnimations a1 = +{-# LINE 129 ".\\HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} + +-- | Changes the state of the skeleton to reflect the application of the passed in collection of animations. Animating a skeleton involves both interpolating between keyframes of a specific animation, and blending between the animations themselves. Calling this method sets the state of the skeleton so that it reflects the combination of all the passed in animations, at the time index specified for each, using the weights specified. Note that the weights between animations do not have to sum to 1.0, because some animations may affect only subsets of the skeleton. If the weights exceed 1.0 for the same area of the skeleton, the movement will just be exaggerated. +setAnimationState :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ animSet + -> IO () + -- ^ +setAnimationState a1 a2 = withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + setAnimationState'_ a1' a2' >>= \res -> + return () +{-# LINE 134 ".\\HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} + +-- | Gets the number of animations on this skeleton. +getNumAnimations :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getNumAnimations a1 = + withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cSGetNumAnimations'_ a1' a2' >>= \res -> + getNumAnimations'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 126 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} -; -cSGetAnimation2 :: HG3DClass -> Int -> IO (HG3DClass) -cSGetAnimation2 a1 a2 = +{-# LINE 139 ".\\HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} + +-- | Gets a single animation by index. Will NOT pick up animations in linked skeletons (addLinkedSkeletonAnimationSource +getAnimation2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ index + -> IO (HG3DClass) + -- ^ +getAnimation2 a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in alloca $ \a3' -> - cSGetAnimation2'_ a1' a2' a3' >>= \res -> + getAnimation2'_ a1' a2' a3' >>= \res -> peek a3'>>= \a3'' -> return (a3'') -{-# LINE 131 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} -; -cSGetBlendMode :: HG3DClass -> IO (EnumSkeletonAnimationBlendMode) -cSGetBlendMode a1 = +{-# LINE 145 ".\\HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} + +-- | Gets the animation blending mode which this skeleton will use. +getBlendMode :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (EnumSkeletonAnimationBlendMode) + -- ^ +getBlendMode a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cSGetBlendMode'_ a1' a2' >>= \res -> + getBlendMode'_ a1' a2' >>= \res -> peekEnumUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 135 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} -; -cSSetBlendMode :: HG3DClass -> EnumSkeletonAnimationBlendMode -> IO () -cSSetBlendMode a1 a2 = +{-# LINE 150 ".\\HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} + +-- | Sets the animation blending mode this skeleton will use. +setBlendMode :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> EnumSkeletonAnimationBlendMode -- ^ state + -> IO () + -- ^ +setBlendMode 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 -> + setBlendMode'_ a1' a2' >>= \res -> return () -{-# LINE 142 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} -; -cSOptimiseAllAnimations :: HG3DClass -> Bool -> IO () -cSOptimiseAllAnimations a1 a2 = +{-# LINE 155 ".\\HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} + +-- | Optimise all of this skeleton's animations. Animation::optimise +optimiseAllAnimations :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ preservingIdentityNodeTracks - If true, don't destroy identity node tracks. + -> IO () + -- ^ +optimiseAllAnimations a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cSOptimiseAllAnimations'_ a1' a2' >>= \res -> + optimiseAllAnimations'_ a1' a2' >>= \res -> return () -{-# LINE 146 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} -; -cSAddLinkedSkeletonAnimationSource :: HG3DClass -> String -> Float -> IO () -cSAddLinkedSkeletonAnimationSource a1 a2 a3 = +{-# LINE 160 ".\\HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} + +-- | Allows you to use the animations from another SkeletonIf you have skeletons of identical structure (that means identically named bones with identical handles, and with the same hierarchy), but slightly different proportions or binding poses, you can re-use animations from one in the other. Because animations are actually stored as changes to bones from their bind positions, it's possible to use the same animation data for different skeletons, provided the skeletal structure matches and the 'deltas' stored in the keyframes apply equally well to the other skeletons bind position (so they must be roughly similar, but don't have to be identical). You can use the 'scale' option to adjust the translation and scale keyframes where there are large differences in size between the skeletons. This method takes a skeleton name, rather than a more specific animation name, for two reasons; firstly it allows some validation of compatibility of skeletal structure, and secondly skeletons are the unit of loading. Linking a skeleton to another in this way means that the linkee will be prevented from being destroyed until the linker is destroyed. +addLinkedSkeletonAnimationSource :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ skelName - Name of the skeleton to link animations from. This skeleton will be loaded immediately if this skeleton is already loaded, otherwise it will be loaded when this skeleton is. + -> Float -- ^ scale - A scale factor to apply to translation and scaling elements of the keyframes in the other skeleton when applying the animations to this one. Compensates for skeleton size differences. + -> IO () + -- ^ +addLinkedSkeletonAnimationSource 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 -> + addLinkedSkeletonAnimationSource'_ a1' a2' a3' >>= \res -> return () -{-# LINE 157 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} -; -cSNotifyManualBoneStateChange :: HG3DClass -> HG3DClass -> IO () -cSNotifyManualBoneStateChange a1 a2 = +{-# LINE 166 ".\\HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} + +-- | Remove all links to other skeletons for the purposes of sharing animation. +removeAllLinkedSkeletonAnimationSources :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +removeAllLinkedSkeletonAnimationSources a1 = withHG3DClass a1 $ \a1' -> - withHG3DClass a2 $ \a2' -> - cSNotifyManualBoneStateChange'_ a1' a2' >>= \res -> + removeAllLinkedSkeletonAnimationSources'_ a1' >>= \res -> return () -{-# LINE 161 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} -; -cSGetManualBonesDirty :: HG3DClass -> IO (Bool) -cSGetManualBonesDirty a1 = +{-# LINE 170 ".\\HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} + +-- | Have manual bones been modified since the skeleton was last updated? +getManualBonesDirty :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getManualBonesDirty a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cSGetManualBonesDirty'_ a1' a2' >>= \res -> + getManualBonesDirty'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 165 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} -; -cSHasManualBones :: HG3DClass -> IO (Bool) -cSHasManualBones a1 = +{-# LINE 175 ".\\HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} + +-- | Are there any manually controlled bones? +hasManualBones :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +hasManualBones a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cSHasManualBones'_ a1' a2' >>= \res -> + hasManualBones'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 169 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} -; +{-# LINE 180 ".\\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 ogre_skl_destruct" + delete'_ :: ((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 ogre_skl_createBone" + createBone'_ :: ((HG3DClassPtr) -> ((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 ogre_skl_createBone2" + createBone2'_ :: ((HG3DClassPtr) -> (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 ogre_skl_createBone3" + createBone3'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (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 ogre_skl_createBone4" + createBone4'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CUShort -> ((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 ogre_skl_getNumBones" + getNumBones'_ :: ((HG3DClassPtr) -> ((Ptr CUShort) -> (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 ogre_skl_getRootBone" + getRootBone'_ :: ((HG3DClassPtr) -> ((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 ogre_skl_getBone" + getBone'_ :: ((HG3DClassPtr) -> (CUShort -> ((HG3DClassPtr) -> (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 ogre_skl_getBone2" + getBone2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((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 ogre_skl_hasBone" + hasBone'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr 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 ogre_skl_setBindingPose" + setBindingPose'_ :: ((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 ogre_skl_reset" + reset'_ :: ((HG3DClassPtr) -> (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 ogre_skl_createAnimation" + createAnimation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CFloat -> ((HG3DClassPtr) -> (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 ogre_skl_hasAnimation" + hasAnimation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (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 ogre_skl_removeAnimation" + removeAnimation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (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 ogre_skl_setAnimationState" + setAnimationState'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (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 ogre_skl_getNumAnimations" + getNumAnimations'_ :: ((HG3DClassPtr) -> ((Ptr CUShort) -> (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 ogre_skl_getAnimation2" + getAnimation2'_ :: ((HG3DClassPtr) -> (CUShort -> ((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 ogre_skl_getBlendMode" + getBlendMode'_ :: ((HG3DClassPtr) -> ((Ptr 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 ogre_skl_setBlendMode" + setBlendMode'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_skl_optimiseAllAnimations" + optimiseAllAnimations'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_skl_addLinkedSkeletonAnimationSource" + addLinkedSkeletonAnimationSource'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CFloat -> (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 ogre_skl_removeAllLinkedSkeletonAnimationSources" + removeAllLinkedSkeletonAnimationSources'_ :: ((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 ogre_skl_getManualBonesDirty" + getManualBonesDirty'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_hasManualBones_c" - cSHasManualBones'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h ogre_skl_hasManualBones" + hasManualBones'_ :: ((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.hs view
@@ -0,0 +1,91 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 ".\\HGamer3D\\Bindings\\Ogre\\ClassSkeletonManager.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- + +-- (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. +-- + + +-- ClassSkeletonManager.chs + +-- + +module HGamer3D.Bindings.Ogre.ClassSkeletonManager where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassSkeletonManager.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassSkeletonManager.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassSkeletonManager.chs" #-} + +-- | Constructor. +new :: IO (HG3DClass) + -- ^ +new = + alloca $ \a1' -> + new'_ a1' >>= \res -> + peek a1'>>= \a1'' -> + return (a1'') +{-# LINE 49 ".\\HGamer3D\\Bindings\\Ogre\\ClassSkeletonManager.chs" #-} + +-- | +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = + withHG3DClass a1 $ \a1' -> + delete'_ a1' >>= \res -> + return () +{-# LINE 53 ".\\HGamer3D\\Bindings\\Ogre\\ClassSkeletonManager.chs" #-} + +-- | Override standard Singleton retrieval. Why do we do this? Well, it's because the Singleton implementation is in a .h file, which means it gets compiled into anybody who includes it. This is needed for the Singleton template to work, but we actually only want it compiled into the implementation of the class based on the Singleton, not all of them. If we don't change this, we get link errors when trying to use the Singleton-based class from an outside dll. This method just delegates to the template version anyway, but the implementation stays in this single compilation unit, preventing link errors. +getSingletonPtr :: IO (HG3DClass) + -- ^ +getSingletonPtr = + alloca $ \a1' -> + getSingletonPtr'_ a1' >>= \res -> + peek a1'>>= \a1'' -> + return (a1'') +{-# LINE 57 ".\\HGamer3D\\Bindings\\Ogre\\ClassSkeletonManager.chs" #-} + + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeletonManager.chs.h ogre_sklmgr_construct" + new'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeletonManager.chs.h ogre_sklmgr_destruct" + delete'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeletonManager.chs.h ogre_sklmgr_getSingletonPtr" + getSingletonPtr'_ :: ((HG3DClassPtr) -> (IO ()))
− 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.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,159 +39,70 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +import HGamer3D.Bindings.Ogre.Utils +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\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 = +-- | +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = 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 = + delete'_ a1' >>= \res -> + return () +{-# LINE 49 ".\\HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-} + +-- | Sets the default number of mipmaps to be used for loaded textures, for when textures are loaded automatically (e.g. by MaterialThe default value is 0. +setDefaultNumMipmaps :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ num + -> IO () + -- ^ +setDefaultNumMipmaps a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in - cTmSetDefaultNumMipmaps'_ a1' a2' >>= \res -> + setDefaultNumMipmaps'_ a1' a2' >>= \res -> return () -{-# LINE 116 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-} -; -cTmGetDefaultNumMipmaps :: HG3DClass -> IO (Int) -cTmGetDefaultNumMipmaps a1 = +{-# LINE 54 ".\\HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-} + +-- | Gets the default number of mipmaps to be used for loaded textures. +getDefaultNumMipmaps :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getDefaultNumMipmaps a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cTmGetDefaultNumMipmaps'_ a1' a2' >>= \res -> + getDefaultNumMipmaps'_ 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 = +{-# LINE 59 ".\\HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-} + +-- | Override standard Singleton retrieval. Why do we do this? Well, it's because the Singleton implementation is in a .h file, which means it gets compiled into anybody who includes it. This is needed for the Singleton template to work, but we actually only want it compiled into the implementation of the class based on the Singleton, not all of them. If we don't change this, we get link errors when trying to use the Singleton-based class from an outside dll. This method just delegates to the template version anyway, but the implementation stays in this single compilation unit, preventing link errors. +getSingletonPtr :: IO (HG3DClass) + -- ^ +getSingletonPtr = alloca $ \a1' -> - cTmGetSingletonPtr'_ a1' >>= \res -> + getSingletonPtr'_ a1' >>= \res -> peek a1'>>= \a1'' -> return (a1'') -{-# LINE 124 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-} -; +{-# LINE 63 ".\\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 ogre_txmgr_destruct" + delete'_ :: ((HG3DClassPtr) -> (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 ogre_txmgr_setDefaultNumMipmaps" + setDefaultNumMipmaps'_ :: ((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 ogre_txmgr_getDefaultNumMipmaps" + getDefaultNumMipmaps'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs.h cTm_getSingletonPtr_c" - cTmGetSingletonPtr'_ :: ((HG3DClassPtr) -> (IO ())) +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs.h ogre_txmgr_getSingletonPtr" + getSingletonPtr'_ :: ((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.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassTimeIndex.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,17 +39,74 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassTimeIndex.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassTimeIndex.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassTimeIndex.chs" #-} +-- | Construct time index object by the given time position. +new :: Float -- ^ timePos + -> IO (HG3DClass) + -- ^ +new a1 = + let {a1' = realToFrac a1} in + alloca $ \a2' -> + new'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 50 ".\\HGamer3D\\Bindings\\Ogre\\ClassTimeIndex.chs" #-} +-- | +hasKeyIndex :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +hasKeyIndex a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + hasKeyIndex'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 55 ".\\HGamer3D\\Bindings\\Ogre\\ClassTimeIndex.chs" #-} + +-- | +getTimePos :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getTimePos a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getTimePos'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 60 ".\\HGamer3D\\Bindings\\Ogre\\ClassTimeIndex.chs" #-} + +-- | +getKeyIndex :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getKeyIndex a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + getKeyIndex'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 65 ".\\HGamer3D\\Bindings\\Ogre\\ClassTimeIndex.chs" #-} + + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTimeIndex.chs.h ogre_tnx_construct" + new'_ :: (CFloat -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTimeIndex.chs.h ogre_tnx_hasKeyIndex" + hasKeyIndex'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTimeIndex.chs.h ogre_tnx_getTimePos" + getTimePos'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTimeIndex.chs.h ogre_tnx_getKeyIndex" + getKeyIndex'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ())))
− 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.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,130 +39,129 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\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" #-} +{-# LINE 45 ".\\HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs" #-} +import HGamer3D.Bindings.Ogre.EnumVertexAnimationTrackTargetMode +{-# LINE 46 ".\\HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs" #-} +-- | Constructor. +new :: HG3DClass -- ^ parent + -> Int -- ^ handle + -> EnumVertexAnimationType -- ^ animType + -> IO (HG3DClass) + -- ^ +new a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + let {a3' = cIntFromEnum a3} in + alloca $ \a4' -> + new'_ a1' a2' a3' a4' >>= \res -> + peek a4'>>= \a4'' -> + return (a4'') +{-# LINE 54 ".\\HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs" #-} -cVantGetAnimationType :: HG3DClass -> IO (EnumVertexAnimationType) -cVantGetAnimationType a1 = +-- | Get the type of vertex animation we're performing. +getAnimationType :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (EnumVertexAnimationType) + -- ^ +getAnimationType a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cVantGetAnimationType'_ a1' a2' >>= \res -> + getAnimationType'_ 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 = +{-# LINE 59 ".\\HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs" #-} + +-- | Applies an animation track to the designated target. +apply :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ timeIndex + -> Float -- ^ weight + -> Float -- ^ scale + -> IO () + -- ^ +apply a1 a2 a3 a4 = 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 a2 $ \a2' -> + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + apply'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 66 ".\\HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs" #-} + +-- | Set the target mode. +setTargetMode :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> EnumVertexAnimationTrackTargetMode -- ^ m + -> IO () + -- ^ +setTargetMode a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = cIntFromEnum a2} in - cVantSetTargetMode'_ a1' a2' >>= \res -> + setTargetMode'_ a1' a2' >>= \res -> return () -{-# LINE 86 "HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs" #-} -; -cVantGetTargetMode :: HG3DClass -> IO (EnumTargetMode) -cVantGetTargetMode a1 = +{-# LINE 71 ".\\HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs" #-} + +-- | Get the target mode. +getTargetMode :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (EnumVertexAnimationTrackTargetMode) + -- ^ +getTargetMode a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cVantGetTargetMode'_ a1' a2' >>= \res -> + getTargetMode'_ a1' a2' >>= \res -> peekEnumUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 90 "HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs" #-} -; -cVantHasNonZeroKeyFrames :: HG3DClass -> IO (Bool) -cVantHasNonZeroKeyFrames a1 = +{-# LINE 76 ".\\HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs" #-} + +-- | Method to determine if this track has any KeyFrames which are doing anything useful - can be used to determine if this track can be optimised out. +hasNonZeroKeyFrames :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +hasNonZeroKeyFrames a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cVantHasNonZeroKeyFrames'_ a1' a2' >>= \res -> + hasNonZeroKeyFrames'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 94 "HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs" #-} -; -cVantOptimise :: HG3DClass -> IO () -cVantOptimise a1 = +{-# LINE 81 ".\\HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs" #-} + +-- | Optimise the current track by removing any duplicate keyframes. +optimise :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +optimise a1 = withHG3DClass a1 $ \a1' -> - cVantOptimise'_ a1' >>= \res -> + optimise'_ a1' >>= \res -> return () -{-# LINE 97 "HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs" #-} -; +{-# LINE 85 ".\\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 ogre_vat_construct" + new'_ :: ((HG3DClassPtr) -> (CUShort -> (CInt -> ((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 ogre_vat_getAnimationType" + getAnimationType'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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 ogre_vat_apply" + apply'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (CFloat -> (CFloat -> (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 ogre_vat_setTargetMode" + setTargetMode'_ :: ((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 ogre_vat_getTargetMode" + getTargetMode'_ :: ((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 ogre_vat_hasNonZeroKeyFrames" + hasNonZeroKeyFrames'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs.h cVant_optimise_c" - cVantOptimise'_ :: ((HG3DClassPtr) -> (IO ())) +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassVertexAnimationTrack.chs.h ogre_vat_optimise" + optimise'_ :: ((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.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,492 +39,703 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +import HGamer3D.Bindings.Ogre.StructColour +{-# LINE 45 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} import HGamer3D.Bindings.Ogre.EnumOrientationMode -{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +{-# LINE 46 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +import HGamer3D.Bindings.Ogre.StructVec2 +{-# LINE 47 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} +-- | The usual constructor. +new :: HG3DClass -- ^ camera + -> HG3DClass -- ^ target - Pointer to the render target to be the destination for the rendering. + -> Float -- ^ left + -> Float -- ^ top + -> Float -- ^ width + -> Float -- ^ height - Dimensions of the viewport, expressed as a value between 0 and 1. This allows the dimensions to apply irrespective of changes in the target's size: e.g. to fill the whole area, values of 0,0,1,1 are appropriate. + -> Int -- ^ ZOrder - Relative Z-order on the target. Lower = further to the front. + -> IO (HG3DClass) + -- ^ +new a1 a2 a3 a4 a5 a6 a7 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + let {a3' = realToFrac a3} in + let {a4' = realToFrac a4} in + let {a5' = realToFrac a5} in + let {a6' = realToFrac a6} in + let {a7' = fromIntegral a7} in + alloca $ \a8' -> + new'_ a1' a2' a3' a4' a5' a6' a7' a8' >>= \res -> + peek a8'>>= \a8'' -> + return (a8'') +{-# LINE 59 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -cVpUpdateDimensions :: HG3DClass -> IO () -cVpUpdateDimensions a1 = +-- | Default destructor. +delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. + -> IO () + -- ^ +delete a1 = withHG3DClass a1 $ \a1' -> - cVpUpdateDimensions'_ a1' >>= \res -> + delete'_ a1' >>= \res -> return () -{-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpUpdate :: HG3DClass -> IO () -cVpUpdate a1 = +{-# LINE 63 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Instructs the viewport to updates its contents. +update :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO () + -- ^ +update a1 = withHG3DClass a1 $ \a1' -> - cVpUpdate'_ a1' >>= \res -> + update'_ a1' >>= \res -> return () -{-# LINE 64 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpClear :: HG3DClass -> Int -> Colour -> Float -> Int -> IO () -cVpClear a1 a2 a3 a4 a5 = +{-# LINE 67 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Instructs the viewport to clear itself, without performing an update. You would not normally call this method when updating the viewport, since the viewport usually clears itself when updating anyway (Viewport::setClearEveryFrame +clear :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ buffers - Bitmask identifying which buffer elements to clear + -> Colour -- ^ colour - The colour value to clear to, if FBT_COLOUR is included + -> Float -- ^ depth - The depth value to clear to, if FBT_DEPTH is included + -> Int -- ^ stencil - The stencil value to clear to, if FBT_STENCIL is included + -> IO () + -- ^ +clear 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 -> + clear'_ a1' a2' a3' a4' a5' >>= \res -> return () -{-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpGetTarget :: HG3DClass -> IO (HG3DClass) -cVpGetTarget a1 = +{-# LINE 75 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Retrieves a pointer to the render target for this viewport. +getTarget :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (HG3DClass) + -- ^ +getTarget a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cVpGetTarget'_ a1' a2' >>= \res -> + getTarget'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') -{-# LINE 75 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpGetCamera :: HG3DClass -> IO (HG3DClass) -cVpGetCamera a1 = +{-# LINE 80 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Retrieves a pointer to the camera for this viewport. +getCamera :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (HG3DClass) + -- ^ +getCamera a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cVpGetCamera'_ a1' a2' >>= \res -> + getCamera'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') -{-# LINE 79 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpSetCamera :: HG3DClass -> HG3DClass -> IO () -cVpSetCamera a1 a2 = +{-# LINE 85 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Sets the camera to use for rendering to this viewport. +setCamera :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> HG3DClass -- ^ cam + -> IO () + -- ^ +setCamera a1 a2 = withHG3DClass a1 $ \a1' -> withHG3DClass a2 $ \a2' -> - cVpSetCamera'_ a1' a2' >>= \res -> + setCamera'_ a1' a2' >>= \res -> return () -{-# LINE 83 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpGetZOrder :: HG3DClass -> IO (Int) -cVpGetZOrder a1 = +{-# LINE 90 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Gets the Z-Order of this viewport. +getZOrder :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getZOrder a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cVpGetZOrder'_ a1' a2' >>= \res -> + getZOrder'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 87 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpGetLeft :: HG3DClass -> IO (Float) -cVpGetLeft a1 = +{-# LINE 95 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Gets one of the relative dimensions of the viewport, a value between 0.0 and 1.0. +getLeft :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getLeft a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cVpGetLeft'_ a1' a2' >>= \res -> + getLeft'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') -{-# LINE 91 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpGetTop :: HG3DClass -> IO (Float) -cVpGetTop a1 = +{-# LINE 100 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Gets one of the relative dimensions of the viewport, a value between 0.0 and 1.0. +getTop :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getTop a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cVpGetTop'_ a1' a2' >>= \res -> + getTop'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') -{-# LINE 95 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpGetWidth :: HG3DClass -> IO (Float) -cVpGetWidth a1 = +{-# LINE 105 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Gets one of the relative dimensions of the viewport, a value between 0.0 and 1.0. +getWidth :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getWidth a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cVpGetWidth'_ a1' a2' >>= \res -> + getWidth'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') -{-# LINE 99 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpGetHeight :: HG3DClass -> IO (Float) -cVpGetHeight a1 = +{-# LINE 110 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Gets one of the relative dimensions of the viewport, a value between 0.0 and 1.0. +getHeight :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Float) + -- ^ +getHeight a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cVpGetHeight'_ a1' a2' >>= \res -> + getHeight'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') -{-# LINE 103 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpGetActualLeft :: HG3DClass -> IO (Int) -cVpGetActualLeft a1 = +{-# LINE 115 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Gets one of the actual dimensions of the viewport, a value in pixels. +getActualLeft :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getActualLeft a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cVpGetActualLeft'_ a1' a2' >>= \res -> + getActualLeft'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 107 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpGetActualTop :: HG3DClass -> IO (Int) -cVpGetActualTop a1 = +{-# LINE 120 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Gets one of the actual dimensions of the viewport, a value in pixels. +getActualTop :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getActualTop a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cVpGetActualTop'_ a1' a2' >>= \res -> + getActualTop'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 111 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpGetActualWidth :: HG3DClass -> IO (Int) -cVpGetActualWidth a1 = +{-# LINE 125 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Gets one of the actual dimensions of the viewport, a value in pixels. +getActualWidth :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getActualWidth a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cVpGetActualWidth'_ a1' a2' >>= \res -> + getActualWidth'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 115 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpGetActualHeight :: HG3DClass -> IO (Int) -cVpGetActualHeight a1 = +{-# LINE 130 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Gets one of the actual dimensions of the viewport, a value in pixels. +getActualHeight :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getActualHeight a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cVpGetActualHeight'_ a1' a2' >>= \res -> + getActualHeight'_ 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 = +{-# LINE 135 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Sets the dimensions (after creation). +setDimensions :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ left + -> Float -- ^ top + -> Float -- ^ width + -> Float -- ^ height - Dimensions relative to the size of the target, represented as real values between 0 and 1. i.e. the full target area is 0, 0, 1, 1. + -> IO () + -- ^ +setDimensions 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 -> + setDimensions'_ a1' a2' a3' a4' a5' >>= \res -> return () -{-# LINE 126 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpSetOrientationMode :: HG3DClass -> EnumOrientationMode -> Bool -> IO () -cVpSetOrientationMode a1 a2 a3 = +{-# LINE 143 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Set the orientation mode of the viewport. +setOrientationMode :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> EnumOrientationMode -- ^ orientationMode + -> Bool -- ^ setDefault + -> IO () + -- ^ +setOrientationMode a1 a2 a3 = withHG3DClass a1 $ \a1' -> let {a2' = cIntFromEnum a2} in let {a3' = fromBool a3} in - cVpSetOrientationMode'_ a1' a2' a3' >>= \res -> + setOrientationMode'_ a1' a2' a3' >>= \res -> return () -{-# LINE 131 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpGetOrientationMode :: HG3DClass -> IO (EnumOrientationMode) -cVpGetOrientationMode a1 = +{-# LINE 149 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Get the orientation mode of the viewport. +getOrientationMode :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (EnumOrientationMode) + -- ^ +getOrientationMode a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cVpGetOrientationMode'_ a1' a2' >>= \res -> + getOrientationMode'_ a1' a2' >>= \res -> peekEnumUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 135 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpSetBackgroundColour :: HG3DClass -> Colour -> IO () -cVpSetBackgroundColour a1 a2 = +{-# LINE 154 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Sets the initial background colour of the viewport (before rendering). +setBackgroundColour :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Colour -- ^ colour + -> IO () + -- ^ +setBackgroundColour a1 a2 = withHG3DClass a1 $ \a1' -> withColour a2 $ \a2' -> - cVpSetBackgroundColour'_ a1' a2' >>= \res -> + setBackgroundColour'_ a1' a2' >>= \res -> return () -{-# LINE 139 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpGetBackgroundColour :: HG3DClass -> IO (Colour) -cVpGetBackgroundColour a1 = +{-# LINE 159 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Gets the background colour. +getBackgroundColour :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Colour) + -- ^ +getBackgroundColour a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cVpGetBackgroundColour'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> + getBackgroundColour'_ a1' a2' >>= \res -> + peekColour a2'>>= \a2'' -> return (a2'') -{-# LINE 143 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpSetClearEveryFrame :: HG3DClass -> Bool -> Int -> IO () -cVpSetClearEveryFrame a1 a2 a3 = +{-# LINE 164 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Determines whether to clear the viewport before rendering. You can use this method to set which buffers are cleared (if any) before rendering every frame. +setClearEveryFrame :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ clear - Whether or not to clear any buffers + -> Int -- ^ buffers - One or more values from FrameBufferType denoting which buffers to clear, if clear is set to true. Note you should not clear the stencil buffer here unless you know what you're doing. + -> IO () + -- ^ +setClearEveryFrame a1 a2 a3 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in let {a3' = fromIntegral a3} in - cVpSetClearEveryFrame'_ a1' a2' a3' >>= \res -> + setClearEveryFrame'_ a1' a2' a3' >>= \res -> return () -{-# LINE 148 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpGetClearEveryFrame :: HG3DClass -> IO (Bool) -cVpGetClearEveryFrame a1 = +{-# LINE 170 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Determines if the viewport is cleared before every frame. +getClearEveryFrame :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getClearEveryFrame a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cVpGetClearEveryFrame'_ a1' a2' >>= \res -> + getClearEveryFrame'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 152 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpGetClearBuffers :: HG3DClass -> IO (Int) -cVpGetClearBuffers a1 = +{-# LINE 175 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Gets which buffers are to be cleared each frame. +getClearBuffers :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getClearBuffers a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cVpGetClearBuffers'_ a1' a2' >>= \res -> + getClearBuffers'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 156 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpSetAutoUpdated :: HG3DClass -> Bool -> IO () -cVpSetAutoUpdated a1 a2 = +{-# LINE 180 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Sets whether this viewport should be automatically updated if OgreRenderTarget::updateBy default, if you use OgreRoot::startRenderingRenderTarget::update +setAutoUpdated :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ autoupdate - If true, the viewport is updated during the automatic render loop or when RenderTarget::update() is called. If false, the viewport is only updated when its update() method is called explicitly. + -> IO () + -- ^ +setAutoUpdated a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cVpSetAutoUpdated'_ a1' a2' >>= \res -> + setAutoUpdated'_ a1' a2' >>= \res -> return () -{-# LINE 160 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpIsAutoUpdated :: HG3DClass -> IO (Bool) -cVpIsAutoUpdated a1 = +{-# LINE 185 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Gets whether this viewport is automatically updated if OgreRenderTarget::update +isAutoUpdated :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +isAutoUpdated a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cVpIsAutoUpdated'_ a1' a2' >>= \res -> + isAutoUpdated'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 164 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpSetMaterialScheme :: HG3DClass -> String -> IO () -cVpSetMaterialScheme a1 a2 = +{-# LINE 190 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Set the material scheme which the viewport should use. This allows you to tell the system to use a particular material scheme when rendering this viewport, which can involve using different techniques to render your materials. Technique::setSchemeName +setMaterialScheme :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ schemeName + -> IO () + -- ^ +setMaterialScheme a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> - cVpSetMaterialScheme'_ a1' a2' >>= \res -> + setMaterialScheme'_ a1' a2' >>= \res -> return () -{-# LINE 168 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpGetMaterialScheme :: HG3DClass -> IO (String) -cVpGetMaterialScheme a1 = +{-# LINE 195 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Get the material scheme which the viewport should use. +getMaterialScheme :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getMaterialScheme a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> - cVpGetMaterialScheme'_ a1' a2' >>= \res -> + getMaterialScheme'_ 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 = +{-# LINE 200 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Access to actual dimensions (based on target size). +getActualDimensions :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int, Int, Int, Int) + -- ^ left +getActualDimensions a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cVpGetNumRenderedBatches'_ a1' a2' >>= \res -> + alloca $ \a3' -> + alloca $ \a4' -> + alloca $ \a5' -> + getActualDimensions'_ a1' a2' a3' a4' a5' >>= \res -> peekIntConv a2'>>= \a2'' -> - return (a2'') -{-# LINE 180 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpSetOverlaysEnabled :: HG3DClass -> Bool -> IO () -cVpSetOverlaysEnabled a1 a2 = + peekIntConv a3'>>= \a3'' -> + peekIntConv a4'>>= \a4'' -> + peekIntConv a5'>>= \a5'' -> + return (a2'', a3'', a4'', a5'') +{-# LINE 208 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Tells this viewport whether it should display Overlay objects. Overlay objects are layers which appear on top of the scene. They are created via SceneManager::createOverlay and every viewport displays these by default. However, you probably don't want this if you're using multiple viewports, because one of them is probably a picture-in-picture which is not supposed to have overlays of it's own. In this case you can turn off overlays on this viewport by calling this method. +setOverlaysEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ enabled - If true, any overlays are displayed, if false they are not. + -> IO () + -- ^ +setOverlaysEnabled a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cVpSetOverlaysEnabled'_ a1' a2' >>= \res -> + setOverlaysEnabled'_ a1' a2' >>= \res -> return () -{-# LINE 184 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpGetOverlaysEnabled :: HG3DClass -> IO (Bool) -cVpGetOverlaysEnabled a1 = +{-# LINE 213 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Returns whether or not Overlay objects (created in the SceneManager +getOverlaysEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getOverlaysEnabled a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cVpGetOverlaysEnabled'_ a1' a2' >>= \res -> + getOverlaysEnabled'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 188 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpSetSkiesEnabled :: HG3DClass -> Bool -> IO () -cVpSetSkiesEnabled a1 a2 = +{-# LINE 218 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Tells this viewport whether it should display skies. Skies are layers which appear on background of the scene. They are created via SceneManager::setSkyBoxSceneManager::setSkyPlaneSceneManager::setSkyDome +setSkiesEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ enabled - If true, any skies are displayed, if false they are not. + -> IO () + -- ^ +setSkiesEnabled a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cVpSetSkiesEnabled'_ a1' a2' >>= \res -> + setSkiesEnabled'_ a1' a2' >>= \res -> return () -{-# LINE 192 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpGetSkiesEnabled :: HG3DClass -> IO (Bool) -cVpGetSkiesEnabled a1 = +{-# LINE 223 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Returns whether or not skies (created in the SceneManager +getSkiesEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getSkiesEnabled a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cVpGetSkiesEnabled'_ a1' a2' >>= \res -> + getSkiesEnabled'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 196 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpSetShadowsEnabled :: HG3DClass -> Bool -> IO () -cVpSetShadowsEnabled a1 a2 = +{-# LINE 228 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Tells this viewport whether it should display shadows. This setting enables you to disable shadow rendering for a given viewport. The global shadow technique set on SceneManager +setShadowsEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Bool -- ^ enabled - If true, any shadows are displayed, if false they are not. + -> IO () + -- ^ +setShadowsEnabled a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in - cVpSetShadowsEnabled'_ a1' a2' >>= \res -> + setShadowsEnabled'_ a1' a2' >>= \res -> return () -{-# LINE 200 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpGetShadowsEnabled :: HG3DClass -> IO (Bool) -cVpGetShadowsEnabled a1 = +{-# LINE 233 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Returns whether or not shadows (defined in the SceneManager +getShadowsEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Bool) + -- ^ +getShadowsEnabled a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cVpGetShadowsEnabled'_ a1' a2' >>= \res -> + getShadowsEnabled'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') -{-# LINE 204 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpSetVisibilityMask :: HG3DClass -> Int -> IO () -cVpSetVisibilityMask a1 a2 = +{-# LINE 238 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Sets a per-viewport visibility mask. The visibility mask is a way to exclude objects from rendering for a given viewport. For each object in the frustum, a check is made between this mask and the objects visibility flags (MovableObject::setVisibilityFlags +setVisibilityMask :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Int -- ^ mask + -> IO () + -- ^ +setVisibilityMask a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in - cVpSetVisibilityMask'_ a1' a2' >>= \res -> + setVisibilityMask'_ a1' a2' >>= \res -> return () -{-# LINE 208 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpGetVisibilityMask :: HG3DClass -> IO (Int) -cVpGetVisibilityMask a1 = +{-# LINE 243 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Gets a per-viewport visibility mask. Viewport::setVisibilityMask +getVisibilityMask :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (Int) + -- ^ +getVisibilityMask a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> - cVpGetVisibilityMask'_ a1' a2' >>= \res -> + getVisibilityMask'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') -{-# LINE 212 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpSetRenderQueueInvocationSequenceName :: HG3DClass -> String -> IO () -cVpSetRenderQueueInvocationSequenceName a1 a2 = +{-# LINE 248 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Sets the use of a custom RenderQueueInvocationSequence for rendering this target. RenderQueueInvocationSequence instances are managed through RootRenderTargetRoot +setRenderQueueInvocationSequenceName :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> String -- ^ sequenceName + -> IO () + -- ^ +setRenderQueueInvocationSequenceName a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> - cVpSetRenderQueueInvocationSequenceName'_ a1' a2' >>= \res -> + setRenderQueueInvocationSequenceName'_ a1' a2' >>= \res -> return () -{-# LINE 216 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpGetRenderQueueInvocationSequenceName :: HG3DClass -> IO (String) -cVpGetRenderQueueInvocationSequenceName a1 = +{-# LINE 253 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Gets the name of the render queue invocation sequence for this target. +getRenderQueueInvocationSequenceName :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> IO (String) + -- ^ +getRenderQueueInvocationSequenceName a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> - cVpGetRenderQueueInvocationSequenceName'_ a1' a2' >>= \res -> + getRenderQueueInvocationSequenceName'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') -{-# LINE 220 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; -cVpGetRenderQueueInvocationSequence :: HG3DClass -> IO (HG3DClass) -cVpGetRenderQueueInvocationSequence a1 = +{-# LINE 258 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} + +-- | Convert oriented input point coordinates to screen coordinates. +pointOrientedToScreen :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Vec2 -- ^ v + -> Int -- ^ orientationMode + -> IO (Vec2) + -- ^ outv +pointOrientedToScreen a1 a2 a3 = withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cVpGetRenderQueueInvocationSequence'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> - return (a2'') -{-# LINE 224 "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -; + withVec2 a2 $ \a2' -> + let {a3' = fromIntegral a3} in + alloca $ \a4' -> + pointOrientedToScreen'_ a1' a2' a3' a4' >>= \res -> + peekVec2 a4'>>= \a4'' -> + return (a4'') +{-# LINE 265 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp__updateDimensions_c" - cVpUpdateDimensions'_ :: ((HG3DClassPtr) -> (IO ())) +-- | +pointOrientedToScreen2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. + -> Float -- ^ orientedX + -> Float -- ^ orientedY + -> Int -- ^ orientationMode + -> IO (Float, Float) + -- ^ screenX +pointOrientedToScreen2 a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + let {a3' = realToFrac a3} in + let {a4' = fromIntegral a4} in + alloca $ \a5' -> + alloca $ \a6' -> + pointOrientedToScreen2'_ a1' a2' a3' a4' a5' a6' >>= \res -> + peekFloatConv a5'>>= \a5'' -> + peekFloatConv a6'>>= \a6'' -> + return (a5'', a6'') +{-# LINE 274 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_update_c" - cVpUpdate'_ :: ((HG3DClassPtr) -> (IO ())) +-- | Set the initial orientation mode of viewports. +setDefaultOrientationMode :: EnumOrientationMode -- ^ orientationMode + -> IO () + -- ^ +setDefaultOrientationMode a1 = + let {a1' = cIntFromEnum a1} in + setDefaultOrientationMode'_ a1' >>= \res -> + return () +{-# LINE 278 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp_clear_c" - cVpClear'_ :: ((HG3DClassPtr) -> (CUInt -> ((ColourPtr) -> (CFloat -> (CUShort -> (IO ())))))) +-- | Get the initial orientation mode of viewports. +getDefaultOrientationMode :: IO (EnumOrientationMode) + -- ^ +getDefaultOrientationMode = + alloca $ \a1' -> + getDefaultOrientationMode'_ a1' >>= \res -> + peekEnumUtil a1'>>= \a1'' -> + return (a1'') +{-# LINE 282 ".\\HGamer3D\\Bindings\\Ogre\\ClassViewport.chs" #-} -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 ogre_vprt_construct" + new'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (CFloat -> (CInt -> ((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 ogre_vprt_destruct" + delete'_ :: ((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 ogre_vprt_update" + update'_ :: ((HG3DClassPtr) -> (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 ogre_vprt_clear" + clear'_ :: ((HG3DClassPtr) -> (CUInt -> ((ColourPtr) -> (CFloat -> (CUShort -> (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 ogre_vprt_getTarget" + getTarget'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (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 ogre_vprt_getCamera" + getCamera'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (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 ogre_vprt_setCamera" + setCamera'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (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 ogre_vprt_getZOrder" + getZOrder'_ :: ((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 ogre_vprt_getLeft" + getLeft'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (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 ogre_vprt_getTop" + getTop'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (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 ogre_vprt_getWidth" + getWidth'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (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 ogre_vprt_getHeight" + getHeight'_ :: ((HG3DClassPtr) -> ((Ptr 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 ogre_vprt_getActualLeft" + getActualLeft'_ :: ((HG3DClassPtr) -> ((Ptr 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 ogre_vprt_getActualTop" + getActualTop'_ :: ((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 ogre_vprt_getActualWidth" + getActualWidth'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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 ogre_vprt_getActualHeight" + getActualHeight'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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 ogre_vprt_setDimensions" + setDimensions'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (CFloat -> (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 ogre_vprt_setOrientationMode" + setOrientationMode'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_vprt_getOrientationMode" + getOrientationMode'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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 ogre_vprt_setBackgroundColour" + setBackgroundColour'_ :: ((HG3DClassPtr) -> ((ColourPtr) -> (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 ogre_vprt_getBackgroundColour" + getBackgroundColour'_ :: ((HG3DClassPtr) -> ((ColourPtr) -> (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 ogre_vprt_setClearEveryFrame" + setClearEveryFrame'_ :: ((HG3DClassPtr) -> (CInt -> (CUInt -> (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 ogre_vprt_getClearEveryFrame" + getClearEveryFrame'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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 ogre_vprt_getClearBuffers" + getClearBuffers'_ :: ((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 ogre_vprt_setAutoUpdated" + setAutoUpdated'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_vprt_isAutoUpdated" + isAutoUpdated'_ :: ((HG3DClassPtr) -> ((Ptr 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 ogre_vprt_setMaterialScheme" + setMaterialScheme'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (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 ogre_vprt_getMaterialScheme" + getMaterialScheme'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (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 ogre_vprt_getActualDimensions" + getActualDimensions'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> ((Ptr CInt) -> ((Ptr CInt) -> ((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 ogre_vprt_setOverlaysEnabled" + setOverlaysEnabled'_ :: ((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 ogre_vprt_getOverlaysEnabled" + getOverlaysEnabled'_ :: ((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 ogre_vprt_setSkiesEnabled" + setSkiesEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_vprt_getSkiesEnabled" + getSkiesEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (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 ogre_vprt_setShadowsEnabled" + setShadowsEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (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 ogre_vprt_getShadowsEnabled" + getShadowsEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) -foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h cVp__getRenderQueueInvocationSequence_c" - cVpGetRenderQueueInvocationSequence'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h ogre_vprt_setVisibilityMask" + setVisibilityMask'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h ogre_vprt_getVisibilityMask" + getVisibilityMask'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h ogre_vprt_setRenderQueueInvocationSequenceName" + setRenderQueueInvocationSequenceName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h ogre_vprt_getRenderQueueInvocationSequenceName" + getRenderQueueInvocationSequenceName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h ogre_vprt_pointOrientedToScreen" + pointOrientedToScreen'_ :: ((HG3DClassPtr) -> ((Vec2Ptr) -> (CInt -> ((Vec2Ptr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h ogre_vprt_pointOrientedToScreen2" + pointOrientedToScreen2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CInt -> ((Ptr CFloat) -> ((Ptr CFloat) -> (IO ()))))))) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h ogre_vprt_setDefaultOrientationMode" + setDefaultOrientationMode'_ :: (CInt -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassViewport.chs.h ogre_vprt_getDefaultOrientationMode" + getDefaultOrientationMode'_ :: ((Ptr CInt) -> (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.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassWindowEventUtilities.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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 @@ -47,17 +39,25 @@ import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass -import HGamer3D.Data.Vector2 -import HGamer3D.Data.Vector3 -import HGamer3D.Data.Vector4 -import HGamer3D.Data.Quaternion +import HGamer3D.Data.Vector 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" #-} +{-# LINE 42 ".\\HGamer3D\\Bindings\\Ogre\\ClassWindowEventUtilities.chs" #-} +import HGamer3D.Bindings.Ogre.ClassPtr +{-# LINE 43 ".\\HGamer3D\\Bindings\\Ogre\\ClassWindowEventUtilities.chs" #-} +import HGamer3D.Bindings.Ogre.StructHG3DClass +{-# LINE 44 ".\\HGamer3D\\Bindings\\Ogre\\ClassWindowEventUtilities.chs" #-} +-- | Call this once per frame if not using Root +messagePump :: IO () + -- ^ +messagePump = + messagePump'_ >>= \res -> + return () +{-# LINE 49 ".\\HGamer3D\\Bindings\\Ogre\\ClassWindowEventUtilities.chs" #-} + +foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassWindowEventUtilities.chs.h ogre_weu_messagePump" + messagePump'_ :: (IO ())
− 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.hs view
@@ -0,0 +1,52 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 ".\\HGamer3D\\Bindings\\Ogre\\EnumAnimationInterpolationMode.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- + +-- (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. +-- + + +-- EnumAnimationInterpolationMode.chs + +-- + +module HGamer3D.Bindings.Ogre.EnumAnimationInterpolationMode where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + + +data EnumAnimationInterpolationMode = + -- | Values are interpolated along straight lines. + IM_LINEAR + -- | Values are interpolated along a spline, resulting in smoother changes in direction. + | IM_SPLINE + deriving (Enum,Eq)
+ HGamer3D/Bindings/Ogre/EnumAnimationRotationInterpolationMode.hs view
@@ -0,0 +1,52 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 ".\\HGamer3D\\Bindings\\Ogre\\EnumAnimationRotationInterpolationMode.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- + +-- (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. +-- + + +-- EnumAnimationRotationInterpolationMode.chs + +-- + +module HGamer3D.Bindings.Ogre.EnumAnimationRotationInterpolationMode where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + + +data EnumAnimationRotationInterpolationMode = + -- | 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 + deriving (Enum,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.hs view
@@ -0,0 +1,83 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 ".\\HGamer3D\\Bindings\\Ogre\\EnumAxisAlignedBoxCorner.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- + +-- (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. +-- + + +-- EnumAxisAlignedBoxCorner.chs + +-- + +module HGamer3D.Bindings.Ogre.EnumAxisAlignedBoxCorner where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + + +data EnumAxisAlignedBoxCorner = + -- | + CE_FAR_LEFT_BOTTOM + -- | + | CE_FAR_LEFT_TOP + -- | + | CE_FAR_RIGHT_TOP + -- | + | CE_FAR_RIGHT_BOTTOM + -- | + | CE_NEAR_RIGHT_BOTTOM + -- | + | CE_NEAR_LEFT_BOTTOM + -- | + | CE_NEAR_LEFT_TOP + -- | + | CE_NEAR_RIGHT_TOP + deriving (Eq) +instance Enum EnumAxisAlignedBoxCorner where + fromEnum CE_FAR_LEFT_BOTTOM = 0 + fromEnum CE_FAR_LEFT_TOP = 1 + fromEnum CE_FAR_RIGHT_TOP = 2 + fromEnum CE_FAR_RIGHT_BOTTOM = 3 + fromEnum CE_NEAR_RIGHT_BOTTOM = 7 + fromEnum CE_NEAR_LEFT_BOTTOM = 6 + fromEnum CE_NEAR_LEFT_TOP = 5 + fromEnum CE_NEAR_RIGHT_TOP = 4 + + toEnum 0 = CE_FAR_LEFT_BOTTOM + toEnum 1 = CE_FAR_LEFT_TOP + toEnum 2 = CE_FAR_RIGHT_TOP + toEnum 3 = CE_FAR_RIGHT_BOTTOM + toEnum 7 = CE_NEAR_RIGHT_BOTTOM + toEnum 6 = CE_NEAR_LEFT_BOTTOM + toEnum 5 = CE_NEAR_LEFT_TOP + toEnum 4 = CE_NEAR_RIGHT_TOP + toEnum unmatched = error ("EnumAxisAlignedBoxCorner.toEnum: Cannot match " ++ show unmatched)
+ HGamer3D/Bindings/Ogre/EnumAxisAlignedBoxExtent.hs view
@@ -0,0 +1,54 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 ".\\HGamer3D\\Bindings\\Ogre\\EnumAxisAlignedBoxExtent.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- + +-- (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. +-- + + +-- EnumAxisAlignedBoxExtent.chs + +-- + +module HGamer3D.Bindings.Ogre.EnumAxisAlignedBoxExtent where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + + +data EnumAxisAlignedBoxExtent = + -- | + EXTENT_NULL + -- | + | EXTENT_FINITE + -- | + | EXTENT_INFINITE + deriving (Enum,Eq)
+ HGamer3D/Bindings/Ogre/EnumBillboardChainTexCoordDirection.hs view
@@ -0,0 +1,52 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 ".\\HGamer3D\\Bindings\\Ogre\\EnumBillboardChainTexCoordDirection.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- + +-- (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. +-- + + +-- EnumBillboardChainTexCoordDirection.chs + +-- + +module HGamer3D.Bindings.Ogre.EnumBillboardChainTexCoordDirection where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + + +data EnumBillboardChainTexCoordDirection = + -- | 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 + deriving (Enum,Eq)
HGamer3D/Bindings/Ogre/EnumBillboardOrigin.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumBillboardOrigin.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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. --- + + +-- EnumBillboardOrigin.chs + -- module HGamer3D.Bindings.Ogre.EnumBillboardOrigin where @@ -46,17 +38,29 @@ import Foreign.C import Monad (liftM, liftM2) - +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle -{- enum from Dep-OgreSDK/include/OGRE\OgreBillboardSet.h line:53 -} -data EnumBillboardOrigin = BboTopLeft - | BboTopCenter - | BboTopRight - | BboCenterLeft - | BboCenter - | BboCenterRight - | BboBottomLeft - | BboBottomCenter - | BboBottomRight +data 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 deriving (Enum,Eq)
HGamer3D/Bindings/Ogre/EnumBillboardRotationType.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumBillboardRotationType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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. --- + + +-- EnumBillboardRotationType.chs + -- module HGamer3D.Bindings.Ogre.EnumBillboardRotationType where @@ -46,10 +38,15 @@ import Foreign.C import Monad (liftM, liftM2) - +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle -{- enum from Dep-OgreSDK/include/OGRE\OgreBillboardSet.h line:66 -} -data EnumBillboardRotationType = BbrVertex - | BbrTexcoord +data EnumBillboardRotationType = + -- | Rotate the billboard's vertices around their facing direction. + BBR_VERTEX + -- | Rotate the billboard's texture coordinates. + | BBR_TEXCOORD deriving (Enum,Eq)
HGamer3D/Bindings/Ogre/EnumBillboardType.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumBillboardType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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. --- + + +-- EnumBillboardType.chs + -- module HGamer3D.Bindings.Ogre.EnumBillboardType where @@ -46,13 +38,21 @@ import Foreign.C import Monad (liftM, liftM2) - +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle -{- enum from Dep-OgreSDK/include/OGRE\OgreBillboardSet.h line:74 -} -data EnumBillboardType = BbtPoint - | BbtOrientedCommon - | BbtOrientedSelf - | BbtPerpendicularCommon - | BbtPerpendicularSelf +data 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 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.hs view
@@ -0,0 +1,59 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 ".\\HGamer3D\\Bindings\\Ogre\\EnumDataStreamAccessMode.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- + +-- (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. +-- + + +-- EnumDataStreamAccessMode.chs + +-- + +module HGamer3D.Bindings.Ogre.EnumDataStreamAccessMode where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + + +data EnumDataStreamAccessMode = + -- | + AM_READ + -- | + | AM_WRITE + deriving (Eq) +instance Enum EnumDataStreamAccessMode where + fromEnum AM_READ = 1 + fromEnum AM_WRITE = 2 + + toEnum 1 = AM_READ + toEnum 2 = AM_WRITE + toEnum unmatched = error ("EnumDataStreamAccessMode.toEnum: Cannot match " ++ show unmatched)
− 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.hs view
@@ -0,0 +1,56 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 ".\\HGamer3D\\Bindings\\Ogre\\EnumEntityVertexDataBindChoice.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- + +-- (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. +-- + + +-- EnumEntityVertexDataBindChoice.chs + +-- + +module HGamer3D.Bindings.Ogre.EnumEntityVertexDataBindChoice where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + + +data EnumEntityVertexDataBindChoice = + -- | + BIND_ORIGINAL + -- | + | BIND_SOFTWARE_SKELETAL + -- | + | BIND_SOFTWARE_MORPH + -- | + | BIND_HARDWARE_MORPH + deriving (Enum,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.hs view
@@ -0,0 +1,68 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 ".\\HGamer3D\\Bindings\\Ogre\\EnumExceptionCode.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- + +-- (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. +-- + + +-- EnumExceptionCode.chs + +-- + +module HGamer3D.Bindings.Ogre.EnumExceptionCode where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + + +data 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 + deriving (Enum,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.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumFrustumPlane.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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. --- + + +-- EnumFrustumPlane.chs + -- module HGamer3D.Bindings.Ogre.EnumFrustumPlane where @@ -46,29 +38,38 @@ import Foreign.C import Monad (liftM, liftM2) - +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle -{- enum from Dep-OgreSDK/include/OGRE\OgreFrustum.h line:70 -} -data EnumFrustumPlane = FrustumPlaneNear - | FrustumPlaneFar - | FrustumPlaneLeft - | FrustumPlaneRight - | FrustumPlaneTop - | FrustumPlaneBottom +data EnumFrustumPlane = + -- | + FRUSTUM_PLANE_NEAR + -- | + | FRUSTUM_PLANE_FAR + -- | + | FRUSTUM_PLANE_LEFT + -- | + | FRUSTUM_PLANE_RIGHT + -- | + | FRUSTUM_PLANE_TOP + -- | + | FRUSTUM_PLANE_BOTTOM deriving (Eq) instance Enum EnumFrustumPlane where - fromEnum FrustumPlaneNear = 0 - fromEnum FrustumPlaneFar = 1 - fromEnum FrustumPlaneLeft = 2 - fromEnum FrustumPlaneRight = 3 - fromEnum FrustumPlaneTop = 4 - fromEnum FrustumPlaneBottom = 5 + fromEnum FRUSTUM_PLANE_NEAR = 0 + fromEnum FRUSTUM_PLANE_FAR = 1 + fromEnum FRUSTUM_PLANE_LEFT = 2 + fromEnum FRUSTUM_PLANE_RIGHT = 3 + fromEnum FRUSTUM_PLANE_TOP = 4 + fromEnum FRUSTUM_PLANE_BOTTOM = 5 - toEnum 0 = FrustumPlaneNear - toEnum 1 = FrustumPlaneFar - toEnum 2 = FrustumPlaneLeft - toEnum 3 = FrustumPlaneRight - toEnum 4 = FrustumPlaneTop - toEnum 5 = FrustumPlaneBottom + toEnum 0 = FRUSTUM_PLANE_NEAR + toEnum 1 = FRUSTUM_PLANE_FAR + toEnum 2 = FRUSTUM_PLANE_LEFT + toEnum 3 = FRUSTUM_PLANE_RIGHT + toEnum 4 = FRUSTUM_PLANE_TOP + toEnum 5 = FRUSTUM_PLANE_BOTTOM 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.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumGpuProgramType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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. --- + + +-- EnumGpuProgramType.chs + -- module HGamer3D.Bindings.Ogre.EnumGpuProgramType where @@ -46,11 +38,17 @@ import Foreign.C import Monad (liftM, liftM2) - +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle -{- enum from Dep-OgreSDK/include/OGRE\OgreGpuProgram.h line:49 -} -data EnumGpuProgramType = GptVertexProgram - | GptFragmentProgram - | GptGeometryProgram +data EnumGpuProgramType = + -- | + GPT_VERTEX_PROGRAM + -- | + | GPT_FRAGMENT_PROGRAM + -- | + | GPT_GEOMETRY_PROGRAM 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.hs view
@@ -0,0 +1,63 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 ".\\HGamer3D\\Bindings\\Ogre\\EnumLightType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- + +-- (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. +-- + + +-- EnumLightType.chs + +-- + +module HGamer3D.Bindings.Ogre.EnumLightType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + + +data EnumLightType = + -- | Point light sources give off light equally in all directions, so require only position not direction. + LT_POINT + -- | Directional lights simulate parallel light beams from a distant source, hence have direction but no position. + | LT_DIRECTIONAL + -- | Spotlights simulate a cone of light from a source so require position and direction, plus extra values for falloff. + | LT_SPOTLIGHT + deriving (Eq) +instance Enum EnumLightType where + fromEnum LT_POINT = 0 + fromEnum LT_DIRECTIONAL = 1 + fromEnum LT_SPOTLIGHT = 2 + + toEnum 0 = LT_POINT + toEnum 1 = LT_DIRECTIONAL + toEnum 2 = LT_SPOTLIGHT + toEnum unmatched = error ("EnumLightType.toEnum: Cannot match " ++ show unmatched)
− 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.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumLogMessageLevel.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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. --- + + +-- EnumLogMessageLevel.chs + -- module HGamer3D.Bindings.Ogre.EnumLogMessageLevel where @@ -46,20 +38,26 @@ import Foreign.C import Monad (liftM, liftM2) - +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle -{- enum from Dep-OgreSDK/include/OGRE\OgreLog.h line:57 -} -data EnumLogMessageLevel = LmlTrivial - | LmlNormal - | LmlCritical +data EnumLogMessageLevel = + -- | + LML_TRIVIAL + -- | + | LML_NORMAL + -- | + | LML_CRITICAL deriving (Eq) instance Enum EnumLogMessageLevel where - fromEnum LmlTrivial = 1 - fromEnum LmlNormal = 2 - fromEnum LmlCritical = 3 + fromEnum LML_TRIVIAL = 1 + fromEnum LML_NORMAL = 2 + fromEnum LML_CRITICAL = 3 - toEnum 1 = LmlTrivial - toEnum 2 = LmlNormal - toEnum 3 = LmlCritical + toEnum 1 = LML_TRIVIAL + toEnum 2 = LML_NORMAL + toEnum 3 = LML_CRITICAL toEnum unmatched = error ("EnumLogMessageLevel.toEnum: Cannot match " ++ show unmatched)
HGamer3D/Bindings/Ogre/EnumLoggingLevel.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumLoggingLevel.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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. --- + + +-- EnumLoggingLevel.chs + -- module HGamer3D.Bindings.Ogre.EnumLoggingLevel where @@ -46,20 +38,26 @@ import Foreign.C import Monad (liftM, liftM2) - +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle -{- enum from Dep-OgreSDK/include/OGRE\OgreLog.h line:48 -} -data EnumLoggingLevel = LlLow - | LlNormal - | LlBoreme +data EnumLoggingLevel = + -- | + LL_LOW + -- | + | LL_NORMAL + -- | + | LL_BOREME deriving (Eq) instance Enum EnumLoggingLevel where - fromEnum LlLow = 1 - fromEnum LlNormal = 2 - fromEnum LlBoreme = 3 + fromEnum LL_LOW = 1 + fromEnum LL_NORMAL = 2 + fromEnum LL_BOREME = 3 - toEnum 1 = LlLow - toEnum 2 = LlNormal - toEnum 3 = LlBoreme + toEnum 1 = LL_LOW + toEnum 2 = LL_NORMAL + toEnum 3 = LL_BOREME 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.hs view
@@ -0,0 +1,52 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 ".\\HGamer3D\\Bindings\\Ogre\\EnumMathAngleUnit.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- + +-- (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. +-- + + +-- EnumMathAngleUnit.chs + +-- + +module HGamer3D.Bindings.Ogre.EnumMathAngleUnit where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + + +data EnumMathAngleUnit = + -- | + AU_DEGREE + -- | + | AU_RADIAN + deriving (Enum,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.hs view
@@ -0,0 +1,54 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 ".\\HGamer3D\\Bindings\\Ogre\\EnumMeshManagerMeshBuildType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- + +-- (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. +-- + + +-- EnumMeshManagerMeshBuildType.chs + +-- + +module HGamer3D.Bindings.Ogre.EnumMeshManagerMeshBuildType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + + +data EnumMeshManagerMeshBuildType = + -- | + MBT_PLANE + -- | + | MBT_CURVED_ILLUSION_PLANE + -- | + | MBT_CURVED_PLANE + deriving (Enum,Eq)
+ HGamer3D/Bindings/Ogre/EnumNodeTransformSpace.hs view
@@ -0,0 +1,54 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 ".\\HGamer3D\\Bindings\\Ogre\\EnumNodeTransformSpace.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- + +-- (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. +-- + + +-- EnumNodeTransformSpace.chs + +-- + +module HGamer3D.Bindings.Ogre.EnumNodeTransformSpace where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + + +data EnumNodeTransformSpace = + -- | 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 + deriving (Enum,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.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumOrientationMode.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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. --- + + +-- EnumOrientationMode.chs + -- module HGamer3D.Bindings.Ogre.EnumOrientationMode where @@ -46,32 +38,42 @@ import Foreign.C import Monad (liftM, liftM2) - +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle -{- enum from Dep-OgreSDK/include/OGRE\OgreFrustum.h line:48 -} -data EnumOrientationMode = OrDegree0 - | OrDegree90 - | OrDegree180 - | OrDegree270 - | OrPortrait - | OrLandscaperight - | OrLandscapeleft +data EnumOrientationMode = + -- | + OR_DEGREE_0 + -- | + | OR_DEGREE_90 + -- | + | OR_DEGREE_180 + -- | + | OR_DEGREE_270 + -- | + | OR_PORTRAIT + -- | + | OR_LANDSCAPERIGHT + -- | + | OR_LANDSCAPELEFT 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 + fromEnum OR_DEGREE_0 = 0 + fromEnum OR_DEGREE_90 = 1 + fromEnum OR_DEGREE_180 = 2 + fromEnum OR_DEGREE_270 = 3 + fromEnum OR_PORTRAIT = 0 + fromEnum OR_LANDSCAPERIGHT = 1 + fromEnum OR_LANDSCAPELEFT = 3 - toEnum 0 = OrDegree0 - toEnum 1 = OrDegree90 - toEnum 2 = OrDegree180 - toEnum 3 = OrDegree270 - toEnum 0 = OrPortrait - toEnum 1 = OrLandscaperight - toEnum 3 = OrLandscapeleft + toEnum 0 = OR_DEGREE_0 + toEnum 1 = OR_DEGREE_90 + toEnum 2 = OR_DEGREE_180 + toEnum 3 = OR_DEGREE_270 + toEnum 0 = OR_PORTRAIT + toEnum 1 = OR_LANDSCAPERIGHT + toEnum 3 = OR_LANDSCAPELEFT 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.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumProjectionType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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. --- + + +-- EnumProjectionType.chs + -- module HGamer3D.Bindings.Ogre.EnumProjectionType where @@ -46,10 +38,15 @@ import Foreign.C import Monad (liftM, liftM2) - +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle -{- enum from Dep-OgreSDK/include/OGRE\OgreFrustum.h line:62 -} -data EnumProjectionType = PtOrthographic - | PtPerspective +data EnumProjectionType = + -- | + PT_ORTHOGRAPHIC + -- | + | PT_PERSPECTIVE 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.hs view
@@ -0,0 +1,75 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 ".\\HGamer3D\\Bindings\\Ogre\\EnumRenderOperationOperationType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- + +-- (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. +-- + + +-- EnumRenderOperationOperationType.chs + +-- + +module HGamer3D.Bindings.Ogre.EnumRenderOperationOperationType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + + +data EnumRenderOperationOperationType = + -- | A list of points, 1 vertex per point. + OT_POINT_LIST + -- | A list of lines, 2 vertices per line. + | OT_LINE_LIST + -- | A strip of connected lines, 1 vertex per line plus 1 start vertex. + | OT_LINE_STRIP + -- | A list of triangles, 3 vertices per triangle. + | OT_TRIANGLE_LIST + -- | A strip of triangles, 3 vertices for the first triangle, and 1 per triangle after that. + | OT_TRIANGLE_STRIP + -- | A fan of triangles, 3 vertices for the first triangle, and 1 per triangle after that. + | OT_TRIANGLE_FAN + deriving (Eq) +instance Enum EnumRenderOperationOperationType where + fromEnum OT_POINT_LIST = 1 + fromEnum OT_LINE_LIST = 2 + fromEnum OT_LINE_STRIP = 3 + fromEnum OT_TRIANGLE_LIST = 4 + fromEnum OT_TRIANGLE_STRIP = 5 + fromEnum OT_TRIANGLE_FAN = 6 + + toEnum 1 = OT_POINT_LIST + toEnum 2 = OT_LINE_LIST + toEnum 3 = OT_LINE_STRIP + toEnum 4 = OT_TRIANGLE_LIST + toEnum 5 = OT_TRIANGLE_STRIP + toEnum 6 = OT_TRIANGLE_FAN + toEnum unmatched = error ("EnumRenderOperationOperationType.toEnum: Cannot match " ++ show unmatched)
− 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.hs view
@@ -0,0 +1,54 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 ".\\HGamer3D\\Bindings\\Ogre\\EnumRenderTargetFrameBuffer.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- + +-- (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. +-- + + +-- EnumRenderTargetFrameBuffer.chs + +-- + +module HGamer3D.Bindings.Ogre.EnumRenderTargetFrameBuffer where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + + +data EnumRenderTargetFrameBuffer = + -- | + FB_FRONT + -- | + | FB_BACK + -- | + | FB_AUTO + deriving (Enum,Eq)
+ HGamer3D/Bindings/Ogre/EnumRenderTargetStatFlags.hs view
@@ -0,0 +1,79 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 ".\\HGamer3D\\Bindings\\Ogre\\EnumRenderTargetStatFlags.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- + +-- (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. +-- + + +-- EnumRenderTargetStatFlags.chs + +-- + +module HGamer3D.Bindings.Ogre.EnumRenderTargetStatFlags where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + + +data EnumRenderTargetStatFlags = + -- | + SF_NONE + -- | + | SF_FPS + -- | + | SF_AVG_FPS + -- | + | SF_BEST_FPS + -- | + | SF_WORST_FPS + -- | + | SF_TRIANGLE_COUNT + -- | + | SF_ALL + deriving (Eq) +instance Enum EnumRenderTargetStatFlags where + fromEnum SF_NONE = 0 + fromEnum SF_FPS = 1 + fromEnum SF_AVG_FPS = 2 + fromEnum SF_BEST_FPS = 4 + fromEnum SF_WORST_FPS = 8 + fromEnum SF_TRIANGLE_COUNT = 16 + fromEnum SF_ALL = 65535 + + toEnum 0 = SF_NONE + toEnum 1 = SF_FPS + toEnum 2 = SF_AVG_FPS + toEnum 4 = SF_BEST_FPS + toEnum 8 = SF_WORST_FPS + toEnum 16 = SF_TRIANGLE_COUNT + toEnum 65535 = SF_ALL + toEnum unmatched = error ("EnumRenderTargetStatFlags.toEnum: Cannot match " ++ show unmatched)
− 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.hs view
@@ -0,0 +1,71 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 ".\\HGamer3D\\Bindings\\Ogre\\EnumRootFrameEventTimeType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- + +-- (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. +-- + + +-- EnumRootFrameEventTimeType.chs + +-- + +module HGamer3D.Bindings.Ogre.EnumRootFrameEventTimeType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + + +data EnumRootFrameEventTimeType = + -- | + FETT_ANY + -- | + | FETT_STARTED + -- | + | FETT_QUEUED + -- | + | FETT_ENDED + -- | + | FETT_COUNT + deriving (Eq) +instance Enum EnumRootFrameEventTimeType where + fromEnum FETT_ANY = 0 + fromEnum FETT_STARTED = 1 + fromEnum FETT_QUEUED = 2 + fromEnum FETT_ENDED = 3 + fromEnum FETT_COUNT = 4 + + toEnum 0 = FETT_ANY + toEnum 1 = FETT_STARTED + toEnum 2 = FETT_QUEUED + toEnum 3 = FETT_ENDED + toEnum 4 = FETT_COUNT + toEnum unmatched = error ("EnumRootFrameEventTimeType.toEnum: Cannot match " ++ show unmatched)
− 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.hs view
@@ -0,0 +1,75 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 ".\\HGamer3D\\Bindings\\Ogre\\EnumSceneManagerBoxPlane.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- + +-- (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. +-- + + +-- EnumSceneManagerBoxPlane.chs + +-- + +module HGamer3D.Bindings.Ogre.EnumSceneManagerBoxPlane where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + + +data EnumSceneManagerBoxPlane = + -- | + BP_FRONT + -- | + | BP_BACK + -- | + | BP_LEFT + -- | + | BP_RIGHT + -- | + | BP_UP + -- | + | BP_DOWN + deriving (Eq) +instance Enum EnumSceneManagerBoxPlane where + fromEnum BP_FRONT = 0 + fromEnum BP_BACK = 1 + fromEnum BP_LEFT = 2 + fromEnum BP_RIGHT = 3 + fromEnum BP_UP = 4 + fromEnum BP_DOWN = 5 + + toEnum 0 = BP_FRONT + toEnum 1 = BP_BACK + toEnum 2 = BP_LEFT + toEnum 3 = BP_RIGHT + toEnum 4 = BP_UP + toEnum 5 = BP_DOWN + toEnum unmatched = error ("EnumSceneManagerBoxPlane.toEnum: Cannot match " ++ show unmatched)
+ HGamer3D/Bindings/Ogre/EnumSceneManagerIlluminationRenderStage.hs view
@@ -0,0 +1,54 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 ".\\HGamer3D\\Bindings\\Ogre\\EnumSceneManagerIlluminationRenderStage.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- + +-- (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. +-- + + +-- EnumSceneManagerIlluminationRenderStage.chs + +-- + +module HGamer3D.Bindings.Ogre.EnumSceneManagerIlluminationRenderStage where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + + +data EnumSceneManagerIlluminationRenderStage = + -- | 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 + deriving (Enum,Eq)
+ HGamer3D/Bindings/Ogre/EnumSceneManagerPrefabType.hs view
@@ -0,0 +1,54 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 ".\\HGamer3D\\Bindings\\Ogre\\EnumSceneManagerPrefabType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- + +-- (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. +-- + + +-- EnumSceneManagerPrefabType.chs + +-- + +module HGamer3D.Bindings.Ogre.EnumSceneManagerPrefabType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + + +data EnumSceneManagerPrefabType = + -- | + PT_PLANE + -- | + | PT_CUBE + -- | + | PT_SPHERE + deriving (Enum,Eq)
+ HGamer3D/Bindings/Ogre/EnumSceneManagerSpecialCaseRenderQueueMode.hs view
@@ -0,0 +1,52 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 ".\\HGamer3D\\Bindings\\Ogre\\EnumSceneManagerSpecialCaseRenderQueueMode.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- + +-- (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. +-- + + +-- EnumSceneManagerSpecialCaseRenderQueueMode.chs + +-- + +module HGamer3D.Bindings.Ogre.EnumSceneManagerSpecialCaseRenderQueueMode where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + + +data EnumSceneManagerSpecialCaseRenderQueueMode = + -- | Render only the queues in the special case list. + SCRQM_INCLUDE + -- | Render all except the queues in the special case list. + | SCRQM_EXCLUDE + deriving (Enum,Eq)
HGamer3D/Bindings/Ogre/EnumSceneType.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumSceneType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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. --- + + +-- EnumSceneType.chs + -- module HGamer3D.Bindings.Ogre.EnumSceneType where @@ -46,26 +38,34 @@ import Foreign.C import Monad (liftM, liftM2) - +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle -{- enum from Dep-OgreSDK/include/OGRE\OgreSceneManager.h line:3461 -} -data EnumSceneType = StGeneric - | StExteriorClose - | StExteriorFar - | StExteriorRealFar - | StInterior +data EnumSceneType = + -- | + ST_GENERIC + -- | + | ST_EXTERIOR_CLOSE + -- | + | ST_EXTERIOR_FAR + -- | + | ST_EXTERIOR_REAL_FAR + -- | + | ST_INTERIOR deriving (Eq) instance Enum EnumSceneType where - fromEnum StGeneric = 1 - fromEnum StExteriorClose = 2 - fromEnum StExteriorFar = 4 - fromEnum StExteriorRealFar = 8 - fromEnum StInterior = 16 + fromEnum ST_GENERIC = 1 + fromEnum ST_EXTERIOR_CLOSE = 2 + fromEnum ST_EXTERIOR_FAR = 4 + fromEnum ST_EXTERIOR_REAL_FAR = 8 + fromEnum ST_INTERIOR = 16 - toEnum 1 = StGeneric - toEnum 2 = StExteriorClose - toEnum 4 = StExteriorFar - toEnum 8 = StExteriorRealFar - toEnum 16 = StInterior + toEnum 1 = ST_GENERIC + toEnum 2 = ST_EXTERIOR_CLOSE + toEnum 4 = ST_EXTERIOR_FAR + toEnum 8 = ST_EXTERIOR_REAL_FAR + toEnum 16 = ST_INTERIOR 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.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumSkeletonAnimationBlendMode.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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. --- + + +-- EnumSkeletonAnimationBlendMode.chs + -- module HGamer3D.Bindings.Ogre.EnumSkeletonAnimationBlendMode where @@ -46,10 +38,15 @@ import Foreign.C import Monad (liftM, liftM2) - +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle -{- enum from Dep-OgreSDK/include/OGRE\OgreSkeleton.h line:48 -} -data EnumSkeletonAnimationBlendMode = AnimblendAverage - | AnimblendCumulative +data 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 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.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumStencilOperation.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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. --- + + +-- EnumStencilOperation.chs + -- module HGamer3D.Bindings.Ogre.EnumStencilOperation where @@ -46,16 +38,27 @@ import Foreign.C import Monad (liftM, liftM2) - +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle -{- enum from Dep-OgreSDK/include/OGRE\OgreRenderSystem.h line:77 -} -data EnumStencilOperation = SopKeep - | SopZero - | SopReplace - | SopIncrement - | SopDecrement - | SopIncrementWrap - | SopDecrementWrap - | SopInvert +data 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 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.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumTexCoordCalcMethod.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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. --- + + +-- EnumTexCoordCalcMethod.chs + -- module HGamer3D.Bindings.Ogre.EnumTexCoordCalcMethod where @@ -46,14 +38,23 @@ import Foreign.C import Monad (liftM, liftM2) - +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle -{- enum from Dep-OgreSDK/include/OGRE\OgreRenderSystem.h line:63 -} -data EnumTexCoordCalcMethod = TexcalcNone - | TexcalcEnvironmentMap - | TexcalcEnvironmentMapPlanar - | TexcalcEnvironmentMapReflection - | TexcalcEnvironmentMapNormal - | TexcalcProjectiveTexture +data 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 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.hs view
@@ -0,0 +1,52 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 ".\\HGamer3D\\Bindings\\Ogre\\EnumVertexAnimationTrackTargetMode.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- + +-- (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. +-- + + +-- EnumVertexAnimationTrackTargetMode.chs + +-- + +module HGamer3D.Bindings.Ogre.EnumVertexAnimationTrackTargetMode where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + + +data EnumVertexAnimationTrackTargetMode = + -- | 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 + deriving (Enum,Eq)
HGamer3D/Bindings/Ogre/EnumVertexAnimationType.hs view
@@ -2,14 +2,15 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\EnumVertexAnimationType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 + +-- (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. @@ -23,19 +24,10 @@ -- 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. --- + + +-- EnumVertexAnimationType.chs + -- module HGamer3D.Bindings.Ogre.EnumVertexAnimationType where @@ -46,20 +38,26 @@ import Foreign.C import Monad (liftM, liftM2) - +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle -{- enum from Dep-OgreSDK/include/OGRE\OgreAnimationTrack.h line:461 -} -data EnumVertexAnimationType = VatNone - | VatMorph - | VatPose +data EnumVertexAnimationType = + -- | No animation. + VAT_NONE + -- | Morph animation is made up of many interpolated snapshot keyframes. + | VAT_MORPH + -- | Pose animation is made up of a single delta pose keyframe. + | VAT_POSE deriving (Eq) instance Enum EnumVertexAnimationType where - fromEnum VatNone = 0 - fromEnum VatMorph = 1 - fromEnum VatPose = 2 + fromEnum VAT_NONE = 0 + fromEnum VAT_MORPH = 1 + fromEnum VAT_POSE = 2 - toEnum 0 = VatNone - toEnum 1 = VatMorph - toEnum 2 = VatPose + toEnum 0 = VAT_NONE + toEnum 1 = VAT_MORPH + toEnum 2 = VAT_POSE 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.hs view
@@ -0,0 +1,75 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 ".\\HGamer3D\\Bindings\\Ogre\\StructColour.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- + +-- (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. +-- + + +-- StructColour.chs + +-- + +module HGamer3D.Bindings.Ogre.StructColour where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + + + +import Data.Bits +import HGamer3D.Data.Colour + +instance Storable Colour where + alignment _ = alignment (undefined :: CDouble) + sizeOf _ = 16 +{-# LINE 50 ".\\HGamer3D\\Bindings\\Ogre\\StructColour.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 64 ".\\HGamer3D\\Bindings\\Ogre\\StructColour.chs" #-} + +withColour :: Colour -> (ColourPtr -> IO b) -> IO b +withColour = with +peekColour :: ColourPtr -> IO Colour +peekColour = peek +
+ HGamer3D/Bindings/Ogre/StructDegrees.hs view
@@ -0,0 +1,69 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 ".\\HGamer3D\\Bindings\\Ogre\\StructDegrees.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- + +-- (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. +-- + + +-- StructDegrees.chs + +-- + +module HGamer3D.Bindings.Ogre.StructDegrees where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + + + +import Data.Bits +import HGamer3D.Data.Angle + +instance Storable Degrees where + alignment _ = alignment (undefined :: CDouble) + sizeOf _ = 4 +{-# LINE 50 ".\\HGamer3D\\Bindings\\Ogre\\StructDegrees.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 58 ".\\HGamer3D\\Bindings\\Ogre\\StructDegrees.chs" #-} + +withDegrees :: Degrees -> (DegreesPtr -> IO b) -> IO b +withDegrees = with +peekDegrees :: DegreesPtr -> IO Degrees +peekDegrees = peek +
+ HGamer3D/Bindings/Ogre/StructHG3DClass.hs view
@@ -0,0 +1,61 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 ".\\HGamer3D\\Bindings\\Ogre\\StructHG3DClass.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- + +-- (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. +-- + + +-- StructHG3DClass.chs + +-- + +module HGamer3D.Bindings.Ogre.StructHG3DClass where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + + + +import Data.Bits +import HGamer3D.Data.HG3DClass + +type HG3DClassPtr = Ptr (HG3DClass) +{-# LINE 48 ".\\HGamer3D\\Bindings\\Ogre\\StructHG3DClass.chs" #-} + +withHG3DClass :: HG3DClass -> (HG3DClassPtr -> IO b) -> IO b +withHG3DClass = with + +peekHG3DClass :: HG3DClassPtr -> IO HG3DClass +peekHG3DClass = peek + + +
+ HGamer3D/Bindings/Ogre/StructQuaternion.hs view
@@ -0,0 +1,84 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 ".\\HGamer3D\\Bindings\\Ogre\\StructQuaternion.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- + +-- (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. +-- + + +-- StructQuaternion.chs + +-- + +module HGamer3D.Bindings.Ogre.StructQuaternion where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + + + +import Data.Bits +import HGamer3D.Data.Vector + +newtype Quat = Quat Quaternion + +instance Storable Quat where + alignment _ = alignment (undefined :: CDouble) + sizeOf _ = 16 +{-# LINE 52 ".\\HGamer3D\\Bindings\\Ogre\\StructQuaternion.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 = Quat ( Q (Vec4 (realToFrac fw) (realToFrac fx) (realToFrac fy) (realToFrac fz) )) + return q + poke p (Quat (Q ( Vec4 w x y z))) = do + (\ptr val -> do {pokeByteOff ptr 0 (val::CFloat)}) p (realToFrac w) + (\ptr val -> do {pokeByteOff ptr 4 (val::CFloat)}) p (realToFrac x) + (\ptr val -> do {pokeByteOff ptr 8 (val::CFloat)}) p (realToFrac y) + (\ptr val -> do {pokeByteOff ptr 12 (val::CFloat)}) p (realToFrac z) + +type QuatPtr = Ptr (Quat) + +type QuaternionPtr = Ptr (Quaternion) +{-# LINE 68 ".\\HGamer3D\\Bindings\\Ogre\\StructQuaternion.chs" #-} + +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.hs view
@@ -0,0 +1,70 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 ".\\HGamer3D\\Bindings\\Ogre\\StructRadians.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- + +-- (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. +-- + + +-- StructRadians.chs + +-- + +module HGamer3D.Bindings.Ogre.StructRadians where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + + + +import Data.Bits +import HGamer3D.Data.Angle + +instance Storable Radians where + alignment _ = alignment (undefined :: CDouble) + sizeOf _ = 4 +{-# LINE 50 ".\\HGamer3D\\Bindings\\Ogre\\StructRadians.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 58 ".\\HGamer3D\\Bindings\\Ogre\\StructRadians.chs" #-} + +withRadians :: Radians -> (RadiansPtr -> IO b) -> IO b +withRadians = with +peekRadians :: RadiansPtr -> IO Radians +peekRadians = peek + +
@@ -0,0 +1,78 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 ".\\HGamer3D\\Bindings\\Ogre\\StructSharedPtr.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- + +-- (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. +-- + + +-- StructSharedPtr.chs + +-- + +module HGamer3D.Bindings.Ogre.StructSharedPtr where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + + + +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 55 ".\\HGamer3D\\Bindings\\Ogre\\StructSharedPtr.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 67 ".\\HGamer3D\\Bindings\\Ogre\\StructSharedPtr.chs" #-} + +withSharedPtr :: SharedPtr -> (SharedPtrPtr -> IO b) -> IO b +withSharedPtr = with +peekSharedPtr :: SharedPtrPtr -> IO SharedPtr +peekSharedPtr = peek +
+ HGamer3D/Bindings/Ogre/StructVec2.hs view
@@ -0,0 +1,80 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 ".\\HGamer3D\\Bindings\\Ogre\\StructVec2.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- + +-- (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. +-- + + +-- StructVec2.chs + +-- + +module HGamer3D.Bindings.Ogre.StructVec2 where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + + + +import Data.Bits +import HGamer3D.Data.Vector + +newtype Vector2 = Vector2 Vec2 + +instance Storable Vector2 where + alignment _ = alignment (undefined :: CDouble) + sizeOf _ = 8 +{-# LINE 52 ".\\HGamer3D\\Bindings\\Ogre\\StructVec2.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 ( Vec2 (realToFrac x) (realToFrac y)) + return v + poke p (Vector2 (Vec2 x y)) = do + (\ptr val -> do {pokeByteOff ptr 0 (val::CFloat)}) p (realToFrac x) + (\ptr val -> do {pokeByteOff ptr 4 (val::CFloat)}) p (realToFrac y) + +type Vector2Ptr = Ptr (Vector2) + +type Vec2Ptr = Ptr (Vec2) +{-# LINE 64 ".\\HGamer3D\\Bindings\\Ogre\\StructVec2.chs" #-} + +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.hs view
@@ -0,0 +1,80 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 ".\\HGamer3D\\Bindings\\Ogre\\StructVec3.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- + +-- (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. +-- + + +-- StructVec3.chs + +-- + +module HGamer3D.Bindings.Ogre.StructVec3 where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle + + + +import Data.Bits +import HGamer3D.Data.Vector + +newtype Vector3 = Vector3 Vec3 + +instance Storable Vector3 where + alignment _ = alignment (undefined :: CDouble) + sizeOf _ = 12 +{-# LINE 52 ".\\HGamer3D\\Bindings\\Ogre\\StructVec3.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 (Vec3 (realToFrac x) (realToFrac y) (realToFrac z)) + return v + poke p (Vector3 (Vec3 x y z)) = do + (\ptr val -> do {pokeByteOff ptr 0 (val::CFloat)}) p (realToFrac x) + (\ptr val -> do {pokeByteOff ptr 4 (val::CFloat)}) p (realToFrac y) + (\ptr val -> do {pokeByteOff ptr 8 (val::CFloat)}) p (realToFrac z) + +type Vector3Ptr = Ptr (Vector3) + +type Vec3Ptr = Ptr (Vec3) +{-# LINE 66 ".\\HGamer3D\\Bindings\\Ogre\\StructVec3.chs" #-} + +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.hs view
@@ -2,27 +2,34 @@ -- Edit the ORIGNAL .chs file instead! -{-# LINE 1 "HGamer3D\\Bindings\\Ogre\\Utils.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# 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 --- +-- + +-- (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. +-- + +-- Utils.hs + +-- Marshalling Utilities + module HGamer3D.Bindings.Ogre.Utils where import C2HS @@ -31,14 +38,12 @@ import Foreign.C import Monad (liftM, liftM2) -import HGamer3D.Bindings.Ogre.ClassPtr -{-# LINE 30 "HGamer3D\\Bindings\\Ogre\\Utils.chs" #-} - +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector +import HGamer3D.Data.Colour +import HGamer3D.Data.Angle --- now here come different pieces of utilities --- - -- String Conversion functions -- @@ -46,7 +51,6 @@ peekCUString = peekCWString . castPtr alloc64k = allocaBytes (1024 * 64) - -- c2hs replacements of utility functions, to get rid of annoying c2hs -- deprecated messages @@ -79,30 +83,3 @@ 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,4 +1,4 @@-(c) 2011-2012 Peter Althainz +(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.
Setup.hs view
@@ -1,21 +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 --- +-- +-- (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. - +-- -- Setup.hs import Distribution.Simple
include/ClassAnimation.h view
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,94 +16,140 @@ // 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, int * 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, int * 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, int * 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, int software_c, int 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, int discardIdentityNodeTracks_c); + +// +void ogre_anm_clone(struct hg3dclass_struct * thisclass_c, char * newName_c, struct hg3dclass_struct * 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,57 +16,84 @@ // 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" + + + +// Normal constructor with all params supplied. +void ogre_anms_construct(char * animName_c, struct hg3dclass_struct * parent_c, float timePos_c, float length_c, float weight_c, int 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, int * result_c); + +// Returns true if this animation is currently enabled. +void ogre_anms_getEnabled(struct hg3dclass_struct * thisclass_c, int * result_c); + +// Sets whether this animation is enabled. +void ogre_anms_setEnabled(struct hg3dclass_struct * thisclass_c, int enabled_c); + // +void ogre_anms_setLoop(struct hg3dclass_struct * thisclass_c, int loop_c); + +// Gets whether or not this animation loops. +void ogre_anms_getLoop(struct hg3dclass_struct * thisclass_c, int * 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, int 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, int * result_c); + +// set the weight for the bone identified by the given handle +void ogre_anms_setBlendMaskEntry(struct hg3dclass_struct * thisclass_c, int 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, int boneHandle_c, float * result_c); + +#endif
+ include/ClassAnimationStateSet.h view
@@ -0,0 +1,57 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// (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. +// + +// 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, int 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, int * 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); + +// Tests if exists enabled animation state in this set. +void ogre_ass_hasEnabledAnimationState(struct hg3dclass_struct * thisclass_c, int * result_c); + +#endif
include/ClassAnimationTrack.h view
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,41 +16,46 @@ // 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, int * 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,52 +16,44 @@ // 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, int * 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, int * 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, int * 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,29 +16,33 @@ // See the License for the specific language governing permissions and // limitations under the License. // + // ClassArchiveManager.h -// -// -// + // -// File for type, method, enum or function stubs -// in: "Dep-OgreSDK/include/OGRE\OgreArchiveManager.h" + +#include "wchar.h" +#ifndef _DEFINED_HG3D_ClassArchiveManager +#define _DEFINED_HG3D_ClassArchiveManager + +#include "ClassPtr.h" +#include "ClassArchive.h" + + + // -// each stub combines the following files: -// a C++ implementation file, transforming cpp calls into 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_destruct(struct hg3dclass_struct * thisclass_c); + // +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); -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" +// +void ogre_archm_unload2(struct hg3dclass_struct * thisclass_c, char * filename_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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,60 +16,74 @@ // 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, int * 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, int * 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,64 +16,92 @@ // 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 "ClassCamera.h" +#include "StructSharedPtr.h" + + + +// destructor +void ogre_bbdc_destruct(struct hg3dclass_struct * thisclass_c); + // +void ogre_bbdc_setMaxChainElements(struct hg3dclass_struct * thisclass_c, int maxElements_c); + // +void ogre_bbdc_getMaxChainElements(struct hg3dclass_struct * thisclass_c, int * 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, int 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, int * result_c); + // +void ogre_bbdc_setUseTextureCoords(struct hg3dclass_struct * thisclass_c, int use_c); + // +void ogre_bbdc_getUseTextureCoords(struct hg3dclass_struct * thisclass_c, int * 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, int use_c); + +// +void ogre_bbdc_getUseVertexColours(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_bbdc_setDynamic(struct hg3dclass_struct * thisclass_c, int dyn_c); + +// +void ogre_bbdc_getDynamic(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_bbdc_removeChainElement(struct hg3dclass_struct * thisclass_c, int chainIndex_c); + +// +void ogre_bbdc_getNumChainElements(struct hg3dclass_struct * thisclass_c, int chainIndex_c, int * result_c); + +// +void ogre_bbdc_clearChain(struct hg3dclass_struct * thisclass_c, int chainIndex_c); + +// +void ogre_bbdc_clearAllChains(struct hg3dclass_struct * thisclass_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); + +#endif
include/ClassBillboardChainFactory.h view
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,23 +16,30 @@ // 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,136 +16,178 @@ // 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 int poolSize_c, int 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, int * result_c); + // +void ogre_bbs_setAutoextend(struct hg3dclass_struct * thisclass_c, int 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, int * result_c); +// +void ogre_bbs_setSortingEnabled(struct hg3dclass_struct * thisclass_c, int 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, int * result_c); + +// +void ogre_bbs_setPoolSize(struct hg3dclass_struct * thisclass_c, int size_c); + +// +void ogre_bbs_getPoolSize(struct hg3dclass_struct * thisclass_c, unsigned int * result_c); + +// +void ogre_bbs_clear(struct hg3dclass_struct * thisclass_c); + +// +void ogre_bbs_getBillboard(struct hg3dclass_struct * thisclass_c, unsigned int index_c, struct hg3dclass_struct * result_c); + +// +void ogre_bbs_removeBillboard(struct hg3dclass_struct * thisclass_c, unsigned int 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, int 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, int * result_c); + +// +void ogre_bbs_setCullIndividually(struct hg3dclass_struct * thisclass_c, int 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, int acc_c); + +// +void ogre_bbs_getUseAccurateFacing(struct hg3dclass_struct * thisclass_c, int * 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, int ws_c); + +// +void ogre_bbs_setPointRenderingEnabled(struct hg3dclass_struct * thisclass_c, int enabled_c); + +// +void ogre_bbs_isPointRenderingEnabled(struct hg3dclass_struct * thisclass_c, int * result_c); + +// Override to return specific type flag. +void ogre_bbs_getTypeFlags(struct hg3dclass_struct * thisclass_c, unsigned int * result_c); + +// +void ogre_bbs_setAutoUpdate(struct hg3dclass_struct * thisclass_c, int autoUpdate_c); + +// +void ogre_bbs_getAutoUpdate(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_bbs_notifyBillboardDataChanged(struct hg3dclass_struct * thisclass_c); + +#endif
include/ClassBillboardSetFactory.h view
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,23 +16,30 @@ // 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,43 +16,43 @@ // 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, int 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, int * result_c); +// +void ogre_bn_needUpdate(struct hg3dclass_struct * thisclass_c, int 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,148 +16,202 @@ // 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, int 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_setAutoTracking(struct hg3dclass_struct * thisclass_c, int enabled_c, struct hg3dclass_struct * target_c, struct vector3_struct * offset_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, int * 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, int autoratio_c); + +// +void ogre_cam_getAutoAspectRatio(struct hg3dclass_struct * thisclass_c, int * 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, int * 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, int use_c); + +// +void ogre_cam_getUseRenderingDistance(struct hg3dclass_struct * thisclass_c, int * 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); + +#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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,36 +16,41 @@ // 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, int 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, int 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, int 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, int 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,43 +16,50 @@ // 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_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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,121 +16,128 @@ // 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 int * 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_getAllAnimationStates(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); + +// +void ogre_ent_setDisplaySkeleton(struct hg3dclass_struct * thisclass_c, int display_c); + +// +void ogre_ent_getDisplaySkeleton(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_ent_getManualLodLevel(struct hg3dclass_struct * thisclass_c, int index_c, struct hg3dclass_struct * result_c); + +// +void ogre_ent_getNumManualLodLevels(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_ent_setPolygonModeOverrideable(struct hg3dclass_struct * thisclass_c, int 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, int * result_c); + +// +void ogre_ent_hasSkeleton(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_ent_isHardwareAnimationEnabled(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_ent_getSoftwareAnimationRequests(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_ent_getSoftwareAnimationNormalsRequests(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_ent_addSoftwareAnimationRequest(struct hg3dclass_struct * thisclass_c, int normalsAlso_c); + +// +void ogre_ent_removeSoftwareAnimationRequest(struct hg3dclass_struct * thisclass_c, int 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, int * result_c); + +// +void ogre_ent_stopSharingSkeletonInstance(struct hg3dclass_struct * thisclass_c); + +// +void ogre_ent_sharesSkeletonInstance(struct hg3dclass_struct * thisclass_c, int * 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, int hasVertexAnim_c, enum EnumEntityVertexDataBindChoice * result_c); + +// +void ogre_ent_isInitialised(struct hg3dclass_struct * thisclass_c, int * 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, int skip_c); + +// +void ogre_ent_getSkipAnimationStateUpdate(struct hg3dclass_struct * thisclass_c, int * result_c); + +#endif
include/ClassEntityFactory.h view
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,23 +16,30 @@ // 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,37 +16,44 @@ // 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(int 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, int * 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, int * 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,107 +16,152 @@ // 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, int * result_c); + +// Returns whether a custom projection matrix is in use. +void ogre_frst_isCustomProjectionMatrixEnabled(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_frst_isVisible3(struct hg3dclass_struct * thisclass_c, struct vector3_struct * vert_c, enum EnumFrustumPlane * culledBy_c, int * result_c); + +// Overridden from MovableObject::getTypeFlags +void ogre_frst_getTypeFlags(struct hg3dclass_struct * thisclass_c, unsigned int * 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, int * result_c); + +// +void ogre_frst_disableCustomNearClipPlane(struct hg3dclass_struct * thisclass_c); + +// +void ogre_frst_isCustomNearClipPlaneEnabled(struct hg3dclass_struct * thisclass_c, int * 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/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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,128 +16,156 @@ // 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_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, int 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, int 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 int * 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,23 +16,30 @@ // 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,64 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// (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. +// + +// 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, int * result_c); + +// Get whether file output is suppressed for this log. +void ogre_lg_isFileOutputSuppressed(struct hg3dclass_struct * thisclass_c, int * result_c); + +// Get whether time stamps are printed for this log. +void ogre_lg_isTimeStampEnabled(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_lg_logMessage(struct hg3dclass_struct * thisclass_c, char * message_c, enum EnumLogMessageLevel lml_c, int maskDebug_c); + +// +void ogre_lg_setDebugOutputEnabled(struct hg3dclass_struct * thisclass_c, int debugOutput_c); + +// +void ogre_lg_setLogDetail(struct hg3dclass_struct * thisclass_c, enum EnumLoggingLevel ll_c); + +// +void ogre_lg_setTimeStampEnabled(struct hg3dclass_struct * thisclass_c, int timeStamp_c); + +// +void ogre_lg_getLogDetail(struct hg3dclass_struct * thisclass_c, enum EnumLoggingLevel * result_c); + +#endif
include/ClassLogManager.h view
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,33 +16,53 @@ // 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, int defaultLog_c, int debuggerOutput_c, int 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, int 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, int maskDebug_c); + +// +void ogre_lmgr_setLogDetail(struct hg3dclass_struct * thisclass_c, enum EnumLoggingLevel ll_c); + +// +void ogre_lmgr_getSingletonPtr(struct hg3dclass_struct * result_c); + +#endif
include/ClassManualObject.h view
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,107 +16,143 @@ // 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, int vcount_c); + // +void ogre_mno_estimateIndexCount(struct hg3dclass_struct * thisclass_c, int 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, int dyn_c); +// +void ogre_mno_getDynamic(struct hg3dclass_struct * thisclass_c, int * 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, int 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 int idx_c); + +// +void ogre_mno_triangle(struct hg3dclass_struct * thisclass_c, unsigned int i1_c, unsigned int i2_c, unsigned int i3_c); + +// +void ogre_mno_quad(struct hg3dclass_struct * thisclass_c, unsigned int i1_c, unsigned int i2_c, unsigned int i3_c, unsigned int i4_c); + +// +void ogre_mno_end(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c); + +// +void ogre_mno_setMaterialName(struct hg3dclass_struct * thisclass_c, int 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, int useIdentityProjection_c); + +// +void ogre_mno_getUseIdentityProjection(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_mno_setUseIdentityView(struct hg3dclass_struct * thisclass_c, int useIdentityView_c); + +// +void ogre_mno_getUseIdentityView(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_mno_getSection(struct hg3dclass_struct * thisclass_c, unsigned int index_c, struct hg3dclass_struct * result_c); + +// +void ogre_mno_getNumSections(struct hg3dclass_struct * thisclass_c, unsigned int * result_c); + +// +void ogre_mno_setKeepDeclarationOrder(struct hg3dclass_struct * thisclass_c, int keepOrder_c); + +// +void ogre_mno_getKeepDeclarationOrder(struct hg3dclass_struct * thisclass_c, int * 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, int * result_c); + +#endif
include/ClassManualObjectFactory.h view
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,23 +16,30 @@ // 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,36 +16,48 @@ // 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, int n32_c); + +// Get whether we need 32-bit indices. +void ogre_mnos_get32BitIndices(struct hg3dclass_struct * thisclass_c, int * 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,119 +16,121 @@ // 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, int * 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, int 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, int * result_c); + // +void ogre_mtrl_setTransparencyCastsShadows(struct hg3dclass_struct * thisclass_c, int enabled_c); + // +void ogre_mtrl_getTransparencyCastsShadows(struct hg3dclass_struct * thisclass_c, int * 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, int 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, int 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, int enabled_c); + +// +void ogre_mtrl_setDepthWriteEnabled(struct hg3dclass_struct * thisclass_c, int enabled_c); + +// +void ogre_mtrl_setColourWriteEnabled(struct hg3dclass_struct * thisclass_c, int enabled_c); + +// +void ogre_mtrl_setLightingEnabled(struct hg3dclass_struct * thisclass_c, int 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, int maxAniso_c); + +// +void ogre_mtrl_touch(struct hg3dclass_struct * thisclass_c); + +// +void ogre_mtrl_getCompilationRequired(struct hg3dclass_struct * thisclass_c, int * 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,55 +16,45 @@ // 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 int maxAniso_c); + +// get the default maxAnisotropy +void ogre_mtrlmgr_getDefaultAnisotropy(struct hg3dclass_struct * thisclass_c, unsigned int * 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_getSingletonPtr(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); +#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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,124 +16,131 @@ // 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, int * result_c); + +// +void ogre_msh_hasVertexAnimation(struct hg3dclass_struct * thisclass_c, int * 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, int * result_c); + +// +void ogre_msh_removeLodLevels(struct hg3dclass_struct * thisclass_c); + +// +void ogre_msh_isVertexBufferShadowed(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_msh_isIndexBufferShadowed(struct hg3dclass_struct * thisclass_c, int * 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, int * result_c); + +// +void ogre_msh_isEdgeListBuilt(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_msh_setAutoBuildEdgeLists(struct hg3dclass_struct * thisclass_c, int autobuild_c); + +// +void ogre_msh_getAutoBuildEdgeLists(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_msh_getSharedVertexDataAnimationType(struct hg3dclass_struct * thisclass_c, enum EnumVertexAnimationType * 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, int * 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, int * 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,57 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// (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. +// + +// 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, int enable_c); + +// +void ogre_mshmgr_getPrepareAllMeshesForShadowVolumes(struct hg3dclass_struct * thisclass_c, int * 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_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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,99 +16,131 @@ // 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, int * result_c); + // +void ogre_mvo_isAttached(struct hg3dclass_struct * thisclass_c, int * 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, int * 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, int visible_c); + +// +void ogre_mvo_getVisible(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_mvo_isVisible(struct hg3dclass_struct * thisclass_c, int * 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_setQueryFlags(struct hg3dclass_struct * thisclass_c, unsigned int flags_c); + +// +void ogre_mvo_addQueryFlags(struct hg3dclass_struct * thisclass_c, unsigned int flags_c); + +// +void ogre_mvo_removeQueryFlags(struct hg3dclass_struct * thisclass_c, unsigned int flags_c); + +// Returns the query flags relevant for this object. +void ogre_mvo_getQueryFlags(struct hg3dclass_struct * thisclass_c, unsigned int * result_c); + +// +void ogre_mvo_setVisibilityFlags(struct hg3dclass_struct * thisclass_c, unsigned int flags_c); + +// +void ogre_mvo_addVisibilityFlags(struct hg3dclass_struct * thisclass_c, unsigned int flags_c); + +// +void ogre_mvo_removeVisibilityFlags(struct hg3dclass_struct * thisclass_c, unsigned int flags_c); + +// Returns the visibility flags relevant for this object. +void ogre_mvo_getVisibilityFlags(struct hg3dclass_struct * thisclass_c, unsigned int * result_c); + +// +void ogre_mvo_getLightMask(struct hg3dclass_struct * thisclass_c, unsigned int * result_c); + +// +void ogre_mvo_setLightMask(struct hg3dclass_struct * thisclass_c, unsigned int lightMask_c); + +// Define a default implementation of method from ShadowCaster which implements no shadows. +void ogre_mvo_hasEdgeList(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_mvo_setCastShadows(struct hg3dclass_struct * thisclass_c, int enabled_c); + +// +void ogre_mvo_getCastShadows(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_mvo_getReceivesShadows(struct hg3dclass_struct * thisclass_c, int * 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 int * result_c); + +// +void ogre_mvo_setDebugDisplayEnabled(struct hg3dclass_struct * thisclass_c, int enabled_c); + +// Gets whether debug display of this object is enabled. +void ogre_mvo_isDebugDisplayEnabled(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_mvo_setDefaultQueryFlags(unsigned int flags_c); + +// +void ogre_mvo_getDefaultQueryFlags(unsigned int * result_c); + +// +void ogre_mvo_setDefaultVisibilityFlags(unsigned int flags_c); + +// +void ogre_mvo_getDefaultVisibilityFlags(unsigned int * result_c); + +#endif
include/ClassMovableObjectFactory.h view
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,31 +16,33 @@ // 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, int * result_c); + +// +void ogre_mvof_getTypeFlags(struct hg3dclass_struct * thisclass_c, unsigned int * result_c); + +#endif
include/ClassMultiRenderTarget.h view
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,30 +16,27 @@ // 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, int attachment_c, struct hg3dclass_struct * target_c); + +// +void ogre_mrt_unbindSurface(struct hg3dclass_struct * thisclass_c, int attachment_c); + +// +void ogre_mrt_getBoundSurface(struct hg3dclass_struct * thisclass_c, int index_c, struct hg3dclass_struct * result_c); + +#endif
include/ClassNode.h view
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,133 +16,175 @@ // 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, int inherit_c); + +// +void ogre_nd_getInheritOrientation(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_nd_setInheritScale(struct hg3dclass_struct * thisclass_c, int inherit_c); + +// +void ogre_nd_getInheritScale(struct hg3dclass_struct * thisclass_c, int * 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, int forceParentUpdate_c); + +// +void ogre_nd_requestUpdate(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * child_c, int 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,41 +16,50 @@ // 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, int useShortestPath_c); + // +void ogre_noat_getUseShortestRotationPath(struct hg3dclass_struct * thisclass_c, int * 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, int * 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,27 +16,25 @@ // 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,205 @@-/* -This source file 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.althainz.de/HGamer3D.html +// +// (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 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); - -typedef void ClassMaterialManager; -hg3dclass_struct getOgreClass_MaterialManager(void *ptrIn); +hg3dclass_struct getHG3DClass_Viewport(void *ptrIn); -typedef void ClassCamera; -hg3dclass_struct getOgreClass_Camera(void *ptrIn); +typedef void ClassWindowEventUtilities; +hg3dclass_struct getHG3DClass_WindowEventUtilities(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,165 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// (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. +// + +// 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, int enabled_c); + +// +void ogre_rds_setWBufferEnabled(struct hg3dclass_struct * thisclass_c, int enabled_c); + +// +void ogre_rds_getWBufferEnabled(struct hg3dclass_struct * thisclass_c, int * 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_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, int errorNumber_c, char * result_c); + +// +void ogre_rds_setWaitForVerticalBlank(struct hg3dclass_struct * thisclass_c, int enabled_c); + +// +void ogre_rds_getWaitForVerticalBlank(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_rds_areFixedFunctionLightsInViewSpace(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_rds_convertColourValue(struct hg3dclass_struct * thisclass_c, struct colourvalue_struct * colour_c, unsigned int * pDest_c); + +// +void ogre_rds_setStencilCheckEnabled(struct hg3dclass_struct * thisclass_c, int enabled_c); + +// +void ogre_rds_setNormaliseNormals(struct hg3dclass_struct * thisclass_c, int 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, int * 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, int invert_c); + +// +void ogre_rds_getInvertVertexWinding(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_rds_setScissorTest(struct hg3dclass_struct * thisclass_c, int enabled_c, int left_c, int top_c, int right_c, int bottom_c); + +// +void ogre_rds_clearFrameBuffer(struct hg3dclass_struct * thisclass_c, unsigned int 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 int count_c); + +// +void ogre_rds_setDeriveDepthBias(struct hg3dclass_struct * thisclass_c, int 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 int * result_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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,90 +16,124 @@ // 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 int * width_c, unsigned int * height_c, unsigned int * colourDepth_c); + // +void ogre_rtgt_getWidth(struct hg3dclass_struct * thisclass_c, unsigned int * 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 int * 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 int * result_c); + // +void ogre_rtgt_update(struct hg3dclass_struct * thisclass_c, int swapBuffers_c); + // +void ogre_rtgt_swapBuffers(struct hg3dclass_struct * thisclass_c, int waitForVSync_c); -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" -#include "EnumPixelFormat.h" +// +void ogre_rtgt_addViewport(struct hg3dclass_struct * thisclass_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); +// +void ogre_rtgt_getNumViewports(struct hg3dclass_struct * thisclass_c, unsigned short * result_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_getViewport(struct hg3dclass_struct * thisclass_c, unsigned short index_c, struct hg3dclass_struct * result_c); + +// +void ogre_rtgt_removeViewport(struct hg3dclass_struct * thisclass_c, int 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, int * result_c); + +// +void ogre_rtgt_setActive(struct hg3dclass_struct * thisclass_c, int state_c); + +// +void ogre_rtgt_setAutoUpdated(struct hg3dclass_struct * thisclass_c, int autoupdate_c); + +// +void ogre_rtgt_isAutoUpdated(struct hg3dclass_struct * thisclass_c, int * 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, int * result_c); + +// +void ogre_rtgt_getTriangleCount(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_rtgt_getBatchCount(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_rtgt_isPrimary(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_rtgt_isHardwareGammaEnabled(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_rtgt_getFSAA(struct hg3dclass_struct * thisclass_c, unsigned int * result_c); + +// +void ogre_rtgt_getFSAAHint(struct hg3dclass_struct * thisclass_c, char * result_c); + +#endif
include/ClassRenderTexture.h view
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,23 +16,20 @@ // 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,50 +16,59 @@ // 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, int fullScreen_c, unsigned int width_c, unsigned int 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 int width_c, unsigned int 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, int left_c, int top_c); + // +void ogre_rw_isVisible(struct hg3dclass_struct * thisclass_c, int * result_c); -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" -#include "EnumPixelFormat.h" +// +void ogre_rw_setVisible(struct hg3dclass_struct * thisclass_c, int visible_c); +// +void ogre_rw_isActive(struct hg3dclass_struct * thisclass_c, int * 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_isClosed(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_rw_isPrimary(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_rw_isFullScreen(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_rw_getMetrics(struct hg3dclass_struct * thisclass_c, unsigned int * width_c, unsigned int * height_c, unsigned int * colourDepth_c, int * left_c, int * top_c); + +// +void ogre_rw_isDeactivatedOnFocusChange(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_rw_setDeactivateOnFocusChange(struct hg3dclass_struct * thisclass_c, int deactivate_c); + +#endif
+ include/ClassRenderable.h view
@@ -0,0 +1,75 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// (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. +// + +// 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, int * 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, int useIdentityProjection_c); + +// +void ogre_rndl_getUseIdentityProjection(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_rndl_setUseIdentityView(struct hg3dclass_struct * thisclass_c, int useIdentityView_c); + +// +void ogre_rndl_getUseIdentityView(struct hg3dclass_struct * thisclass_c, int * 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, int * result_c); + +// +void ogre_rndl_setPolygonModeOverrideable(struct hg3dclass_struct * thisclass_c, int override_c); + +// +void ogre_rndl_getPolygonModeOverrideable(struct hg3dclass_struct * thisclass_c, int * 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,96 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// (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. +// + +// 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, int backgroundThread_c); + +// +void ogre_rsrc_load(struct hg3dclass_struct * thisclass_c, int backgroundThread_c); + +// +void ogre_rsrc_reload(struct hg3dclass_struct * thisclass_c); + +// +void ogre_rsrc_isReloadable(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_rsrc_isManuallyLoaded(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_rsrc_unload(struct hg3dclass_struct * thisclass_c); + +// +void ogre_rsrc_getSize(struct hg3dclass_struct * thisclass_c, int * 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, int * result_c); + +// +void ogre_rsrc_isLoaded(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_rsrc_isLoading(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_rsrc_isBackgroundLoaded(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_rsrc_setBackgroundLoaded(struct hg3dclass_struct * thisclass_c, int 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, int * 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,116 +16,108 @@ // 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 int 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, int prepareMainResources_c, int 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, int loadMainResources_c, int loadWorldGeom_c); +// +void ogre_rgmgr_unloadResourceGroup(struct hg3dclass_struct * thisclass_c, char * name_c, int 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, int 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, int * result_c); + +// +void ogre_rgmgr_isResourceGroupLoaded(struct hg3dclass_struct * thisclass_c, char * name_c, int * result_c); + +// +void ogre_rgmgr_resourceGroupExists(struct hg3dclass_struct * thisclass_c, char * name_c, int * result_c); + +// +void ogre_rgmgr_addResourceLocation(struct hg3dclass_struct * thisclass_c, char * name_c, char * locType_c, char * resGroup_c, int 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, int * 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, int * result_c); + +// +void ogre_rgmgr_resourceExistsInAnyGroup(struct hg3dclass_struct * thisclass_c, char * filename_c, int * 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, int * result_c); + +// +void ogre_rgmgr_shutdownAll(struct hg3dclass_struct * thisclass_c); + +// +void ogre_rgmgr_getSingletonPtr(struct hg3dclass_struct * result_c); + +#endif
include/ClassResourceManager.h view
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,64 +16,74 @@ // 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, int 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, int * 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, int * result_c); + // +void ogre_rsrcmgr_unload(struct hg3dclass_struct * thisclass_c, char * name_c); + // +void ogre_rsrcmgr_unloadAll(struct hg3dclass_struct * thisclass_c, int reloadableOnly_c); -#include "wchar.h" -#include "ClassPtr.h" -#include "Utils.h" -#include "TypeSharedPtr.h" +// +void ogre_rsrcmgr_reloadAll(struct hg3dclass_struct * thisclass_c, int reloadableOnly_c); +// +void ogre_rsrcmgr_unloadUnreferencedResources(struct hg3dclass_struct * thisclass_c, int 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, int 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, int reloadableOnly_c); + +// Returns whether the named resource exists in this manager. +void ogre_rsrcmgr_resourceExists(struct hg3dclass_struct * thisclass_c, char * name_c, int * 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, int v_c); + +// +void ogre_rsrcmgr_getVerbose(struct hg3dclass_struct * thisclass_c, int * 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,135 +16,173 @@ // 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, int * result_c); + // +void ogre_rt_showConfigDialog(struct hg3dclass_struct * thisclass_c, int * 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, int autoCreateWindow_c, char * windowTitle_c, char * customCapabilitiesConfig_c, struct hg3dclass_struct * result_c); + +// +void ogre_rt_isInitialised(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_rt_getRemoveRenderQueueStructuresOnClear(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_rt_setRemoveRenderQueueStructuresOnClear(struct hg3dclass_struct * thisclass_c, int 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, int * 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, int 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, int * result_c); + +// +void ogre_rt_renderOneFrame2(struct hg3dclass_struct * thisclass_c, float timeSinceLastFrame_c, int * 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, int 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 int * 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); + +// +void ogre_rt_detachRenderTarget2(struct hg3dclass_struct * thisclass_c, char * name_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_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, int 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, int * 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 int * 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,426 +16,524 @@ // 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 "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 "StructSharedPtr.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, int * 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, int * 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, int * 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 * meshName_c, struct hg3dclass_struct * result_c); + +// +void ogre_scmgr_createEntity3(struct hg3dclass_struct * thisclass_c, char * entityName_c, enum EnumSceneManagerPrefabType ptype_c, struct hg3dclass_struct * result_c); + +// +void ogre_scmgr_createEntity4(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, int * 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, int * 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, int * 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, int * 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, int * 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, int * result_c); + +// +void ogre_scmgr_hasOption(struct hg3dclass_struct * thisclass_c, char * strKey_c, int * result_c); + +// +void ogre_scmgr_setSkyPlaneEnabled(struct hg3dclass_struct * thisclass_c, int enable_c); + +// +void ogre_scmgr_isSkyPlaneEnabled(struct hg3dclass_struct * thisclass_c, int * 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, int enable_c, char * materialName_c, float distance_c, int drawFirst_c, struct quaternion_struct * orientation_c, char * groupName_c); + +// +void ogre_scmgr_setSkyBoxEnabled(struct hg3dclass_struct * thisclass_c, int enable_c); + +// +void ogre_scmgr_isSkyBoxEnabled(struct hg3dclass_struct * thisclass_c, int * 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, 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); + +// +void ogre_scmgr_setSkyDomeEnabled(struct hg3dclass_struct * thisclass_c, int enable_c); + +// +void ogre_scmgr_isSkyDomeEnabled(struct hg3dclass_struct * thisclass_c, int * 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 int poolSize_c, struct hg3dclass_struct * result_c); + +// +void ogre_scmgr_createBillboardSet2(struct hg3dclass_struct * thisclass_c, unsigned int 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, int * 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, int display_c); + +// +void ogre_scmgr_getDisplaySceneNodes(struct hg3dclass_struct * thisclass_c, int * 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, int * 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, int * 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, int bShow_c); + +// +void ogre_scmgr_getShowBoundingBoxes(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_scmgr_setShowDebugShadows(struct hg3dclass_struct * thisclass_c, int debug_c); + +// +void ogre_scmgr_getShowDebugShadows(struct hg3dclass_struct * thisclass_c, int * 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, int size_c); + +// Get the size of the shadow index buffer. +void ogre_scmgr_getShadowIndexBufferSize(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_scmgr_setShadowTextureSize(struct hg3dclass_struct * thisclass_c, unsigned short size_c); + +// +void ogre_scmgr_setShadowTextureCount(struct hg3dclass_struct * thisclass_c, int count_c); + +// Get the number of the textures allocated for texture based shadows. +void ogre_scmgr_getShadowTextureCount(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_scmgr_setShadowTextureCountPerLightType(struct hg3dclass_struct * thisclass_c, enum EnumLightType type_c, int 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, int * result_c); + +// +void ogre_scmgr_getShadowTexture(struct hg3dclass_struct * thisclass_c, int 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, int selfShadow_c); + +// Gets whether or not texture shadows attempt to self-shadow. +void ogre_scmgr_getShadowTextureSelfShadow(struct hg3dclass_struct * thisclass_c, int * 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, int bf_c); + +// +void ogre_scmgr_getShadowCasterRenderBackFaces(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_scmgr_setShadowUseInfiniteFarPlane(struct hg3dclass_struct * thisclass_c, int enable_c); + +// +void ogre_scmgr_isShadowTechniqueStencilBased(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_scmgr_isShadowTechniqueTextureBased(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_scmgr_isShadowTechniqueModulative(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_scmgr_isShadowTechniqueAdditive(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_scmgr_isShadowTechniqueIntegrated(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_scmgr_isShadowTechniqueInUse(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_scmgr_setShadowUseLightClipPlanes(struct hg3dclass_struct * thisclass_c, int enabled_c); + +// +void ogre_scmgr_getShadowUseLightClipPlanes(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_scmgr_setLateMaterialResolving(struct hg3dclass_struct * thisclass_c, int isLate_c); + +// +void ogre_scmgr_isLateMaterialResolving(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_scmgr_hasStaticGeometry(struct hg3dclass_struct * thisclass_c, char * name_c, int * 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_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, int * 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 int vmask_c); + +// +void ogre_scmgr_getVisibilityMask(struct hg3dclass_struct * thisclass_c, unsigned int * result_c); + +// +void ogre_scmgr_setFindVisibleObjects(struct hg3dclass_struct * thisclass_c, int find_c); + +// +void ogre_scmgr_getFindVisibleObjects(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_scmgr_setNormaliseNormalsOnScale(struct hg3dclass_struct * thisclass_c, int n_c); + +// +void ogre_scmgr_getNormaliseNormalsOnScale(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_scmgr_setFlipCullingOnNegativeScale(struct hg3dclass_struct * thisclass_c, int n_c); + +// +void ogre_scmgr_getFlipCullingOnNegativeScale(struct hg3dclass_struct * thisclass_c, int * 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, int rel_c); + +// +void ogre_scmgr_getCameraRelativeRendering(struct hg3dclass_struct * thisclass_c, int * 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,27 +16,27 @@ // 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,97 +16,105 @@ // 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, int * 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, int bShow_c); + +// +void ogre_sn_hideBoundingBox(struct hg3dclass_struct * thisclass_c, int bHide_c); + +// +void ogre_sn_getShowBoundingBox(struct hg3dclass_struct * thisclass_c, int * 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, int useFixed_c, struct vector3_struct * fixedAxis_c); + +// +void ogre_sn_setAutoTracking(struct hg3dclass_struct * thisclass_c, int enabled_c, struct hg3dclass_struct * target_c, struct vector3_struct * localDirectionVector_c, struct vector3_struct * offset_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, int visible_c, int cascade_c); + +// +void ogre_sn_flipVisibility(struct hg3dclass_struct * thisclass_c, int cascade_c); + +// +void ogre_sn_setDebugDisplayEnabled(struct hg3dclass_struct * thisclass_c, int enabled_c, int 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,76 +16,96 @@ // 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, int * result_c); + +// +void ogre_skl_setBindingPose(struct hg3dclass_struct * thisclass_c); + +// +void ogre_skl_reset(struct hg3dclass_struct * thisclass_c, int 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_hasAnimation(struct hg3dclass_struct * thisclass_c, char * name_c, int * 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_getAnimation2(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, int 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, int * result_c); + +// Are there any manually controlled bones? +void ogre_skl_hasManualBones(struct hg3dclass_struct * thisclass_c, int * 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,41 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// (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. +// + +// 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_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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,44 +16,29 @@ // 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" -// -// each stub combines the following files: -// a C++ implementation file, transforming cpp calls into C-functions -// a 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_ClassTextureManager +#define _DEFINED_HG3D_ClassTextureManager + #include "ClassPtr.h" -#include "Utils.h" -#include "TypeSharedPtr.h" -#include "EnumTextureType.h" -#include "EnumPixelFormat.h" -// 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); + +// +void ogre_txmgr_destruct(struct hg3dclass_struct * thisclass_c); + +// +void ogre_txmgr_setDefaultNumMipmaps(struct hg3dclass_struct * thisclass_c, int num_c); + +// +void ogre_txmgr_getDefaultNumMipmaps(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_txmgr_getSingletonPtr(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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,23 +16,29 @@ // 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, int * result_c); + +// +void ogre_tnx_getTimePos(struct hg3dclass_struct * thisclass_c, float * result_c); + +// +void ogre_tnx_getKeyIndex(struct hg3dclass_struct * thisclass_c, unsigned int * 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,43 +16,42 @@ // 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_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, int * 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,105 +16,151 @@ // 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, int 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 int 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, int * 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, int * result_c); + +// +void ogre_vprt_getActualTop(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_vprt_getActualWidth(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_vprt_getActualHeight(struct hg3dclass_struct * thisclass_c, int * 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, int 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_setClearEveryFrame(struct hg3dclass_struct * thisclass_c, int clear_c, unsigned int buffers_c); + +// +void ogre_vprt_getClearEveryFrame(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_vprt_getClearBuffers(struct hg3dclass_struct * thisclass_c, unsigned int * result_c); + +// +void ogre_vprt_setAutoUpdated(struct hg3dclass_struct * thisclass_c, int autoupdate_c); + +// +void ogre_vprt_isAutoUpdated(struct hg3dclass_struct * thisclass_c, int * 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, int * left_c, int * top_c, int * width_c, int * height_c); + +// +void ogre_vprt_setOverlaysEnabled(struct hg3dclass_struct * thisclass_c, int enabled_c); + +// +void ogre_vprt_getOverlaysEnabled(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_vprt_setSkiesEnabled(struct hg3dclass_struct * thisclass_c, int enabled_c); + +// +void ogre_vprt_getSkiesEnabled(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_vprt_setShadowsEnabled(struct hg3dclass_struct * thisclass_c, int enabled_c); + +// +void ogre_vprt_getShadowsEnabled(struct hg3dclass_struct * thisclass_c, int * result_c); + +// +void ogre_vprt_setVisibilityMask(struct hg3dclass_struct * thisclass_c, unsigned int mask_c); + +// +void ogre_vprt_getVisibilityMask(struct hg3dclass_struct * thisclass_c, unsigned int * 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, int orientationMode_c, struct vector2_struct * outv_c); + +// +void ogre_vprt_pointOrientedToScreen2(struct hg3dclass_struct * thisclass_c, float orientedX_c, float orientedY_c, int 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,23 +16,20 @@ // 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,35 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// (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. +// + +// 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,35 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// (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. +// + +// 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,41 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// (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. +// + +// 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,36 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// (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. +// + +// 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,35 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// (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. +// + +// 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,35 +16,27 @@ // 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,30 +16,20 @@ // 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,36 +16,23 @@ // 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,35 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// (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. +// + +// 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,37 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// (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. +// + +// 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,43 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// (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. +// + +// 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,32 +16,24 @@ // 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,29 +16,21 @@ // 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,36 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// (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. +// + +// 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,29 +16,21 @@ // 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,29 +16,21 @@ // 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,35 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// (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. +// + +// 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,36 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// (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. +// + +// 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,36 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// (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. +// + +// 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,34 +16,25 @@ // 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,28 +16,20 @@ // 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,39 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// (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. +// + +// 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,36 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// (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. +// + +// 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,40 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// (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. +// + +// 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,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// (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. +// + +// 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,39 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// (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. +// + +// 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,36 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// (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. +// + +// 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,36 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// (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. +// + +// 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,35 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// (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. +// + +// 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,31 +16,23 @@ // 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,29 +16,20 @@ // 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, // Animations are applied by calculating a weighted average of all animations. + ANIMBLEND_CUMULATIVE // 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,42 +16,26 @@ // 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,36 +16,24 @@ // 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,35 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// (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. +// + +// 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
@@ -2,7 +2,7 @@ // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // -// (c) 2011 Peter Althainz +// (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. @@ -16,32 +16,21 @@ // 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/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, 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 Peter Althainz -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT 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 _HGamer3DOgre017_DLLDEFINES_H_ +#define _HGamer3DOgre017_DLLDEFINES_H_ -/* Cmake will define HGamer3DOgre015_EXPORTS on Windows when it +/* Cmake will define HGamer3DOgre017_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(HGamer3DOgre017_EXPORTS) #define Ogre_LIB_EXPORT __declspec(dllexport) #else #define Ogre_LIB_EXPORT __declspec(dllimport) - #endif /* HGamer3DOgre015_EXPORTS */ + #endif /* HGamer3DOgre017_EXPORTS */ #else /* defined (_WIN32) */ #define Ogre_LIB_EXPORT #endif -#endif /* _HGamer3DOgre015_DLLDEFINES_H_ */ +#endif /* _HGamer3DOgre017_DLLDEFINES_H_ */
+ include/StructColour.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.althainz.de/HGamer3D.html +// +// (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. +// + +// 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,36 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// (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. +// + +// 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,36 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// (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. +// + +// 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,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// (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. +// + +// 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,35 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// (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. +// + +// 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,37 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// (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. +// + +// 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,36 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// (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. +// + +// 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,37 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// (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. +// + +// 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();