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
architecture pcengine { | |
include: "pcengine.lua", | |
wordsize: 8b, | |
fetchsize: 8b, | |
endian: LSB, | |
memory: [ | |
mem_bss: { name: "work ram", size: 8KB, start: 0x1f0200 }, |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import os | |
import sys | |
import json | |
class IPSRecord: | |
def __init__(self): | |
self.offset = 0 | |
self.data = None |
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
#include <iostream> | |
class A | |
{ | |
public: | |
A() : u(this->_v), _v(1) {} | |
~A() {} | |
public: | |
const int& u; | |
private: |
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
#include <stdio.h> | |
#include <string.h> | |
#include "Frustum.h" | |
Frustum::Frustum() : | |
m_x(1.0f, 0.0f, 0.0f), | |
m_y(0.0f, 1.0f, 0.0f), | |
m_z(0.0f, 0.0f, 1.0f), | |
m_position(0.0f, 0.0f, -1.0f), | |
m_near(0.1f), |
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
#!/usr/bin/perl | |
use strict; | |
use Data::Dumper; | |
my $zp = {}; | |
foreach my $line (`head -n -2 $ARGV[0]`) | |
{ | |
my ($label, $addr, $bank) = $line =~ /^\s*([\w.]+)\s*([0-9A-Fa-f]{4})\s*([0-9A-Fa-f]{2})$/; |
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
$r = 0.001 * 0.05; | |
$p0 = 0.06099; | |
$rm = 8.706; | |
$rt = 6180; | |
# method 1 | |
$a = 2.0 * $r; | |
$b = $p0 + (6.0 * $r); # $p0 + (2.0 * $r); | |
$c = -($rt / (280.0 * $rm)) + $p0 + (4.0 * $r); |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
struct vec3 | |
{ | |
vec3(const vec3& v) : x(v.x), y(v.y), z(v.z) {} | |
vec3(float ix, float iy, float iz) : x(ix), y(iy), z(iz) {} | |
vec3(float f) : x(f), y(f), z(f) {} |
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
#!BPY | |
""" Registration info for Blender menus: | |
Name: 'BlockoS (.blcks)...' | |
Blender: 243 | |
Group: 'Export' | |
Tip: 'Export scene to BlockoS stuffs' | |
""" | |
__author__ = "Vincent 'MooZ' Cruz" |
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
friend void squad(quaternion& qR, const quaternion& q1, const quaternion& qA, | |
const quaternion& qB, const quaternion& q2, | |
float t) | |
quaternion r1, r2; | |
{ | |
slerp(r1, q1, q2, t); | |
slerp(r2, qA, qB, t); | |
slerp(qR, r1, r2, 2.0f * t * (1.0f - t)); | |
} |
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
// TODO : | |
// * Rename into Effect | |
// * Add attachRenderBuffer (depth, stencil) | |
#ifndef _PASS_H_ | |
#define _PASS_H_ | |
#include "Program.h" | |
#include "Texture.h" | |
#include "Renderbuffer.h" |
OlderNewer