summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/RasterFont.h
blob: 359e4f8551e3c2f175f18dd4572b9d66c4ea6a6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright 2008 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.

#pragma once

#include <string>

#include "Common/CommonTypes.h"

namespace OGL
{
class RasterFont
{
public:
  RasterFont();
  ~RasterFont();
  static int debug;

  void printMultilineText(const std::string& text, double x, double y, double z, int bbWidth,
                          int bbHeight, u32 color);

private:
  u32 VBO;
  u32 VAO;
  u32 texture;
  u32 uniform_color_id;
  u32 uniform_offset_id;
};
}