summaryrefslogtreecommitdiff
path: root/source/modules/asura-core/graphics/image.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/modules/asura-core/graphics/image.h')
-rw-r--r--source/modules/asura-core/graphics/image.h23
1 files changed, 10 insertions, 13 deletions
diff --git a/source/modules/asura-core/graphics/image.h b/source/modules/asura-core/graphics/image.h
index abb8a1a..a1fba9a 100644
--- a/source/modules/asura-core/graphics/image.h
+++ b/source/modules/asura-core/graphics/image.h
@@ -10,11 +10,11 @@
#include "../image/image_data.h"
-#include "texture.h"
#include "color.h"
#include "color32.h"
#include "render_state.h"
#include "gpu_buffer.h"
+#include "texture.h"
namespace AsuraEngine
{
@@ -24,7 +24,9 @@ namespace AsuraEngine
///
/// ImageͼƬڴ󣬶ȡϷ󱣴ĽһImageڴ桢Դֻᱣһ
/// ݣҪimageêλãźתǶȣʹsprite
- /// һֻࡣҪǿǵeditorengineʹòͬķװ
+ /// һֻࡣҪǿǵeditorengineʹòͬķװImageֻṩȾʱҪ
+ /// sampler2Dϸ˵Image޹أӦImageṩFrameworkУ
+ /// Ⱦʵspritespriteṩ˶ݺͷ任
///
class Image ASURA_FINAL
: public AEScripting::Portable<Image, Texture>
@@ -44,11 +46,11 @@ namespace AsuraEngine
uint GetWidth();
uint GetHeight();
-/*
- void Render(const RenderTarget* rt, const RenderState& state) {};
- void Render(const RenderTarget* rt, const AEMath::Rectf& quad, const RenderState& state) {};
-*/
- void UpdateBuffer();
+
+ ///
+ /// һgpu buffer䶥positionݺUV.
+ ///
+ GPUBuffer* GenGPUBuffer();
private:
@@ -57,7 +59,7 @@ namespace AsuraEngine
LUAX_DECL_FACTORY(Image, Texture);
LUAX_DECL_METHOD(_New);
- LUAX_DECL_METHOD(_Update);
+ LUAX_DECL_METHOD(_Load);
LUAX_DECL_METHOD(_GetWidth);
LUAX_DECL_METHOD(_GetHeight);
LUAX_DECL_METHOD(_GetSize);
@@ -68,11 +70,6 @@ namespace AsuraEngine
uint32 mWidth, mHeight;
- ///
- /// 壬positionUV
- ///
- GPUBuffer* mVBO;
-
};
}