Пример #1
0
 public OpenTKGraphicsDevice(
     INativeWindow window,
     IMgGraphicsConfiguration configuration,
     IGLFramebufferHelperSelector selector,
     IGLExtensionLookup extensions,
     IMgGraphicsDeviceLogger logger,
     IGLRenderer queueRenderer,
     IGLBackbufferContext bbContext
     )
 {
     mGraphicsConfiguration = configuration;
     mView          = new GLNullImageView();
     mWindow        = window;
     mExtensions    = extensions;
     mLogger        = logger;
     mSelector      = selector;
     mQueueRenderer = queueRenderer;
     mBBContext     = bbContext;
     // SHOULD BE HIDDEN
     mFramebuffers = new MgFramebufferCollection(mGraphicsConfiguration);
 }
Пример #2
0
 public AmtGraphicsDevice(MTKView view, IMgGraphicsConfiguration config)
 {
     mApplicationView = view;
     mConfiguration   = config;
     mFramebuffers    = new MgFramebufferCollection(config);
 }