summaryrefslogtreecommitdiff
path: root/Source/Asura.Framework/filesystem
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Asura.Framework/filesystem')
-rw-r--r--Source/Asura.Framework/filesystem/animation_loader.lua4
-rw-r--r--Source/Asura.Framework/filesystem/asset.lua7
-rw-r--r--Source/Asura.Framework/filesystem/image_loader.lua13
-rw-r--r--Source/Asura.Framework/filesystem/shader_loader.lua5
4 files changed, 26 insertions, 3 deletions
diff --git a/Source/Asura.Framework/filesystem/animation_loader.lua b/Source/Asura.Framework/filesystem/animation_loader.lua
index 4f989bd..c6808c0 100644
--- a/Source/Asura.Framework/filesystem/animation_loader.lua
+++ b/Source/Asura.Framework/filesystem/animation_loader.lua
@@ -6,7 +6,5 @@ local manager = AsuraEngine.AnimationManager
local Animation = AsuraEngine.Animation
function AnimationLoader.Load(asset)
-
- local animation = AsuraEngine.Class()
-
+ local animation = AsuraEngine.Class()
end \ No newline at end of file
diff --git a/Source/Asura.Framework/filesystem/asset.lua b/Source/Asura.Framework/filesystem/asset.lua
new file mode 100644
index 0000000..09b4be3
--- /dev/null
+++ b/Source/Asura.Framework/filesystem/asset.lua
@@ -0,0 +1,7 @@
+local Asset = AsuraEngine.Class("Asset")
+AsuraEngine.Asset = Asset
+
+--获得资源编号
+function Asset.GetGUID(self)
+
+end
diff --git a/Source/Asura.Framework/filesystem/image_loader.lua b/Source/Asura.Framework/filesystem/image_loader.lua
new file mode 100644
index 0000000..174d837
--- /dev/null
+++ b/Source/Asura.Framework/filesystem/image_loader.lua
@@ -0,0 +1,13 @@
+require "graphics.image"
+local loader = AsuraEngine.Loader.New("image")
+
+function loader.Load(asset)
+ assert(asset ~= nil)
+ local path = asset.extern
+ local image = AusraEngine.Image.New(path)
+ if image == nil then
+ AsuraEngine.LogError("")
+ return
+ end
+ return image
+end \ No newline at end of file
diff --git a/Source/Asura.Framework/filesystem/shader_loader.lua b/Source/Asura.Framework/filesystem/shader_loader.lua
new file mode 100644
index 0000000..d488eb9
--- /dev/null
+++ b/Source/Asura.Framework/filesystem/shader_loader.lua
@@ -0,0 +1,5 @@
+local loader = AsuraEngine.Loader.New("shader")
+
+function loader.Load(asset)
+
+end \ No newline at end of file