mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Updating example text
This commit is contained in:
parent
f7b2266f92
commit
0fab50a388
2 changed files with 5 additions and 3 deletions
|
@ -3,7 +3,8 @@ set(TARGET_NAME render-utils-tests)
|
|||
setup_hifi_project(Quick)
|
||||
|
||||
include_glm()
|
||||
include_oglplus()
|
||||
|
||||
#include_oglplus()
|
||||
|
||||
# link in the shared libraries
|
||||
link_hifi_libraries(render-utils gpu shared)
|
||||
|
|
|
@ -139,7 +139,7 @@ void QTestWindow::makeCurrent() {
|
|||
m_context->makeCurrent(this);
|
||||
}
|
||||
|
||||
static const char * EXAMPLE_TEXT = "Hello 1.0\nline 2";
|
||||
static const wchar_t * EXAMPLE_TEXT = L"Hello 1.0\nline 2\ndescent ggg\nascent ÁÁÁ";
|
||||
static const glm::uvec2 QUAD_OFFSET(10, 20);
|
||||
static const glm::vec3 COLORS[4] = {
|
||||
{ 1, 1, 1 },
|
||||
|
@ -181,8 +181,9 @@ void QTestWindow::draw() {
|
|||
glVertex2f(size.x, _size.height());
|
||||
glEnd();
|
||||
}
|
||||
QString str = QString::fromWCharArray(EXAMPLE_TEXT);
|
||||
for (int i = 0; i < 4; ++i) {
|
||||
_textRenderer[i]->draw(offsets[i].x, offsets[i].y, EXAMPLE_TEXT, glm::vec4(COLORS[i], 1.0f));
|
||||
_textRenderer[i]->draw(offsets[i].x, offsets[i].y, str.toLocal8Bit().constData(), glm::vec4(COLORS[i], 1.0f));
|
||||
}
|
||||
m_context->swapBuffers(this);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue