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:
parent
e38e1347d3
commit
8bfaae9350
@ -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);
|
||||
}
|
||||
|
||||
|
@ -86,7 +86,7 @@ namespace dxvk::hud {
|
||||
HudFps m_hudFps;
|
||||
HudStats m_hudStats;
|
||||
|
||||
void renderText();
|
||||
void render();
|
||||
|
||||
Rc<DxvkBuffer> createUniformBuffer();
|
||||
|
||||
|
@ -21,7 +21,7 @@ namespace dxvk::hud {
|
||||
}
|
||||
|
||||
|
||||
HudPos HudDeviceInfo::renderText(
|
||||
HudPos HudDeviceInfo::render(
|
||||
const Rc<DxvkContext>& context,
|
||||
HudRenderer& renderer,
|
||||
HudPos position) {
|
||||
|
@ -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);
|
||||
|
@ -32,7 +32,7 @@ namespace dxvk::hud {
|
||||
}
|
||||
|
||||
|
||||
HudPos HudFps::renderText(
|
||||
HudPos HudFps::render(
|
||||
const Rc<DxvkContext>& context,
|
||||
HudRenderer& renderer,
|
||||
HudPos position) {
|
||||
|
@ -24,7 +24,7 @@ namespace dxvk::hud {
|
||||
|
||||
void update();
|
||||
|
||||
HudPos renderText(
|
||||
HudPos render(
|
||||
const Rc<DxvkContext>& context,
|
||||
HudRenderer& renderer,
|
||||
HudPos position);
|
||||
|
@ -23,7 +23,7 @@ namespace dxvk::hud {
|
||||
}
|
||||
|
||||
|
||||
HudPos HudStats::renderText(
|
||||
HudPos HudStats::render(
|
||||
const Rc<DxvkContext>& context,
|
||||
HudRenderer& renderer,
|
||||
HudPos position) {
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user