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
| --[[ | |
| BLODS - Binary Lua Object (De)Serialization | |
| ]] | |
| --[[ | |
| Save on table access. | |
| ]] | |
| local pairs = pairs | |
| local type = type | |
| local loadstring = loadstring |
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
| { | |
| "name": "cc_gfx", | |
| "license": "MIT", | |
| "description": "Bindings to the gfx library for ComputerCraft.", | |
| "version": "0.0.1", | |
| "classPath": "src/", | |
| "releasenote": "Initial release.", | |
| "contributors": ["James King"] | |
| } |
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
| package shader; | |
| import gfx.Vector2f; | |
| class Shader { | |
| static public function main() { | |
| var v = new Vector2f(1, 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
| -- Rev 2 | |
| local sin = math.sin | |
| local cos = math.cos | |
| local tan = math.tan | |
| local abs = math.abs | |
| local min = math.min | |
| local max = math.max | |
| local floor = math.floor | |
| local sqrt = math.sqrt |
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 <stdlib.h> | |
| #include <stdio.h> | |
| #include <inttypes.h> | |
| #include <errno.h> | |
| #include <string.h> | |
| #include <limits.h> | |
| #pragma pack(push, 1) | |
| struct pak_header { | |
| char unknown_0[8]; |