Skip to content

Instantly share code, notes, and snippets.

View mxgrey's full-sized avatar
🦀
Rustacean

Grey mxgrey

🦀
Rustacean
View GitHub Profile
@mxgrey
mxgrey / gist:0e38a0a12e430dab8d4bf8e5c803eff7
Created November 10, 2019 12:13
From runningcargo run --example pong --features "vulkan"
Finished dev [unoptimized + debuginfo] target(s) in 0.16s
Running `target/debug/examples/pong`
[INFO][amethyst::app] Initializing Amethyst...
[INFO][amethyst::app] Version: 0.12.0
[INFO][amethyst::app] Platform: x86_64-unknown-linux-gnu
[INFO][amethyst::app] Amethyst git commit: c72063f13f90bae4ae96b6c96e04a2206493bbf3
[INFO][amethyst::app] Rustc version: 1.38.0 Stable
[INFO][amethyst::app] Rustc git commit: 625451e376bb2e5283fc4741caa0a3e8a2ca4d54
[INFO][gfx_backend_vulkan]
GENERAL | VALIDATION [ObjectTracker (0)] : OBJ[0x1] : CREATE DebugUtilsMessengerEXT object 0x55e40ebaf920
0 : 0 0 0 0 0 10
0.001 : 0 0 0 0 0 9.99999
0.002 : 0 0 0 0 0 9.99997
0.003 : 0 0 0 0 0 9.99994
0.004 : 0 0 0 0 0 9.9999
0.005 : 0 0 0 0 0 9.99985
0.006 : 0 0 0 0 0 9.99979
0.007 : 0 0 0 0 0 9.99973
0.008 : 0 0 0 0 0 9.99965
0.009 : 0 0 0 0 0 9.99956
#include <random> // Needed to create random number generation tools
#include <iostream> // Needed to print stuff out
int main()
{
// First, we create a device that will pull randomness from entropy
// in the hardware of the computer. This is a mildly expensive
// operation, so we only do it once at startup and then use it as
#include <memory>
#include <iostream>
class Object
{
public:
std::string mData;
class CustomCollisionFilter : public dart::collision::BodyNodeCollisionFilter
{
public:
inline CustomCollisionFilter(const std::vector<std::pair<std::string, std::string>>& pairs)
{
for(const std::pair<std::string, std::string>& pair : pairs)
{
mPairs[pair.first] = pair.second;
mPairs[pair.second] = pair.first;
class Joint : public virtual ComponentManager
{
public:
struct Properties // First category of Properties
{
std::string mName;
Eigen::Isometry3d mTransformFromParent;
Eigen::Isometry3d mTransformFromChild;
ActuatorType mActuatorType;
class Joint : public virtual AddonManager
{
public:
struct Properties // First category of Properties
{
std::string mName;
Eigen::Isometry3d mTransformFromParent;
Eigen::Isometry3d mTransformFromChild;
ActuatorType mActuatorType;