From 4ea4bbfcb03091cb987dc151d41980ec16f3d18d Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 8 Apr 2019 22:31:12 +0800 Subject: *misc --- source/modules/asura-core/graphics/image.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'source/modules/asura-core/graphics/image.h') diff --git a/source/modules/asura-core/graphics/image.h b/source/modules/asura-core/graphics/image.h index d3cca4b..abb8a1a 100644 --- a/source/modules/asura-core/graphics/image.h +++ b/source/modules/asura-core/graphics/image.h @@ -14,6 +14,7 @@ #include "color.h" #include "color32.h" #include "render_state.h" +#include "gpu_buffer.h" namespace AsuraEngine { @@ -43,9 +44,11 @@ namespace AsuraEngine uint GetWidth(); uint GetHeight(); - - void Render(const RenderTarget* rt, const RenderState& state) override {}; - void Render(const RenderTarget* rt, const AEMath::Rectf& quad, const RenderState& state) override {}; +/* + void Render(const RenderTarget* rt, const RenderState& state) {}; + void Render(const RenderTarget* rt, const AEMath::Rectf& quad, const RenderState& state) {}; +*/ + void UpdateBuffer(); private: @@ -65,6 +68,11 @@ namespace AsuraEngine uint32 mWidth, mHeight; + /// + /// 缓冲,保存了position和UV数据 + /// + GPUBuffer* mVBO; + }; } -- cgit v1.1-26-g67d0