Skip to content
Permalink
Browse files

Implement MonoMac.OpenGL API compatability with OpenTK

Merge and clean up work done by Kenneth Pouncey on the OpenTK source
MonoMac now has a API compatible layer with OpenTK on the GL.* classes
but doesn't use any of their context handle, or delegate factory
implementation, but uses direct pinvokes.  The OpenTK shared / forked
sources are in a OpenTK directory for future upgrade ability and
maintenance.  More information on what changes have been made is in
the OpenGL/OpenTK/README.txt file.
  • Loading branch information
Geoff Norton
Geoff Norton committed Feb 24, 2011
1 parent f47a154 commit ed7f7b3ec8bda197d287f4475733fc14bc524437
@@ -71,6 +71,29 @@ MONOMAC_SOURCES = \
./WebKit/WebKit.cs \
./WebKit/WebView.cs

OPENTK_SOURCES = \
./OpenGL/OpenTK/Graphics/Color4.cs \
./OpenGL/OpenTK/Graphics/OpenGL/GL.cs \
./OpenGL/OpenTK/Graphics/OpenGL/GLCore.cs \
./OpenGL/OpenTK/Graphics/OpenGL/GLEnums.cs \
./OpenGL/OpenTK/Graphics/OpenGL/GLHelper.cs \
./OpenGL/OpenTK/Math/Half.cs \
./OpenGL/OpenTK/Math/MathHelper.cs \
./OpenGL/OpenTK/Math/Matrix3d.cs \
./OpenGL/OpenTK/Math/Matrix4.cs \
./OpenGL/OpenTK/Math/Matrix4d.cs \
./OpenGL/OpenTK/Math/Quaternion.cs \
./OpenGL/OpenTK/Math/Quaterniond.cs \
./OpenGL/OpenTK/Math/Vector2.cs \
./OpenGL/OpenTK/Math/Vector2d.cs \
./OpenGL/OpenTK/Math/Vector2h.cs \
./OpenGL/OpenTK/Math/Vector3.cs \
./OpenGL/OpenTK/Math/Vector3d.cs \
./OpenGL/OpenTK/Math/Vector3h.cs \
./OpenGL/OpenTK/Math/Vector4.cs \
./OpenGL/OpenTK/Math/Vector4d.cs \
./OpenGL/OpenTK/Math/Vector4h.cs

GENERATOR_SOURCES = \
../../maccore/src/generator.cs \
../../maccore/src/Options.cs \
@@ -131,8 +154,8 @@ count:
counts:
make pass | grep 'could not be' | sed 's/.*`//' | sed "s/'.*//" | sort | uniq -c | sort -n

MonoMac.dll: $(SOURCES) generated_sources $(MONOMAC_SOURCES) $(SHARED_SOURCES) $(SHARED_CORE_SOURCES)
gmcs -define:OBJECT_REF_TRACKING -nowarn:0414,$(WARNINGS_I_SHOULD_FIX) -debug -unsafe $(SOURCES) @generated_sources $(MONOMAC_SOURCES) $(SHARED_SOURCES) $(SHARED_CORE_SOURCES) -target:library -define:MONOMAC -out:MonoMac.dll -r:System.Drawing
MonoMac.dll: $(SOURCES) generated_sources $(MONOMAC_SOURCES) $(SHARED_SOURCES) $(SHARED_CORE_SOURCES) $(OPENTK_SOURCES)
gmcs -define:OBJECT_REF_TRACKING -nowarn:0414,$(WARNINGS_I_SHOULD_FIX) -debug -unsafe $(SOURCES) @generated_sources $(MONOMAC_SOURCES) $(SHARED_SOURCES) $(SHARED_CORE_SOURCES) $(OPENTK_SOURCES) -target:library -define:MONOMAC -out:MonoMac.dll -r:System.Drawing

clean:
rm -f $(TARGETS) core.dll

0 comments on commit ed7f7b3

Please sign in to comment.
You can’t perform that action at this time.