using OpenTK.Audio;
using OpenTK.Audio.OpenAL;
+#pragma warning disable 219 // variable assigned but never used, we do that on purpose
+
namespace Examples
{
[Example("Playback", ExampleCategory.OpenAL, "1.1", Documentation="Playback")]
foreach (XRamExtension.XRamStorage m in storagemodes)
{
- bool result = XRam.SetBufferMode(1, ref buffer, m);
+ XRam.SetBufferMode(1, ref buffer, m);
BufferModes.Add(m.ToString(), m == XRam.GetBufferMode(ref buffer));
}
{
}
- Font sans = new Font(System.Drawing.FontFamily.GenericSansSerif, 16.0f);
-
uint ColorTexture;
uint DepthTexture;
uint FBOHandle;
GL.Rotate(orientation.X, Vector3.UnitY);
GL.Rotate(orientation.Y, Vector3.UnitX);
+ GL.BindTexture(TextureTarget.Texture2D, Texture);
GL.CallList(list);
SwapBuffers();
int vboSphere;
int vboSphereStride = BlittableValueType<VertexPositionNormalTexture>.Stride;
int eboSphere;
- int sphereElementCount;
ViewMode mode = ViewMode.Scene;
Vector3 eyePos = new Vector3(0, -8, 0);
{
VertexPositionNormalTexture[] sphereVertices = CalculateSphereVertices(1, 1, 16, 16);
ushort[] sphereElements = CalculateSphereElements(1, 1, 16, 16);
- sphereElementCount = sphereElements.Length;
GL.GenBuffers(1, out vboSphere);
GL.BindBuffer(BufferTarget.ArrayBuffer, vboSphere);
float y = 1.0f;
float z = 1.0f;
- Matrix4 createdTranslation = Matrix4.CreateTranslation(new Vector3(2, 3, -1));
-
Matrix4 translation = new Matrix4(new Vector4(1, 0, 0, 2), new Vector4(0, 1, 0, 3), new Vector4(0, 0, 1, -1), new Vector4(0, 0, 0, 1));
Vector4 point = new Vector4(x, y, z, 1);
double _Six = 0.66666666666666; // 2/3
double _One = 1.0; // 3/3
- double ThirdLength = SideLength / 3f;
-
Vector3d C0 = Center + new Vector3d( -SideLength, -SideLength, +SideLength );
Vector3d C1 = Center + new Vector3d( +SideLength, -SideLength, +SideLength );
Vector3d C2 = Center + new Vector3d( +SideLength, +SideLength, +SideLength );