1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-24 05:18:36 +00:00

Reshuffled to make the OpenGL view explicitly a conduit for CRT-style output, and to give it responsibility for frame drawing. Which is still an awkward thread hop for the time being, but I've yet to read up on the advocated approach to multithreading with an NSOpenGLView; it looked like special provisions were available.

This commit is contained in:
Thomas Harte
2015-07-26 15:13:46 -04:00
parent dd428c5d4d
commit e53fbcf9ea
7 changed files with 113 additions and 128 deletions
+4 -4
View File
@@ -13,16 +13,16 @@
extern "C" {
#endif
struct CRTBuffer {
typedef struct {
uint8_t *data;
int depth;
};
} CRTBuffer;
typedef struct {
int width, height;
} CRTSize;
struct CRTFrame {
typedef struct {
CRTSize size, dirty_size;
int number_of_buffers;
@@ -30,7 +30,7 @@ struct CRTFrame {
int number_of_runs;
uint16_t *runs;
};
} CRTFrame;
#ifdef __cplusplus
}