3 Commits (1dac28079499566cd109659588e5977058d867ff)

Author SHA1 Message Date
Nico de Poel 2a4ec90ff1 Reworked setup of native-to-managed callbacks. The "target" pointer is no longer a part of the callbacks struct, instead this is now supplied and stored as an opaque "context" pointer along with a pointer to the callbacks struct. These are provided through separate SetCallbacks functions before initializing the UniQuake native plugin. This cleans up several functions and requires less use of global pointers, while also making it easier to see how things fit together and how to add new modules in the future. 5 years ago
Nico de Poel e6fd7b83ae First bits of entity logic: assign alias models, update transform and animation, remove entity. Still lots of problems to solve, but it's starting to do something. 5 years ago
Nico de Poel c91e6b2bea Replaced UQE-based engine code with a modified QuakeSpasm, stripping out all music codecs (obviously losing music playback capability but that'll be re-added later), and compiling to a DLL with the UniQuake integration code added in. 5 years ago
Nico de Poel 404f19a56d Renamed mod* to gl* to reflect that it's about rendering in general, and cleaned up & rearranged some code 5 years ago
Nico de Poel ec8951fa7c First test to upload model data (brush models and alias models) from Quake to Unity 5 years ago
Nico de Poel cb8bb17c63 Replaced native file I/O functions with managed versions implemented in Unity. Worked first try! :D 5 years ago
Nico de Poel d268e8794a Declare callback delegates as using Cdecl calling convention, so it's consistent with the rest of the code and also consistent across all platforms. 5 years ago
Nico de Poel 40c8c13fb3 Moved native Sys_ calls into their own separate compilation unit, and removed some auto-generated Windows garbage 5 years ago
Nico de Poel 0fafaf32ad Callback target pointer is now contained within the struct passed to native. Organized yet more code to move generic GCHandle stuff into the base class. 5 years ago
Nico de Poel b2ad8a5074 Added an opaque target pointer to each callback function, so that Unity can pass an object instance and use that instance when processing callbacks. 5 years ago
Nico de Poel 9c5e00b8a0 Modified callback conventions so that the paradigm is more Unity implementing system calls required by Quake in whatever way works best, rather than Quake calling specific Unity functions. 5 years ago
Nico de Poel 03cee3a4ce Implemented minimum system functionality to initialize Quake from inside a DLL 5 years ago
Nico de Poel bff11033c3 First steps to get a custom DLL built in Debug mode with all of the relevent Quake engine code embedded 5 years ago