コード例 #1
0
 public virtual void translate(ScriptCompiler compiler, SWIGTYPE_p_Ogre__SharedPtrT_Ogre__AbstractNode_t node)
 {
     RTShaderPINVOKE.SGScriptTranslator_translate(swigCPtr, ScriptCompiler.getCPtr(compiler), SWIGTYPE_p_Ogre__SharedPtrT_Ogre__AbstractNode_t.getCPtr(node));
     if (RTShaderPINVOKE.SWIGPendingException.Pending)
     {
         throw RTShaderPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #2
0
        public SWIGTYPE_p_Ogre__ScriptTranslator getTranslator(SWIGTYPE_p_Ogre__SharedPtrT_Ogre__AbstractNode_t node)
        {
            global::System.IntPtr             cPtr = OgrePINVOKE.ScriptCompilerManager_getTranslator(swigCPtr, SWIGTYPE_p_Ogre__SharedPtrT_Ogre__AbstractNode_t.getCPtr(node));
            SWIGTYPE_p_Ogre__ScriptTranslator ret  = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Ogre__ScriptTranslator(cPtr, false);

            if (OgrePINVOKE.SWIGPendingException.Pending)
            {
                throw OgrePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }