I hereby claim:
- I am danielytics on github.
- I am guywithknife (https://keybase.io/guywithknife) on keybase.
- I have a public key ASCfWEd74yrc1AWr28bUEd0t4hQWtWlaUtc7trWPJVU6two
To claim this, I am signing this object:
// Code taken from GLFW documentation: https://www.glfw.org/documentation.html | |
#include <GLFW/glfw3.h> | |
int main(void) | |
{ | |
GLFWwindow* window; | |
/* Initialize the library */ | |
if (!glfwInit()) | |
return -1; |
I hereby claim:
To claim this, I am signing this object:
lock = RWLock() | |
with lock.read(): | |
# Do some stuff | |
# Other threads can also use lock.read() at the same time, but no threads can lock.write() until current reads complete | |
with lock.write(): | |
# Do some stuff | |
# No other thread can be reading or writing while this thread has the lock |
#include <core/Godot.hpp> | |
#include <KinematicBody2D.hpp> | |
using namespace godot; | |
class Player : public GodotScript<KinematicBody2D> | |
{ | |
public: | |
GODOT_SUBCLASS(Player, KinematicBody2D) |
#!python | |
import os | |
# platform= makes it in line with Godots scons file, keeping p for backwards compatibility | |
platform = ARGUMENTS.get("p", "linux") | |
platform = ARGUMENTS.get("platform", platform) | |
target_arch = ARGUMENTS.get('a', ARGUMENTS.get('arch', '64')) | |
# This makes sure to keep the session environment variables on windows, | |
# that way you can run scons in a vs 2017 prompt and it will find all the required tools |
tutorial root directory/ | |
├── playerlib/ | |
│ └── src/ | |
└── playerdemo/ | |
└── libs/ |
extends Node | |
func _ready(): | |
var simple = load("res://simple.gdns").new() | |
simple.say(simple.hello("World")) |
scons platform=osx use_llvm=yes |
#!python | |
import os | |
# platform= makes it in line with Godots scons file, keeping p for backwards compatibility | |
platform = ARGUMENTS.get("p", "linux") | |
platform = ARGUMENTS.get("platform", platform) | |
target_arch = ARGUMENTS.get('a', ARGUMENTS.get('arch', '64')) | |
# This makes sure to keep the session environment variables on windows, | |
# that way you can run scons in a vs 2017 prompt and it will find all the required tools |
#include <core/Godot.hpp> | |
#include <Reference.hpp> | |
#include <core/String.hpp> | |
#include <core/Array.hpp> | |
using namespace godot; | |
class Simple : public GodotScript<Reference> { | |
GODOT_CLASS(Simple); | |
public: |