This file contains hidden or 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
| template<typename T> class AABBImpl | |
| { | |
| public: | |
| using VecT = Vec2<T>; | |
| private: | |
| VecT position, halfSize; | |
| public: | |
| struct TagFromPosition { }; |
This file contains hidden or 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 <list> | |
| #include <SSVUtils/SSVUtils.hpp> | |
| volatile bool state {false}; | |
| struct TestClass | |
| { | |
| volatile int k{0}; | |
| volatile int y{0}; | |
| volatile bool todel{false}; |
This file contains hidden or 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
| //!ssvasm | |
| $require_registers(4); | |
| $define(R0, 0); | |
| $define(R1, 1); | |
| $define(R2, 2); | |
| $define(ROutput, 3); | |
This file contains hidden or 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
| //!ssvasm | |
| $require_registers(3); | |
| $define(R0, 0); | |
| $define(R1, 1); | |
| $define(ROutput, 2); | |
This file contains hidden or 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
| namespace ssvvm | |
| { | |
| class Value | |
| { | |
| public: | |
| enum class Type{Null, Int, Float}; | |
| private: | |
| Type type{Type::Null}; | |
| union { int implInt; float implFloat; }; |
This file contains hidden or 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
| namespace Internal | |
| { | |
| template<typename T> struct IsContainerHelper | |
| { | |
| template<typename U, | |
| typename Require1 = decltype(std::begin(std::declval<const U&>())), | |
| typename Require2 = decltype(std::end(std::declval<const U&>()))> | |
| static std::true_type test(const U*); | |
| template<typename U> static std::false_type test(...); |
This file contains hidden or 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 <thread> | |
| #include <string> | |
| #include <iostream> | |
| #include <SSVUtils/SSVUtils.hpp> | |
| #include <GL/glew.h> | |
| #include <GLFW/glfw3.h> | |
| namespace ssvgl | |
| { | |
| class ShaderSource; |
This file contains hidden or 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
| // This will save your sanity. | |
| #include <cfenv> | |
| feenableexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW); |
This file contains hidden or 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
| // Copyright (c) 2013 Vittorio Romeo | |
| // License: Academic Free License ("AFL") v. 3.0 | |
| // AFL License page: http://opensource.org/licenses/AFL-3.0 | |
| #define SSVS_N_USE_JSON | |
| #include <vector> | |
| #include <string> | |
| #include <SFML/System.hpp> | |
| #include <SFML/Graphics.hpp> |
This file contains hidden or 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
| #!/bin/bash | |
| ( | |
| cd /home/vittorioromeo/WEBVittorioRomeo2/ | |
| git pull | |
| git submodule foreach git pull origin master | |
| cd ./_RELEASE/ | |
| cmake .. | |
| make -j2 | |
| sudo make install |