mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-24 04:16:50 +00:00
[Examples] Move UTF8 sample to Test folder
This commit is contained in:
parent
51e99fe638
commit
8cb3538767
|
@ -146,7 +146,7 @@
|
||||||
<SubType>Code</SubType>
|
<SubType>Code</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="OpenGL\1.x\TextRendering.cs" />
|
<Compile Include="OpenGL\1.x\TextRendering.cs" />
|
||||||
<Compile Include="OpenGL\4.x\ShaderSourceWithJapaneseCommentTest.cs" />
|
<Compile Include="OpenTK\Test\TestShaderUtf8Support.cs" />
|
||||||
<Compile Include="SamplesTreeViewSorter.cs">
|
<Compile Include="SamplesTreeViewSorter.cs">
|
||||||
<SubType>Code</SubType>
|
<SubType>Code</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
|
|
@ -12,8 +12,8 @@ using OpenTK.Graphics.OpenGL;
|
||||||
|
|
||||||
namespace Examples.Tutorial
|
namespace Examples.Tutorial
|
||||||
{
|
{
|
||||||
[Example("Shader Source With Japanese Comment Test", ExampleCategory.OpenGL, "4.x")]
|
[Example("Shader UTF8 support", ExampleCategory.OpenTK, "OpenGL")]
|
||||||
public class ShaderSourceWithJapaneseCommentTest : GameWindow
|
public class TestShaderUtf8Support : GameWindow
|
||||||
{
|
{
|
||||||
string vertexShaderSource = @"
|
string vertexShaderSource = @"
|
||||||
#version 130
|
#version 130
|
||||||
|
@ -91,10 +91,10 @@ void main(void)
|
||||||
|
|
||||||
Matrix4 projectionMatrix, modelviewMatrix;
|
Matrix4 projectionMatrix, modelviewMatrix;
|
||||||
|
|
||||||
public ShaderSourceWithJapaneseCommentTest()
|
public TestShaderUtf8Support()
|
||||||
: base(640, 480,
|
: base(640, 480,
|
||||||
new GraphicsMode(), "OpenGL 3 Example", 0,
|
new GraphicsMode(), "OpenGL 3 Example", 0,
|
||||||
DisplayDevice.Default, 4, 2,
|
DisplayDevice.Default, 3, 0,
|
||||||
GraphicsContextFlags.ForwardCompatible | GraphicsContextFlags.Debug)
|
GraphicsContextFlags.ForwardCompatible | GraphicsContextFlags.Debug)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
@ -227,7 +227,7 @@ void main(void)
|
||||||
[STAThread]
|
[STAThread]
|
||||||
public static void Main()
|
public static void Main()
|
||||||
{
|
{
|
||||||
using (ShaderSourceWithJapaneseCommentTest example = new ShaderSourceWithJapaneseCommentTest())
|
using (TestShaderUtf8Support example = new TestShaderUtf8Support())
|
||||||
{
|
{
|
||||||
Utilities.SetWindowTitle(example);
|
Utilities.SetWindowTitle(example);
|
||||||
example.Run(30);
|
example.Run(30);
|
Loading…
Reference in a new issue