2015-05-24 04:55:12 +00:00
|
|
|
// Copyright 2008 Dolphin Emulator Project
|
2015-05-17 23:08:10 +00:00
|
|
|
// Licensed under GPLv2+
|
2013-04-18 03:29:41 +00:00
|
|
|
// Refer to the license.txt file included.
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2014-02-10 18:54:46 +00:00
|
|
|
#pragma once
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2014-03-12 19:33:41 +00:00
|
|
|
#include <string>
|
|
|
|
|
2014-10-21 06:01:38 +00:00
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
|
2014-02-10 18:54:46 +00:00
|
|
|
namespace OGL
|
|
|
|
{
|
2013-04-15 20:28:55 +00:00
|
|
|
|
2014-02-10 18:54:46 +00:00
|
|
|
class RasterFont
|
|
|
|
{
|
2008-12-08 04:46:09 +00:00
|
|
|
public:
|
2013-04-15 20:28:55 +00:00
|
|
|
RasterFont();
|
2014-08-15 18:09:53 +00:00
|
|
|
~RasterFont();
|
2013-04-15 20:28:55 +00:00
|
|
|
static int debug;
|
2012-12-11 11:37:08 +00:00
|
|
|
|
2014-03-12 19:33:41 +00:00
|
|
|
void printMultilineText(const std::string& text, double x, double y, double z, int bbWidth, int bbHeight, u32 color);
|
2009-07-19 09:15:00 +00:00
|
|
|
private:
|
2013-10-29 05:23:17 +00:00
|
|
|
|
2012-12-11 11:37:08 +00:00
|
|
|
u32 VBO;
|
|
|
|
u32 VAO;
|
|
|
|
u32 texture;
|
2012-12-11 21:08:53 +00:00
|
|
|
u32 uniform_color_id;
|
2014-12-20 12:31:41 +00:00
|
|
|
u32 uniform_offset_id;
|
2008-12-08 04:46:09 +00:00
|
|
|
};
|
|
|
|
|
2012-12-27 23:52:44 +00:00
|
|
|
}
|