RootlessForEmulators.h 796 B

123456789101112131415161718192021222324
  1. //
  2. // RootlessForEmulators.h
  3. // RootlessForEmulators
  4. //
  5. // Created by Uli Kusterer on 08/03/15.
  6. // Copyright (c) 2015 Uli Kusterer. All rights reserved.
  7. //
  8. #include <stdbool.h>
  9. typedef void* RootlessWindow;
  10. RootlessWindow CreateWindowWithRect( int x, int y, int width, int height );
  11. void SetWindowRect( RootlessWindow win, int x, int y, int width, int height );
  12. void FreeWindow( RootlessWindow win );
  13. void BackBufferChanged( void* data, int rowBytes, int width, int height ); // Pixel data assumed to be 32-bit RGBA. Could be sth. else, just seemed like a useful choice.
  14. bool QueryInputDevices( int *outButtonDown, int *outX, int *outY );
  15. void GetScreenSize( int *outWidth, int *outHeight );
  16. int EmulatorMain( int argc, const char** argv ); // This is what you implement.