1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

Changeset 3266

Show
Ignore:
Timestamp:
05/16/12 20:06:47 (2 years ago)
Author:
borrillis
Message:

[GLES2]

Made GLES2RenderSystem partial, added CreateGlSupport? partial method as a poor mans factory
Added GLES2RenderSystem.Android as an implementation of CreateGlSupport?, sets GLES2RenderSystem.glSupport to new instance of AndroidSupport?
started Win32 EGL implementation for testing on windows.
copied iOS implementation from GLES1

Location:
trunk/Source/Core/Axiom.RenderSystems.OpenGLES2
Files:
9 added
2 modified
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/Source/Core/Axiom.RenderSystems.OpenGLES2/Axiom.RenderSystems.OpenGLES2.Droid.csproj

    r3247 r3266  
    2424    <WarningLevel>4</WarningLevel> 
    2525    <AllowUnsafeBlocks>true</AllowUnsafeBlocks> 
     26    <AndroidLinkMode>None</AndroidLinkMode> 
    2627  </PropertyGroup> 
    2728  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> 
     
    3334    <WarningLevel>4</WarningLevel> 
    3435    <AllowUnsafeBlocks>true</AllowUnsafeBlocks> 
     36    <AndroidLinkMode>SdkOnly</AndroidLinkMode> 
     37    <AndroidUseSharedRuntime>false</AndroidUseSharedRuntime> 
    3538  </PropertyGroup> 
    3639  <ItemGroup> 
     
    8992    <Compile Include="GLSLES\GLSLESProgramPipelineManager.cs" /> 
    9093    <Compile Include="Properties\AssemblyInfo.cs" /> 
     94    <Compile Include="Android\GLES2RenderSystem.Android.cs" /> 
    9195  </ItemGroup> 
    9296  <ItemGroup> 
  • trunk/Source/Core/Axiom.RenderSystems.OpenGLES2/GLES2RenderSystem.cs

    r3252 r3266  
    5757namespace Axiom.RenderSystems.OpenGLES2 
    5858{ 
    59         public class GLES2RenderSystem : RenderSystem 
     59        public partial class GLES2RenderSystem : RenderSystem 
    6060        { 
    6161                private Matrix4 viewMatrix; 
     
    113113#endif 
    114114 
    115                         this.glSupport = this.GLES2Support; 
     115                        CreateGlSupport(); 
    116116 
    117117                        this.worldMatrix = Matrix4.Identity; 
     
    19421942                } 
    19431943 
    1944                 public GLES2Support GLES2Support 
    1945                 { 
    1946                         get 
    1947                         { 
    1948                                 //todo: add conditional for Apple devices 
    1949                                 return new Android.AndroidSupport(); 
    1950                         } 
    1951                 } 
     1944                partial void CreateGlSupport(); 
    19521945 
    19531946                //RenderSystem overrides