PageRenderTime 182ms CodeModel.GetById 40ms app.highlight 2ms RepoModel.GetById 139ms 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
 1#ifndef STAGE_H_
 2#define STAGE_H_
 3
 4class Stage {
 5public:
 6	Stage(JSRuntime *rt, JSContext *cx, JSObject *global);
 7	int Play();
 8private:
 9	JSRuntime *rt;
10	JSContext *cx;
11	JSObject  *global;
12
13	SDL_Surface *screen;
14	char *screenBuffer;
15	size_t screenBufferSize;
16	JSObject *screenArrayBuffer;
17
18	int Initialize();
19	int DrawScreen(int h);
20	void Blit(char *dst, const char *src, size_t size);
21};
22
23#endif /* STAGE_H_ */