00001 // ///////////////////////////////////////////////////////////////////////////// 00002 // 00003 // Name: asComponents.cpp 00004 // Author: Michael Bartsch (ZCCdark203) 00005 // 00006 // Desc : Binds all components to AngelScript. 00007 // 00008 // License: Copyright (C) 2009 Michael Bartsch and Contributors 00009 // 00010 // This program is free software: you can redistribute it 00011 // and/or modify it under the terms of the zlib/libpng License. 00012 // See main.cpp for conditions of distribution and use. 00013 // 00014 // ///////////////////////////////////////////////////////////////////////////// 00015 00016 // Include files 00017 #include "asComponents.h" 00018 00019 #ifdef __COMPILE_WITH_ANGELSCRIPT__ 00020 00021 // Scene 00022 #include "scene/asSceneComponent.h" 00023 #include "scene/asAnimatedMeshComponent.h" 00024 #include "scene/asBillboardComponent.h" 00025 #include "scene/asCameraComponent.h" 00026 #include "scene/asImageComponent.h" 00027 #include "scene/asLightComponent.h" 00028 #include "scene/asMeshComponent.h" 00029 #include "scene/asOctTreeComponent.h" 00030 #include "scene/asParticleSysComponent.h" 00031 #include "scene/asSkyBoxComponent.h" 00032 #include "scene/asSkyDomeComponent.h" 00033 #include "scene/asTerrainComponent.h" 00034 #include "scene/asTextBillboardComponent.h" 00035 00036 // Sound 00037 #include "sound/asSoundListenerComponent.h" 00038 #include "sound/asSoundSourceComponent.h" 00039 00040 00042 void bindComponents(asIScriptEngine *engine) 00043 { 00044 // Scene 00045 bindSceneComponent(engine); 00046 00047 bindAnimatedMeshComponent(engine); 00048 bindBillboardComponent(engine); 00049 bindCameraComponent(engine); 00050 bindImageComponent(engine); 00051 bindLightComponent(engine); 00052 bindMeshComponent(engine); 00053 bindOctTreeComponent(engine); 00054 bindParticleSysComponent(engine); 00055 bindSkyBoxComponent(engine); 00056 bindSkyDomeComponent(engine); 00057 bindTerrainComponent(engine); 00058 bindTextBillboardComponent(engine); 00059 00060 // Sound 00061 #ifdef __COMPILE_WITH_SFML_AUDIO__ 00062 bindSoundListenerComponent(engine); 00063 bindSoundSourceComponent(engine); 00064 #endif // __COMPILE_WITH_SFML_AUDIO__ 00065 } 00066 00067 #endif // __COMPILE_WITH_ANGELSCRIPT__ 00068 00069 // End of File