Compare commits

..

3 Commits
v2.0.0 ... main

10 changed files with 33 additions and 14 deletions

View File

@ -3,3 +3,4 @@ BreakBeforeBraces: Attach
CompactNamespaces: true
FixNamespaceComments: true
NamespaceIndentation: None
SortIncludes: Never

View File

@ -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)

View File

@ -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

View File

@ -5,10 +5,11 @@
#pragma once
#include <string>
#include "color.hpp"
#include "font.hpp"
#include "texture.hpp"
#include <string>
namespace glez::draw {

View File

@ -5,10 +5,11 @@
#pragma once
#include <freetype-gl.h>
#include <limits>
#include <string>
#include <freetype-gl.h>
namespace glez {
class font {

View File

@ -6,10 +6,11 @@
#pragma once
#include <cstddef>
#include <freetype-gl.h>
#include <limits>
#include <string>
#include <freetype-gl.h>
namespace glez {
class texture {

View File

@ -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 {

View File

@ -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) {

View File

@ -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

View File

@ -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 {