PageRenderTime 40ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/Show/Stage.h

http://github.com/mbebenita/Broadway
C Header | 23 lines | 19 code | 4 blank | 0 comment | 0 complexity | d8a47b3730f8d9fb558e29aee29cdbde MD5 | raw file
Possible License(s): BSD-3-Clause
  1. #ifndef STAGE_H_
  2. #define STAGE_H_
  3. class Stage {
  4. public:
  5. Stage(JSRuntime *rt, JSContext *cx, JSObject *global);
  6. int Play();
  7. private:
  8. JSRuntime *rt;
  9. JSContext *cx;
  10. JSObject *global;
  11. SDL_Surface *screen;
  12. char *screenBuffer;
  13. size_t screenBufferSize;
  14. JSObject *screenArrayBuffer;
  15. int Initialize();
  16. int DrawScreen(int h);
  17. void Blit(char *dst, const char *src, size_t size);
  18. };
  19. #endif /* STAGE_H_ */