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
#!/usr/bin/env python3 | |
import logging | |
import multiprocessing | |
_LOGGER = multiprocessing.log_to_stderr() | |
_LOGGER.setLevel(logging.DEBUG) | |
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
#ifndef INCREMENTINDICES_H | |
#define INCREMENTINDICES_H | |
#include <cstddef> | |
#include <type_traits> | |
#include <m3ta/at> | |
#include <m3ta/concatenate> | |
#include <m3ta/integersequence> | |
#include <m3ta/popback> |
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
#ifndef STRIDES_H | |
#define STRIDES_H | |
#include <cstddef> | |
#include <m3ta/concatenateintegersequences> | |
#include <m3ta/integersequence> | |
#include <m3ta/reverseintegersequence> | |
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
#ifndef MULTIDIMENSIONALARRAY_H | |
#define MULTIDIMENSIONALARRAY_H | |
#include <array> | |
#include <cstddef> | |
#include <type_traits> | |
// https://github.com/christophercrouzet/m3ta | |
#include <m3ta/nestedinitializerlists> | |
#include <m3ta/pass> |
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 <iomanip> | |
#include <iostream> | |
#include <string> | |
#include <type_traits> | |
#include <utility> | |
template<typename T> | |
struct Functions; |
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
#ifndef DISTANCE_H | |
#define DISTANCE_H | |
#include <algorithm> | |
#include <cassert> | |
#include <cmath> | |
#include <limits> | |
#include "floatingpointtraits.h" |
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 <algorithm> | |
#include <array> | |
#include <cmath> | |
#include <random> | |
#include <iomanip> | |
#include <ios> | |
#include <iostream> | |
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
int shorterSide = std::min(width, height); | |
GLfloat marginX = 1.0f + GLfloat(width - shorterSide) / (GLfloat)shorterSide; | |
GLfloat marginY = 1.0f + GLfloat(height - shorterSide) / (GLfloat)shorterSide; | |
glm::mat4 projection = glm::ortho(-marginX, marginX, -marginY, marginY); |
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
import inspect | |
import os | |
def get_module_name_from_path(path): | |
if not os.path.exists(path): | |
raise ValueError("The path '%s' is not a valid path." % path) | |
path = os.path.abspath(path) | |
full_names = [] |
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
separate_arguments(FILES) | |
foreach (file ${FILES}) | |
if (LOAD_SHADERS_DYNAMICALLY) | |
file( | |
COPY ${SOURCE_DIR}/${file} | |
DESTINATION ${DESTINATION_DIR} | |
) | |
else() | |
set(filename ${SOURCE_DIR}/${file}) |