StevensDeptECE / GrailGUI

GrailGUI is a prototype of a replacement for web programming (HTTP, HTML, CSS, JavaScript) and GUI programming. It includes a client graphical API, a browser implemented in C++ and OpenGL, a protocol to transmit metadata and data in binary, a language (XDL) to describe the binary data, and local storage to retain data on the client should that be necessary. Encrypted communications (equivalent of TLS) have not yet been implemented.
GNU General Public License v3.0
7 stars 14 forks source link

Fix callbacks in GLWin not working in objects that aren't subclasses of GLWin #28

Open dkrautha opened 3 years ago

dkrautha commented 3 years ago

Mainly to allow making keybinds in AudioPlayer and VideoPlayer

ahuston-0 commented 3 years ago

@dkrautha implemented a promising alternative to this called WantsInput. It currently just intercepts key callbacks, but could be implemented to work with other types of callbacks as well. Both this and WantsInput will need to be finished and compared to determine which is the better solution, but WantsInput may end up being the more efficient of the two (as it doesn't seem to require any function pointers or std::functions, and instead takes a pointer to the class).