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
| 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; |
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
| 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) | |
| { |
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
| 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) | |
| { |
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
| 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; |
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
| uniform sampler2D texture; | |
| uniform vec3 tint; | |
| varying vec2 texCoord; | |
| void main() { | |
| vec4 texel = texture2D(texture, texCoord); | |
| if (texel.a < 0.5) { | |
| discard; | |
| } |
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 <iostream > | |
| using namespace std; | |
| struct Node | |
| { | |
| Node() { next = 0; } | |
| virtual void PrintValue() = 0; |
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 <iostream> | |
| using namespace std; | |
| int main() | |
| { | |
| int x = 10; | |
| int y = 10; | |
| int **a; |
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
| // fuck.cpp : Defines the entry point for the console application. | |
| // | |
| #include "stdafx.h" | |
| #include <iostream> | |
| using namespace std; | |
| int main() |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.IO; | |
| namespace MarkVShaney | |
| { | |
| class MarkVShaney | |
| { |
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
| 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); |