示例#1
0
 public void addConstantDefinition(string name, SWIGTYPE_Ogre__GpuConstantType constType)
 {
     OgrePINVOKE.GpuSharedParameters_addConstantDefinition__SWIG_1(swigCPtr, name, (int)constType);
     if (OgrePINVOKE.SWIGPendingException.Pending)
     {
         throw OgrePINVOKE.SWIGPendingException.Retrieve();
     }
 }
        public static uint getElementSize(SWIGTYPE_Ogre__GpuConstantType ctype, bool padToMultiplesOf4)
        {
            uint ret = OgrePINVOKE.GpuConstantDefinition_getElementSize((int)ctype, padToMultiplesOf4);

            if (OgrePINVOKE.SWIGPendingException.Pending)
            {
                throw OgrePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public static BaseConstantType getBaseType(SWIGTYPE_Ogre__GpuConstantType ctype)
        {
            BaseConstantType ret = (BaseConstantType)OgrePINVOKE.GpuConstantDefinition_getBaseType((int)ctype);

            if (OgrePINVOKE.SWIGPendingException.Pending)
            {
                throw OgrePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public static bool isSubroutine(SWIGTYPE_Ogre__GpuConstantType c)
        {
            bool ret = OgrePINVOKE.GpuConstantDefinition_isSubroutine__SWIG_1((int)c);

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