Skip to content

Instantly share code, notes, and snippets.

View lukebitts's full-sized avatar

Lucas Bittencourt lukebitts

View GitHub Profile
# Blender v2.77 (sub 0) OBJ File: ''
# www.blender.org
v 7.224494 -0.565166 -7.224494
v 7.224494 -0.565166 7.224494
v -7.224495 -0.565166 7.224492
v -7.224491 -0.565166 -7.224496
v 7.224497 0.565166 -7.224491
v 7.224490 0.565166 7.224498
v -7.224496 0.565166 7.224492
v -7.224493 0.565166 -7.224494
@lukebitts
lukebitts / gist:8acf8f482a0982b8f1f2
Created October 9, 2014 16:54
Blender scene to text file exporter
import bpy
import bpy_extras
from math import degrees
from mathutils import Vector
from mathutils import Quaternion
import os
PATH = bpy.path.abspath('//')+"scene_test2/"
print("\nSTARTING SCRIPT...")
#include <iostream>
#include <anax/World.hpp>
#include <anax/Entity.hpp>
#include <anax/Component.hpp>
#include <anax/System.hpp>
struct BaseShapeComponent : anax::Component<BaseShapeComponent>
{
protected:
//
// main.cpp
// EntCompTest
//
// Created by Lucas Bittencourt on 7/8/14.
// Copyright (c) 2014 Lucas Bittencourt. All rights reserved.
//
#include <iostream>
#include <vector>
class Resources;
template <class T>
struct ResourceHandle
{
private:
const Resources* _r = nullptr;
std::string _path = "";
public:
ResourceHandle(const Resources* r, std::string path) : _r(r), _path(path) {}
/*!
* howler.js v1.1.1
* howlerjs.com
*
* (c) 2013, James Simpson of GoldFire Studios
* goldfirestudios.com
*
* MIT License
*/
function Tile(x, y, z, path)
_x = x or 0
_y = y or 0
_z = z or 0
return
{
img = love.graphics.newImage(path),
x = _x,
y = _y,
z = _z,