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
#!/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. |
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
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>(); |
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
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' |
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
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; |
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
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; |
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
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; |
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
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; | |
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
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>(); |