This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ... | |
void (*build_framebuffer_callback(rendering::renderer& r))(GLFWwindow*, int, int) | |
{ | |
static rendering::renderer& renderer = r; | |
void (*callback)(GLFWwindow*, int, int) = ([](GLFWwindow* window, int width, int height) { | |
renderer.resize(width, height); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include(ExternalProject) | |
ExternalProject_Add(assimp | |
PREFIX assimp | |
GIT_REPOSITORY https://github.com/assimp/assimp.git | |
GIT_TAG master | |
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${EXTERNAL_INSTALL_LOCATION}/assimp | |
-DBUILD_SHARED_LIBS=OFF | |
-DASSIMP_BUILD_TESTS=OFF | |
# -DOpenGL_GL_PREFERENCE=GLVND # on certain systems |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = true)] | |
public class HasRegexAttribute : ValidationAttribute | |
{ | |
private string _pattern; | |
private string _errorMessage; | |
public HasRegexAttribute(string pattern, string errorMessage) | |
{ | |
_pattern = pattern; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using System.Collections.Generic; | |
using System.Globalization; | |
using Newtonsoft.Json.Linq; | |
using BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Running; |