Add debug text for frame number. Debugging invalidation of vertex buffer objects
Some checks failed
CMake on multiple platforms / build (Release, cl, cl, windows-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, macos-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, ubuntu-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, gcc, g++, ubuntu-latest) (push) Has been cancelled
Some checks failed
CMake on multiple platforms / build (Release, cl, cl, windows-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, macos-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, ubuntu-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, gcc, g++, ubuntu-latest) (push) Has been cancelled
This commit is contained in:
@@ -47,6 +47,7 @@ using namespace kraken;
|
|||||||
#include <array>
|
#include <array>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <format>
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|||||||
@@ -485,7 +485,8 @@ void KRCamera::renderPost(RenderInfo& ri)
|
|||||||
|
|
||||||
void KRCamera::renderDebug(RenderInfo& ri)
|
void KRCamera::renderDebug(RenderInfo& ri)
|
||||||
{
|
{
|
||||||
settings.m_debug_text = "Font Test"; // FNIDME!! KIPG!! HACK!! Debug text debugging...
|
|
||||||
|
settings.m_debug_text = std::format("Frame Number {}", (getContext().getCurrentFrame()); // FNIDME!! KIPG!! HACK!! Debug text debugging...
|
||||||
|
|
||||||
const char* szText = settings.m_debug_text.c_str();
|
const char* szText = settings.m_debug_text.c_str();
|
||||||
if (*szText == '\0') {
|
if (*szText == '\0') {
|
||||||
|
|||||||
Reference in New Issue
Block a user