mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-07 11:50:45 +00:00
Updated licensing information.
This commit is contained in:
parent
621cfbccec
commit
a60ac7204d
|
@ -1,4 +1,10 @@
|
||||||
using System;
|
#region --- License ---
|
||||||
|
/* Copyright (c) 2006, 2007 Stefanos Apostolopoulos
|
||||||
|
* See license.txt for license info
|
||||||
|
*/
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,10 @@
|
||||||
using System;
|
#region --- License ---
|
||||||
|
/* Copyright (c) 2006, 2007 Stefanos Apostolopoulos
|
||||||
|
* See license.txt for license info
|
||||||
|
*/
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
|
|
|
@ -1,4 +1,10 @@
|
||||||
using System;
|
#region --- License ---
|
||||||
|
/* Copyright (c) 2006, 2007 Stefanos Apostolopoulos
|
||||||
|
* See license.txt for license info
|
||||||
|
*/
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
#region --- License ---
|
#region --- License ---
|
||||||
/* Copyright (c) 2006, 2007 Stefanos Apostolopoulos
|
/* Copyright (c) 2006, 2007 Stefanos Apostolopoulos
|
||||||
* Contributions by Andy Gill.
|
|
||||||
* See license.txt for license info
|
* See license.txt for license info
|
||||||
|
*
|
||||||
|
* Contributions by Andy Gill.
|
||||||
*/
|
*/
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
#region --- License ---
|
#region --- License ---
|
||||||
/* Copyright (c) 2006, 2007 the OpenTK team
|
/* Copyright (c) 2006, 2007 the OpenTK team
|
||||||
* Implemented by Andy Gill
|
|
||||||
* See license.txt for license info
|
* See license.txt for license info
|
||||||
|
*
|
||||||
|
* Implemented by Andy Gill
|
||||||
*/
|
*/
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
#region --- License ---
|
#region --- License ---
|
||||||
/* Copyright (c) 2006, 2007 the OpenTK team
|
/* Copyright (c) 2006, 2007 the OpenTK team
|
||||||
* Implemented by Andy Gill
|
|
||||||
* See license.txt for license info
|
* See license.txt for license info
|
||||||
|
*
|
||||||
|
* Implemented by Andy Gill
|
||||||
*/
|
*/
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
#region --- License ---
|
#region --- License ---
|
||||||
/* Copyright (c) 2006, 2007 Stefanos Apostolopoulos
|
/* Copyright (c) 2006, 2007 Stefanos Apostolopoulos
|
||||||
* Contributions by Andy Gill.
|
|
||||||
* See license.txt for license info
|
* See license.txt for license info
|
||||||
|
*
|
||||||
|
* Contributions by Andy Gill.
|
||||||
*/
|
*/
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
#region --- License ---
|
#region --- License ---
|
||||||
/* Copyright (c) 2006, 2007 Stefanos Apostolopoulos
|
/* Copyright (c) 2006, 2007 Stefanos Apostolopoulos
|
||||||
* Contributions by Andy Gill.
|
|
||||||
* See license.txt for license info
|
* See license.txt for license info
|
||||||
|
*
|
||||||
|
* Contributions by Andy Gill.
|
||||||
*/
|
*/
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
#region --- License ---
|
#region --- License ---
|
||||||
/* Copyright (c) 2006, 2007 Stefanos Apostolopoulos
|
/* Copyright (c) 2006, 2007 Stefanos Apostolopoulos
|
||||||
* Contributions by Andy Gill.
|
|
||||||
* See license.txt for license info
|
* See license.txt for license info
|
||||||
|
*
|
||||||
|
* Contributions by Andy Gill.
|
||||||
*/
|
*/
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
#region --- License ---
|
#region --- License ---
|
||||||
/* Copyright (c) 2006, 2007 Stefanos Apostolopoulos
|
/* Copyright (c) 2006, 2007 Stefanos Apostolopoulos
|
||||||
* Contributions by Andy Gill.
|
|
||||||
* See license.txt for license info
|
* See license.txt for license info
|
||||||
|
*
|
||||||
|
* Contributions by Andy Gill.
|
||||||
*/
|
*/
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
@ -688,6 +689,40 @@ namespace OpenTK.OpenGL
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region public static void ShaderSource(Int32 shader, System.String @string)
|
||||||
|
|
||||||
|
public static void ShaderSource(Int32 shader, System.String @string)
|
||||||
|
{
|
||||||
|
unsafe
|
||||||
|
{
|
||||||
|
int length = @string.Length;
|
||||||
|
Delegates.glShaderSource((UInt32)shader, 1, new string[] { @string }, &length);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region public static void GetShaderInfoLog(Int32 shader, out string info)
|
||||||
|
|
||||||
|
public static void GetShaderInfoLog(Int32 shader, out string info)
|
||||||
|
{
|
||||||
|
unsafe
|
||||||
|
{
|
||||||
|
int length;
|
||||||
|
GL.GetShader(shader, Version20.InfoLogLength, out length);
|
||||||
|
if (length == 0)
|
||||||
|
{
|
||||||
|
info = "";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
StringBuilder sb = new StringBuilder(length);
|
||||||
|
Delegates.glGetShaderInfoLog((UInt32)shader, sb.Capacity, &length, sb);
|
||||||
|
info = sb.ToString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue