Skip to content

Instantly share code, notes, and snippets.

View daltonks's full-sized avatar

Dalton Spillman daltonks

View GitHub Profile
@daltonks
daltonks / build-potrace.sh
Created March 14, 2021 21:56 — forked from pguyot/build-potrace.sh
Build script for potrace for iOS
#!/bin/sh
# Automatic build script for potrace
# for iPhoneOS and iPhoneSimulator
#
# Created by Felix Schulze on 19.02.12.
# Copyright 2012 Felix Schulze. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
using System;
using System.Linq;
using Foundation;
using UIKit;
namespace SkiaSharp.Views.Forms
{
internal class SKTouchHandler : UIGestureRecognizer
{
private readonly HashSet<UITouch> _touches = new HashSet<UITouch>();
public void draw() {
GLES20.glEnable(GLES20.GL_STENCIL_TEST);
//Disable writing to the color and depth buffers: this is just for creating the stencil
GLES20.glColorMask(false, false, false, false);
GLES20.glDepthMask(false);
/*
GLES20.GL_NEVER: For every pixel, fail the stencil test (so we automatically overwrite the pixel's stencil buffer value)
1: write a '1' to the stencil buffer for every drawn pixel because glStencilOp has 'GLES20.GL_REPLACE'
package me.dalton.mineconquer;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import org.bukkit.configuration.file.YamlConfiguration;
package me.dalton.mineconquer.capturing;
import java.util.ArrayList;
import java.util.List;
import me.dalton.mineconquer.ChunkData;
import me.dalton.mineconquer.GamePlayer;
import me.dalton.mineconquer.Globals;
import me.dalton.mineconquer.Group;
package me.dalton.mineconquer.capturing;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import me.dalton.mineconquer.ChunkData;
import me.dalton.mineconquer.GamePlayer;
import me.dalton.mineconquer.Globals;
import me.dalton.mineconquer.Group;
package me.dalton.mineconquer;
import java.util.ArrayList;
import java.util.List;
public class CaptureSpot {
ChunkData chunk;
List<String> attackingPlayers = new ArrayList<String>();
int strength = Globals.CHUNK_STRENGTH;
package me.dalton.mineconquer;
import java.util.ArrayList;
import java.util.List;
import org.bukkit.Location;
import org.bukkit.entity.Player;
public class CaptureHandler {
static List<CaptureSpot> captureSpots = new ArrayList<CaptureSpot>();