Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
93643b3775 | |||
cbd121da61 | |||
6d0f7065f6 |
@ -3,3 +3,4 @@ BreakBeforeBraces: Attach
|
||||
CompactNamespaces: true
|
||||
FixNamespaceComments: true
|
||||
NamespaceIndentation: None
|
||||
SortIncludes: Never
|
||||
|
@ -1,6 +1,10 @@
|
||||
cmake_minimum_required(VERSION 3.0)
|
||||
|
||||
project(glez LANGUAGES C CXX VERSION 1.0.0)
|
||||
project(glez LANGUAGES CXX VERSION 2.0.0)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS true)
|
||||
|
||||
find_package(SDL2 REQUIRED)
|
||||
find_package(GLEW REQUIRED)
|
||||
|
@ -34,6 +34,11 @@ constexpr rgba black(0, 0, 0);
|
||||
constexpr rgba red(255, 0, 0);
|
||||
constexpr rgba green(0, 255, 0);
|
||||
constexpr rgba blue(0, 0, 255);
|
||||
constexpr rgba yellow(255, 255, 0);
|
||||
constexpr rgba orange(255, 120, 0);
|
||||
constexpr rgba pink(255, 105, 180);
|
||||
|
||||
rgba RainbowCurrent();
|
||||
|
||||
} // namespace color
|
||||
} // namespace glez
|
||||
|
@ -5,10 +5,11 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "color.hpp"
|
||||
#include "font.hpp"
|
||||
#include "texture.hpp"
|
||||
#include <string>
|
||||
|
||||
namespace glez::draw {
|
||||
|
||||
|
@ -5,10 +5,11 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <freetype-gl.h>
|
||||
#include <limits>
|
||||
#include <string>
|
||||
|
||||
#include <freetype-gl.h>
|
||||
|
||||
namespace glez {
|
||||
|
||||
class font {
|
||||
|
@ -6,10 +6,11 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstddef>
|
||||
#include <freetype-gl.h>
|
||||
#include <limits>
|
||||
#include <string>
|
||||
|
||||
#include <freetype-gl.h>
|
||||
|
||||
namespace glez {
|
||||
|
||||
class texture {
|
||||
|
@ -6,11 +6,13 @@
|
||||
#include <cassert>
|
||||
#include <cmath>
|
||||
#include <cstring>
|
||||
|
||||
#include <vertex-buffer.h>
|
||||
|
||||
#include <glez/draw.hpp>
|
||||
#include <glez/font.hpp>
|
||||
#include <glez/glez.hpp>
|
||||
#include <glez/texture.hpp>
|
||||
#include <vertex-buffer.h>
|
||||
|
||||
namespace indices {
|
||||
|
||||
|
@ -4,10 +4,11 @@
|
||||
*/
|
||||
|
||||
#include <cassert>
|
||||
#include <glez/font.hpp>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
#include <glez/font.hpp>
|
||||
|
||||
namespace glez {
|
||||
|
||||
font font::loadFromFile(const std::string& path, float size) {
|
||||
|
10
src/glez.cpp
10
src/glez.cpp
@ -6,14 +6,16 @@
|
||||
#include <cassert>
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
#include <stdexcept>
|
||||
|
||||
#include <freetype-gl.h>
|
||||
#include <glez/font.hpp>
|
||||
#include <glez/glez.hpp>
|
||||
#include <vertex-buffer.h>
|
||||
#include <glm/glm.hpp>
|
||||
#include <glm/gtc/matrix_transform.hpp>
|
||||
#include <glm/gtc/type_ptr.hpp>
|
||||
#include <stdexcept>
|
||||
#include <vertex-buffer.h>
|
||||
|
||||
#include <glez/font.hpp>
|
||||
#include <glez/glez.hpp>
|
||||
|
||||
static const char* shader_vertex = R"END(
|
||||
#version 130
|
||||
|
@ -3,15 +3,16 @@
|
||||
Copyright (c) 2018 nullworks. All rights reserved.
|
||||
*/
|
||||
|
||||
#include "picopng/picopng.hpp"
|
||||
#include <cassert>
|
||||
#include <cstring>
|
||||
#include <glez/glez.hpp>
|
||||
#include <glez/texture.hpp>
|
||||
#include <fstream>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
#include <fstream> // required to load the file
|
||||
#include "picopng/picopng.hpp"
|
||||
|
||||
#include <glez/glez.hpp>
|
||||
#include <glez/texture.hpp>
|
||||
|
||||
namespace glez {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user