Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
using System.Drawing.Imaging;
using System.Windows.Forms;
using System.Threading;
private static void draw_figure<T>(MouseEventArgs e, Draw_Delegate<T> draw_func, T brushOrPen)
{
if (Start_Point.X > e.X && Start_Point.Y > e.Y)
{
draw_func(brushOrPen, e.X, e.Y, Start_Point.X - e.X, Start_Point.Y - e.Y);
}
else
{
if (Start_Point.X < e.X && Start_Point.Y < e.Y)
{
private static void draw_figure<T>(MouseEventArgs e, Draw_Delegate<T> draw_func, T brushOrPen)
{
if (Start_Point.X > e.X && Start_Point.Y > e.Y)
{
draw_func(brushOrPen, e.X, e.Y, Start_Point.X - e.X, Start_Point.Y - e.Y);
}
else
{
if (Start_Point.X < e.X && Start_Point.Y < e.Y)
{
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Chroma.Actors;
using Chroma.Messages;
using Chroma.States;
using Chroma.Graphics;
uniform sampler2D texture;
uniform vec3 tint;
varying vec2 texCoord;
void main() {
vec4 texel = texture2D(texture, texCoord);
if (texel.a < 0.5) {
discard;
}
#include <iostream >
using namespace std;
struct Node
{
Node() { next = 0; }
virtual void PrintValue() = 0;
#include <iostream>
using namespace std;
int main()
{
int x = 10;
int y = 10;
int **a;
// fuck.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace MarkVShaney
{
class MarkVShaney
{
void Renderer::RenderWall(Vector2 v1, Vector2 v2)
{
static const double zClip = 0.2;
// Translate input vectors into view frame
v1 -= cameraPosition;
v2 -= cameraPosition;
// Rotate input vectors
v1.Rotate(cameraRotation);