Ejemplo n.º 1
0
 private void reset()
 {
     m_animationComponent         = null;
     m_meshRenderComponent        = null;
     m_spriteRenderComponent      = null;
     m_skinnedMeshRenderComponent = null;
     m_skeletonComponent          = null;
     m_particleRenderComponent    = null;
     m_projectorRenderComponent   = null;
     m_scriptComponent            = null;
     m_cameraComponent            = null;
     m_SoundSource   = null;
     m_EchoFilter    = null;
     m_LowPassFilter = null;
     m_ReverbFilter  = null;
 }
Ejemplo n.º 2
0
 private static extern void ICall_CameraComponent_SetCullMask(CameraComponent self,UInt32 mask);
Ejemplo n.º 3
0
        // - private function
        private void AssignComponent(Component component)
        {
            System.Type comType = component.GetType();
            if (AnimationComponent.thisType == comType)
            {
                m_animationComponent = component as AnimationComponent;
            }
            else if (MeshRenderComponent.thisType == comType)
            {
                m_meshRenderComponent = component as MeshRenderComponent;
            }
            else if (SkinnedMeshRenderComponent.thisType == comType)
            {
                m_skinnedMeshRenderComponent = component as SkinnedMeshRenderComponent;
            }
            else if (ProjectorRenderComponent.thisType == comType)
            {
                m_projectorRenderComponent = component as ProjectorRenderComponent;
                m_projectorRenderComponent.EnableProjector = true;
                m_projectorRenderComponent.SetMaterialID(0, "sys:projector.material", false);
            }
            else if (SkeletonComponent.thisType == comType)
            {
                m_skeletonComponent = component as SkeletonComponent;
            }
            else if (ParticleRenderComponent.thisType == comType)
            {
                m_particleRenderComponent = component as ParticleRenderComponent;
            }
            else if (SpriteRenderComponent.thisType == comType)
            {
                m_spriteRenderComponent = component as SpriteRenderComponent;
            }
            else if (ScriptComponent.thisType == comType)
            {
                m_scriptComponent = component as ScriptComponent;
            }
            else if (CameraComponent.thisType == comType)
            {
                m_cameraComponent = component as CameraComponent;
            }
            else if (SoundSource.thisType == comType)
            {
                m_SoundSource = component as SoundSource;
            }
#if FMOD_IMPLEMENT
            else if (SoundReverbZone.thisType == comType)
            {
                m_SoundReverb = component as SoundReverbZone;
            }
            else if (SoundHighPassFilterComponent.thisType == comType)
            {
                m_HighPassFilter = component as SoundHighPassFilterComponent;
            }
            else if (SoundLowPassFilterComponent.thisType == comType)
            {
                m_LowPassFilter = component as SoundLowPassFilterComponent;
            }
            else if (SoundChorusFilterComponent.thisType == comType)
            {
                m_ChorusFilter = component as SoundChorusFilterComponent;
            }
            else if (SoundDistortionFilterComponent.thisType == comType)
            {
                m_DistortionFilter = component as SoundDistortionFilterComponent;
            }
            else if (SoundEchoFilterComponent.thisType == comType)
            {
                m_EchoFilter = component as SoundEchoFilterComponent;
            }
            else if (SoundReverbFilterComponent.thisType == comType)
            {
                m_ReverbFilter = component as SoundReverbFilterComponent;
            }
#endif
        }
Ejemplo n.º 4
0
 private static extern void ICall_CameraComponent_GetViewProj(CameraComponent self, out Matrix44 viewProj);
Ejemplo n.º 5
0
 private static extern bool ICall_CameraComponent_GetRenderNormal(CameraComponent self);
Ejemplo n.º 6
0
 private static extern UInt32 ICall_CameraComponent_GetCullMask(CameraComponent self);
Ejemplo n.º 7
0
 private static extern void ICall_CameraComponent_SetUseBeforeDrawEvent(CameraComponent self, bool enable);
Ejemplo n.º 8
0
 private static extern void ICall_CameraComponent_SetRenderToTexture(CameraComponent self, RenderToTexture renderToTexture);
 extern private static void ICall_CameraComponent_SetRenderShadowMap(CameraComponent self, bool enable);
 extern private static bool ICall_CameraComponent_GetUseBeforeDrawEvent(CameraComponent self);
 extern private static void ICall_CameraComponent_SetUseBeforeDrawEvent(CameraComponent self, bool enable);
 extern private static UInt32 ICall_CameraComponent_GetCullMask(CameraComponent self);
 extern private static void ICall_CameraComponent_SetCullMask(CameraComponent self, UInt32 mask);
 extern private static bool ICall_CameraComponent_IsCustomise(CameraComponent self);
 extern private static void ICall_CameraComponent_SetCustomise(CameraComponent self, bool customise);
Ejemplo n.º 16
0
 private static extern bool ICall_CameraComponent_SetProj(CameraComponent self, float fovOrHeight, float zNear, float zFar, int viewType);
Ejemplo n.º 17
0
 private static extern void ICall_CameraComponent_SetRenderNormal(CameraComponent pMonoObj, bool bRenderNormal);
 extern private static bool ICall_CameraComponent_GetRenderShadowMap(CameraComponent self);
Ejemplo n.º 19
0
 private static extern void ICall_CameraComponent_SetupPerspectiveFovRH(CameraComponent self, float fov, float aspect, float zNear, float zFar);
 extern private static void ICall_CameraComponent_Bind(CameraComponent self);
Ejemplo n.º 21
0
 private static extern void ICall_CameraComponent_Bind(CameraComponent self);
 extern private static float ICall_CameraComponent_GetAspect(CameraComponent self);
Ejemplo n.º 23
0
 private static extern float ICall_CameraComponent_GetNearHeight(CameraComponent self);
 extern private static float ICall_CameraComponent_GetZFar(CameraComponent self);
Ejemplo n.º 25
0
 private static extern float ICall_CameraComponent_GetShadowDistance(CameraComponent self);
 extern private static float ICall_CameraComponent_GetFarWidth(CameraComponent self);
Ejemplo n.º 27
0
 private static extern int ICall_CameraComponent_GetViewType(CameraComponent self);
 extern private static float ICall_CameraComponent_GetFarHeight(CameraComponent self);
 extern private static void ICall_CameraComponent_GetViewTransForm(CameraComponent self, out Matrix44 view);
 extern private static int ICall_CameraComponent_GetViewType(CameraComponent self);
Ejemplo n.º 31
0
 private static extern void ICall_CameraComponent_SetCustomise(CameraComponent self, bool customise);
 extern private static bool ICall_CameraComponent_SetProj(CameraComponent self, float fovOrHeight, float zNear, float zFar, int viewType);
Ejemplo n.º 33
0
 private static extern void ICall_CameraComponent_SetRenderDepth(CameraComponent self, bool bRenderDepth);
 extern private static void ICall_CameraComponent_SetZFar(CameraComponent self, float zFar);
Ejemplo n.º 35
0
 private static extern void ICall_CameraComponent_SetRenderShadowMap(CameraComponent self, bool enable);
 extern private static void ICall_CameraComponent_GetViewProj(CameraComponent self, out Matrix44 viewProj);
Ejemplo n.º 37
0
 private static extern void ICall_CameraComponent_SetShadowDistance(CameraComponent self, float shadowDistance);
 extern private static void ICall_CameraComponent_SetupPerspectiveFovRH(CameraComponent self, float fov, float aspect, float zNear, float zFar);
Ejemplo n.º 39
0
 private static extern void ICall_CameraComponent_SetupPerspectiveFovRHEx(CameraComponent self, float fov, float aspect, float zNear, float zFar, ref Vector4 clipPlane_, bool reflection);
 extern private static void ICall_CameraComponent_SetupPerspectiveFovRHEx(CameraComponent self, float fov, float aspect, float zNear, float zFar, ref Vector4 clipPlane_, bool reflection);
Ejemplo n.º 41
0
 private static extern void ICall_CameraComponent_SetZNear(CameraComponent self, float zNear);
 extern private static void ICall_CameraComponent_SetRenderToTexture(CameraComponent self, RenderToTexture renderToTexture);
Ejemplo n.º 43
0
 private static extern float ICall_CameraComponent_GetAspect(CameraComponent self);
 extern private static void ICall_CameraComponent_SetRenderDepth(CameraComponent self, bool bRenderDepth);
Ejemplo n.º 45
0
 private static extern float ICall_CameraComponent_GetFarWidth(CameraComponent self);
 extern private static bool ICall_CameraComponent_GetRenderDepth(CameraComponent self);
Ejemplo n.º 47
0
 private static extern bool ICall_CameraComponent_GetRenderDepth(CameraComponent self);
 extern private static void ICall_CameraComponent_SetRenderNormal(CameraComponent pMonoObj, bool bRenderNormal);
Ejemplo n.º 49
0
 private static extern bool ICall_CameraComponent_GetRenderShadowMap(CameraComponent self);
 extern private static bool ICall_CameraComponent_GetRenderNormal(CameraComponent self);
Ejemplo n.º 51
0
 private static extern bool ICall_CameraComponent_GetUseBeforeDrawEvent(CameraComponent self);
 virtual public bool OnRenderPostEffect(CameraComponent sender, RenderToTexture source, RenderToTexture destination)
 {
     return(false);
 }
Ejemplo n.º 53
0
 private static extern void ICall_CameraComponent_GetViewTransForm(CameraComponent self, out Matrix44 view);
Ejemplo n.º 54
0
 public virtual bool OnRenderPostEffect(CameraComponent sender, RenderToTexture source, RenderToTexture destination)
 {
     return false;
 }
Ejemplo n.º 55
0
 private static extern float ICall_CameraComponent_GetZNear(CameraComponent self);
Ejemplo n.º 56
0
 private static extern bool ICall_CameraComponent_IsCustomise(CameraComponent self);
Ejemplo n.º 57
0
        // - private function
        private void DeAssignComponent(Component component)
        {
            System.Type comType = component.GetType();
            if (AnimationComponent.thisType == comType)
            {
                m_animationComponent = null;
            }
            else if (MeshRenderComponent.thisType == comType)
            {
                m_meshRenderComponent = null;
            }
            else if (SkinnedMeshRenderComponent.thisType == comType)
            {
                m_skinnedMeshRenderComponent = null;
            }
            else if (ProjectorRenderComponent.thisType == comType)
            {
                m_projectorRenderComponent = null;
            }
            else if (SkeletonComponent.thisType == comType)
            {
                m_skeletonComponent = null;
            }
            else if (ParticleRenderComponent.thisType == comType)
            {
                m_particleRenderComponent = null;
            }
            else if (ScriptComponent.thisType == comType)
            {
                m_scriptComponent = null;
            }
            else if (CameraComponent.thisType == comType)
            {
                m_cameraComponent = null;
            }
            else if (SoundSource.thisType == comType)
            {
                m_SoundSource = null;
            }
            else if (SpriteRenderComponent.thisType == comType)
            {
                m_spriteRenderComponent = null;
            }
#if FMOD_IMPLEMENT
            else if (SoundReverbZone.thisType == comType)
            {
                m_SoundReverb = null;
            }
            else if (SoundHighPassFilterComponent.thisType == comType)
            {
                m_HighPassFilter = null;
            }
            else if (SoundLowPassFilterComponent.thisType == comType)
            {
                m_LowPassFilter = null;
            }
            else if (SoundChorusFilterComponent.thisType == comType)
            {
                m_ChorusFilter = null;
            }
            else if (SoundDistortionFilterComponent.thisType == comType)
            {
                m_DistortionFilter = null;
            }
            else if (SoundEchoFilterComponent.thisType == comType)
            {
                m_EchoFilter = null;
            }
            else if (SoundReverbFilterComponent.thisType == comType)
            {
                m_ReverbFilter = null;
            }
#endif
        }
Ejemplo n.º 58
0
 extern private static void ICall_CameraComponent_SetShadowDistance(CameraComponent self, float shadowDistance);