#endif
// System.Xml.XmlIgnoreAttribute
- class XmlIgnoreAttribute : Attribute
+ internal class XmlIgnoreAttribute : Attribute
{
}
// System.ComponentModel.EditorBrowrableAttribute
- class EditorBrowsableAttribute : Attribute
+ internal class EditorBrowsableAttribute : Attribute
{
public EditorBrowsableAttribute(EditorBrowsableState state) { }
}
// System.ComponentModel.EditorBrowsableState
- enum EditorBrowsableState
+ internal enum EditorBrowsableState
{
Always = 0,
Never = 1,
Advanced = 2,
}
- class RegistryKey
+ internal class RegistryKey
{
public RegistryKey OpenSubKey(string name)
{
}
}
- class Registry
+ internal class Registry
{
public static readonly RegistryKey LocalMachine = new RegistryKey();
}
public struct PointF : IEquatable<PointF>
{
- float x, y;
+ private float x, y;
/// <summary>
/// Constructs a new PointF instance.
public struct SizeF : IEquatable<SizeF>
{
- float width, height;
+ private float width, height;
/// <summary>
/// Constructs a new SizeF instance.
public struct RectangleF : IEquatable<RectangleF>
{
- PointF location;
- SizeF size;
+ private PointF location;
+ private SizeF size;
/// <summary>
/// Constructs a new RectangleF instance.
public sealed class Icon : IDisposable
{
- IntPtr handle;
+ private IntPtr handle;
public Icon(Icon icon, int width, int height)
{
public sealed class Bitmap : Image
{
- int width;
- int height;
+ private int width;
+ private int height;
public Bitmap() { }
}
}
- sealed class BitmapData
+ internal sealed class BitmapData
{
internal BitmapData(int width, int height, int stride)
{
public int Stride { get; private set; }
}
- enum ImageLockMode
+ internal enum ImageLockMode
{
ReadOnly,
WriteOnly,
UserInputBuffer
}
- enum PixelFormat
+ internal enum PixelFormat
{
Format32bppArgb
}
- enum ImageFormat {
+ internal enum ImageFormat {
Png
}
- sealed class SystemEvents
+ internal sealed class SystemEvents
{
public static event EventHandler DisplaySettingsChanged;
}
// Need a different namespace to avoid clash with OpenTK.Graphics.
namespace OpenTK.Minimal
{
- sealed class Graphics : IDisposable
+ internal sealed class Graphics : IDisposable
{
public static Graphics FromImage(OpenTK.Image img)
{
namespace OpenTK.Platform.iPhoneOS
{
- sealed class GLCalls {
+ internal sealed class GLCalls {
public delegate void glBindFramebuffer(All target, int framebuffer);
public delegate void glBindRenderbuffer(All target, int renderbuffer);
public delegate void glDeleteFramebuffers(int n, ref int framebuffers);
throw new ArgumentException("api");
}
- static GLCalls CreateES1()
+ private static GLCalls CreateES1()
{
return new GLCalls() {
BindFramebuffer = (t, f) => ES11.GL.Oes.BindFramebuffer(t, f),
};
}
- static GLCalls CreateES2()
+ private static GLCalls CreateES2()
{
return new GLCalls() {
BindFramebuffer = (t, f) => ES20.GL.BindFramebuffer((ES20.FramebufferTarget) t, f),
};
}
- static GLCalls CreateES3()
+ private static GLCalls CreateES3()
{
return new GLCalls() {
BindFramebuffer = (t, f) => ES30.GL.BindFramebuffer((ES30.FramebufferTarget) t, f),
}
}
- interface ITimeSource {
+ internal interface ITimeSource {
void Suspend ();
void Resume ();
}
[Register]
- class CADisplayLinkTimeSource : NSObject, ITimeSource {
- const string selectorName = "runIteration:";
- static Selector selRunIteration = new Selector (selectorName);
+ internal class CADisplayLinkTimeSource : NSObject, ITimeSource {
+ private const string selectorName = "runIteration:";
+ private static Selector selRunIteration = new Selector (selectorName);
- iPhoneOSGameView view;
- CADisplayLink displayLink;
+ private iPhoneOSGameView view;
+ private CADisplayLink displayLink;
public CADisplayLinkTimeSource (iPhoneOSGameView view, int frameInterval)
{
[Export (selectorName)]
[Preserve (Conditional = true)]
- void RunIteration (NSObject parameter)
+ private void RunIteration (NSObject parameter)
{
view.RunIteration (null);
}
}
- class NSTimerTimeSource : ITimeSource {
+ internal class NSTimerTimeSource : ITimeSource {
+ private TimeSpan timeout;
+ private NSTimer timer;
- TimeSpan timeout;
- NSTimer timer;
-
- iPhoneOSGameView view;
+ private iPhoneOSGameView view;
public NSTimerTimeSource (iPhoneOSGameView view, double updatesPerSecond)
{
public class iPhoneOSGameView : UIView, IGameWindow
{
- bool suspended;
- bool disposed;
+ private bool suspended;
+ private bool disposed;
- int framebuffer, renderbuffer;
+ private int framebuffer, renderbuffer;
- GLCalls gl;
+ private GLCalls gl;
- ITimeSource timesource;
- System.Diagnostics.Stopwatch stopwatch;
- TimeSpan prevUpdateTime;
- TimeSpan prevRenderTime;
+ private ITimeSource timesource;
+ private System.Diagnostics.Stopwatch stopwatch;
+ private TimeSpan prevUpdateTime;
+ private TimeSpan prevRenderTime;
- IWindowInfo windowInfo = Utilities.CreateDummyWindowInfo();
+ private IWindowInfo windowInfo = Utilities.CreateDummyWindowInfo();
[Export("initWithCoder:")]
public iPhoneOSGameView(NSCoder coder)
return new Class (typeof (CAEAGLLayer));
}
- void AssertValid()
+ private void AssertValid()
{
if (disposed)
{
}
}
- void AssertContext()
+ private void AssertContext()
{
if (GraphicsContext == null)
{
}
}
- EAGLRenderingAPI api;
+ private EAGLRenderingAPI api;
public EAGLRenderingAPI ContextRenderingApi {
get {
AssertValid();
}
}
- bool retainedBacking;
+ private bool retainedBacking;
public bool LayerRetainsBacking {
get {
AssertValid();
}
}
- NSString colorFormat;
+ private NSString colorFormat;
public NSString LayerColorFormat {
get {
AssertValid();
public bool AutoResize {get; set;}
- UIViewController GetViewController()
+ private UIViewController GetViewController()
{
UIResponder r = this;
while (r != null) {
set {throw new NotSupportedException();}
}
- Size size;
+ private Size size;
public Size Size {
get {
AssertValid();
CreateFrameBuffer(eaglLayer);
}
- void CreateFrameBuffer(CAEAGLLayer eaglLayer)
+ private void CreateFrameBuffer(CAEAGLLayer eaglLayer)
{
int oldRenderbuffer = 1;
gl.GetInteger(All.RenderbufferBindingOes, out oldRenderbuffer);
GraphicsContext.SwapBuffers();
}
- WeakReference frameBufferWindow;
- WeakReference frameBufferLayer;
+ private WeakReference frameBufferWindow;
+ private WeakReference frameBufferLayer;
public void Run()
{
Start ();
}
- void Start ()
+ private void Start ()
{
prevUpdateTime = TimeSpan.Zero;
prevRenderTime = TimeSpan.Zero;
OnUnload(EventArgs.Empty);
}
- void Suspend ()
+ private void Suspend ()
{
if (timesource != null)
{
suspended = true;
}
- void Resume ()
+ private void Resume ()
{
if (timesource != null)
{
}
}
- FrameEventArgs updateEventArgs = new FrameEventArgs();
- FrameEventArgs renderEventArgs = new FrameEventArgs();
+ private FrameEventArgs updateEventArgs = new FrameEventArgs();
+ private FrameEventArgs renderEventArgs = new FrameEventArgs();
internal void RunIteration (NSTimer timer)
{