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
use std::cell::RefCell; | |
use std::rc::Rc; | |
fn add_node(a1: &f32, a2: &f32, result: &mut f32) { | |
*result = a1+a2; | |
} | |
fn mul_node(a1: &f32, a2: &f32, result: &mut f32) { | |
*result = a1*a2; | |
} |
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
shader SpriteSheet( | |
string Basename = "", | |
string Extension = "", | |
int Rows = 1, | |
int NImages = 1, | |
int Zeros = 5, | |
vector UV = 0, | |
output color C = 0 | |
) |
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
#!/bin/bash | |
# Dont forget to add this line into $SRCDIR/CMakeLists.txt | |
# add_definitions (-D_GLIBCXX_USE_CXX11_ABI=0) | |
# in section … | |
# Platform-specific settings. | |
SRCDIR=appleseed-static | |
# What about this? |
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
trait Evaluieren <Msg> { | |
fn evaluieren(self: &mut Self, Msg) -> &mut Self; | |
} | |
macro_rules! eval_redirect { | |
( | |
$E: ty, | |
$M: ty, | |
$target: ident |
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
// --- | |
// The Evaluator trait | |
trait Evaluator <Msg> { | |
fn evaluate(self: &mut Self, Msg) -> &mut Self; | |
} | |
macro_rules! eval_redirect { | |
( | |
$E: ty, |