37 lines
568 B
C++
37 lines
568 B
C++
/*
|
|
Created by Jenny White on 30.04.18.
|
|
Copyright (c) 2018 nullworks. All rights reserved.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <freetype-gl.h>
|
|
#include <glez/color.hpp>
|
|
#include <vertex-buffer.h>
|
|
|
|
namespace glez {
|
|
|
|
void init(int width, int height);
|
|
void shutdown();
|
|
void resize(int width, int height);
|
|
void begin();
|
|
void end();
|
|
|
|
enum class mode {
|
|
PLAIN = 1,
|
|
TEXTURED,
|
|
FREETYPE
|
|
};
|
|
|
|
extern ftgl::vertex_buffer_t* buffer;
|
|
struct vertex {
|
|
ftgl::vec2 position;
|
|
ftgl::vec2 uv;
|
|
rgba color;
|
|
int mode;
|
|
};
|
|
|
|
void bind(GLuint texture);
|
|
|
|
}; // namespace glez
|