Slowly getting things working

This commit is contained in:
2017-02-24 16:31:15 -05:00
parent 87120574c8
commit 338efc337e
20 changed files with 297 additions and 355 deletions

61
InstanceTiles/Program.cs Normal file
View File

@@ -0,0 +1,61 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OpenTK;
namespace InstanceTiles
{
internal class Program
{
private float[] points =
{
+.5f, +.5f, +.5f, -.5f, +.5f, +.5f, -.5f, -.5f, +.5f,
-.5f, -.5f, +.5f, +.5f, -.5f, +.5f, +.5f, +.5f, +.5f,
-.5f, +.5f, -.5f, +.5f, +.5f, -.5f, +.5f, -.5f, -.5f,
+.5f, -.5f, -.5f, -.5f, -.5f, -.5f, -.5f, +.5f, -.5f,
+.5f, +.5f, -.5f, +.5f, +.5f, +.5f, +.5f, -.5f, +.5f,
+.5f, -.5f, +.5f, +.5f, -.5f, -.5f, +.5f, +.5f, -.5f,
-.5f, +.5f, +.5f, -.5f, +.5f, -.5f, -.5f, -.5f, -.5f,
-.5f, -.5f, -.5f, -.5f, -.5f, +.5f, -.5f, +.5f, +.5f,
+.5f, +.5f, -.5f, -.5f, +.5f, -.5f, -.5f, +.5f, +.5f,
-.5f, +.5f, +.5f, +.5f, +.5f, +.5f, +.5f, +.5f, -.5f,
+.5f, -.5f, +.5f, -.5f, -.5f, +.5f, -.5f, -.5f, -.5f,
-.5f, -.5f, -.5f, +.5f, -.5f, -.5f, +.5f, -.5f, +.5f,
};
private float[] texCoords =
{
1.0f, 0.0f, 5.0f, 0.0f, 5.0f, 1.0f,
0.5f, 1.0f, 1.0f, 1.0f, 1.0f, 5.0f,
1.0f, 0.5f, 0.0f, 0.5f, 0.0f, 1.0f,
0.0f, 1.0f, 1.0f, 1.0f, 1.0f, 0.5f,
0.5f, 0.5f, 0.5f, 0.0f, 0.0f, 0.0f,
0.0f, 0.0f, 0.0f, 0.5f, 0.5f, 0.5f,
0.0f, 0.0f, 0.0f, 0.5f, 0.5f, 0.5f,
0.5f, 0.5f, 0.5f, 0.0f, 0.0f, 0.0f,
0.0f, 0.5f, 0.5f, 0.5f, 0.5f, 0.0f,
0.5f, 0.0f, 0.0f, 0.0f, 0.0f, 0.5f,
0.5f, 0.0f, 0.0f, 0.0f, 0.0f, 0.5f,
0.0f, 0.5f, 0.5f, 0.5f, 0.5f, 0.0f,
};
private float[] cubePoints =
{
0, 0, 0,
1, 0, 0,
0, 1, 0,
};
private float[] cubeTexCoords =
{
0.05f
};
private static void Main(string[] args)
{
}
}
}