1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 11:52:12 +01:00

[hud] Rename renderText -> render

This commit is contained in:
Philip Rebohle 2018-04-17 09:21:40 +02:00
parent e38e1347d3
commit 8bfaae9350
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
8 changed files with 12 additions and 12 deletions

View File

@ -36,7 +36,7 @@ namespace dxvk::hud {
this->beginRenderPass(recreateFbo);
this->updateUniformBuffer();
this->renderText();
this->render();
this->endRenderPass();
}
@ -64,22 +64,22 @@ namespace dxvk::hud {
}
void Hud::renderText() {
void Hud::render() {
m_renderer.beginFrame(m_context);
HudPos position = { 8.0f, 24.0f };
if (m_config.elements.test(HudElement::DeviceInfo)) {
position = m_hudDeviceInfo.renderText(
position = m_hudDeviceInfo.render(
m_context, m_renderer, position);
}
if (m_config.elements.test(HudElement::Framerate)) {
position = m_hudFps.renderText(
position = m_hudFps.render(
m_context, m_renderer, position);
}
position = m_hudStats.renderText(
position = m_hudStats.render(
m_context, m_renderer, position);
}

View File

@ -86,7 +86,7 @@ namespace dxvk::hud {
HudFps m_hudFps;
HudStats m_hudStats;
void renderText();
void render();
Rc<DxvkBuffer> createUniformBuffer();

View File

@ -21,7 +21,7 @@ namespace dxvk::hud {
}
HudPos HudDeviceInfo::renderText(
HudPos HudDeviceInfo::render(
const Rc<DxvkContext>& context,
HudRenderer& renderer,
HudPos position) {

View File

@ -17,7 +17,7 @@ namespace dxvk::hud {
HudDeviceInfo(const Rc<DxvkDevice>& device);
~HudDeviceInfo();
HudPos renderText(
HudPos render(
const Rc<DxvkContext>& context,
HudRenderer& renderer,
HudPos position);

View File

@ -32,7 +32,7 @@ namespace dxvk::hud {
}
HudPos HudFps::renderText(
HudPos HudFps::render(
const Rc<DxvkContext>& context,
HudRenderer& renderer,
HudPos position) {

View File

@ -24,7 +24,7 @@ namespace dxvk::hud {
void update();
HudPos renderText(
HudPos render(
const Rc<DxvkContext>& context,
HudRenderer& renderer,
HudPos position);

View File

@ -23,7 +23,7 @@ namespace dxvk::hud {
}
HudPos HudStats::renderText(
HudPos HudStats::render(
const Rc<DxvkContext>& context,
HudRenderer& renderer,
HudPos position) {

View File

@ -24,7 +24,7 @@ namespace dxvk::hud {
void update(
const Rc<DxvkDevice>& device);
HudPos renderText(
HudPos render(
const Rc<DxvkContext>& context,
HudRenderer& renderer,
HudPos position);