{"action":"created","issue":{"url":"https://api.github.com/repos/ptitSeb/gl4es/issues/47","repository_url":"https://api.github.com/repos/ptitSeb/gl4es","labels_url":"https://api.github.com/repos/ptitSeb/gl4es/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/ptitSeb/gl4es/issues/47/comments","events_url":"https://api.github.com/repos/ptitSeb/gl4es/issues/47/events","html_url":"https://github.com/ptitSeb/gl4es/issues/47","id":297252486,"number":47,"title":"Build without EGL or X11","user":{"login":"kas1e","id":664776,"avatar_url":"https://avatars2.githubusercontent.com/u/664776?v=4","gravatar_id":"","url":"https://api.github.com/users/kas1e","html_url":"https://github.com/kas1e","followers_url":"https://api.github.com/users/kas1e/followers","following_url":"https://api.github.com/users/kas1e/following{/other_user}","gists_url":"https://api.github.com/users/kas1e/gists{/gist_id}","starred_url":"https://api.github.com/users/kas1e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kas1e/subscriptions","organizations_url":"https://api.github.com/users/kas1e/orgs","repos_url":"https://api.github.com/users/kas1e/repos","events_url":"https://api.github.com/users/kas1e/events{/privacy}","received_events_url":"https://api.github.com/users/kas1e/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":76,"created_at":"2018-02-14T21:32:10Z","updated_at":"2018-02-17T12:13:38Z","closed_at":null,"author_association":"NONE","body":"Want to port gl4es to some obscure platform, which have no EGL or X11, but its own API for creating context and co, and have some questions:\r\n\r\nLately port REGAL and it wasn't as good as i expected. Simple things do not works as expected while others do. So i want to try gl4es as it seems only one project which in develop and looks good enough.\r\n\r\nSo, i can buld Regal as static library, just with: -DREGAL_SYS_ES2=1 -DREGAL_STATIC_ES2 -DREGAL_SYS_X11=0 -DREGAL_SYS_GLX=0 -DREGAL_SYS_EGL=0\r\n\r\nThen, in GL programm i just change include <GL/gl.h> on include <GL/Regal.h>, and link binary against -lgles2 , and all works.\r\n\r\nSo i want to do the same for gl4es. Is it possible ? All i need, its static library, which will worry about ogl calls and transfer them to ogles context (which i create myself, by own api) , without reling in any way on X11 or EGL (as i can for myself create windows, context and handle buttons and stuff).\r\n\r\nThanks in advance for help !\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ptitSeb/gl4es/issues/comments/366437372","html_url":"https://github.com/ptitSeb/gl4es/issues/47#issuecomment-366437372","issue_url":"https://api.github.com/repos/ptitSeb/gl4es/issues/47","id":366437372,"user":{"login":"kas1e","id":664776,"avatar_url":"https://avatars2.githubusercontent.com/u/664776?v=4","gravatar_id":"","url":"https://api.github.com/users/kas1e","html_url":"https://github.com/kas1e","followers_url":"https://api.github.com/users/kas1e/followers","following_url":"https://api.github.com/users/kas1e/following{/other_user}","gists_url":"https://api.github.com/users/kas1e/gists{/gist_id}","starred_url":"https://api.github.com/users/kas1e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kas1e/subscriptions","organizations_url":"https://api.github.com/users/kas1e/orgs","repos_url":"https://api.github.com/users/kas1e/repos","events_url":"https://api.github.com/users/kas1e/events{/privacy}","received_events_url":"https://api.github.com/users/kas1e/received_events","type":"User","site_admin":false},"created_at":"2018-02-17T12:13:38Z","updated_at":"2018-02-17T12:13:38Z","author_association":"NONE","body":"Ok, we going much futher now. With that test case:\r\n\r\nint main()\r\n{\r\nglBegin ( GL_POLYGON );\r\nglEnd();\r\n}\r\n\r\nWe have:\r\n\r\nLIBGL: Initialising gl4es\r\nLIBGL: v1.0.5 build on Feb 17 2018 14:27:30\r\nLIBGL: Using GLES 2.0 backend\r\nLIBGL: OGLES2 Library and Interface open successfuly\r\nLIBGL: Hardware test disabled, nothing activated...\r\nLIBGL: Targeting OpenGL 2.0\r\nLIBGL: Current folder is: NO NAME:gl4es\r\nLIBGL: OGLES2 Library and Interface closed\r\n\r\nAnd programm exit fine. Good !\r\n\r\nThen, i trying simple that:\r\n\r\n\r\nint main()\r\n{\r\nglClearColor(0.4f, 0.3f, 0.3f, 255.0f);\r\n}\r\n\r\nAnd it crashes (as expected, as no context there), in the : gl4es_glClearColor.\r\n\r\nSo, i tried then a very simple test case where i create window, context and all usuall stuff. Only that i don't open ogles2.library / interface, as its in the libgl4es.a already.  Test case are:\r\nhttp://kas1e.mikendezign.com/aos4/gl4es/test2.c\r\n\r\nAnd then, it crashes the same, in the first glCall (i.e. also gl4es_glClearColor().\r\n\r\nNow we at point where we almost made it work probably ! Now to understand is it not having context make it crash, or something else .. Or maybe i still need to open ogles2.libary (again) and share context somehow ..\r\n\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"kas1e"}}