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 "ResourceLoader.h" | |
bool ResourceLoader::m_done = false; | |
std::string ResourceLoader::datafolder = "data"; | |
std::map<std::string, sf::Texture> ResourceLoader::m_textures; | |
std::map<std::string, sf::Font> ResourceLoader::m_fonts; | |
std::map<std::string, sf::SoundBuffer> ResourceLoader::m_sounds; | |
void ResourceLoader::m_load() | |
{ |
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
DIRS = . | |
MOONS = $(wildcard $(DIRS:=/*.moon)) | |
all: compile | |
love love/ | |
compile: | |
@echo compiling ... $(MOONS) | |
moonc -t love/ $(MOONS) |
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
/* stbi-1.16 - public domain JPEG/PNG reader - http://nothings.org/stb_image.c | |
when you control the images you're loading | |
QUICK NOTES: | |
Primarily of interest to game developers and other people who can | |
avoid problematic images and only need the trivial interface | |
JPEG baseline (no JPEG progressive, no oddball channel decimations) | |
PNG non-interlaced | |
BMP non-1bpp, non-RLE |
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
#!/usr/bin/luajit | |
local wpi = require ("wiringlua") | |
local ADDR = 0x27 | |
local BLEN = 1 | |
local fd = 0 | |
function write_word(data) | |
local temp = data |
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
#!/usr/bin/luajit | |
local wpi = require ("wiringlua") | |
local ADDR = 0x27 | |
local BLEN = 1 | |
local fd = 0 | |
function write_word(data) | |
local temp = data |
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
// | |
// Created by Lumaio on 12/28/2016. | |
// C API for pushbullet. | |
// Requires libcURL | |
// | |
#ifndef PUSHBULLET_H | |
#define PUSHBULLET_H | |
#include <stdio.h> |
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
template <typename TYPE> | |
struct DropMenu { | |
std::vector<TYPE>* skins; | |
const wchar_t* name; | |
int index = 0; | |
bool thisdrop = false; | |
int x, y; | |
SourceEngine::EItemDefinitionIndex skinid; | |
bool needsupdate=true; | |
KeyToggle drop_click; |
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
--[[ | |
-- | |
-- This is a lua jit wiringpi interface through luajit. | |
-- it's slow. it's bad. but it works. | |
-- | |
-- (c) 2016-2017 Lumaio | |
-- | |
--]] | |
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
local vector = {x,y,z} | |
vector.__index = vector | |
vector.__add = function(lhs, rhs) | |
if rhs == nil then return lhs end | |
local _n = vector(0,0,0) | |
if type(rhs) == "number" then rhs = vector(rhs,rhs,rhs) end | |
_n.x = lhs.x + rhs.x | |
_n.y = lhs.y + rhs.y | |
_n.z = lhs.z + rhs.z | |
return _n |
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 <stdio.h> | |
#include <iostream> | |
#include <string> | |
#include <sys/stat.h> | |
#include <sys/types.h> | |
#ifdef __WIN32 | |
#include <conio.h> | |
#define fstat _fstat64 | |
#define stat _stat64 |
OlderNewer