Updated licensing information.

This commit is contained in:
the_fiddler 2007-11-10 23:29:25 +00:00
Родитель 621cfbccec
Коммит a60ac7204d
10 изменённых файлов: 69 добавлений и 10 удалений

Просмотреть файл

@ -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.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.Text;
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.Text;
using System.Runtime.InteropServices;

Просмотреть файл

@ -1,7 +1,8 @@
#region --- License ---
/* Copyright (c) 2006, 2007 Stefanos Apostolopoulos
* Contributions by Andy Gill.
* See license.txt for license info
*
* Contributions by Andy Gill.
*/
#endregion

Просмотреть файл

@ -1,7 +1,8 @@
#region --- License ---
/* Copyright (c) 2006, 2007 the OpenTK team
* Implemented by Andy Gill
* See license.txt for license info
*
* Implemented by Andy Gill
*/
#endregion

Просмотреть файл

@ -1,7 +1,8 @@
#region --- License ---
/* Copyright (c) 2006, 2007 the OpenTK team
* Implemented by Andy Gill
* See license.txt for license info
*
* Implemented by Andy Gill
*/
#endregion

Просмотреть файл

@ -1,7 +1,8 @@
#region --- License ---
/* Copyright (c) 2006, 2007 Stefanos Apostolopoulos
* Contributions by Andy Gill.
* See license.txt for license info
*
* Contributions by Andy Gill.
*/
#endregion

Просмотреть файл

@ -1,7 +1,8 @@
#region --- License ---
/* Copyright (c) 2006, 2007 Stefanos Apostolopoulos
* Contributions by Andy Gill.
* See license.txt for license info
*
* Contributions by Andy Gill.
*/
#endregion

Просмотреть файл

@ -1,7 +1,8 @@
#region --- License ---
/* Copyright (c) 2006, 2007 Stefanos Apostolopoulos
* Contributions by Andy Gill.
* See license.txt for license info
*
* Contributions by Andy Gill.
*/
#endregion

Просмотреть файл

@ -1,7 +1,8 @@
#region --- License ---
/* Copyright (c) 2006, 2007 Stefanos Apostolopoulos
* Contributions by Andy Gill.
* See license.txt for license info
*
* Contributions by Andy Gill.
*/
#endregion
@ -688,6 +689,40 @@ namespace OpenTK.OpenGL
#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
}
}