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
| require "../dist/frozen-urchin.jar" | |
| class TestLibrary | |
| include Java::org.fu.script.Library | |
| def apply_library(container) | |
| nil | |
| end | |
| end |
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
| require "../dist/frozen-urchin.jar" | |
| class TestLibrary | |
| include Java::org.fu.script.Library | |
| def apply_library(container) | |
| end | |
| end | |
| describe Java::org.fu.script.ScriptController do |
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
| Ruby runtime = this.container.getProvider().getRuntime(); | |
| LoadService loader = this.container.getLoadServiceCreator().create(runtime); | |
| loader.require(library); | |
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
| require "../dist/frozen-urchin.jar" | |
| class TestLibrary | |
| include Java::org.fu.script.Library | |
| def apply_library(container) | |
| end | |
| end | |
| describe Java::org.fu.script.ScriptController do |
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
| require "dist/frozen-urchin.jar" | |
| require 'external/jsfml.jar' | |
| class StubDrawable | |
| include Java::org.jsfml.graphics.Drawable | |
| def draw(*args) | |
| end | |
| end |
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
| LoadService loader = container.getLoadServiceCreator().create(runtime); | |
| loader.init(new ArrayList<Object>()); | |
| loader.require("yaml"); |
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
| /* Tyr | |
| * Copyright (c) 2013 Henrik Valter Vogelius Hansson | |
| * | |
| * This software is provided 'as-is', without any express or implied | |
| * warranty. In no event will the authors be held liable for any damages | |
| * arising from the use of this software. | |
| * | |
| * Permission is granted to anyone to use this software for any purpose, | |
| * including commercial applications, and to alter it and redistribute it | |
| * freely, subject to the following restrictions: |
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 <Tyr/Configuration.hpp> | |
| #include <cassert> | |
| #include <cstring> | |
| tyr::Configuration tyr::Configuration::getDefaultConfiguration() | |
| { | |
| std::vector<tyr::Configuration> dimensionConfig; | |
| dimensionConfig.push_back(tyr::Configuration(1024)); | |
| dimensionConfig.push_back(tyr::Configuration(768)); |
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
| FATAL ERROR: unable to find Rubinius runtime directories. | |
| Rubinius was configured to find the directories relative to: | |
| /home/groogy/Projects/External/rubinius | |
| Set the environment variable RBX_PREFIX_PATH to the directory | |
| that is the prefix of the following runtime directories: | |
| BIN_PATH: /bin | |
| RUNTIME_PATH: /runtime |
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
| action = [](SceneNode& node) { | |
| GUI::Button* button = dynamic_cast<GUI::Button*>(&node); | |
| button->select(); | |
| }; | |
| category = selectedButton->getID(); | |
| // What I will probably do instead something like: | |
| if(sf::Keyboard::isKeyPressed(sf::Keyboard::Enter)) | |
| mySelectedButton->activate(); |
OlderNewer