CSharpGL.IModelSpaceHelper.LegacyTransform C# (CSharp) Method

LegacyTransform() public static method

Run legacy model transform.(from model space to world space)
public static LegacyTransform ( this model ) : void
model this
return void
        public static void LegacyTransform(this IModelSpace model)
        {
            OpenGL.Translate(model.WorldPosition.x, model.WorldPosition.y, model.WorldPosition.z);
            OpenGL.Scale(model.Scale.x, model.Scale.y, model.Scale.z);
            OpenGL.Rotate(model.RotationAngleDegree, model.RotationAxis.x, model.RotationAxis.y, model.RotationAxis.z);
        }