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:
+4
-4
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user