public void ExportNamedConstants(GpuNamedConstants pConsts, string filename, Endian endianMode)
 {
     using (var f = new FileStream(filename, FileMode.CreateNew, FileAccess.Write))
     {
         ExportNamedConstants(pConsts, f, endianMode);
     }
 }
			public void ExportNamedConstants( GpuNamedConstants pConsts, string filename, Endian endianMode )
			{
				using ( var f = new FileStream( filename, FileMode.CreateNew, FileAccess.Write ) )
				{
					ExportNamedConstants( pConsts, f, endianMode );
				}
			}
Beispiel #3
0
 public void importNamedConstants(DataStreamPtr stream, GpuNamedConstants pDest)
 {
     OgrePINVOKE.GpuNamedConstantsSerializer_importNamedConstants(swigCPtr, DataStreamPtr.getCPtr(stream), GpuNamedConstants.getCPtr(pDest));
     if (OgrePINVOKE.SWIGPendingException.Pending)
     {
         throw OgrePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #4
0
 public void exportNamedConstants(GpuNamedConstants pConsts, DataStreamPtr stream)
 {
     OgrePINVOKE.GpuNamedConstantsSerializer_exportNamedConstants__SWIG_3(swigCPtr, GpuNamedConstants.getCPtr(pConsts), DataStreamPtr.getCPtr(stream));
     if (OgrePINVOKE.SWIGPendingException.Pending)
     {
         throw OgrePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #5
0
 public void exportNamedConstants(GpuNamedConstants pConsts, string filename)
 {
     OgrePINVOKE.GpuNamedConstantsSerializer_exportNamedConstants__SWIG_1(swigCPtr, GpuNamedConstants.getCPtr(pConsts), filename);
     if (OgrePINVOKE.SWIGPendingException.Pending)
     {
         throw OgrePINVOKE.SWIGPendingException.Retrieve();
     }
 }
			private void ExportNamedConstants( GpuNamedConstants pConsts, Stream stream, Endian endianMode )
			{
				using ( var w = new BinaryWriter( stream ) )
				{
				}

				throw new NotImplementedException();
			}
Beispiel #7
0
 public void setManualNamedConstants(GpuNamedConstants namedConstants)
 {
     OgrePINVOKE.GpuProgram_setManualNamedConstants(swigCPtr, GpuNamedConstants.getCPtr(namedConstants));
     if (OgrePINVOKE.SWIGPendingException.Pending)
     {
         throw OgrePINVOKE.SWIGPendingException.Retrieve();
     }
 }
            private void ExportNamedConstants(GpuNamedConstants pConsts, Stream stream, Endian endianMode)
            {
                using (var w = new BinaryWriter(stream))
                {
                }

                throw new NotImplementedException();
            }
Beispiel #9
0
        public GpuNamedConstants getConstantDefinitions()
        {
            GpuNamedConstants ret = new GpuNamedConstants(OgrePINVOKE.GpuSharedParameters_getConstantDefinitions(swigCPtr), false);

            if (OgrePINVOKE.SWIGPendingException.Pending)
            {
                throw OgrePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #10
0
        public override GpuNamedConstants getConstantDefinitions()
        {
            GpuNamedConstants ret = new GpuNamedConstants(OgrePINVOKE.HighLevelGpuProgram_getConstantDefinitions(swigCPtr), false);

            if (OgrePINVOKE.SWIGPendingException.Pending)
            {
                throw OgrePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
            public GpuNamedConstants Clone()
            {
                var p = new GpuNamedConstants();

                p.FloatBufferSize = this.FloatBufferSize;
                p.IntBufferSize   = this.IntBufferSize;
                foreach (var i in this.Map)
                {
                    p.Map.Add(i.Key, i.Value);
                }

                return(p);
            }
			public void ExportNamedConstants( GpuNamedConstants pConsts, string filename )
			{
#warning implement Endian.Native.
				ExportNamedConstants( pConsts, filename, Endian.Little );
			}
 public void SetNamedConstants(GpuNamedConstants constantDefs)
 {
     //throw new NotImplementedException();
 }
		public GpuProgramParameters( GpuProgramParameters other )
			: base()
		{
			// let compiler perform shallow copies of structures 
			// AutoConstantEntry, RealConstantEntry, IntConstantEntry
			this.floatConstants = new FloatConstantList( other.floatConstants ); // vector<float> in ogre => shallow copy
			this.intConstants = new IntConstantList( other.intConstants ); // vector<int> in ogre => shallow copy

			this.autoConstants = new AutoConstantsList(); // vector<AutoConstantEntry> in ogre => deep copy
			foreach ( var ac in other.autoConstants )
			{
				this.autoConstants.Add( ac.Clone() );
			}

			// copy value members
			this.floatLogicalToPhysical = other.floatLogicalToPhysical; // pointer in ogre => no Clone
			this.intLogicalToPhysical = other.intLogicalToPhysical; // pointer in ogre => no Clone
			this._namedConstants = other._namedConstants; // pointer in ogre => no Clone
			CopySharedParamSetUsage( other._sharedParamSets );

			this._combinedVariability = other._combinedVariability;
			TransposeMatrices = other.TransposeMatrices;
			this.ignoreMissingParameters = other.ignoreMissingParameters;
			this.activePassIterationIndex = other.activePassIterationIndex;
		}
			public GpuNamedConstants Clone()
			{
				var p = new GpuNamedConstants();
				p.FloatBufferSize = this.FloatBufferSize;
				p.IntBufferSize = this.IntBufferSize;
				foreach ( var i in this.Map )
				{
					p.Map.Add( i.Key, i.Value );
				}

				return p;
			}
			public void ImportNamedConstants( Stream stream, GpuNamedConstants pDest )
			{
				throw new NotImplementedException();
			}
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(GpuNamedConstants obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
 public void ExportNamedConstants(GpuNamedConstants pConsts, string filename)
 {
     ExportNamedConstants(pConsts, filename, Endian.Native);
 }
			public void ExportNamedConstants( GpuNamedConstants pConsts, string filename )
			{
				ExportNamedConstants( pConsts, filename, Endian.Native );
			}
 public void ImportNamedConstants(Stream stream, GpuNamedConstants pDest)
 {
     throw new NotImplementedException();
 }
			public void ExportNamedConstants( GpuNamedConstants pConsts, string filename, Endian endianMode )
			{
				throw new NotImplementedException();
			}