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
//===================================== | |
// MotionControl.as | |
// | |
// Controls animations based on the movements of a node: | |
// Automatically switches between strafing/forward/reverse/run/fall/jump | |
//===================================== | |
//===================================== | |
// class: AnimSet | |
// |
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
animation | |
designer | |
allnoneselection() -> None : | |
C++ signature : | |
void allnoneselection()allnoneselection = <Boost.Python.function object at 0x000002027EA2C190> | |
arrayclone() -> None : |
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
float ColorCurve::GetY(float pos) const | |
{ | |
for (int i = 0; i < knots_.size() - 1; ++i) | |
{ | |
Vec2 cur = knots_[i]; | |
Vec2 next = knots_[i + 1]; | |
if (pos >= cur.x && pos <= next.x) | |
{ | |
float t = (pos - cur.x) / (next.x - cur.x); | |
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
// | |
// Copyright (c) 2008-2015 the Urho3D project. | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: | |
// |
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
class Graph | |
{ | |
Node* masterNode_; | |
std::vector<Node*> nodes_; // List of all of the contained nodes | |
std::vector<Node*> entryNodes_; // Nodes that are known to be possible points of entry | |
std::multimap<Socket*, Socket*> upstreamEdges_; // link edges that go right->left, input -> output, we only ever allow a single upstream edge - except for with flowControl | |
std::multimap<Socket*, Socket*> downstreamEdges_; // link edges that go left->right, output -> input, flow control sockets can only have 1 downstream edge | |
unsigned currentExecutionContext_; | |
} |
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
// Fills a grid of density values, the grid is vertex based, so for a 64^3 cells the grid must be 65^3 to include the extra vertex for the last cell | |
// This code expects to be combined with other code for a "DensityFunc" before being compiled. | |
#define VERTEX_SIZE 65 | |
int vertex_index(const int4 pos) | |
{ | |
int x = clamp(pos.x, 0, VERTEX_SIZE - 1); | |
int y = clamp(pos.y, 0, VERTEX_SIZE - 1); | |
int z = clamp(pos.z, 0, VERTEX_SIZE - 1); |
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 "IMWidget.h" | |
#include <QAction> | |
#include <QApplication> | |
#include <QClipboard> | |
#include <QComboBox> | |
#include <QImage> | |
#include <QItemDelegate> | |
#include <QListWidget> | |
#include <QPainter> |
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 "UrhoResourceCache.h" | |
#include <Urho3D/Core/Context.h> | |
#include <Urho3D/IO/FileSystem.h> | |
#include <Urho3D/Resource/ResourceCache.h> | |
#include <Urho3D/Core/StringUtils.h> | |
using namespace Urho3D; | |
namespace UrhoEditor |
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
/// <summary> | |
/// While null it will automatically check to seek out | |
/// </summary> | |
/// <typeparam name="T">Type of the object we we to acquire</typeparam> | |
public class IOCDependency<T> where T : class | |
{ | |
public delegate void DependencyResolved(IOCDependency<T> self); | |
public event DependencyResolved DependencyResolvedHandler = delegate { }; |
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
// only included in case some of the ctx weirdness needs explanation | |
using System; | |
using System.Collections.ObjectModel; | |
using System.IO; | |
using System.Linq; | |
namespace SprueKit.Data | |
{ | |
// When we have a broken path have to have a means to fix it |
OlderNewer