Пример #1
0
            internal static unsafe void Invoke(IntPtr obj, MaterialInterface NewLandscapeMaterial)
            {
                long *p = stackalloc long[] { 0L, 0L };
                byte *b = (byte *)p;

                *((IntPtr *)(b + 0)) = NewLandscapeMaterial;
                Main.GetProcessEvent(obj, EditorSetLandscapeMaterial_ptr, new IntPtr(p));;
            }
        }
Пример #2
0
            internal static unsafe void Invoke(IntPtr obj, MaterialInterface EffectMaterial)
            {
                long *p = stackalloc long[] { 0L, 0L };
                byte *b = (byte *)p;

                *((IntPtr *)(b + 0)) = EffectMaterial;
                Main.GetProcessEvent(obj, SetEffectMaterial_ptr, new IntPtr(p));;
            }
        }
Пример #3
0
            internal static unsafe void Invoke(SlateBrush Brush, MaterialInterface Material)
            {
                long *p = stackalloc long[] { 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L };
                byte *b = (byte *)p;

                *((SlateBrush *)(b + 0)) = Brush;
                *((IntPtr *)(b + 160))   = Material;
                Main.GetProcessEvent(WidgetBlueprintLibrary.DefaultObject, SetBrushResourceToMaterial_ptr, new IntPtr(p));;
            }
        }
Пример #4
0
            internal static unsafe void Invoke(IntPtr obj, int MaterialIndex, MaterialInterface NewMaterial)
            {
                long *p = stackalloc long[] { 0L, 0L, 0L };
                byte *b = (byte *)p;

                *((int *)(b + 0))    = MaterialIndex;
                *((IntPtr *)(b + 8)) = NewMaterial;
                Main.GetProcessEvent(obj, SetMaterial_ptr, new IntPtr(p));;
            }
        }
Пример #5
0
            internal static unsafe void Invoke(IntPtr obj, MaterialInterface Source, bool bQuickParametersOnly)
            {
                long *p = stackalloc long[] { 0L, 0L, 0L };
                byte *b = (byte *)p;

                *((IntPtr *)(b + 0)) = Source;
                *((bool *)(b + 8))   = bQuickParametersOnly;
                Main.GetProcessEvent(obj, K2_CopyMaterialInstanceParameters_ptr, new IntPtr(p));;
            }
        }
Пример #6
0
            internal static unsafe void Invoke(MaterialInstanceConstant Instance, MaterialInterface NewParent)
            {
                long *p = stackalloc long[] { 0L, 0L, 0L };
                byte *b = (byte *)p;

                *((IntPtr *)(b + 0)) = Instance;
                *((IntPtr *)(b + 8)) = NewParent;
                Main.GetProcessEvent(MaterialEditingLibrary.DefaultObject, SetMaterialInstanceParent_ptr, new IntPtr(p));;
            }
        }
Пример #7
0
            internal static unsafe void Invoke(IntPtr obj, Name ParameterName, MaterialInterface Param)
            {
                long *p = stackalloc long[] { 0L, 0L, 0L, 0L };
                byte *b = (byte *)p;

                *((Name *)(b + 0))    = ParameterName;
                *((IntPtr *)(b + 16)) = Param;
                Main.GetProcessEvent(obj, SetMaterialParameter_ptr, new IntPtr(p));;
            }
        }
Пример #8
0
            internal static unsafe void Invoke(IntPtr obj, MaterialInterface RenderMaterial, byte Triangles /*TODO: array TArray */)
            {
                long *p = stackalloc long[] { 0L, 0L, 0L, 0L };
                byte *b = (byte *)p;

                *((IntPtr *)(b + 0)) = RenderMaterial;
                throw new NotImplementedException(); //TODO: array TArray Triangles
                Main.GetProcessEvent(obj, K2_DrawMaterialTriangle_ptr, new IntPtr(p));;
                //TODO: array TArray Triangles
            }
        }
Пример #9
0
            internal static unsafe MaterialInstanceDynamic Invoke(IntPtr obj, Name InName, MaterialInterface SourceMaterial)
            {
                long *p = stackalloc long[] { 0L, 0L, 0L, 0L, 0L };
                byte *b = (byte *)p;

                *((Name *)(b + 0))    = InName;
                *((IntPtr *)(b + 16)) = SourceMaterial;
                Main.GetProcessEvent(obj, CreateNamedDynamicMaterialInstance_ptr, new IntPtr(p));;
                return(*((IntPtr *)(b + 24)));
            }
        }
Пример #10
0
            internal static unsafe void Invoke(UObject WorldContextObject, TextureRenderTarget2D TextureRenderTarget, MaterialInterface Material)
            {
                long *p = stackalloc long[] { 0L, 0L, 0L, 0L };
                byte *b = (byte *)p;

                *((IntPtr *)(b + 0))  = WorldContextObject;
                *((IntPtr *)(b + 8))  = TextureRenderTarget;
                *((IntPtr *)(b + 16)) = Material;
                Main.GetProcessEvent(KismetRenderingLibrary.DefaultObject, DrawMaterialToRenderTarget_ptr, new IntPtr(p));;
            }
        }
Пример #11
0
            internal static unsafe SlateBrush Invoke(MaterialInterface Material, int Width, int Height)
            {
                long *p = stackalloc long[] { 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L };
                byte *b = (byte *)p;

                *((IntPtr *)(b + 0)) = Material;
                *((int *)(b + 8))    = Width;
                *((int *)(b + 12))   = Height;
                Main.GetProcessEvent(WidgetBlueprintLibrary.DefaultObject, MakeBrushFromMaterial_ptr, new IntPtr(p));;
                return(*((SlateBrush *)(b + 16)));
            }
        }
Пример #12
0
            internal static unsafe MaterialInstanceDynamic Invoke(UObject WorldContextObject, MaterialInterface Parent, Name OptionalName)
            {
                long *p = stackalloc long[] { 0L, 0L, 0L, 0L, 0L, 0L };
                byte *b = (byte *)p;

                *((IntPtr *)(b + 0)) = WorldContextObject;
                *((IntPtr *)(b + 8)) = Parent;
                *((Name *)(b + 16))  = OptionalName;
                Main.GetProcessEvent(KismetMaterialLibrary.DefaultObject, CreateDynamicMaterialInstance_ptr, new IntPtr(p));;
                return(*((IntPtr *)(b + 32)));
            }
        }
Пример #13
0
            internal static unsafe void Invoke(IntPtr obj, MaterialInterface Material, CurveFloat DistanceToOpacityCurve, bool bSizeIsInScreenSpace, float BaseSizeX, float BaseSizeY, CurveFloat DistanceToSizeCurve)
            {
                long *p = stackalloc long[] { 0L, 0L, 0L, 0L, 0L, 0L };
                byte *b = (byte *)p;

                *((IntPtr *)(b + 0))  = Material;
                *((IntPtr *)(b + 8))  = DistanceToOpacityCurve;
                *((bool *)(b + 16))   = bSizeIsInScreenSpace;
                *((float *)(b + 20))  = BaseSizeX;
                *((float *)(b + 24))  = BaseSizeY;
                *((IntPtr *)(b + 32)) = DistanceToSizeCurve;
                Main.GetProcessEvent(obj, AddElement_ptr, new IntPtr(p));;
            }
        }
Пример #14
0
            internal static unsafe void Invoke(IntPtr obj, MaterialInterface Material, float ScreenX, float ScreenY, float ScreenW, float ScreenH, float Scale, bool bScalePosition)
            {
                long *p = stackalloc long[] { 0L, 0L, 0L, 0L, 0L };
                byte *b = (byte *)p;

                *((IntPtr *)(b + 0)) = Material;
                *((float *)(b + 8))  = ScreenX;
                *((float *)(b + 12)) = ScreenY;
                *((float *)(b + 16)) = ScreenW;
                *((float *)(b + 20)) = ScreenH;
                *((float *)(b + 24)) = Scale;
                *((bool *)(b + 28))  = bScalePosition;
                Main.GetProcessEvent(obj, DrawMaterialSimple_ptr, new IntPtr(p));;
            }
        }
Пример #15
0
            internal static unsafe void Invoke(IntPtr obj, MaterialInterface RenderMaterial, Vector2D ScreenPosition, Vector2D ScreenSize, Vector2D CoordinatePosition, Vector2D CoordinateSize, float Rotation, Vector2D PivotPoint)
            {
                long *p = stackalloc long[] { 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L };
                byte *b = (byte *)p;

                *((IntPtr *)(b + 0))    = RenderMaterial;
                *((Vector2D *)(b + 8))  = ScreenPosition;
                *((Vector2D *)(b + 16)) = ScreenSize;
                *((Vector2D *)(b + 24)) = CoordinatePosition;
                *((Vector2D *)(b + 32)) = CoordinateSize;
                *((float *)(b + 40))    = Rotation;
                *((Vector2D *)(b + 44)) = PivotPoint;
                Main.GetProcessEvent(obj, K2_DrawMaterial_ptr, new IntPtr(p));;
            }
        }
            internal static unsafe ProceduralMeshComponent Invoke(ProceduralMeshComponent InProcMesh, Vector PlanePosition, Vector PlaneNormal, bool bCreateOtherHalf, EProcMeshSliceCapOption CapOption, MaterialInterface CapMaterial)
            {
                long *p = stackalloc long[] { 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L };
                byte *b = (byte *)p;

                *((IntPtr *)(b + 0))  = InProcMesh;
                *((Vector *)(b + 8))  = PlanePosition;
                *((Vector *)(b + 20)) = PlaneNormal;
                *((bool *)(b + 32))   = bCreateOtherHalf;
                *(b + 48)             = (byte)CapOption;
                *((IntPtr *)(b + 56)) = CapMaterial;
                Main.GetProcessEvent(KismetProceduralMeshLibrary.DefaultObject, SliceProceduralMesh_ptr, new IntPtr(p));;
                return(*((IntPtr *)(b + 40)));
            }
        }
Пример #17
0
            internal static unsafe void Invoke(IntPtr obj, MaterialInterface Material, Vector2D V0_Pos, Vector2D V1_Pos, Vector2D V2_Pos, Vector2D V0_UV, Vector2D V1_UV, Vector2D V2_UV, LinearColor V0_Color, LinearColor V1_Color, LinearColor V2_Color)
            {
                long *p = stackalloc long[] { 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L };
                byte *b = (byte *)p;

                *((IntPtr *)(b + 0))       = Material;
                *((Vector2D *)(b + 8))     = V0_Pos;
                *((Vector2D *)(b + 16))    = V1_Pos;
                *((Vector2D *)(b + 24))    = V2_Pos;
                *((Vector2D *)(b + 32))    = V0_UV;
                *((Vector2D *)(b + 40))    = V1_UV;
                *((Vector2D *)(b + 48))    = V2_UV;
                *((LinearColor *)(b + 56)) = V0_Color;
                *((LinearColor *)(b + 72)) = V1_Color;
                *((LinearColor *)(b + 88)) = V2_Color;
                Main.GetProcessEvent(obj, DrawMaterialTriangle_ptr, new IntPtr(p));;
            }
        }
Пример #18
0
            internal static unsafe void Invoke(IntPtr obj, MaterialInterface Material, float ScreenX, float ScreenY, float ScreenW, float ScreenH, float MaterialU, float MaterialV, float MaterialUWidth, float MaterialVHeight, float Scale, bool bScalePosition, float Rotation, Vector2D RotPivot)
            {
                long *p = stackalloc long[] { 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L };
                byte *b = (byte *)p;

                *((IntPtr *)(b + 0))    = Material;
                *((float *)(b + 8))     = ScreenX;
                *((float *)(b + 12))    = ScreenY;
                *((float *)(b + 16))    = ScreenW;
                *((float *)(b + 20))    = ScreenH;
                *((float *)(b + 24))    = MaterialU;
                *((float *)(b + 28))    = MaterialV;
                *((float *)(b + 32))    = MaterialUWidth;
                *((float *)(b + 36))    = MaterialVHeight;
                *((float *)(b + 40))    = Scale;
                *((bool *)(b + 44))     = bScalePosition;
                *((float *)(b + 48))    = Rotation;
                *((Vector2D *)(b + 52)) = RotPivot;
                Main.GetProcessEvent(obj, DrawMaterial_ptr, new IntPtr(p));;
            }
        }
Пример #19
0
 ///<summary>Slice the ProceduralMeshComponent (including simple convex collision) using a plane.</summary>
 ///<remarks>
 ///Optionally create 'cap' geometry.
 ///@param  InProcMesh                              ProceduralMeshComponent to slice
 ///@param  PlanePosition                   Point on the plane to use for slicing, in world space
 ///@param  PlaneNormal                             Normal of plane used for slicing. Geometry on the positive side of the plane will be kept.
 ///@param  bCreateOtherHalf                If true, an additional ProceduralMeshComponent (OutOtherHalfProcMesh) will be created using the other half of the sliced geometry
 ///@param  OutOtherHalfProcMesh    If bCreateOtherHalf is set, this is the new component created. Its owner will be the same as the supplied InProcMesh.
 ///@param  CapOption                               If and how to create 'cap' geometry on the slicing plane
 ///@param  CapMaterial                             If creating a new section for the cap, assign this material to that section
 ///</remarks>
 public static ProceduralMeshComponent SliceProceduralMesh(ProceduralMeshComponent InProcMesh, Vector PlanePosition, Vector PlaneNormal, bool bCreateOtherHalf, EProcMeshSliceCapOption CapOption, MaterialInterface CapMaterial) =>
 KismetProceduralMeshLibrary_methods.SliceProceduralMesh_method.Invoke(InProcMesh, PlanePosition, PlaneNormal, bCreateOtherHalf, CapOption, CapMaterial);
Пример #20
0
 ///<summary>Setter for LandscapeMaterial. Has no effect outside the editor.</summary>
 public void EditorSetLandscapeMaterial(MaterialInterface NewLandscapeMaterial) =>
 LandscapeProxy_methods.EditorSetLandscapeMaterial_method.Invoke(ObjPointer, NewLandscapeMaterial);
Пример #21
0
 ///<summary>Set Brush from Material</summary>
 public void SetBrushFromMaterial(MaterialInterface Material) =>
 Border_methods.SetBrushFromMaterial_method.Invoke(ObjPointer, Material);
Пример #22
0
 ///<summary>Set the parent Material or Material Instance to use for this Material Instance</summary>
 public static void SetMaterialInstanceParent(MaterialInstanceConstant Instance, MaterialInterface NewParent) =>
 MaterialEditingLibrary_methods.SetMaterialInstanceParent_method.Invoke(Instance, NewParent);
Пример #23
0
 ///<summary>Set a new effect material to the retainer widget.</summary>
 public void SetEffectMaterial(MaterialInterface EffectMaterial) =>
 RetainerBox_methods.SetEffectMaterial_method.Invoke(ObjPointer, EffectMaterial);