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
sudo apt-get install g++ autotools-dev autoconf automake libtool pkg-config libdb4.8-dev libdb4.8++-dev build-essential bsdmainutils python3 libssl-dev libevent-dev libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev libminiupnpc-dev libzmq3-dev libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler libqrencode-dev |
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
template< class T, class V=void, class ...Args > | |
auto create( V v, Args... args ) -> T& | |
{ | |
childs.emplace_back( std::make_unique< T >( v, args... ) ); | |
} |
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
gfx::geometrybank_handle geometry_bank; | |
geometry_bank = { GfxRenderer.Create_Bank() }; | |
scene::shape_node shape; | |
shape.get_data().rangesquared_min = 0; | |
shape.get_data().rangesquared_max = 1000'000; | |
shape.get_data().material = GfxRenderer.Fetch_Material( "grass/grass04" ); | |
shape.get_data().translucent = false; | |
auto shape1 = scene::shape_node( shape ); |
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
gfx::geometrybank_handle geometry_bank; | |
geometry_bank = { GfxRenderer.Create_Bank() }; | |
scene::shape_node shape; | |
shape.get_data().rangesquared_min = 0; | |
shape.get_data().rangesquared_max = 1000'000; | |
shape.get_data().material = GfxRenderer.Fetch_Material( "grass/grass04" ); | |
shape.get_data().translucent = false; | |
auto shape1 = scene::shape_node( shape ); |
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
gfx::geometrybank_handle geometry_bank; | |
geometry_bank = { GfxRenderer.Create_Bank() }; | |
scene::shape_node shape; | |
shape.get_data().rangesquared_min = 0; | |
shape.get_data().rangesquared_max = 1000'000; | |
shape.get_data().material = GfxRenderer.Fetch_Material( "grass/grass04" ); | |
shape.get_data().translucent = false; | |
auto shape1 = scene::shape_node( shape ); |
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.h */ | |
#include "f_decl.h" // here're forward declrs | |
#include "b.h" // needed for `Aa` member. Can't be incomplete type. | |
namespace A | |
{ | |
const int a = 10; | |
const int b = 200; | |
class Aa | |
{ | |
Bb b; // must have definition |
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 <iostream> | |
#include <vector> | |
int main() | |
{ | |
std::vector< std::string> names; | |
std::vector< int> scores; | |
std::string name; | |
int score; |
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
// definition - with `{}` | |
(1) Post processed cpp file. | |
// From header | |
class Foo // definition | |
{ | |
void f(); // declaration | |
}; | |
// From implementation file | |
void Foo::f() // definition |
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
namespace N | |
{ | |
template< class T > | |
foo( T& t ); | |
class Base | |
{ | |
int x; | |
int y; | |
}; |
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
class entity | |
{ | |
int max_hp; | |
int hp; | |
int dmg; | |
int level; | |
}; | |
class player : public entity | |
{ |
NewerOlder