Nebula
Loading...
Searching...
No Matches
tbuirenderer.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
9//------------------------------------------------------------------------------
10
11#include "math/rectangle.h"
12#include "renderers/tb_renderer_batcher.h"
13#include "tbuibatch.h"
14#include "tbui/tbuiview.h"
15
16namespace TBUI
17{
18class TBUIRenderer : public tb::TBRendererBatcher
19{
20public:
22 tb::TBBitmap* CreateBitmap(int width, int height, uint32* data) override;
24 void RenderBatch(Batch* batch) override;
26 void SetClipRect(const tb::TBRect& rect) override;
27
32
34 Util::Array<TBUIBatch> RenderView(TBUIView* view, int32_t width, int32_t height);
35
36private:
39
41};
42} // namespace TBUI
Definition tbuirenderer.h:19
void RenderBatch(Batch *batch) override
Definition tbuirenderer.cc:33
CoreGraphics::CmdBufferId cmdBufferId
Definition tbuirenderer.h:40
Util::Array< TBUIBatch > RenderView(TBUIView *view, int32_t width, int32_t height)
Definition tbuirenderer.cc:92
Util::Array< TBUIBatch > batches
Definition tbuirenderer.h:38
tb::TBBitmap * CreateBitmap(int width, int height, uint32 *data) override
Definition tbuirenderer.cc:17
void SetClipRect(const tb::TBRect &rect) override
Definition tbuirenderer.cc:65
void SetCmdBufferId(const CoreGraphics::CmdBufferId &cmdBufferId)
Definition tbuirenderer.cc:74
const CoreGraphics::CmdBufferId & GetCmdBufferId() const
Definition tbuirenderer.cc:83
Math::intRectangle clipRect
Definition tbuirenderer.h:37
Definition tbuiview.h:14
Nebula's dynamic array class.
Definition array.h:60
rectangle< int > intRectangle
Definition rectangle.h:46
Turbobadger UI Batch.
Definition tbuibatch.h:18
Definition commandbuffer.h:167
uint32_t uint32
Definition types.h:38