Nebula
Toggle main menu visibility
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
16
namespace
TBUI
17
{
18
class
TBUIRenderer
:
public
tb::TBRendererBatcher
19
{
20
public
:
22
tb::TBBitmap*
CreateBitmap
(
int
width,
int
height, uint32_t* data)
override
;
24
void
RenderBatch
(Batch* batch)
override
;
26
void
SetClipRect
(
const
tb::TBRect& rect)
override
;
27
29
void
SetCmdBufferId
(
const
CoreGraphics::CmdBufferId
&
cmdBufferId
);
31
const
CoreGraphics::CmdBufferId
&
GetCmdBufferId
()
const
;
32
34
Util::Array<TBUIBatch>
RenderView
(
TBUIView
* view, int32_t width, int32_t height);
35
36
private
:
37
Math::intRectangle
clipRect
;
38
Util::Array<TBUIBatch>
batches
;
39
40
CoreGraphics::CmdBufferId
cmdBufferId
;
41
};
42
}
// namespace TBUI
TBUI::TBUIRenderer
Definition
tbuirenderer.h:19
TBUI::TBUIRenderer::RenderBatch
void RenderBatch(Batch *batch) override
Definition
tbuirenderer.cc:33
TBUI::TBUIRenderer::cmdBufferId
CoreGraphics::CmdBufferId cmdBufferId
Definition
tbuirenderer.h:40
TBUI::TBUIRenderer::RenderView
Util::Array< TBUIBatch > RenderView(TBUIView *view, int32_t width, int32_t height)
Definition
tbuirenderer.cc:92
TBUI::TBUIRenderer::batches
Util::Array< TBUIBatch > batches
Definition
tbuirenderer.h:38
TBUI::TBUIRenderer::SetClipRect
void SetClipRect(const tb::TBRect &rect) override
Definition
tbuirenderer.cc:65
TBUI::TBUIRenderer::CreateBitmap
tb::TBBitmap * CreateBitmap(int width, int height, uint32_t *data) override
Definition
tbuirenderer.cc:17
TBUI::TBUIRenderer::SetCmdBufferId
void SetCmdBufferId(const CoreGraphics::CmdBufferId &cmdBufferId)
Definition
tbuirenderer.cc:74
TBUI::TBUIRenderer::GetCmdBufferId
const CoreGraphics::CmdBufferId & GetCmdBufferId() const
Definition
tbuirenderer.cc:83
TBUI::TBUIRenderer::clipRect
Math::intRectangle clipRect
Definition
tbuirenderer.h:37
TBUI::TBUIView
Definition
tbuiview.h:14
Util::Array
Nebula's dynamic array class.
Definition
array.h:61
Math::intRectangle
rectangle< int > intRectangle
Definition
rectangle.h:46
TBUI
Turbobadger UI Batch.
Definition
tbuibatch.h:18
rectangle.h
CoreGraphics::CmdBufferId
Definition
commandbuffer.h:176
tbuibatch.h
tbuiview.h
code
addons
tbui
backend
tbuirenderer.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.