Ejemplo n.º 1
0
 public static SSSkeletalAnimationMD5 ReadAnimation(SSAssetManager.Context ctx, string filename)
 {
     var parser = new SSMD5AnimParser(ctx, filename);
     var anim = parser.readAnimation ();
     anim.name = filename;
     return anim;
 }
Ejemplo n.º 2
0
 public static void RegisterTypes()
 {
     // Register SS types for loading by SSAssetManager
     SSAssetManager.RegisterLoadDelegate <SSTexture>(
         (ctx, filename) => { return(new SSTexture(ctx, filename)); }
         );
     SSAssetManager.RegisterLoadDelegate <SSTextureWithAlpha>(
         (ctx, filename) => { return(new SSTextureWithAlpha(ctx, filename)); }
         );
     SSAssetManager.RegisterLoadDelegate <SSMesh_wfOBJ>(
         (ctx, filename) => { return(new SSMesh_wfOBJ(ctx, filename)); }
         );
     SSAssetManager.RegisterLoadDelegate <SSVertexShader>(
         (ctx, filename) => { return(new SSVertexShader(ctx, filename)); }
         );
     SSAssetManager.RegisterLoadDelegate <SSFragmentShader>(
         (ctx, filename) => { return(new SSFragmentShader(ctx, filename)); }
         );
     SSAssetManager.RegisterLoadDelegate <SSGeometryShader>(
         (ctx, filename) => { return(new SSGeometryShader(ctx, filename)); }
         );
     SSAssetManager.RegisterLoadDelegate <SSSkeletalMeshMD5[]> (
         (ctx, filename) => { return(SSMD5MeshParser.ReadMeshes(ctx, filename)); }
         );
     SSAssetManager.RegisterLoadDelegate <SSSkeletalAnimationMD5> (
         (ctx, filename) => { return(SSMD5AnimParser.ReadAnimation(ctx, filename)); }
         );
 }
Ejemplo n.º 3
0
        public static SSSkeletalAnimationMD5 ReadAnimation(SSAssetManager.Context ctx, string filename)
        {
            var parser = new SSMD5AnimParser(ctx, filename);
            var anim   = parser.readAnimation();

            anim.name = filename;
            return(anim);
        }
Ejemplo n.º 4
0
 public static void RegisterTypes()
 {
     // Register SS types for loading by SSAssetManager
     SSAssetManager.RegisterLoadDelegate <SSTexture>(
         (path) => { return(new SSTexture(path)); }
         );
     SSAssetManager.RegisterLoadDelegate <SSTextureWithAlpha>(
         (path) => { return(new SSTextureWithAlpha(path)); }
         );
     SSAssetManager.RegisterLoadDelegate <SSMesh_wfOBJ>(
         (path) => { return(new SSMesh_wfOBJ(path)); }
         );
     SSAssetManager.RegisterLoadDelegate <SSVertexShader>(
         (path) => { return(new SSVertexShader(path)); }
         );
     SSAssetManager.RegisterLoadDelegate <SSFragmentShader>(
         (path) => { return(new SSFragmentShader(path)); }
         );
     SSAssetManager.RegisterLoadDelegate <SSGeometryShader>(
         (path) => { return(new SSGeometryShader(path)); }
         );
     SSAssetManager.RegisterLoadDelegate <SSSkeletalMeshMD5[]> (
         (path) => { return(SSMD5MeshParser.ReadMeshes(path)); }
         );
     SSAssetManager.RegisterLoadDelegate <SSSkeletalAnimationMD5> (
         (path) => { return(SSMD5AnimParser.ReadAnimation(path)); }
         );
     SSAssetManager.RegisterLoadDelegate <MatterHackers.Agg.Font.TypeFace>(
         (path) => { return(SSFontLoader.loadTypeFace(path)); }
         );
     #if false
     SSAssetManager.RegisterLoadDelegate <FontFamily[]>(
         (ctx, path) => { return(SSFontLoader.loadFontFamilies(path)); }
         );
     #endif
 }