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