00001 #region License
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #endregion
00027
00028 using System;
00029 using System.Collections.Generic;
00030 using System.Text;
00031
00032 using OpenTK.Graphics;
00033
00034 namespace OpenTK.Platform
00035 {
00036 interface IPlatformFactory
00037 {
00038 INativeWindow CreateNativeWindow(int x, int y, int width, int height, string title, GraphicsMode mode, GameWindowFlags options, DisplayDevice device);
00039
00040 IDisplayDeviceDriver CreateDisplayDeviceDriver();
00041
00042 IGraphicsContext CreateGLContext(GraphicsMode mode, IWindowInfo window, IGraphicsContext shareContext, bool directRendering, int major, int minor, GraphicsContextFlags flags);
00043
00044 IGraphicsContext CreateGLContext(ContextHandle handle, IWindowInfo window, IGraphicsContext shareContext, bool directRendering, int major, int minor, GraphicsContextFlags flags);
00045
00046 GraphicsContext.GetCurrentContextDelegate CreateGetCurrentGraphicsContext();
00047
00048 IGraphicsMode CreateGraphicsMode();
00049
00050 OpenTK.Input.IKeyboardDriver CreateKeyboardDriver();
00051 }
00052 }