[Mono-bugs] [Bug 635565] New: Support OpenGLES 2.0 in AndroidGameView

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Aug 30 11:22:42 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=635565

https://bugzilla.novell.com/show_bug.cgi?id=635565#c0


           Summary: Support OpenGLES 2.0 in AndroidGameView
    Classification: Mono
           Product: MonoDroid
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: P5 - None
         Component: Class Libraries
        AssignedTo: jankit at novell.com
        ReportedBy: jpryor at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


We need a cross-platform (MonoTouch and MonoDroid) mechanism for creating an
AndroidGameView instance that targets OpenGLES 2.0 with fallback to OpenGLES
1.1.

For example, MonoTouch currently supports:

    class MyGameView : iPhoneOSGameView {
        // ...
        protected override void CreateFrameBuffer()
        {
            try
            {                
                // check if we support OpenGLES 2.0 first
                ContextRenderingApi = EAGLRenderingAPI.OpenGLES2;
                base.CreateFrameBuffer();
            }
            catch (Exception)
            {
                // device doesn't support OpenGLES 2.0; retry with 1.1:
                ContextRenderingApi = EAGLRenderingAPI.OpenGLES1;
                base.CreateFrameBuffer();
            }
        }
    }

This relies on setting the iPhoneOSGameView.ContextRenderingApi property:

http://www.go-mono.com/docs/index.aspx?link=P:OpenTK.Platform.iPhoneOS.iPhoneOSGameView.ContextRenderingApi

Unfortunately, the EAGLRenderingAPI enumeration is from MonoTouch, which I
don't want to provide in MonoDroid.

Thus, we need two things:

 1. We need to figure out how to provide a similar mechanism for MonoDroid
    so that we can attempt OpenGLES 2.0 functionality and fallback to 1.1
 2. Port this API to MonoTouch to facilitate porting.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list