Fixed compilation warnings on Mono 3.4.0
This commit is contained in:
parent
333503d70e
commit
d739085cca
7 changed files with 4 additions and 9 deletions
|
@ -10,6 +10,8 @@ using System.IO;
|
|||
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")]
|
||||
|
|
|
@ -453,7 +453,7 @@ namespace Examples
|
|||
|
||||
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));
|
||||
}
|
||||
|
||||
|
|
|
@ -21,8 +21,6 @@ namespace Examples.Tutorial
|
|||
{
|
||||
}
|
||||
|
||||
Font sans = new Font(System.Drawing.FontFamily.GenericSansSerif, 16.0f);
|
||||
|
||||
uint ColorTexture;
|
||||
uint DepthTexture;
|
||||
uint FBOHandle;
|
||||
|
|
|
@ -115,6 +115,7 @@ namespace Examples.Tutorial
|
|||
GL.Rotate(orientation.X, Vector3.UnitY);
|
||||
GL.Rotate(orientation.Y, Vector3.UnitX);
|
||||
|
||||
GL.BindTexture(TextureTarget.Texture2D, Texture);
|
||||
GL.CallList(list);
|
||||
|
||||
SwapBuffers();
|
||||
|
|
|
@ -83,7 +83,6 @@ namespace Examples.Tutorial
|
|||
int vboSphere;
|
||||
int vboSphereStride = BlittableValueType<VertexPositionNormalTexture>.Stride;
|
||||
int eboSphere;
|
||||
int sphereElementCount;
|
||||
|
||||
ViewMode mode = ViewMode.Scene;
|
||||
Vector3 eyePos = new Vector3(0, -8, 0);
|
||||
|
@ -551,7 +550,6 @@ namespace Examples.Tutorial
|
|||
{
|
||||
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);
|
||||
|
|
|
@ -19,8 +19,6 @@ namespace Examples.Tests
|
|||
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);
|
||||
|
||||
|
|
|
@ -119,8 +119,6 @@ namespace Examples.Shapes
|
|||
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 );
|
||||
|
|
Loading…
Reference in a new issue