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
/****************************************************************************** | |
* Edge/Normal/Tangent/Bitangent Visualizer | |
******************************************************************************/ | |
/** | |
* Vertex Shader | |
*/ | |
const char enbtVS[] = R"( | |
#version 330 | |
uniform mat4 mvpMatrix; |
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
/* | |
* A simple compile-time endian test | |
* g++ -std=c++11 -Wall -Werror -Wextra -pedantic -pedantic-errors endian.cpp -o endian | |
* | |
* This can be used with specialized template functions, classes, and class | |
* methods in order better tailor code and reduce reliance on runtime | |
* checking systems. | |
*/ | |
#include <cstdint> |
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
/** | |
* Simple string-to-type tokenizing. | |
* This program can be used as skeleton code for creating a tokenizer for | |
* command-line arguments. It will convert values into a tuple-type where values | |
* can be extracted using their intended data type. | |
* | |
* Example: | |
* token +3.14159 | |
* Results in two returned values: |
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
/** | |
* Plugin API header | |
*/ | |
#ifndef __PLUGIN_API_H__ | |
#define __PLUGIN_API_H__ | |
/* | |
* Windows-specific settings for a dynamic library | |
*/ |
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
/** | |
* A test of user-defined plugins | |
* | |
* g++ -std=c++11 -Wall -Wextra -Werror -pedantic -pedantic-errors -DSDL_MAIN_HANDLED main.cpp sharedLibrary.cpp -o PluginLoader -lSDL2 | |
*/ | |
#include <iostream> // std::cin, std::cout, std:: cerr | |
#include <vector> | |
#include <string> |
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
/** | |
* Testing the plugin interface | |
* If you're using GCC/G++, specify the additional linker options: | |
* | |
* Indicate that this is a shared library: | |
* shared -s | |
* | |
* Use the provided directive to export compiler symbols to the shared library: | |
* -DBUILD_PLUGIN |
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
/** | |
* An (incomplete) example in setting up a Worker/Dispatcher system. | |
* | |
* g++ -std=c++11 -Wall -Werror -Wextra -pedantic -pedantic-errors work_dispatch.cpp -o work_dispatch | |
*/ | |
#include <iostream> | |
#include <vector> | |
#include <unordered_map> |
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 QtQuick 2.4 | |
Item { | |
id: thisCircle | |
property string color: "black" | |
property alias border: thisBorder | |
property real renderWidth: width | |
property real renderHeight: height |
OlderNewer