This repository has been archived on 2024-06-13. You can view files and clone it, but cannot push or open issues or pull requests.
2020-08-04 13:13:01 -04:00

23 lines
598 B
C++

#pragma once
#include "c_minecraft.h"
class c_gltext : public singleton<c_gltext> {
public:
bool m_fontbuilt = false;
HDC m_fonthdc = nullptr;
void build_fonts();
void print(float x, float y, const unsigned char color[3],
const char *format, ...);
// centered on X and Y axis'
vec3_t centered_text(float x, float y, float width, float height,
float textWidth, float textHeight);
// centrally aligned on the x axis
float aligned_text(float x, float width, float textWidth);
private:
unsigned int m_cheatfont;
};