Skip to content

Instantly share code, notes, and snippets.

View adam4813's full-sized avatar

Adam Martin adam4813

View GitHub Profile
Import-Module posh-git
Import-Module oh-my-posh
Set-PoshPrompt -Theme aliens
Import-Module npm-completion
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete
Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward
Remove-PSReadlineKeyHandler 'Ctrl+r'
Remove-PSReadlineKeyHandler 'Ctrl+t'
Import-Module PSFzf
void do_something(int a, int b) {
int arr = { a
,b
};
int result = a
+ b;
bool same = a
& b;
}
void do_something(int a, int b) {
int arr = { a
,b
};
int result = a
+ b;
bool same = a
& b;
}
.hpp
template <int>
struct ComponentList {
static std::set<eid> entities;
};
template<> std::set<eid> ComponentList<proto::Component::kLuaScript>::entities;
template<> std::set<eid> ComponentList<proto::Component::kPosition>::entities;
template<> std::set<eid> ComponentList<proto::Component::kOrientation>::entities;

Trillek Engine C

Windows (VStudio 2015) Semaphore (GCC)
Build status Build Status

Building

TEC requires cmake 3.1 and a few libraries GLFW3, GLM, ASIO, Protobuf, GLEW, Lua, Bullet and OpenAL.

If you do not have cmake 3.1 (try cmake -version), to install on Linux, use the same procedure that we do on Travis CI:

@adam4813
adam4813 / components.proto
Created July 14, 2015 04:38
Protobuf example
syntax = "proto2";
package tec.proto;
message Entity {
required uint64 id = 1;
message Component {
message ComponentProperty {
enum Type {
BOOL = 0;