Code Monkey home page Code Monkey logo

Comments (1)

onox avatar onox commented on June 22, 2024

EGL bindings for surfaceless contexts are working. Need to figure out though how to use it via Orka.Contexts. Currently you make a context current by using a constructed Window:

Library : constant Orka.Contexts.Library'Class
  := Orka.Windows.GLFW.Initialize (Major => 4, Minor => 2);

Window : aliased Orka.Windows.Window'Class
  := Library.Create_Window (Width => 500, Height => 500, Resizable => False);

Context : constant Orka.Contexts.Context'Class := Window.Context;
pragma Unreferenced (Context);

The context is created by GLFW in Create_Window and made current via the Context constant (RAII). This is kinda backwards since you surfaces are optional if an EGLDisplay supports surfaceless contexts. I would prefer to have something like this:

Context : Orka.Contexts.Context'Class
  := Orka.Windows.GLFW.Create_Context (Version => (4, 2), Flags => (Debug => True, others => False));

Window : aliased Orka.Windows.Window'Class
  := Context.Create_Window (Width => 500, Height => 500, Resizable => False);

Without a window, a context can be created and made current via:

Context : Orka.Contexts.Context'Class
  := Orka.Windows.EGL.Create_Context (Surfaceless, Version => (4, 2), Flags => (Debug => True, others => False));

from orka.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.